CN103970591A - 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 PDF

Info

Publication number
CN103970591A
CN103970591A CN201410231073.1A CN201410231073A CN103970591A CN 103970591 A CN103970591 A CN 103970591A CN 201410231073 A CN201410231073 A CN 201410231073A CN 103970591 A CN103970591 A CN 103970591A
Authority
CN
China
Prior art keywords
atp
matlab
file
simulation
emulation
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
Application number
CN201410231073.1A
Other languages
Chinese (zh)
Other versions
CN103970591B (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.)
Shandong University
Original Assignee
Shandong University
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 Shandong University filed Critical Shandong University
Priority to CN201410231073.1A priority Critical patent/CN103970591B/en
Publication of CN103970591A publication Critical patent/CN103970591A/en
Application granted granted Critical
Publication of CN103970591B publication Critical patent/CN103970591B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of Matlab-ATP integrated automation call method
Technical field
The present invention relates to a kind of Matlab-ATP integrated automation call method.
Background technology
In relay protection of power system, after fault, electric parameters is subject to the many factors such as fault type, abort situation, fault initial angle, transition resistance value, power system operating mode.For the checking of the design of protection philosophy and verification, range measurement principle, and the Digital Simulation verification of the device such as protective device, distance measuring equipment, wave recording device, all need various failure conditions and the lower Temporal Data of method of operation combination, and data processing accordingly.Calculating and verification comprehensively and effectively needs thousands of emulation, if the setting of each emulation, startup all need manual intervention, need to expend a large amount of time and manpower, and can not ensure zero error rate, the automatic simulation therefore changing for realistic model multiparameter at present has eager demand.
Authority's electromagnetic transient simulation software EMTP possesses more complete mathematical model and high simulation accuracy, but its range of application is subject to its commerciality restriction all the time.ATP is the most widely used light version of EMTP, and owing to having hidden interior details, user need complete artificial tasks one time successively by modeling-setting-operation, does not possess the ability that automatically performs of magnanimity emulation.
In traditional method, each simulation process all needs artificial participation, when emulation enormous amount, and complex operation, time, manpower expend huge, and efficiency and operation accuracy rate are lower.
Summary of the invention
The present invention is in order to address the above problem, a kind of Matlab-ATP integrated automation call method has been proposed, the operating mechanism of the method based on Matlab and ATP, with complete patterned user's mode of operation, multiple failure condition can be set, travel through emulation fault model taking ATP as instrument robotization, its simulation result can centralization processing, realizes the combination of emulation robotization and data processing high efficiency.
To achieve these goals, the present invention adopts following technical scheme:
A kind of Matlab-ATP integrated automation call method, comprises the following steps:
(1) in ATPDraw software interface, carry out conventional graphical modeling, set up realistic model to be studied, and generate corresponding * .atp file;
(2) under the work path of Matlab from ATP installation directory, derive the * .atp file for the treatment of realistic model, this file is imported under the atpmingw path of ATP installation directory;
(3) Matlab receives the variation range of each fault parameter of inputting in gui interface, becomes multilayer circulation nested the change process of multiple parameters;
(4) in innermost loop, Matlab switches current path to the atpmingw path under ATP installation directory, in * .atp file corresponding to realistic model, in written document mode, the new value of each fault parameter is write to each self-corresponding position, preserve simulation result with * .mat file;
(5) Matlab reads failure message corresponding to end-around carry now, and is integrated into character string; * .mat file is imported in its work space Workspace, with this character string to the rename of * .mat file;
(6) Matlab completes the emulation of all failure scenarios under each fault parameter variation combination by nested circulation.
In described step (3), the variation of every layer of nested corresponding parameter, variation range is to initial value, final value that should setting parameter, and circulation step-length is to step-length that should setting parameter; To nested not requirement of inside and outside order;
The concrete grammar of described step (4) is: innermost loop, Matlab switches current path to the atpmingw path under ATP installation directory, in * .atp file corresponding to realistic model, in written document mode, the new value of each fault parameter is write to each self-corresponding position; Matlab calls executable program Tpbig.exe, carries out the emulation to amended * .atp file, and after emulation finishes, Matlab calls executable program Pl42mat.exe, and the * .pl4 file that emulation is generated is converted into the * .mat file of the same name with * .atp file.
In described step (5), its concrete grammar is: Matlab reads failure message corresponding to end-around carry now, and is integrated into character string; * .mat file is imported in its work space Workspace, and with this character string, to the rename of * .mat file, Matlab receives the data storage location of the setting in gui interface, and the * .mat file after rename is imported to this position.
The concrete grammar of described step (6) is: for whole nested circulation corresponding to all parameters, circulate and successively enter interior loop by skin, after interior loop stops, then carry out outer, entered in interior loop by skin circulation again, in the time that outermost loop is complete, all emulation completes.
Beneficial effect of the present invention is: can make Matlab organically blend in the authority aspect power system transient simulation in the advantage aspect programming, computing, data processing, graphics process and ATP, and then can utilize the complete mathematical model of ATP to carry out flexibly, efficiently electric system simulation calculating, study multiple parameter and change the impact on system, with emulation degree of accuracy of other simulation softwares of accuracy verification of ATP etc.; Possess higher using value and open application prospect.
Brief description of the drawings
Fig. 1 is traditional method flow schematic diagram that utilizes ATP emulation;
Fig. 2 is the schematic diagram of realizing of parameter modification, emulation and result store in innermost loop;
Fig. 3 be in the present invention with the gui interface of user interactions;
Fig. 4 is fundamental diagram of the present invention, and IAIM kernel is wherein Fig. 2 schematic diagram.
Embodiment:
Below in conjunction with accompanying drawing and embodiment, the invention will be further described.
As shown in Figure 1, a kind of traditional call method that utilizes ATP emulation is revised parameter in ATPDraw interface, manually start ATP emulation, carry out P142mat.exe file, simulation result is converted into .mat file, manually Matlab is imported to .mat file, carry out data analysis; Circulation N time, in traditional method, each simulation process all needs artificial participation, emulation enormous amount, N can reach at 103 o'clock, complex operation, time, manpower expend huge, and efficiency and operation accuracy rate are lower.
As shown in Fig. 2-Fig. 4, a kind of realization flow of Matlab-ATP integrated automation call method is:
1) under the work path of Matlab from ATP installation directory, derive the * .atp file for the treatment of realistic model, this file is imported under atpmingw path.
2) Matlab receives the variation range of each fault parameter of inputting in gui interface.Become multilayer circulation nested the change process of multiple parameters, the variation range of every layer of nested corresponding parameter; Step 3), 4) all for innermost loop.
3), in innermost loop, Matlab switches current path to the atpmingw path under ATP installation directory, in * .atp file corresponding to realistic model, in written document mode, the new value of each fault parameter is write to each self-corresponding position.Matlab calls executable program Tpbig.exe, carries out the emulation to amended * .atp file.After emulation finishes, Matlab calls executable program Pl42mat.exe, and the * .pl4 file that emulation is generated is converted into the * .mat file of the same name with * .atp file.
4) Matlab reads failure message corresponding to end-around carry now, and is integrated into character string; * .mat file is imported in its work space Workspace, with this character string to the rename of * .mat file.Matlab receives the data storage location of the setting in gui interface, and the * .mat file after rename is imported to this position.
5) Matlab completes the emulation of all failure scenarios under each fault parameter variation combination by nested circulation.
Compare with classic method, the method makes ATP in function, become an embedded module of Matlab, artificial mutual with gui interface, need once arrange, and other all operations complete automatically by background program.Because the mat file of simulation result is the failure message name representing separately with it, therefore all mat file designation has regularity, can unify to analyze data result by batch system.Robotization, simulation efficiency and the data-handling efficiency of simulation process are greatly improved.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various amendments that creative work can make or distortion still in protection scope of the present invention.

