CN106294901A - A kind of self-defined emulation mode of power system customer based on mixing variable step emulation - Google Patents
A kind of self-defined emulation mode of power system customer based on mixing variable step emulation Download PDFInfo
- Publication number
- CN106294901A CN106294901A CN201510276361.3A CN201510276361A CN106294901A CN 106294901 A CN106294901 A CN 106294901A CN 201510276361 A CN201510276361 A CN 201510276361A CN 106294901 A CN106294901 A CN 106294901A
- Authority
- CN
- China
- Prior art keywords
- emulation
- power system
- user
- software package
- analysis software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The present invention provides a kind of self-defined emulation mode of power system customer based on mixing variable step emulation, by the pretreatment of user-defined model, initialize and simulation calculation, optimize the User Defined function of Based on Power System Analysis Software Package, both can ensure that the redundancy reducing user-defined model emulation when system dynamic course is steady, improve and calculate speed and do not lose the acceptable accuracy of engineering calculation, careful accurate calculating can be carried out again in needing the period paid close attention to, achieve the electromechanics-electro-magnetic transient of Based on Power System Analysis Software Package and the mixing step-length copying of electromechanics-medium-term and long-term process, and achieve variable step emulation to a certain extent, improve the computational convergence of Based on Power System Analysis Software Package, accuracy and computational efficiency, extend the range of Based on Power System Analysis Software Package.
Description
Technical field
The present invention relates to a kind of emulation mode, be specifically related to a kind of power system customer based on mixing variable step emulation self-defined imitative
True method.
Background technology
Along with developing rapidly of power system and Power Electronic Technique, novel system element constantly puts into system control technique day by day
Progressive, it is desirable to some new-type elements and various control function can be simulated in power system computation.General simulation analysis software
It is provided with User Defined (User-defined, UD) modeling and/or third party software interface function, to realize opening of software
Put formula emulation, make up the deficiency of specialty simulation software.
In domestic existing power system simulation software, UD function technology is the most backward, at Based on Power System Analysis Software Package (Power
System Analysis Software Package, PSASP) in have a UD function, but its emulation uses consolidate consistent with mastery routine
Fixed step size, is susceptible to the problem that self-definition model calculating does not restrains or computing redundancy degree is the biggest, the precision of impact emulation and efficiency.
External business software such as matlab, PSCAD etc. possess UD function, and for variable step emulation, but these softwares and
The simulation algorithm of PSASP, flow process are widely different, therefore realization mechanism is different from the present invention, are still not carried out emulating based on fixed step size
Mixing variable step UD emulation mode under mastery routine.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the present invention provides a kind of power system customer based on mixing variable step emulation certainly
Definition emulation mode, both can ensure that the redundancy reducing user-defined model emulation when system dynamic course is steady, improved
Calculate speed and do not lose the acceptable accuracy of engineering calculation, careful accurate calculating can be carried out in needing the period paid close attention to again,
Ensure the computational accuracy of user-defined model, reduce and calculate the probability not restrained.
In order to realize foregoing invention purpose, the present invention adopts the following technical scheme that:
The present invention provide a kind of based on mixing variable step emulation the self-defined emulation mode of power system customer, described method include with
Lower step:
Step 1: the pretreatment of user-defined model;
Step 2: the initialization of user-defined model;
Step 3: the simulation calculation of user-defined model.
In described step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes segmenting step-length multiple, mixing variable step emulation initial time and mixing variable step emulation knot
The bundle moment.
In described step 2, it is judged that whether mixing variable step emulation initial time was zero moment, if at the beginning of then carrying out as mixing variable step
Beginningization calculates, and otherwise carries out initializing calculating by the fixed step size of Based on Power System Analysis Software Package.
In described step 3, based on the emulation time step of Based on Power System Analysis Software Package, judge in each time step, if
Current time between the mixing variable step emulation initial time set and mixing variable step emulation finish time, then carries out mixing and becomes
Step-length emulates, and determines increasing step-length according to segmentation step-length multiple or reduces step-length, specifically including:
If increasing step-length, it is judged that whether this time step overlaps with the emulation time step of user-defined model, make by oneself if then carrying out user
Justice model calculating and to Based on Power System Analysis Software Package export result of calculation, otherwise utilize interpolation calculation by User Defined mould
In type, the result of calculation of a time step processes the output of backward Based on Power System Analysis Software Package;
If reducing step-length, under this time step, carry out the iterative of user-defined model segmentation step-length, by final result of calculation
Output is to Based on Power System Analysis Software Package.
In described step 3, under each emulation time step of Based on Power System Analysis Software Package, user-defined model and power train
Analysis integrated program of uniting all carries out the mutual of input/output variable;Based on Power System Analysis Software Package calls User Defined interface letter
Number, after Based on Power System Analysis Software Package has calculated, will be the most defeated by the User Defined interface function relevant with value
Enter variable transferring to user-defined model;User-defined model emulation is complete, by the User Defined relevant with restoring value
Result of calculation is passed to Based on Power System Analysis Software Package by interface function, and cycle calculations is until emulation terminates successively.
The function set that described User Defined interface function is formed leaves in User Defined interface module, and described user makes by oneself
Justice interface module uses VC to write, and it is compiled into dynamic link library * .dll document form, by the comprehensive journey of Power System Analysis
Sequence is called.
Compared with prior art, the beneficial effects of the present invention is:
Present invention optimizes the User Defined function of Based on Power System Analysis Software Package, both can ensure that and put down at system dynamic course
Reduce the redundancy of user-defined model emulation time steady, improve and calculate speed and do not lose the acceptable accuracy of engineering calculation, again
Careful accurate calculating can be carried out in needing the period paid close attention to, it is ensured that the computational accuracy of user-defined model, reduce and calculate
The probability not restrained, makes Based on Power System Analysis Software Package more adapt to present stage a large amount of power system new-type element and emerges in large numbers, and needs
Will flexibly modeling and simulating means to adapt to the needs of security and stability analysis of large power grid, it is achieved that Based on Power System Analysis Software Package
The mixing step-length copying of electromechanics-electro-magnetic transient and electromechanics-medium-term and long-term process, and it is imitative to achieve variable step to a certain extent
Very, improve the computational convergence of Based on Power System Analysis Software Package, accuracy and computational efficiency, extend Power System Analysis
The range of synthesizer.
Accompanying drawing explanation
Fig. 1 is the process schematic that in the embodiment of the present invention, mixing strengthens step-length emulation;
Fig. 2 is the process schematic that in the embodiment of the present invention, step-length emulation is reduced in mixing.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is described in further detail.
The present invention provide a kind of based on mixing variable step emulation the self-defined emulation mode of power system customer, described method include with
Lower step:
Step 1: the pretreatment of user-defined model;
Step 2: the initialization of user-defined model;
Step 3: the simulation calculation of user-defined model.
In described step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes segmenting step-length multiple, mixing variable step emulation initial time and mixing variable step emulation knot
The bundle moment.
In described step 2, it is judged that whether mixing variable step emulation initial time was zero moment, if at the beginning of then carrying out as mixing variable step
Beginningization calculates, and otherwise carries out initializing calculating by the fixed step size of Based on Power System Analysis Software Package.
In described step 3, (such as Fig. 1 and Fig. 2) based on the emulation time step of Based on Power System Analysis Software Package, every for the moment
Step judge, if current time set mixing variable step emulation initial time and mixing variable step emulation finish time it
Between, then carry out mixing variable step emulation, determine increasing step-length according to segmentation step-length multiple or reduce step-length, specifically including:
If increasing step-length, it is judged that whether this time step overlaps with the emulation time step of user-defined model, make by oneself if then carrying out user
Justice model calculating and to Based on Power System Analysis Software Package export result of calculation, otherwise utilize interpolation calculation by User Defined mould
In type, the result of calculation of a time step processes the output of backward Based on Power System Analysis Software Package;
If reducing step-length, under this time step, carry out the iterative of user-defined model segmentation step-length, by final result of calculation
Output is to Based on Power System Analysis Software Package.
In described step 3, under each emulation time step of Based on Power System Analysis Software Package, user-defined model and power train
Analysis integrated program of uniting all carries out the mutual of input/output variable;Based on Power System Analysis Software Package calls User Defined interface letter
Number, after Based on Power System Analysis Software Package has calculated, will be the most defeated by the User Defined interface function relevant with value
Enter variable transferring to user-defined model;User-defined model emulation is complete, by the User Defined relevant with restoring value
Result of calculation is passed to Based on Power System Analysis Software Package by interface function, and cycle calculations is until emulation terminates successively.
The function set that described User Defined interface function is formed leaves in User Defined interface module, and described user makes by oneself
Justice interface module uses VC to write, and it is compiled into dynamic link library * .dll document form, by the comprehensive journey of Power System Analysis
Sequence is called.
The present invention, by the pretreatment of user-defined model, initialization and simulation calculation, optimizes the comprehensive journey of Power System Analysis
The User Defined function of sequence, both can ensure that the redundancy reducing user-defined model emulation when system dynamic course is steady,
Improve calculate speed and do not lose the acceptable accuracy of engineering calculation, again can need pay close attention to period in carry out careful accurately
Calculate, it is ensured that the computational accuracy of user-defined model, reduce and calculate the probability not restrained, make the comprehensive journey of Power System Analysis
Sequence more adapts to present stage a large amount of power system new-type element and emerges in large numbers, need flexibly modeling and simulating means to adapt to bulk power grid safety
The needs of stability analysis, it is achieved that the electromechanics-electro-magnetic transient of Based on Power System Analysis Software Package and electromechanics-medium-term and long-term process mixed
Close step-length copying, and achieve variable step emulation to a certain extent, improve the calculating of Based on Power System Analysis Software Package
Convergence, accuracy and computational efficiency, extend the range of Based on Power System Analysis Software Package.
Finally should be noted that: above example only in order to illustrate that technical scheme is not intended to limit, art
Those of ordinary skill still the detailed description of the invention of the present invention can be modified or equivalent with reference to above-described embodiment,
These are without departing from any amendment of spirit and scope of the invention or equivalent, the claim of the present invention all awaited the reply in application
Within protection domain.
Claims (6)
1. the self-defined emulation mode of power system customer based on mixing variable step emulation, it is characterised in that: described method bag
Include following steps:
Step 1: the pretreatment of user-defined model;
Step 2: the initialization of user-defined model;
Step 3: the simulation calculation of user-defined model.
The self-defined emulation mode of power system customer based on mixing variable step emulation the most according to claim 1, its feature
It is: in described step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes segmenting step-length multiple, mixing variable step emulation initial time and mixing variable step emulation knot
The bundle moment.
The self-defined emulation mode of power system customer based on mixing variable step emulation the most according to claim 2, its feature
It is: in described step 2, it is judged that whether mixing variable step emulation initial time was zero moment, if then entering by mixing variable step
Row initializes and calculates, and otherwise carries out initializing calculating by the fixed step size of Based on Power System Analysis Software Package.
The self-defined emulation mode of power system customer based on mixing variable step emulation the most according to claim 1, its feature
It is: in described step 3, based on the emulation time step of Based on Power System Analysis Software Package, judges in each time step,
If current time is between the mixing variable step emulation initial time set and mixing variable step emulation finish time, then mix
Conjunction variable step emulates, and determines increasing step-length according to segmentation step-length multiple or reduces step-length, specifically including:
If increasing step-length, it is judged that whether this time step overlaps with the emulation time step of user-defined model, make by oneself if then carrying out user
Justice model calculating and to Based on Power System Analysis Software Package export result of calculation, otherwise utilize interpolation calculation by User Defined mould
In type, the result of calculation of a time step processes the output of backward Based on Power System Analysis Software Package;
If reducing step-length, under this time step, carry out the iterative of user-defined model segmentation step-length, by final result of calculation
Output is to Based on Power System Analysis Software Package.
5. according to the self-defined emulation mode of power system customer based on mixing variable step emulation described in claim 1 or 4, its
Be characterised by: in described step 3, under each emulation time step of Based on Power System Analysis Software Package, user-defined model and
Based on Power System Analysis Software Package all carries out the mutual of input/output variable;Based on Power System Analysis Software Package calls User Defined
Interface function, after Based on Power System Analysis Software Package has calculated, will by the User Defined interface function relevant with value
Corresponding input variable passes to user-defined model;User-defined model emulation is complete, by the user relevant with restoring value
Result of calculation is passed to Based on Power System Analysis Software Package by self defined interface function, and cycle calculations is until emulation terminates successively.
The self-defined emulation mode of power system customer based on mixing variable step emulation the most according to claim 5, its feature
Being: the function set that described User Defined interface function is formed leaves in User Defined interface module, described user is certainly
Defining interface module uses VC to write, and it is compiled into dynamic link library * .dll document form, comprehensive by Power System Analysis
Routine call.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510276361.3A CN106294901B (en) | 2015-05-26 | 2015-05-26 | A kind of customized emulation mode of power system customer based on mixing variable step emulation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510276361.3A CN106294901B (en) | 2015-05-26 | 2015-05-26 | A kind of customized emulation mode of power system customer based on mixing variable step emulation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294901A true CN106294901A (en) | 2017-01-04 |
CN106294901B CN106294901B (en) | 2019-10-15 |
Family
ID=57635497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510276361.3A Active CN106294901B (en) | 2015-05-26 | 2015-05-26 | A kind of customized emulation mode of power system customer based on mixing variable step emulation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294901B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112434420A (en) * | 2020-11-20 | 2021-03-02 | 国网山东省电力公司电力科学研究院 | Time synchronization and data interaction method for hybrid simulation of comprehensive energy system |
CN114237767A (en) * | 2022-02-24 | 2022-03-25 | 西安羚控电子科技有限公司 | System and method for realizing multi-speed simulation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533428A (en) * | 2009-04-30 | 2009-09-16 | 华北电力大学 | Electro-magnetic transient off-line non-real time parallel simulation system and simulation method |
CN103942091A (en) * | 2014-04-17 | 2014-07-23 | 国家电网公司 | MATLAB user-defined model and PSASP joint simulation excitation system simulation method and system |
CN104102526A (en) * | 2014-07-04 | 2014-10-15 | 中国西电电气股份有限公司 | Collaborative interface for co-simulation of PSCAD (power system computer aided design) with third-party simulation software or hardware |
-
2015
- 2015-05-26 CN CN201510276361.3A patent/CN106294901B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101533428A (en) * | 2009-04-30 | 2009-09-16 | 华北电力大学 | Electro-magnetic transient off-line non-real time parallel simulation system and simulation method |
CN103942091A (en) * | 2014-04-17 | 2014-07-23 | 国家电网公司 | MATLAB user-defined model and PSASP joint simulation excitation system simulation method and system |
CN104102526A (en) * | 2014-07-04 | 2014-10-15 | 中国西电电气股份有限公司 | Collaborative interface for co-simulation of PSCAD (power system computer aided design) with third-party simulation software or hardware |
Non-Patent Citations (1)
Title |
---|
岳程燕等: "一种电力系统元件通用模型建模方法", 《2007中国电机工程学会年会论文集》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112434420A (en) * | 2020-11-20 | 2021-03-02 | 国网山东省电力公司电力科学研究院 | Time synchronization and data interaction method for hybrid simulation of comprehensive energy system |
CN112434420B (en) * | 2020-11-20 | 2023-09-05 | 国网山东省电力公司电力科学研究院 | Time synchronization and data interaction method for hybrid simulation of comprehensive energy system |
CN114237767A (en) * | 2022-02-24 | 2022-03-25 | 西安羚控电子科技有限公司 | System and method for realizing multi-speed simulation |
CN114237767B (en) * | 2022-02-24 | 2022-06-14 | 西安羚控电子科技有限公司 | System and method for realizing multi-speed simulation |
Also Published As
Publication number | Publication date |
---|---|
CN106294901B (en) | 2019-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103489032B (en) | Aerial engine air passage parts Gernral Check-up method based on particle filter | |
CN104298809B (en) | A kind of Nonlinear Modeling method for solving based on matrix exponetial electromagnetic transient simulation | |
CN106356859B (en) | A kind of rectangular coordinate Newton load flow calculation method based on Matlab | |
CN104391692B (en) | For reading and writing the face-objected programming method of PSD BPA data files | |
CN103236691B (en) | Method of three-phase unbalance load flow calculation based on complex affine mathematical theory | |
CN106202794A (en) | Relay class unit output characteristics acquisition methods based on many finite element simulations | |
CN104091092A (en) | Feature value analysis system for small-interference stability of large-scale power system | |
CN103700036A (en) | Transient stability projection integral method suitable for multi-time scale of electrical power system | |
CN106712067A (en) | Method for determining stability of small interference of direct-current power grid | |
CN104156542A (en) | Implicit-projection-based method for simulating stability of active power distribution system | |
CN107632590A (en) | A kind of bottom event sort method based on priority | |
CN106294901A (en) | A kind of self-defined emulation mode of power system customer based on mixing variable step emulation | |
CN115438598A (en) | Numerical method of Reynolds stress turbulence model based on general time root square scale | |
CN106294899A (en) | The self-defined emulation mode of power system customer based on object-oriented program framework | |
CN109921426A (en) | Wind-electricity integration system probability load flow calculation method based on CV-KDE | |
CN111221520B (en) | Power system controller control algorithm generation method and device and readable storage medium | |
CN106505624A (en) | Determine regulator control system and the method for power distribution network distributed power source optimum ability to arrange jobs | |
CN105787604B (en) | A kind of distribution situation method for quickly sensing of transmission & distribution collaboration | |
CN104967121A (en) | Large-scale electric power system node load flow computing method | |
Kranjcic et al. | Differential evolution-based identification of the nonlinear kaplan turbine model | |
CN102682192A (en) | Vorticity refinement used in numerical simulation of incompressible swirling flow field | |
La Scala et al. | A qualitative approach to the transient stability analysis [of power systems] | |
CN108829982A (en) | Modularization multi-level converter Energy Equivalent modeling method | |
CN102609576B (en) | Power system transient stability simulating method based on estimation-correction numerical integration | |
Tostado-Veliz et al. | A three-stage algorithm based on a semi-implicit approach for solving the power-flow in realistic large-scale ill-conditioned systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |