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

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种Matlab-ATP集成自动化调用方法,该方法基于Matlab和ATP的运行机制,以完全图形化的用户操作方式,能够设置多重故障条件,以ATP为工具自动化地遍历仿真故障模型,其仿真结果可集中化处理,实现仿真自动化与数据处理高效性的结合;本发明能够使Matlab在编程、运算、数据处理、图形处理方面的优势与ATP在电力系统暂态仿真方面的权威性有机融合,进而可利用ATP完备的数学模型灵活、高效地进行电力系统仿真计算,研究多重参数变化对系统的影响,以ATP的准确性校验其他仿真软件的仿真精确度等。

The invention discloses a Matlab-ATP integrated automatic calling method. The method is based on the operation mechanism of Matlab and ATP, and can set multiple fault conditions in a completely graphical user operation mode, and automatically traverses the simulation fault model by using ATP as a tool. The simulation results can be processed in a centralized manner, realizing the combination of simulation automation and data processing efficiency; the invention can make Matlab's advantages in programming, calculation, data processing, and graphics processing and ATP's authority in power system transient simulation organically Integrate, and then use ATP's complete mathematical model to flexibly and efficiently perform power system simulation calculations, study the impact of multiple parameter changes on the system, and verify the simulation accuracy of other simulation software with the accuracy of ATP.

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 General Model of Sequential Disturbance and Its Control Method for 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 General Model of Sequential Disturbance and Its Control Method for Real-time Simulation
CN110308668B (en) * 2019-07-17 2022-06-24 南瑞集团有限公司 A general model of sequential disturbance for real-time simulation and its control method

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
Shylesh A study of software development life cycle process models
US20160125108A1 (en) Method and system for knowledge based interfacing between computer aided analysis and geometric model
CN110134580A (en) Processor verification method and related products
CN104375421A (en) Aircraft engine part modeling method based on control system development platform
US8230382B2 (en) Model based simulation of electronic discharge and optimization methodology for design checking
KR101612506B1 (en) System and method for Aircraft areodynamic analysis using CFD
US10380283B2 (en) Functional verification with machine learning
CN114186405A (en) Parameter uncertainty analysis method and system of nuclear power reactor system
CN106650086A (en) Indirect air cooling system numerical simulation platform based on FLUENT software
Tariq et al. Design Specification of Cyber-Physical Systems: Towards a Domain-Specific Modeling Language based on Simulink, Eclipse Modeling Framework, and Giotto.
CN106776327A (en) A kind of application program regression testing method and device
CN105183987B (en) A kind of complex engineering multidisciplinary synthesis design optimization software platform system
US20200074040A1 (en) Hierarchical expression coverage clustering for design verification
CN109684723A (en) A kind of two-dimensional structure internal acoustic method for analyzing performance
CN204406148U (en) Generate the system of numerically-controlled machine machining control data
US20080126070A1 (en) Detecting Inconsistencies Among System Models
CN106547274B (en) A State Machine Testing Method Based on Scenario Matrix
CN104111889B (en) A kind of C language real-time system operation Formal Analysis Method based on TMSVL
CN111090554A (en) Method, device, equipment and storage medium for predicting server performance test time
Wang et al. ChatCPU: An Agile CPU Design and Verification Platform with LLM
US10108761B2 (en) Predictive simulation
Mitchell et al. AERCalc v1. 2.10
CN103530274A (en) Novel modeling method
Laasonen et al. Advanced analysis implementation to integrated fire design

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

Granted publication date: 20170412

Termination date: 20200528

CF01 Termination of patent right due to non-payment of annual fee