Claims (5)

1. a Matlab-ATP integrated automation call method, is characterized in that: comprise the following steps:
(1) in ATPDraw software interface, carry out conventional graphical modeling, set up realistic model to be studied, and generate corresponding * .atp file;
(2) under the work path of Matlab from ATP installation directory, derive the * .atp file for the treatment of realistic model, this file is imported under the atpmingw path of ATP installation directory;
(3) Matlab receives the variation range of each fault parameter of inputting in gui interface, becomes multilayer circulation nested the change process of multiple parameters;
(4) in innermost loop, Matlab switches current path to the atpmingw path under ATP installation directory, in * .atp file corresponding to realistic model, in written document mode, the new value of each fault parameter is write to each self-corresponding position, preserve simulation result with * .mat file;
(5) Matlab reads failure message corresponding to end-around carry now, and is integrated into character string; * .mat file is imported in its work space Workspace, with this character string to the rename of * .mat file;
(6) Matlab completes the emulation of all failure scenarios under each fault parameter variation combination by nested circulation.
2. a kind of Matlab-ATP integrated automation call method as claimed in claim 1, it is characterized in that: in described step (3), the variation of every layer of nested corresponding parameter, variation range is to initial value, final value that should setting parameter, and circulation step-length is to step-length that should setting parameter; To nested not requirement of inside and outside order.
3. a kind of Matlab-ATP integrated automation call method as claimed in claim 1, it is characterized in that: the concrete grammar of described step (4) is: innermost loop, Matlab switches current path to the atpmingw path under ATP installation directory, in * .atp file corresponding to realistic model, in written document mode, the new value of each fault parameter is write to each self-corresponding position; Matlab calls executable program Tpbig.exe, carries out the emulation to amended * .atp file, and after emulation finishes, Matlab calls executable program Pl42mat.exe, and the * .pl4 file that emulation is generated is converted into the * .mat file of the same name with * .atp file.
4. a kind of Matlab-ATP integrated automation call method as claimed in claim 1, is characterized in that: in described step (5), its concrete grammar is: Matlab reads failure message corresponding to end-around carry now, and is integrated into character string; * .mat file is imported in its work space Workspace, and with this character string, to the rename of * .mat file, Matlab receives the data storage location of the setting in gui interface, and the * .mat file after rename is imported to this position.
5. a kind of Matlab-ATP integrated automation call method as claimed in claim 1, it is characterized in that: the concrete grammar of described step (6) is: for whole nested circulation corresponding to all parameters, circulate and successively enter interior loop by skin, after interior loop stops, then carry out outer, entered in interior loop by skin circulation, in the time that outermost loop is complete, all emulation completes again.
CN201410231073.1A 2014-05-28 2014-05-28 Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method Expired - Fee Related CN103970591B (en)

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 true CN103970591A (en) 2014-08-06
CN103970591B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536303A (en) * 2014-12-11 2015-04-22 中国航空工业集团公司第六三一研究所 Fault injection method
CN105005207A (en) * 2015-05-29 2015-10-28 国家电网公司 Black-start overvoltage automatic check method based on ATP-EMTP
CN105426219A (en) * 2015-12-15 2016-03-23 国家电网公司 Quick start method of generating unit simulation machine
CN105718617A (en) * 2014-12-05 2016-06-29 中国航空工业集团公司航空动力控制系统研究所 Bus structural body reverse automatic modeling method for automatic tests of Matlab
CN106682261A (en) * 2016-11-15 2017-05-17 山东电力设备有限公司 Transformer substation automatic modeling and simulation method and system based on IEC 61850 SCD file
CN108416078A (en) * 2018-01-12 2018-08-17 国家电网公司 A kind of method and system of the short-circuit thermal stability of inspection portable short-circuit grounding wire
CN110308668A (en) * 2019-07-17 2019-10-08 南瑞集团有限公司 A kind of successive disturbance universal model and its control method towards real-time simulation

