CN103970591B - Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method - Google Patents
Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method Download PDFInfo
- Publication number
- CN103970591B CN103970591B CN201410231073.1A CN201410231073A CN103970591B CN 103970591 B CN103970591 B CN 103970591B CN 201410231073 A CN201410231073 A CN 201410231073A CN 103970591 B CN103970591 B CN 103970591B
- Authority
- CN
- China
- Prior art keywords
- atp
- matlab
- simulation
- files
- integrated
- 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.)
- Expired - Fee Related
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method. Based on running mechanisms of a Matlab and an ATP, the method can set multiple fault conditions by a fully graphical user operating mode, and traverse simulation fault models in an automated manner by taking the ATP as a tool, and simulation results of the method can be processed in a centralized manner, so as to realize the efficient combination of simulation automation and data processing. The Matlab-ATP integrated automation calling method disclosed by the invention can organically integrate the advantages of the Matlab in aspects of programming, operation, data processing and graphic processing with the authority of the ATP in the transient simulation for an electric power system, and then can flexibly and efficiently carry out simulation calculation for the electric power system by utilizing a complete mathematical model of the ATP, so as to research the impact of changes in multiple parameters on the system, and verify the simulation accuracy of other simulation software by the accuracy of the ATP, and the like.
Description
Technical field
The present invention relates to a kind of Matlab-ATP integrated automations call method.
Background technology
In relay protection of power system, electric parameters receive fault type, abort situation, fault initial angle, transition after failure
The factors such as resistance value, power system operating mode affect.The checking of design and verification, range measurement principle for protection philosophy, with
And the Digital Simulation verification of the device such as protection device, range unit, wave recording device, it is required to various failure conditions and the method for operation
Temporal Data under combination, and corresponding data processing.Comprehensively and effectively calculating and verifying needs thousands of emulation, if
Every time the setting of emulation, startup are required for manual intervention, needs to take a substantial amount of time and manpower, and it cannot be guaranteed that zero error
Rate, therefore at present for the automatic simulation of simulation model multi-parameter change has eager demand.
The electromagnetic transient simulation software EMTP of authority possesses more complete Mathematical Modeling and high simulation accuracy, but it applies model
Enclose and limited by its commerciality all the time.ATP (The Alternative Transients Program) is EMTP most widely used
Light version, due to concealing interior details, user need to be sequentially completed an artificial tasks by modeling-arrange-operation, no
Possesses the automatic executive capability of magnanimity emulation.
In traditional method, each simulation process is required for artificial participation, cumbersome during emulation enormous amount,
Time, manpower expend huge, and efficiency and operation accuracy rate are relatively low.
The content of the invention
The present invention is in order to solve the above problems, it is proposed that a kind of Matlab-ATP integrated automations call method, the method
Based on the operating mechanism of Matlab and ATP, in complete patterned user operation mode, multiple failure condition can be set, with
ATP automatically travels through simulated fault model for instrument, its simulation result can centralization process, realize simulation resource library and data
Process the combination of high efficiency.
To achieve these goals, the present invention is adopted the following technical scheme that:
A kind of Matlab-ATP integrated automations call method, comprises the following steps:
(1) conventional pattern modeling is carried out in ATPDraw software interfaces, simulation model to be studied is set up, and generate it is right
The * .atp files answered;
(2) under work paths of the Matlab under ATP installation directories, the * .atp files of simulation model are treated in derivation, by this article
Part is imported under the atpmingw paths under ATP installation directories;
(3) Matlab receives the excursion of each fault parameter being input in gui interface, at the change of multiple parameters
Manage into multilayer circulation nested;
(4) in innermost loop, under the atpmingw paths under Matlab switching current paths to ATP installation directories,
In the corresponding * .atp files of simulation model, the new value of each fault parameter is write by each self-corresponding position in written document mode,
Simulation result is preserved with * .mat files;
(5) Matlab reads the corresponding fault message of end-around carry now, and is integrated into character string;By * .mat files
Import in its working space Workspace, with the character string to * .mat file renamings;
(6) Matlab completes the emulation of all failure scenarios under each fault parameter change combination by nested circulation.
In the step (3), the change of one parameter of per layer of nested correspondence, excursion to should parameter setting just
Value, final value, circulate step-length to should parameter setting step-length;Nested inside and outside order is not required;
The concrete grammar of the step (4) is:Innermost loop, Matlab switches current path to ATP installation directories
Atpmingw paths under, in the corresponding * .atp files of simulation model, in written document mode by the new value of each fault parameter
Write each self-corresponding position;Matlab calls executable program Tpbig.exe, execution to imitate amended * .atp files
Very, after emulation terminates, Matlab calls executable program Pl42mat.exe, is and * by the * .pl4 file translations that emulation is generated
.atp file * .mat files of the same name.
In the step (5), its concrete grammar is:Matlab reads the corresponding fault message of end-around carry now, and
It is integrated into character string;* .mat files are imported in its working space Workspace, * .mat files are ordered again with the character string
Name.Matlab receives the data storage location of the setting in gui interface, and the * .mat files after renaming are imported into the position.
The concrete grammar of the step (6) is:Whole nested circulation corresponding for all parameters, by outer loop successively
Into interior loop, after interior loop terminates, outer layer is then performed, then entered in interior loop, when most by outer loop
Outer loop is performed when completing, and all emulation is completed.
Beneficial effects of the present invention are:Matlab can be made excellent in terms of programming, computing, data processing, graphics process
Authority of the gesture with ATP in terms of power system transient simulation organically blends, and then using ATP complete Mathematical Modeling spirit
Live, efficiently carry out electric system simulation calculating, study impact of the multiple Parameters variation to system, verified with the accuracy of ATP
Emulation accuracy of other simulation softwares etc.;Possess higher using value and open application prospect.
Description of the drawings
Fig. 1 is the method flow schematic diagram of traditional utilization ATP emulation;
Fig. 2 be innermost loop in parameter modification, emulation and result storage realize schematic diagram;
Fig. 3 be in the present invention with the gui interface of user mutual;
Fig. 4 is the fundamental diagram of the present invention, and IAIM kernels therein are Fig. 2 schematic diagrames.
Specific embodiment:
Below in conjunction with the accompanying drawings the invention will be further described with embodiment.
As shown in figure 1, a kind of call method of traditional utilization ATP emulation, changes parameter, people in ATPDraw interfaces
Work starts ATP emulation, performs P142mat.exe files, and simulation result is converted into into .mat files, manually imports Matlab
.mat file, carries out data analysis;Circulation n times, in traditional method, each simulation process is required for artificial participation, imitates
True enormous amount, N is up to 103When, cumbersome, time, manpower expend huge, and efficiency and operation accuracy rate are relatively low.
As shown in figs 2-4, a kind of flow process of realizing of Matlab-ATP integrated automations call method is:
1) under work paths of the Matlab under ATP installation directories, the * .atp files of simulation model are treated in derivation, by this article
Part is imported under atpmingw paths.
2) Matlab receives the excursion of each fault parameter being input in gui interface.At the change of multiple parameters
Manage into multilayer circulation nesting, the excursion of one parameter of per layer of nested correspondence;Step 3), 4) be directed to innermost loop.
3) in innermost loop, under the atpmingw paths under Matlab switching current paths to ATP installation directories, imitative
In the corresponding * .atp files of true mode, the new value of each fault parameter is write by each self-corresponding position in written document mode.
Matlab calls executable program Tpbig.exe, performs the emulation to amended * .atp files.After emulation terminates, Matlab
Executable program Pl42mat.exe is called, the * .pl4 file translations that emulation is generated are that the * .mat of the same name with * .atp files is literary
Part.
4) Matlab reads the corresponding fault message of end-around carry now, and is integrated into character string;* .mat files are led
Enter in its working space Workspace, with the character string to * .mat file renamings.Matlab receives the setting in gui interface
Data storage location, the * .mat files after renaming are imported into the position.
5) Matlab completes the emulation of all failure scenarios under each fault parameter change combination by nested circulation.
Compared with conventional method, the method causes ATP functionally to become an embedded module of Matlab, manually with
Gui interface is interacted, and only need to once be arranged, and other all operations are automatically performed by background program.Due to simulation result
Mat files are the fault message names each represented with it, therefore all mat file designations have regularity, can pass through batch processing
Technology united analysis data result.Greatly improve automation, simulation efficiency and the data-handling efficiency of simulation process.
Although the above-mentioned accompanying drawing that combines is described to the specific embodiment of the present invention, not to present invention protection model
The restriction enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not
Need the various modifications made by paying creative work or deformation still within protection scope of the present invention.
Claims (5)
1. a kind of Matlab-ATP integrated automations call method, is characterized in that:Comprise the following steps:
(1) conventional pattern modeling is carried out in ATPDraw software interfaces, simulation model to be studied is set up, and generates correspondence
* .atp files;
(2) under work paths of the Matlab under ATP installation directories, the * .atp files of simulation model are treated in derivation, and this document is led
Under entering the atpmingw paths of ATP installation directories;
(3) Matlab receive gui interface in be input into each fault parameter excursion, by the change process of multiple parameters into
Multilayer circulation is nested;
(4) in innermost loop, under the atpmingw paths under Matlab switching current paths to ATP installation directories, in emulation
In the corresponding * .atp files of model, the new value of each fault parameter is write by each self-corresponding position in written document mode, with *
.mat file preserves simulation result;
(5) Matlab reads the corresponding fault message of end-around carry now, and is integrated into character string;* .mat files are imported
In its working space Workspace, with the character string to * .mat file renamings;
(6) Matlab completes the emulation of all failure scenarios under each fault parameter change combination by nested circulation.
2. a kind of Matlab-ATP integrated automations call method as claimed in claim 1, is characterized in that:The step (3)
In, the change of one parameter of per layer of nested correspondence, excursion to should parameter setting initial value, final value, circulation step-length correspondence
The step-length of the parameter setting;Nested inside and outside order is not required.
3. a kind of Matlab-ATP integrated automations call method as claimed in claim 1, is characterized in that:The step (4)
Concrete grammar be:Innermost loop, under the atpmingw paths under Matlab switching current paths to ATP installation directories,
In the corresponding * .atp files of simulation model, the new value of each fault parameter is write by each self-corresponding position in written document mode;
Matlab calls executable program Tpbig.exe, performs the emulation to amended * .atp files, after emulation terminates, Matlab
Executable program Pl42mat.exe is called, the * .pl4 file translations that emulation is generated are that the * .mat of the same name with * .atp files is literary
Part.
4. a kind of Matlab-ATP integrated automations call method as claimed in claim 1, is characterized in that:The step (5)
In, its concrete grammar is:Matlab reads the corresponding fault message of end-around carry now, and is integrated into character string;By * .mat
File is imported in its working space Workspace, and with the character string to * .mat file renamings, Matlab is received in gui interface
Setting data storage location, the * .mat files after renaming are imported into the position.
5. a kind of Matlab-ATP integrated automations call method as claimed in claim 1, is characterized in that:The step (6)
Concrete grammar be:Whole nested circulation corresponding for all parameters, successively enters interior loop, in internal layer by outer loop
After loop termination, outer layer is then performed, then entered in interior loop by outer loop, when outermost loop is performed to be completed,
All emulation is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410231073.1A CN103970591B (en) | 2014-05-28 | 2014-05-28 | Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410231073.1A CN103970591B (en) | 2014-05-28 | 2014-05-28 | Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103970591A CN103970591A (en) | 2014-08-06 |
CN103970591B true CN103970591B (en) | 2017-04-12 |
Family
ID=51240127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410231073.1A Expired - Fee Related CN103970591B (en) | 2014-05-28 | 2014-05-28 | Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103970591B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718617B (en) * | 2014-12-05 | 2019-03-29 | 中国航空工业集团公司航空动力控制系统研究所 | The reversed method for automatic modeling of Bus structural body tested automatically for Matlab |
CN104536303B (en) * | 2014-12-11 | 2017-10-24 | 中国航空工业集团公司第六三一研究所 | A kind of fault filling method |
CN105005207B (en) * | 2015-05-29 | 2018-02-09 | 国家电网公司 | A kind of black starting-up overvoltage automatic Verification method based on ATP EMTP |
CN105426219A (en) * | 2015-12-15 | 2016-03-23 | 国家电网公司 | Quick start method of generating unit simulation machine |
CN106682261A (en) * | 2016-11-15 | 2017-05-17 | 山东电力设备有限公司 | Transformer substation automatic modeling and simulation method and system based on IEC 61850 SCD file |
CN108416078B (en) * | 2018-01-12 | 2022-11-11 | 国家电网有限公司 | Method and system for testing short circuit thermal stability of portable short circuit grounding wire |
CN110308668B (en) * | 2019-07-17 | 2022-06-24 | 南瑞集团有限公司 | Real-time simulation oriented successive disturbance general model and control method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6459559B1 (en) * | 1999-01-14 | 2002-10-01 | Dale Jack Christofersen | Thyristor controlled dynamic voltage suppressor for electric power systems |
CN101430355A (en) * | 2008-11-05 | 2009-05-13 | 江西省电力科学研究院 | Progressive search type digitized relay protection electromagnetic transient simulation test method |
CN101719182A (en) * | 2009-12-11 | 2010-06-02 | 中国电力科学研究院 | Parallel partition electromagnetic transient digital simulation method of AC and DC power system |
-
2014
- 2014-05-28 CN CN201410231073.1A patent/CN103970591B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6459559B1 (en) * | 1999-01-14 | 2002-10-01 | Dale Jack Christofersen | Thyristor controlled dynamic voltage suppressor for electric power systems |
CN101430355A (en) * | 2008-11-05 | 2009-05-13 | 江西省电力科学研究院 | Progressive search type digitized relay protection electromagnetic transient simulation test method |
CN101719182A (en) * | 2009-12-11 | 2010-06-02 | 中国电力科学研究院 | Parallel partition electromagnetic transient digital simulation method of AC and DC power system |
Also Published As
Publication number | Publication date |
---|---|
CN103970591A (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970591B (en) | Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method | |
CN105302950B (en) | A kind of programmable logic device crosslinking emulation test method of soft and hardware collaboration | |
CN106371813B (en) | A kind of electric vehicle motor controller method for producing software based on Simulink | |
CN102522128A (en) | Method and system for testing configuration logic design of DCS (Distributed Control System) of nuclear power station | |
CN102508654B (en) | Method for designing ladder diagram editing software of embedded PLC (Programmable Logic Controller) | |
CN104391692B (en) | For reading and writing the face-objected programming method of PSD BPA data files | |
CN103593527B (en) | Design method for one-click setting of different types of routing rule BGAs in PCB | |
CN104375421A (en) | Aircraft engine part modeling method based on control system development platform | |
CN108846626A (en) | One kind is mutually related method based on BIM and data platform | |
CN107358009A (en) | A kind of virtual modeling method of particulate reinforced composite | |
CN104598373A (en) | Embedded software testing method capable of realizing multi-technology fusion | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
Leimeister | Python-Modelica framework for automated simulation and optimization | |
US8265918B1 (en) | Simulation and emulation of a circuit design | |
CN106650086A (en) | Indirect air cooling system numerical simulation platform based on FLUENT software | |
CN102542079A (en) | Conversion method and device for device model data between circuit emulators | |
CN104899020A (en) | CFD program development method integrating web technology | |
CN104239613A (en) | Engine collaborative design integrated application system | |
CN107291992B (en) | Comprehensive environment test simulation system and method suitable for electronic equipment in desert area | |
CN106874562B (en) | Conversion system and method for converting architecture model into static calculation model | |
CN105653344A (en) | Graphical programming system compiler method | |
CN102183896A (en) | System for testing protection logic by utilizing Matlab | |
CN105093964A (en) | Construction method for industrial electronic embedded system simulation device model | |
CN103049615A (en) | Graph-based real-time simulation modeling method for control logics of engineering machine | |
CN111143208B (en) | Verification method for assisting FPGA to realize AI algorithm based on processor technology |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170412 Termination date: 20200528 |