CN106294901B - A kind of customized emulation mode of power system customer based on mixing variable step emulation - Google Patents

A kind of customized emulation mode of power system customer based on mixing variable step emulation Download PDF

Info

Publication number
CN106294901B
CN106294901B CN201510276361.3A CN201510276361A CN106294901B CN 106294901 B CN106294901 B CN 106294901B CN 201510276361 A CN201510276361 A CN 201510276361A CN 106294901 B CN106294901 B CN 106294901B
Authority
CN
China
Prior art keywords
user
emulation
power system
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.)
Active
Application number
CN201510276361.3A
Other languages
Chinese (zh)
Other versions
CN106294901A (en
Inventor
夏天
安宁
徐得超
李蒙
李岩松
张景明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Shanghai Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Shanghai Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, State Grid Shanghai Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510276361.3A priority Critical patent/CN106294901B/en
Publication of CN106294901A publication Critical patent/CN106294901A/en
Application granted granted Critical
Publication of CN106294901B publication Critical patent/CN106294901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention provides a kind of customized emulation mode of power system customer based on mixing variable step emulation, pass through the pretreatment of user-defined model, initialization and simulation calculation, optimize user's custom feature of Based on Power System Analysis Software Package, both the redundancy for reducing user-defined model emulation when system dynamic course is steady can have been guaranteed, calculating speed is improved without losing the acceptable accuracy of engineering calculation, again careful accurate calculating can be carried out in needing the period paid close attention to, realize electromechanics-electro-magnetic transient of Based on Power System Analysis Software Package and the mixing step-length copying of the medium-term and long-term process of electromechanics-, and variable step emulation is realized to a certain extent, improve the computational convergence of Based on Power System Analysis Software Package, accuracy and computational efficiency, extend the use scope of Based on Power System Analysis Software Package.

Description

A kind of customized emulation mode of power system customer based on mixing variable step emulation
Technical field
The present invention relates to a kind of emulation modes, and in particular to it is a kind of based on mixing variable step emulation power system customer from Define emulation mode.
Background technique
With the rapid development of electric system and power electronic technique, novel system element is constantly put into and system controls skill Art is showing improvement or progress day by day, it is desirable that several new-type elements and various control functions can be simulated in power system computation.General emulation Analysis software is provided with user customized (User-defined, UD) modeling and/or third party software interface function, to realize The open emulation of software, makes up the deficiency of professional simulation software.
In domestic existing power system simulation software, UD function technology more falls behind, in Based on Power System Analysis Software Package There is UD function in (Power System Analysis Software Package, PSASP), but its emulation uses and main program Consistent fixed step size is easy to happen the problem that self-definition model calculating does not restrain or computing redundancy degree is too big, influences emulation Precision and efficiency.
External business software such as matlab, PSCAD etc. have a UD function, and emulate for variable step, but these softwares with The simulation algorithm of PSASP, process are widely different, therefore realization mechanism is different from the present invention, and are still not carried out and are emulated based on fixed step size Mixing variable step UD emulation mode under main program.
Summary of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a kind of electric system based on mixing variable step emulation The customized emulation mode of user can both guarantee the redundancy for reducing user-defined model emulation when system dynamic course is steady Degree improves calculating speed without losing the acceptable accuracy of engineering calculation, but can be carried out in needing period for paying close attention to it is careful It is accurate to calculate, guarantee the computational accuracy of user-defined model, reduces and calculate a possibility that not restraining.
In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical scheme that:
The present invention provides a kind of customized emulation mode of power system customer based on mixing variable step emulation, the method The following steps are included:
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 the step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes subdivision step-length multiple, mixing variable step emulation initial time and mixing variable step Emulate finish time.
In the step 2, judge to mix whether variable step emulation initial time is zero moment, if then by mixing variable step Initialization calculating is carried out, otherwise carries out initialization calculating by the fixed step size of Based on Power System Analysis Software Package.
In the step 3, based on the emulation time step of Based on Power System Analysis Software Package, sentenced in each time step It is disconnected, if current time emulates between initial time and mixing variable step emulation finish time in the mixing variable step of setting, Mixing variable step emulation is carried out, is determined according to subdivision step-length multiple and increases step-length or reduce step-length, specifically included:
If increasing step-length, judge whether the time step is overlapped with the emulation time step of user-defined model, if then being used The calculating of family self-definition model simultaneously exports calculated result to Based on Power System Analysis Software Package, otherwise utilizes interpolation calculation by user It is exported after the calculated result processing of a time step to Based on Power System Analysis Software Package on self-definition model;
If reducing step-length, the iterative solution of user-defined model subdivision step-length is carried out under the time step, by final meter Result is calculated to export to Based on Power System Analysis Software Package.
In the step 3, under each emulation time step of Based on Power System Analysis Software Package, user-defined model and electricity The analysis integrated program of Force system all carries out the interaction of input/output variable;Based on Power System Analysis Software Package calls user to make by oneself Adopted interface function passes through user's self defined interface letter related with value after Based on Power System Analysis Software Package calculates completion Corresponding input variable is passed to user-defined model by number;User-defined model emulation finishes, by related with restoring value User's self defined interface function calculated result is passed into Based on Power System Analysis Software Package, circuit sequentially calculating until emulation Terminate.
The function set that user's self defined interface function is formed is stored in user's self defined interface module, the use Family self defined interface module is write using VC, and it is compiled into dynamic link library * .dll document form, by Power System Analysis Synthesizer calls.
Compared with prior art, the beneficial effects of the present invention are:
Present invention optimizes user's custom features of Based on Power System Analysis Software Package, can both guarantee in system dynamic The redundancy for reducing user-defined model emulation when process is steady improves calculating speed without losing the acceptable standard of engineering calculation Exactness, and careful accurate calculating can be carried out in needing the period paid close attention to, guarantee the computational accuracy of user-defined model, It reduces and calculates a possibility that not restraining, Based on Power System Analysis Software Package is made more to adapt to the novel member of a large amount of electric system at this stage Part emerges in large numbers, and needs flexible modeling and simulating means to adapt to the needs of security and stability analysis of large power grid, realizes electric system point Electromechanics-electro-magnetic transient of synthesizer and the mixing step-length copying of the medium-term and long-term process of electromechanics-are analysed, and to a certain extent Variable step emulation is realized, computational convergence, accuracy and the computational efficiency of Based on Power System Analysis Software Package are improved, is extended The use scope of Based on Power System Analysis Software Package.
Detailed description of the invention
Fig. 1 is the process schematic that mixing increases step-length emulation in the embodiment of the present invention;
Fig. 2 is the process schematic that step-length emulation is reduced in mixing in the embodiment of the present invention.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
The present invention provides a kind of customized emulation mode of power system customer based on mixing variable step emulation, the method The following steps are included:
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 the step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes subdivision step-length multiple, mixing variable step emulation initial time and mixing variable step Emulate finish time.
In the step 2, judge to mix whether variable step emulation initial time is zero moment, if then by mixing variable step Initialization calculating is carried out, otherwise carries out initialization calculating by the fixed step size of Based on Power System Analysis Software Package.
In the step 3, (such as Fig. 1 and Fig. 2) based on the emulation time step of Based on Power System Analysis Software Package, each Time step is judged, if current time is at the end of the mixing variable step of setting emulation initial time and mixing variable step emulation Between quarter, then mixing variable step emulation is carried out, is determined according to subdivision step-length multiple and increase step-length or reduce step-length, specifically included:
If increasing step-length, judge whether the time step is overlapped with the emulation time step of user-defined model, if then being used The calculating of family self-definition model simultaneously exports calculated result to Based on Power System Analysis Software Package, otherwise utilizes interpolation calculation by user It is exported after the calculated result processing of a time step to Based on Power System Analysis Software Package on self-definition model;
If reducing step-length, the iterative solution of user-defined model subdivision step-length is carried out under the time step, by final meter Result is calculated to export to Based on Power System Analysis Software Package.
In the step 3, under each emulation time step of Based on Power System Analysis Software Package, user-defined model and electricity The analysis integrated program of Force system all carries out the interaction of input/output variable;Based on Power System Analysis Software Package calls user to make by oneself Adopted interface function passes through user's self defined interface letter related with value after Based on Power System Analysis Software Package calculates completion Corresponding input variable is passed to user-defined model by number;User-defined model emulation finishes, by related with restoring value User's self defined interface function calculated result is passed into Based on Power System Analysis Software Package, circuit sequentially calculating until emulation Terminate.
The function set that user's self defined interface function is formed is stored in user's self defined interface module, the use Family self defined interface module is write using VC, and it is compiled into dynamic link library * .dll document form, by Power System Analysis Synthesizer calls.
The present invention optimizes Power System Analysis by the pretreatment, initialization and simulation calculation of user-defined model User's custom feature of synthesizer can both guarantee to reduce user-defined model emulation when system dynamic course is steady Redundancy, improve calculating speed without losing the acceptable accuracy of engineering calculation, but can in needing period for paying close attention into The careful accurate calculating of row, guarantees the computational accuracy of user-defined model, reduces and calculates a possibility that not restraining, makes power train Analysis integrated program of uniting more adapts to a large amount of electric system new-type elements at this stage and emerges in large numbers, need flexible modeling and simulating means with The needs for adapting to security and stability analysis of large power grid, realize the electromechanics-electro-magnetic transient and machine of Based on Power System Analysis Software Package Electricity-medium-term and long-term process mixing step-length copying, and variable step emulation is realized to a certain extent, improve electric system Computational convergence, accuracy and the computational efficiency of analysis integrated program, extend Based on Power System Analysis Software Package uses model It encloses.
Finally it should be noted that: the above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, institute The those of ordinary skill in category field can still modify to a specific embodiment of the invention referring to above-described embodiment or Equivalent replacement, these are applying for this pending hair without departing from any modification of spirit and scope of the invention or equivalent replacement Within bright claims.

Claims (1)

1. a kind of customized emulation mode of power system customer based on mixing variable step emulation, it is characterised in that: the method The following steps are included:
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 the step 1, the control parameter of simulation calculation is set, completes the pretreatment of user-defined model;
The control parameter of simulation calculation includes subdivision step-length multiple, mixing variable step emulation initial time and mixing variable step emulation Finish time;
In the step 2, judge to mix whether variable step emulation initial time is zero moment, if then carrying out by mixing variable step Initialization calculates, and otherwise carries out initialization calculating by the fixed step size of Based on Power System Analysis Software Package;
In the step 3, based on the emulation time step of Based on Power System Analysis Software Package, judged in each time step, such as Fruit current time emulates between initial time and mixing variable step emulation finish time in the mixing variable step of setting, then is mixed Variable step emulation is closed, is determined according to subdivision step-length multiple and increases step-length or reduce step-length, specifically included:
If increasing step-length, judge whether the time step is overlapped with the emulation time step of user-defined model, if then carrying out user certainly The calculating of Definition Model simultaneously exports calculated result to Based on Power System Analysis Software Package, is otherwise made by oneself user using interpolation calculation It is exported after the calculated result processing of a time step to Based on Power System Analysis Software Package on adopted model;
If reducing step-length, the iterative solution of user-defined model subdivision step-length is carried out under the time step, by final calculating knot Fruit exports to Based on Power System Analysis Software Package;
In the 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 interaction of input/output variable;Based on Power System Analysis Software Package calls that user is customized connects Mouth function will by user's self defined interface function related with value after Based on Power System Analysis Software Package calculates completion Corresponding input variable passes to user-defined model;User-defined model emulation finishes, by being worth related use with restoring Calculated result is passed to Based on Power System Analysis Software Package by family self defined interface function, circuits sequentially calculating until emulation knot Beam;
The function set that user's self defined interface function is formed is stored in user's self defined interface module, and the user is certainly Defining interface module is write using VC, and it is compiled into dynamic link library * .dll document form, is integrated by Power System Analysis Routine call.
CN201510276361.3A 2015-05-26 2015-05-26 A kind of customized emulation mode of power system customer based on mixing variable step emulation Active CN106294901B (en)

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 CN106294901A (en) 2017-01-04
CN106294901B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112434420B (en) * 2020-11-20 2023-09-05 国网山东省电力公司电力科学研究院 Time synchronization and data interaction method for hybrid simulation of comprehensive energy system
CN114237767B (en) * 2022-02-24 2022-06-14 西安羚控电子科技有限公司 System and method for realizing multi-speed simulation

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
一种电力系统元件通用模型建模方法;岳程燕等;《2007中国电机工程学会年会论文集》;20071231;1-5 *

Also Published As

Publication number Publication date
CN106294901A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
Dinavahi et al. Real-time digital simulation of power electronic apparatus interfaced with digital controllers
CN103678785B (en) RTDS (real time digital system) custom component programming encapsulation method
CN104391692B (en) For reading and writing the face-objected programming method of PSD BPA data files
CN112417803B (en) Automatic optimization method for design parameters of analog integrated circuit based on artificial intelligence algorithm
CN109948213A (en) A kind of synergy emulation method and device based on FMI standard
CN106294901B (en) A kind of customized emulation mode of power system customer based on mixing variable step emulation
CN104375421A (en) Aircraft engine part modeling method based on control system development platform
CN103970589A (en) Long-dynamic-process simulation method based on PSS/E trend API
CN108733919A (en) Power distribution network simulating analysis and system based on VBA and OpenDSS
Baek et al. Nonlinear parameter optimization of FACTS controller via real-time digital simulator
CN103441496A (en) MATLAB-based electric-power-system load-flow calculation method
CN106294899A (en) The self-defined emulation mode of power system customer based on object-oriented program framework
CN106777729A (en) A kind of algorithms library simulation and verification platform implementation method based on FPGA
CN108829982A (en) Modularization multi-level converter Energy Equivalent modeling method
CN106844900B (en) Method for setting up electromagnetic transient simulation system
CN110472338B (en) Improved electromagnetic transient simulation method suitable for field programmable logic array
WO2021031263A1 (en) Hybrid electromagnetic transient simulation method suitable for real-time simulation of microgrid
CN104730938B (en) A kind of battery characteristics analogy method and system
CN102945299B (en) Use the EMTDC simulation initialisation method of controlled source equivalent generator node
CN105279351B (en) Hybrid simulation method based on electro-magnetic transient and electromechanical transient and system
CN108549219A (en) A kind of spacecraft gas puff Z-pinch device parameter auxiliary design method and system
Zhao et al. GPU based parallel matrix exponential algorithm for large scale power system electromagnetic transient simulation
CN109030947B (en) Method for calculating equivalent impedance of electronic load simulation direct current motor
Khaitan et al. TDPSS: a scalable time domain power system simulator for dynamic security assessment
CN108649596A (en) A kind of battery energy storage system dynamic model suitable for load modeling

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