Citations (3)

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

Patent Citations (3)

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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718617A (en) * 2014-12-05 2016-06-29 中国航空工业集团公司航空动力控制系统研究所 Bus structural body reverse automatic modeling method for automatic tests of Matlab
CN104536303A (en) * 2014-12-11 2015-04-22 中国航空工业集团公司第六三一研究所 Fault injection method
CN105005207A (en) * 2015-05-29 2015-10-28 国家电网公司 Black-start overvoltage automatic check 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
CN108416078A (en) * 2018-01-12 2018-08-17 国家电网公司 A kind of method and system of the short-circuit thermal stability of inspection portable short-circuit grounding wire
CN108416078B (en) * 2018-01-12 2022-11-11 国家电网有限公司 Method and system for testing short circuit thermal stability of portable short circuit grounding wire
CN110308668A (en) * 2019-07-17 2019-10-08 南瑞集团有限公司 A kind of successive disturbance universal model and its control method towards real-time simulation
CN110308668B (en) * 2019-07-17 2022-06-24 南瑞集团有限公司 Real-time simulation oriented successive disturbance general model and control method thereof

Also Published As

Publication number Publication date
CN103970591B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
CN103970591A (en) Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method
JP5028268B2 (en) Method for analysis of control systems
CN107239392B (en) Test method, test device, test terminal and storage medium
US9952837B1 (en) Reusable component in a modeling environment
CN103984612A (en) Unattended stress testing method based on HPL tool
US8230382B2 (en) Model based simulation of electronic discharge and optimization methodology for design checking
CN104375421A (en) Aircraft engine part modeling method based on control system development platform
US10380283B2 (en) Functional verification with machine learning
CN104391692A (en) Object-oriented programming method for reading and writing PSD-BPA data file
KR101612506B1 (en) System and method for Aircraft areodynamic analysis using CFD
CN106650086A (en) Indirect air cooling system numerical simulation platform based on FLUENT software
CN107273569A (en) Aerodynamic configuration drag reduction optimization method based on mesh deformation technique
CN103927409B (en) Concrete chimney stress analysis system based on finite element analysis
US9298858B1 (en) System and method for reducing models based on a criterion
CN104408261A (en) Complete vehicle electromagnetic compatibility (EMC) model building method applicable to complex automobile structure
CN103970967A (en) Electromagnetic transient simulation analysis system of electric power system
CN102183896A (en) System for testing protection logic by utilizing Matlab
Ivanovich et al. Development of user interface for OpenFOAM software environment used in design and technological subdivisions of machine-building enterprises
CN103499931A (en) Controller design method and device
US20080126070A1 (en) Detecting Inconsistencies Among System Models
CN104699881A (en) Design method of IMU digital filter for inertial navigation system
CN104090994A (en) Model converting method, testing method, converting system and testing system
Krol et al. Solving PDEs in modern multiphysics simulation software
CN107463745A (en) The Non-disturbance online verification method of simulation model algorithm based on emulation platform
Dong et al. Research and Application of Standardization for Mechanical Analysis of Nuclear Power Equipment

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