CN105069265B - Realize the system that ATP electric system simulation computation models automatically generate operation - Google Patents
Realize the system that ATP electric system simulation computation models automatically generate operation Download PDFInfo
- Publication number
- CN105069265B CN105069265B CN201510564740.2A CN201510564740A CN105069265B CN 105069265 B CN105069265 B CN 105069265B CN 201510564740 A CN201510564740 A CN 201510564740A CN 105069265 B CN105069265 B CN 105069265B
- Authority
- CN
- China
- Prior art keywords
- simulation
- module
- simulation calculation
- atp
- data
- 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
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of system realized ATP electric system simulation computation models and automatically generate operation, including data format processing module, Simulation Calculation master file generation module, data card generation module, Simulation Calculation program generating module, Simulation Calculation program automated execution module, simulation result read module, Simulation Calculation parameter adjustment module and simulation result output module;Data format processing module changes the initial data of electric system, Simulation Calculation master file generation module generation model master file, the text of element involved by addition in master file;Data card generation module is attached after generating corresponding data card by Simulation Calculation program generating module;The executive program result of Simulation Calculation program automated execution module is read by simulation result read module, and is adjusted by Simulation Calculation parameter adjustment module, the simulation result that the output display of simulation result output module is met the requirements.
Description
Technical field
The present invention relates to the technical field that electric system simulation calculates, more particularly to one kind to realize ATP electric system simulations
Computation model automatically generates the system with operation.
Background technology
Simulation calculation is to carry out planning and design of power system, traffic control and the required technological means of crash analysis, accurately
Rational Simulation Calculation is to carry out the premise and basis of effective simulation calculation.ATP softwares are one and are used for various power trains
System design and quick, the accurate and wieldy power system simulation device checked, can be widely applied to electromagnetic transient, frame
Ceases to be busy road lightning Protection Design, high/ultrahigh voltage transmission system operation and the research of control etc., are that current transient emulation field leads to
Analysis tool.
But as the continuous of power grid scale expands, system element quantity is continuously increased, and simulation calculation need to solve the problems, such as
Difficulty continues to increase, and the complexity of Simulation Calculation establishment is both increased, also to the professional technique of model authorized personnel
Level proposes the requirement of higher.Overwhelming majority Simulation Calculation is still by operations staff's hand weaving, due to network at present
Scale is big, and number of elements is more, causes that model authorized strength work amount is big, and repeated work is more, and error probability is high and not easy-to-search.Hand at the same time
Work establishment belongs to offline form of presentation, it is impossible to reflects real-time network operation state, gained model poor in timeliness, confidence level are not
It is high.It is extremely difficult and unrealistic that the work such as the analysis of electric system simulation result of calculation are completed by power department operations staff
's.Therefore, the hand weaving mode of Simulation Calculation has not adapted to this new situation, or even model establishment task at present
It can not complete.To solve the above problems, though with good grounds network topology and component parameters are automatically performed Simulation Calculation at present
The method of establishment, but the algorithm due to being used during simulation calculation is independent development, and function is extremely limited, and its confidence level is bright
It is aobvious to be less than the such widely used simulation calculation softwares of ATP;Or when generating Simulation Calculation, it is still necessary to which authorized personnel is artificial
Data necessary to collection, and be converted to specific form, the problem of equally existing heavy workload and high error probability.
Therefore, if can directly from the various initial data of electric system, what simulations software for calculation can call
Simulation Calculation and automatic cycling operating as needed, can greatly simplify model compilation process, reduce model establishment difficulty, carry
High model accuracy, can also make staff be absorbed in subsequent analysis process, improve the efficiency of simulation calculation.
The content of the invention
Realize that ATP electric system simulations calculate mould it is an object of the invention to overcome the deficiencies of the prior art and provide one kind
Type automatically generates the system with operation, according to the various initial data of electric system, automatically generates corresponding ATP Simulation Calculations,
And automatic cycling operating as needed, so as to simplify the model compilation process in simulation calculation, reduce the difficulty of model establishment, carry
The efficiency of high simulation calculation.
Technical solution of the present invention provides a kind of system realized ATP electric system simulation computation models and automatically generate operation,
Including data format processing module 11, Simulation Calculation master file generation module 12, data card generation module 13, simulation calculation
Model program generation module 14, Simulation Calculation program automated execution module 15, simulation result judgment module 16, emulation
Computation model parameter adjustment module 17 and simulation result output module 18;
The data format processing module 11, for by the initial data of electric system, being converted into ATP Simulation Calculations
The required form of master file;
Simulation Calculation master file generation module 12, for being generated according to the transformation result of data format processing module 11
ATP Simulation Calculation master files, are included in the text that involved element in each Simulation Calculation is added in master file;
Data card generation module 13, for according to 12 gained ATP simulation calculations of Simulation Calculation master file generation module
Model master file and the corresponding data card of overhead transmission line Simulation Calculation file generated, overhead transmission line Simulation Calculation file
Parameter including overhead transmission line;
Simulation Calculation program generating module 14, for the various data cards of the gained of data card generation module 13 to be connected
Connect, generate the ATP Simulation Calculation programs being able to carry out;
Simulation Calculation program automated execution module 15, for automatic running Simulation Calculation program generating module 14
The ATP Simulation Calculation programs of generation, obtain simulation result file;
Simulation result judgment module 16, for being tied from the gained emulation of Simulation Calculation program automated execution module 15
Simulation result is read in fruit file;
Simulation Calculation parameter adjustment module 17, based on the emulation read according to simulation result judgment module 16
Calculate result to be adjusted simulation parameters, including judge whether simulation result meets requirement set in advance, if
Meet the requirements, then order simulation result output module 18 is exported and show current simulation result, otherwise according to imitative
The difference condition of true result of calculation and desired value, is adjusted simulation parameters, new parameter is sent to simulation calculation mould
Type master file generation module 12, order Simulation Calculation master file generation module 12 regenerate ATP Simulation Calculation masters
File;
Simulation result output module 18, the simulation result met the requirements for exporting display.
Moreover, the implementation that data format processing module 11 changes the initial data of electric system is, according to
Requirements of the ATP to model file form, carries out data format processing, changes into the character of required length;Implementation is to work as number
According to length it is long when, switch to the form of scientific notation, and change into character string form preserve, when data length is inadequate,
Above blank fill, and the form for changing into character string preserves.
One aspect of the present invention can automatically generate ATP Simulation Calculations, greatly simplify Simulation Calculation compilation process, drop
Low model works out difficulty, reduces cost of labor, improves model establishment efficiency, improves model accuracy;On the other hand can press automatically
As requested adjusts model parameter and repeatedly generates ATP Simulation Calculations automatically and run, and mould is adjusted automatically according to simulation result
Shape parameter, greatly simplify the process that index parameter is solved using simulation calculation, improves and carries out electric system simulation using ATP
The automatization level of calculating.Technical solution of the present invention is suitable for a variety of application scenarios for needing to carry out electric system simulation calculating,
As overhead transmission line thunder and lightning initial breakdown current amplitude determine, analysis of D.C. high voltage transmission filter filtering effect etc., especially
The superiority of the present invention program can be more embodied when electric system is complicated, simulation model is larger.
Brief description of the drawings
Fig. 1 is the system structure diagram of the embodiment of the present invention.
Embodiment
In order to become apparent from the purpose of the embodiment of the present invention, technical solution, advantage, below in conjunction with the embodiment of the present invention
Technical scheme is introduced with attached drawing.
The present invention is according to the establishment required initial data of ATP Simulation Calculations, according to ATP Simulation Calculation files
Form, write automatically generation ATP simulation calculation master cast files, automatically generate for ATP simulation calculation master cast file tune
The Simulation Calculation file of overhead transmission line.According to the simulation calculation of ATP simulation calculation master cast files and overhead transmission line
Model file, writes the corresponding data card file of generation, various data cards is attached, are automatically generated executable automatically
ATP Simulation Calculation programs.The ATP Simulation Calculation programs that automatic running can perform, and simulation result is read, according to imitative
True result judges whether to meet simulation requirements, terminates if meeting the requirements, and exports simulation result.If being unsatisfactory for requiring,
Model parameter is adjusted according to model parameter adjustment algorithm set in advance, automatically generates ATP Simulation Calculations program again simultaneously
Automated execution, until simulation result meets simulation requirements.
It is of the invention a kind of to realize that ATP electric system simulation computation models are automatically generated and be with operation as shown in Fig. 1
System, including data format processing module 11, Simulation Calculation master file generation module 12, data card generation module 13, emulation
Computation model program generating module 14, Simulation Calculation program automated execution module 15, simulation result judgment module 16,
Simulation Calculation parameter adjustment module 17, simulation result output module 18.Wherein data format processing module 11 is with imitating
True computation model master file generation module 12 connects;Simulation Calculation master file generation module 12 and data card generation module 13
Connection;Data card generation module 13 is connected with Simulation Calculation program generating module 14;Simulation Calculation Program Generating mould
Block 14 is connected with Simulation Calculation program automated execution module 15;Simulation Calculation program automated execution module 15 and emulation
Result of calculation judgment module 16 connects;Simulation result judgment module 16 connects with Simulation Calculation parameter adjustment module 17
Connect;Simulation Calculation parameter adjustment module 17 is exported with Simulation Calculation master file generation module 12 and simulation result
Module 18 connects.
Data format processing module 11 is used for that (including power parameter to be grounded parameter, shaft tower by the initial data of electric system
Parameter, lightning current parameter, overhead transmission line parameter etc., these data store in the database, to it is different types of emulation, it is necessary to
Parameter is different, for example data of being struck by lightning are needed in the emulation of lightning fault, but in the emulation of non-lightning fault, then not
Have lightning parameter), the required form of ATP Simulation Calculation master files is converted into, since ATP wants model file form
Ask very stringent, the character length that different type component data takes is different, and the arrangement requirement to character is very stringent, therefore
Need to carry out data format processing, change into the character of certain length.When data length is long, it is necessary to switch to scientific notation
Form, and the form for changing into character string preserves.When data length is inadequate, it is necessary in above blank fill, and change into character string
Form.For example the length of the parameter of force device is mostly six characters, it is therefore desirable to the parameter in Microsoft Excel is read,
And the length of six characters is changed into, if inadequate six of the data in Microsoft Excel, need above supplementing space, such as
Fruit then needs to change into the form of scientific notation more than six, then when generating ATP codes, directly exports the character of six
The data of form.Such as:In ATP, the length of power data is generally 10, if initial data is ' 123456789 ',
The data length is 9, is not above 10, then after data processing module 11, output is ' 123456789 ', original
It with the addition of a space before data.If initial data is ' 111122223333 ', which is 12, has exceeded 12
Position, therefore the result exported after handling is ' 1.11122E12 ', i.e., output is converted into exponential form output.
Simulation Calculation master file generation module 12 is used to be generated according to the transformation result of data format processing module 11
ATP Simulation Calculation master files.When it is implemented, can be involved by being incorporated into master file in each Simulation Calculation
Text to element is realized.
Data card generation module 13 is used to generate each data card, for example to source element, reads by data format
Data after module 11 is handled are managed, then write power data card.Main data card includes:Initial data card, TACS data cards,
MODEL data cards, branch data card, switch data card, power data card, outputting data card and clear data card.The English of TACS
Literary fame claims to be Transient Analysis of Control Systems, for the transient analysis to control system;MODEL
It is customized model, the convenient self-defined element that specific function is write according to the actual needs of user.The volume of these data cards
Write method can obtain in the help handbook according to ATP simulation softwares.Such as:One typical power data card is as follows:
/SOURCE
C < n 1><>< Ampl. >< Freq. ><Phase/T0><A1><T1><TSTART><TSTOP>
14X00S1A 0179629.248 50. 30. -1. 1.
14X00S1B 0179629.248 50. -90. -1. 1.
14X00S1C 0179629.248 50. 150. -1. 1.
14X00S2A 0179629.248 50. 300. -1. 1.
14X00S2B 0179629.248 50. 180. -1. 1.
14X00S2C 0179629.248 50. 420. -1. 1.
Wherein, C represents annotation, and n1 is the title of node, is the parameter of power supply herein, so following first is classified as power supply
The title of node, Ampl are amplitudes, and what is represented herein is voltage source amplitude, and what Freq was represented is frequency, what Phase/T0 was represented
Phase, A1, T1 are for lightning current or lightning voltage, and A1 represents amplitude of the lightning current (pressure) at the T1 moment, TSTART with
Between at the beginning of TSTOP expressions and end time, time started use -1 represent to have begun to make in emulation start time, power supply
With.
As can be seen that power data card mainly has power supply node title, power supply type (voltage source and current source), power supply width
The parameters such as value, supply frequency, initial phase are formed.
Simulation Calculation program generating module 14 is used to be connected the various data cards of the gained of data card generation module 13
Connecing (generally can be according to initial data card, TACS data cards, MODEL data cards, branch data card, switch data card, power data
Card, outputting data card and clear data card are sequentially connected, and the data card that when specific implementation does not have can be skipped, for example, if
There is no self-defined element, then just there is no MODEL data cards), executable ATP Simulation Calculation programs are generated, such as:In order to
Generate ATP programs, it is necessary first to generate the file that a suffix is ATP, its generation code is:
fid=fopen('auto_atp.atp','w','native');(fid is the handle of a generation file, to this
File can use handle information when being operated, fopen is the function to open a file in MATLAB, if this document is not deposited
A corresponding file can be then being created, ' w' represent be to be operated in the form of write-in to this document, ' native' is to write
The form entered, represents to write with default form, it is convenient to omit)
The code represents generation file auto_atp.atp.
In order to which other data cards are write into, start in other data cards and add code below.
fid=fopen('auto_atp.atp','a');
The code represents to continue to write to behind file auto_atp.atp.Wherein, a represents follow-up write-in, i.e., if
Auto_atp files, which exist, to be continued to write, and is not that the content in the original auto_atp of erasing re-writes.
Simulation Calculation program automated execution module 15 is used for automatic running Simulation Calculation program generating module 14
The ATP Simulation Calculation programs of generation, obtain simulation result file.What this can be carried by calling ATP simulation softwares
RunATP.exe programs are realized.For example with MATLAB programming languages, the simulation calculation mould of the entitled Example.atp of automatic running
Type program, corresponding order are:system(example.atp ).
Simulation result judgment module 16 is automatically from the gained emulation knot of Simulation Calculation program automated execution module 15
Simulation calculation data are read in fruit file, and these data are handled, judge whether that insulation breakdown occurs.ATP emulation meters
Calculate result to be stored in LIS files, the form of LIS files can obtain in the help handbook according to ATP simulation softwares, therefore read
Related data in LIS files, by judging whether each phase punctures to the processing for reading data.For example, in the feelings of three-phase simulation
Under condition, if the data of the A B C three-phases in LIS are all 0 in simulation time, then it represents that do not puncture, output [0 0
0], if the data of the A B two-phases in LIS are all 0, C phases data in simulation time in simulation time is not all 0, then table
Show that C phases puncture, export [0 0 1], represent to puncture with 1, and 0 represents not puncture.
Simulation Calculation parameter adjustment module 17 is according to the output of simulation result judgment module 16 to simulation model
Parameter is adjusted.The strategy of adjustment is set in advance.Simulation Calculation parameter adjustment module 17 judges emulation meter first
Calculate whether result meets requirement set in advance, it is if met the requirements, result is defeated by simulation result output module 18
Go out display.If being unsatisfactory for requiring, simulation parameters can be carried out according to simulation result and the difference condition of desired value
Adjustment, new parameter is sent to Simulation Calculation master file generation module 12, and Simulation Calculation is automatically generated is with operation
System re-executes.Simulation parameters are adjusted according to the difference condition of simulation result and desired value can use it is existing
Ripe optimization method is realized, such as golden section, simple linear or neutral net, particle swarm optimization algorithm etc..It is specific real
Shi Shi, the course of work of Simulation Calculation parameter adjustment module 17 can be to judge whether simulation result meets in advance
The requirement of setting, if met the requirements, order simulation result output module 18 is exported and shows current simulation calculation
As a result, otherwise simulation parameters are adjusted according to simulation result and the difference condition of desired value, by new parameter
Send to Simulation Calculation master file generation module 12, order Simulation Calculation master file generation module 12 and regenerate ATP
Simulation Calculation master file, Simulation Calculation master file generation module 12, data card generation module 13, Simulation Calculation
Program generating module 14, Simulation Calculation program automated execution module 15, simulation result judgment module 16, simulation calculation
Model parameter adjustment module 17 will equally carry out follow-up work according to new ATP Simulation Calculations master file.
Simulation result output module 18, the simulation result met the requirements for exporting display.
In summary, when generating ATP Simulation Calculations, it is only necessary to which user, which preassigns, to be needed to carry out simulation calculation
The simple information (i.e. the parameters of these intra-region elements) such as some region of electric system, you can given birth to automatically using this software interface
Into required Simulation Calculation, whole generating process without manual intervention, reduces the difficulty that model is worked out again;Model is compiled
The data of system are derived from the parsing to raw data base, improve the accuracy of model establishment;Model can be completed using computer to compile
Task processed, improves the efficiency of model establishment.
It is emphasized that embodiment of the present invention is illustrative, rather than it is limited, therefore the present invention is simultaneously
The embodiment described in embodiment is not limited to, it is every to be drawn by those skilled in the art's technique according to the invention scheme
Other embodiment, also belong to the scope of protection of the invention.
Claims (2)
- A kind of 1. system realized ATP electric system simulation computation models and automatically generate operation, it is characterised in that:Including data lattice Formula processing module (11), Simulation Calculation master file generation module (12), data card generation module (13), Simulation Calculation It is program generating module (14), Simulation Calculation program automated execution module (15), simulation result judgment module (16), imitative True computation model parameter adjustment module (17) and simulation result output module (18);The data format processing module (11), for by the initial data of electric system, being converted into ATP Simulation Calculation masters The required form of file;Simulation Calculation master file generation module (12), for being generated according to the transformation result of data format processing module (11) ATP Simulation Calculation master files, are included in the text that involved element in each Simulation Calculation is added in master file;Data card generation module (13), for the ATP simulation calculations according to obtained by Simulation Calculation master file generation module (12) Model master file and the corresponding data card of overhead transmission line Simulation Calculation file generated, overhead transmission line Simulation Calculation file Parameter including overhead transmission line;Simulation Calculation program generating module (14), for various data cards obtained by data card generation module (13) to be connected Connect, generate the ATP Simulation Calculation programs being able to carry out;Simulation Calculation program automated execution module (15), for automatic running Simulation Calculation program generating module (14) The ATP Simulation Calculation programs of generation, obtain simulation result file;Simulation result judgment module (16), for being tied from emulation obtained by Simulation Calculation program automated execution module (15) Simulation result is read in fruit file;Simulation Calculation parameter adjustment module (17), based on the emulation read according to simulation result judgment module (16) Calculate result to be adjusted simulation parameters, including judge whether simulation result meets requirement set in advance, if Meet the requirements, then order simulation result output module (18) output is shown into current simulation result, otherwise basis The difference condition of simulation result and desired value, is adjusted simulation parameters, and new parameter is sent to simulation calculation Model master file generation module (12), order Simulation Calculation master file generation module (12) regenerate ATP simulation calculations Model master file;Simulation result output module (18), the simulation result met the requirements for exporting display.
- 2. realizing the system that ATP electric system simulation computation models automatically generate operation according to claim 1, its feature exists In:The implementation that data format processing module (11) changes the initial data of electric system is, according to ATP to model The requirement of file format, carries out data format processing, changes into the character of required length;Implementation is, when data length mistake When long, switch to the form of scientific notation, and the form for changing into character string preserves, and when data length is inadequate, is above covering Lattice, and the form for changing into character string preserves.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510564740.2A CN105069265B (en) | 2015-09-08 | 2015-09-08 | Realize the system that ATP electric system simulation computation models automatically generate operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510564740.2A CN105069265B (en) | 2015-09-08 | 2015-09-08 | Realize the system that ATP electric system simulation computation models automatically generate operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105069265A CN105069265A (en) | 2015-11-18 |
CN105069265B true CN105069265B (en) | 2018-04-20 |
Family
ID=54498631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510564740.2A Active CN105069265B (en) | 2015-09-08 | 2015-09-08 | Realize the system that ATP electric system simulation computation models automatically generate operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105069265B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105301458A (en) * | 2015-11-20 | 2016-02-03 | 国网内蒙古东部电力有限公司检修分公司 | ATP-based overhead line initial breakdown current extraction method and system |
CN107862103B (en) * | 2017-09-20 | 2021-07-30 | 国家电网公司 | Simulation model generation method and system based on ADPSS |
CN108416078B (en) * | 2018-01-12 | 2022-11-11 | 国家电网有限公司 | Method and system for testing short circuit thermal stability of portable short circuit grounding wire |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996271B (en) * | 2010-08-12 | 2013-08-14 | 武汉大学 | Software interface for automatically generating simulation calculation model of PSCAD power system |
CN102708232B (en) * | 2012-04-24 | 2013-06-19 | 中国人民解放军国防科学技术大学 | Processing method and device for distributed simulation data |
CN103838921B (en) * | 2014-02-13 | 2015-03-25 | 华北电力大学(保定) | PSCAD-EMTDC simulation model automatic generation method |
-
2015
- 2015-09-08 CN CN201510564740.2A patent/CN105069265B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105069265A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106960103B (en) | Automatic generation method and device of power grid graph | |
CN105069265B (en) | Realize the system that ATP electric system simulation computation models automatically generate operation | |
CN102609596B (en) | System and method for generating power plant relay protection setting calculation report | |
CN102789169A (en) | Numerical model processing method for simulation of digital instrument control system of nuclear power plant | |
CN111949365B (en) | Off-line simulation method and computer storage medium | |
CN104391692A (en) | Object-oriented programming method for reading and writing PSD-BPA data file | |
CN105808880A (en) | Relay protection setting method and system based on graphical power distribution network | |
CN106709143A (en) | VFTO batch simulation analysis method and system based on ATP automatic modeling | |
CN104881741A (en) | Power system transient stability determination method based on support vector machine | |
CN107505851A (en) | Ovation control analogue systems and emulation mode based on Rinsim platforms | |
CN107179910A (en) | The logic configuration method that a kind of online editing comes into force immediately | |
CN104699907A (en) | Method for automatically converting electromagnetism transient models and element pictures from PSCAD (power system computer aided design) to ADPSS (advanced digital power system simulator) | |
CN111026451A (en) | Parameter configuration method and configuration tool for transformer substation terminal interval | |
CN107247827B (en) | Virtual terminal model modeling and automatic wiring method based on machine learning | |
CN113448890A (en) | Distributed simulation system and control method | |
CN103617567A (en) | On-line safe and reliable interaction operation visualization system of electric power system | |
CN106777729A (en) | A kind of algorithms library simulation and verification platform implementation method based on FPGA | |
CN103559350A (en) | Load file processing method and device of vehicle | |
CN103761395B (en) | Method for generating dynamic report of virtual terminal of intelligent substation | |
CN104134175A (en) | System and method for automatically generating distribution automation master station looped network graph | |
CN111695238A (en) | System and method for visualizing transient simulation data of power system | |
CN114064012B (en) | Dynamic and static combined interface code generation method and system and electronic equipment | |
CN105279351A (en) | Hybrid simulation method and system based on electromagnetic transient and electromechanical transient | |
CN106407534A (en) | Electromagnetic transient simulation data processing method and device | |
CN103198168A (en) | Off-line simulation method |
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 |