Transformer substation secondary circuit simulation training method and system
1. A transformer substation secondary circuit simulation training method based on MATLAB as a load flow calculation engine is characterized by comprising the following steps:
a data acquisition step: acquiring equipment data in a transformer substation;
primary power flow modeling step: performing primary load flow calculation engine modeling according to equipment data in the transformer substation;
a primary tide C + + engineering generation step: acquiring a primary tide C + + project of a complete station of a secondary circuit by using a code generation tool;
a primary tide C + + engineering packaging step: packaging the primary tide C + + engineering of the complete station of the secondary circuit into an interface program;
establishing a secondary loop complete simulation system: establishing a secondary loop complete simulation system according to the structure of the transformer substation, wherein the simulation system is provided with a real-time library service function and can call a packaged interface program;
establishing a secondary loop simulation model: and establishing a system model corresponding to the instruction according to the simulation operation instruction.
2. The MATLAB-based transformer substation secondary circuit simulation training method for a load flow calculation engine according to claim 1,
the equipment data in the transformer substation in the data acquisition step comprises the following steps: device type, performance parameters, and configuration parameters.
3. The MATLAB-based transformer substation secondary circuit simulation training method for a load flow calculation engine according to claim 1,
the specific content of the primary power flow modeling step is as follows: and modeling by using SIMULINK primary power flow of MATLAB according to equipment data in the transformer substation to obtain a primary power flow model.
4. The MATLAB-based transformer substation secondary circuit simulation training method for a load flow calculation engine according to claim 1,
and the code generation tool in the one-time flow C + + engineering generation step is an RTW code generation tool.
5. The MATLAB-based transformer substation secondary circuit simulation training method for a load flow calculation engine according to claim 1,
the model established in the secondary circuit simulation model establishing step comprises the following steps: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
6. The MATLAB-based transformer substation secondary circuit simulation training method for a load flow calculation engine according to claim 1,
the method also comprises the step of debugging and modifying the primary power flow C + + project before the step of packaging the primary power flow C + + project.
7. A transformer substation secondary circuit simulation training system based on MATLAB as a load flow calculation engine is characterized in that,
the method comprises the following steps: the system comprises an equipment data acquisition module, a primary power flow modeling module, a primary power flow C + + engineering generation module, a primary power flow C + + engineering packaging module, a secondary circuit complete station simulation system establishment module and a secondary circuit simulation model establishment module;
the equipment data acquisition module is connected with the input end of the primary power flow modeling module and used for acquiring equipment data in the transformer substation and sending the equipment data to the primary power flow modeling module;
the primary power flow modeling module is connected with the input end of the primary power flow C + + engineering generation module and used for modeling a primary power flow calculation engine according to equipment data in the transformer substation;
the primary tidal current C + + engineering generation module is connected with the input end of the primary tidal current C + + engineering packaging module and used for acquiring a primary tidal current C + + engineering of a complete secondary circuit station by using a code generation tool and sending the primary tidal current C + + engineering of the complete secondary circuit station to the primary tidal current C + + engineering packaging module;
the primary tide C + + engineering packaging module is connected with the input end of the secondary circuit complete station simulation system building module and is used for packaging the primary tide C + + engineering of the secondary circuit complete station into an interface program;
the secondary loop complete station simulation system building module is connected with the input end of the secondary loop simulation model building module and used for building a secondary loop complete simulation system according to the structure of the transformer substation, and the simulation system is provided with a real-time library service function and can call an encapsulated interface program;
and the secondary loop simulation model establishing module is used for establishing a system model corresponding to the instruction according to the simulation operation instruction.
8. The MATLAB-based substation secondary circuit simulation training system for a load flow calculation engine according to claim 7,
the device data includes: device type, performance parameters, and configuration parameters;
modeling by using SIMULINK primary power flow of MATLAB;
the code generation tool is an RTW code generation tool.
9. The MATLAB-based substation secondary circuit simulation training system for a load flow calculation engine according to claim 7,
the system model includes: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
10. The MATLAB based substation secondary circuit simulation training system for a load flow calculation engine according to any one of claims 7-9,
the primary tidal current C + + engineering packaging module further comprises a function of debugging and modifying the primary tidal current C + + engineering.
Background
The primary power flow system of the secondary loop station comprises 500kV and 220kV power flow systems. The secondary loop complete station simulation training system needs to accurately simulate the mutual relation of primary power flow systems, and at present, no particularly accurate power flow calculation engine exists in the secondary loop simulation system, and meanwhile, no secondary loop electrical protection simulation training system based on an accurate power flow system exists.
The MATLAB SIMULINK electrical equipment modeling tool system is application software which is used for a power system for one-time power flow calculation analysis, research and the like and is relatively authoritative at present. The simulation method can simulate the AC-DC conversion of the power system and the transient state condition of the power system during fault, and is an ideal modeling tool for the power flow accurate calculation engine.
Therefore, it is an urgent need to solve the above technical problems by providing a method and a system for simulation training of a secondary circuit of a substation.
Disclosure of Invention
In view of the above, the invention provides a transformer substation secondary circuit simulation training method and system, which can apply accurate and authoritative electric primary load flow calculation (MATLAB) of a power system to a track traffic electric protection simulation training system, so that the simulation training is accurate and reliable, and powerful support is provided for training secondary circuit operators.
In order to achieve the purpose, the invention adopts the following technical scheme:
a transformer substation secondary circuit simulation training method based on MATLAB as a load flow calculation engine comprises the following steps:
a data acquisition step: acquiring equipment data in a transformer substation;
primary power flow modeling step: performing primary load flow calculation engine modeling according to equipment data in the transformer substation;
a primary tide C + + engineering generation step: acquiring a primary tide C + + project of a complete station of a secondary circuit by using a code generation tool;
a primary tide C + + engineering packaging step: packaging the primary tide C + + engineering of the complete station of the secondary circuit into an interface program;
establishing a secondary loop complete simulation system: establishing a secondary loop complete simulation system according to the structure of the transformer substation, wherein the simulation system is provided with a real-time library service function and can call a packaged interface program;
establishing a secondary loop simulation model: and establishing a system model corresponding to the instruction according to the simulation operation instruction.
Preferably, the equipment data in the substation in the data acquiring step includes: device type, performance parameters, and configuration parameters.
Preferably, the primary trend modeling step specifically comprises the following steps: and modeling by using SIMULINK primary power flow of MATLAB according to equipment data in the transformer substation to obtain a primary power flow model.
Preferably, the code generation tool in the one-time trend C + + engineering generation step is an RTW code generation tool.
Preferably, the model established in the secondary loop simulation model establishing step includes: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
Preferably, the step of debugging and modifying the primary power flow C + + engineering is further included before the step of packaging the primary power flow C + + engineering.
A transformer substation secondary circuit simulation training system based on MATLAB as a load flow calculation engine comprises: the system comprises an equipment data acquisition module, a primary power flow modeling module, a primary power flow C + + engineering generation module, a primary power flow C + + engineering packaging module, a secondary circuit complete station simulation system establishment module and a secondary circuit simulation model establishment module;
the equipment data acquisition module is connected with the input end of the primary power flow modeling module and used for acquiring equipment data in the transformer substation and sending the equipment data to the primary power flow modeling module;
the primary power flow modeling module is connected with the input end of the primary power flow C + + engineering generation module and used for modeling a primary power flow calculation engine according to equipment data in the transformer substation;
the primary tidal current C + + engineering generation module is connected with the input end of the primary tidal current C + + engineering packaging module and used for acquiring a primary tidal current C + + engineering of a complete secondary circuit station by using a code generation tool and sending the primary tidal current C + + engineering of the complete secondary circuit station to the primary tidal current C + + engineering packaging module;
the primary tide C + + engineering packaging module is connected with the input end of the secondary circuit complete station simulation system building module and is used for packaging the primary tide C + + engineering of the secondary circuit complete station into an interface program;
the secondary loop complete station simulation system building module is connected with the input end of the secondary loop simulation model building module and used for building a secondary loop complete simulation system according to the structure of the transformer substation, and the simulation system is provided with a real-time library service function and can call an encapsulated interface program;
and the secondary loop simulation model establishing module is used for establishing a system model corresponding to the instruction according to the simulation operation instruction.
Preferably, the device data includes: device type, performance parameters, and configuration parameters;
modeling by using SIMULINK primary power flow of MATLAB;
the code generation tool is an RTW code generation tool.
Preferably, the system model comprises: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
Preferably, the primary power flow C + + engineering encapsulation module further includes a function of debugging and modifying the primary power flow C + + engineering.
According to the technical scheme, compared with the prior art, the invention provides a transformer substation secondary circuit simulation training method and system, wherein the transformer substation secondary circuit simulation training method comprises the following steps: the method can apply the accurate and authoritative electric primary load flow calculation (MATLAB) of the power system to the track traffic electric protection simulation training system, so that the simulation training is accurate and reliable, and powerful support is achieved for training secondary circuit operators.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a simulation training method of a secondary circuit of a transformer substation based on MATLAB as a load flow calculation engine;
FIG. 2 is a schematic diagram of the MATLAB communication model established according to the present invention;
FIG. 3 is a schematic diagram of the establishment of an MATLAB DC model according to the present invention;
FIG. 4 is a schematic diagram of a MATLAB power flow test according to the present invention;
FIG. 5 is a structural block diagram of a transformer substation secondary circuit simulation training system based on MATLAB as a load flow calculation engine.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the invention discloses a transformer substation secondary circuit simulation training method based on MATLAB as a load flow calculation engine, which specifically comprises the following steps:
a data acquisition step: acquiring equipment data in a transformer substation;
primary power flow modeling step: performing primary power flow modeling according to equipment data in the transformer substation;
a primary tide C + + engineering generation step: acquiring a primary tide C + + project of a complete station of a secondary circuit by using a code generation tool;
a primary tide C + + engineering packaging step: packaging the primary tide C + + engineering of the complete station of the secondary circuit into an interface program;
establishing a secondary loop complete simulation system: establishing a secondary loop complete simulation system according to the structure of the transformer substation, wherein the simulation system is provided with a real-time library service function and can call a packaged interface program;
establishing a secondary loop simulation model: and establishing a system model corresponding to the instruction according to the simulation operation instruction.
In a specific embodiment, the equipment data in the substation in the data acquiring step includes: device type, performance parameters, and configuration parameters.
In a specific embodiment, the primary trend modeling step specifically comprises the following steps: and modeling by using SIMULINK primary power flow of MATLAB according to equipment data in the transformer substation to obtain a primary power flow model.
In a specific embodiment, the code generation tool in the one-time flow C + + engineering generation step is an RTW code generation tool.
In one embodiment, the model established in the secondary loop simulation modeling step includes: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
In one embodiment, the secondary loop simulation model includes: a secondary circuit alternating current model and a secondary circuit direct current model; referring to fig. 2, for the secondary circuit alternating current model, a SIMULINK tool of MATLAB is opened, a required alternating current electrical element is found in an electrical library, parameters are connected and set to form an electrical function module, and then the electrical function module is established and custom-packaged, wherein the electrical function module comprises pins and module parameters; referring to fig. 3, a secondary loop dc model is shown.
In a specific embodiment, referring to fig. 4, a schematic diagram of a MATLAB power flow test is shown, after a secondary loop ac/dc power flow system is built and packaged, necessary variables are defined and loaded, an SCOPE component is called, compiling operation is performed, conditions of ac and dc waveforms of the system are checked, if an error occurs, primary equipment parameters are adjusted, connection is performed, and repeated tests are performed until the system is correct.
In one embodiment, RTW tools are used to generate C + + code engineering before developing an interactive interface with the simulation system. The specific implementation mode is as follows:
1) engineering to generate C + + tidal flow code using RTW tools
SIMULINK provides a tool RTW for generating C + + Code, calls Configuration Parameters command, selects Code Generation setting list in a popup menu, sets options required for generating Code, and finally clicks a BuildModel command for conversion.
2) Modifying C + + tidal flow code
The generated SIMULINK calculation engine C + + code engineering needs to define a new function in the code for assigning the calculation result (current amount, voltage amount) of each operation to the data map.
Meanwhile, variables corresponding to the control quantities of the tidal current primary switch, the disconnecting link, the voltage transformer and the current transformer need to be found in the C + + code, and the control variables are replaced by the variables corresponding to the interface module, so that the aim that the tidal current equipment can be controlled by the outside is fulfilled.
3) Packaged into interface program
And adding an external interactive data interface function to the modified SIMULINK calculation engine C + + code engineering, and externally transmitting the electric quantity result of each operation. And internally inputting the quantity of the primary equipment for controlling the power flow into a calculation engine to control the power flow calculation running state.
In a specific embodiment, the step of debugging and modifying the primary power flow C + + engineering is further included before the step of packaging the primary power flow C + + engineering.
In one embodiment, the content of the step of establishing the complete secondary loop simulation system further includes: and generating a COMTRADE format fault recording file in a simulation system on the basis of MATLAB trend data.
In a specific embodiment, a wave recording file generated by a fault wave recording device used by a power system is a COMTRADE format file, when a fault occurs in the simulation system, electric quantity data transmitted by an MATLAB calculation engine is acquired in real time, a standard power system wave recording file is automatically generated, and the standard power system wave recording file can be seamlessly connected with fault wave recording analysis software universal to the power system. The specific implementation mode is as follows:
1) generating a COMTRADE format configuration file cfg format
Reading the variables needing wave recording from the SIMULINK variable interaction configuration table, and generating a cfg format file, wherein the format is shown in table 1:
TABLE 1 cfg Format Table
Name of factory station
STATION_NAME
Name of device
DEV_NAME
Version information
Currently, only 99 format or non-99 format is available
Number of analog channels
Determining the number of analog channels
Number of switching value channels
Determining the number of switching value channels
Line frequency
Determining line channels
…
…
2) Obtaining fault recording channel tide data and generating data file dat format
Generating a data file according to the tide data in a dat format, wherein the format is shown in table 2:
TABLE 2 dat form Table
Data sequence number
Starting from 1, each is added by 1
Data acquisition time
The acquisition time of the data is accurate to millisecond level
Tidal current data
Shaping data
In another embodiment, the fault is loaded into the power flow by mapping to a preset fault point in the MATLAB engine. The specific implementation mode is as follows:
1) configuring a fault mapping table
Different types of primary power flow faults are set for a SIMULINK calculation engine, a secondary loop simulation system enables fault variables in the calculation engine to correspond to variables in a simulation real-time library one by one through configuration of a fault mapping table, and the faults can be set into the calculation engine by modifying the variables of the real-time library to obtain corresponding power flow feedback. Monitoring system information and an alarm system of the secondary loop simulation system timely reflect the fault state, and operating personnel make relevant countermeasures according to the information. The faults are specifically the following, and can be increased as required:
a. a line fault.
b. And (6) bus failure.
2) Adding fault variables to a real-time library
And adding a primary power flow fault variable to be set, which corresponds to a fault variable in a secondary loop simulation training system real-time base, into the real-time base, setting the fault variable of the real-time base, and automatically setting an interface program into a calculation engine for realizing the purpose of artificially and controllably increasing the fault.
Referring to fig. 5, the invention discloses a transformer substation secondary circuit simulation training system based on MATLAB as a load flow calculation engine,
the method comprises the following steps: the system comprises an equipment data acquisition module, a primary power flow modeling module, a primary power flow C + + engineering generation module, a primary power flow C + + engineering packaging module, a secondary circuit complete station simulation system establishment module and a secondary circuit simulation model establishment module;
the equipment data acquisition module is connected with the input end of the primary power flow modeling module and used for acquiring equipment data in the transformer substation and sending the equipment data to the primary power flow modeling module;
the primary power flow modeling module is connected with the input end of the primary power flow C + + engineering generation module and used for performing primary power flow modeling according to equipment data in the transformer substation;
the primary tidal current C + + engineering generation module is connected with the input end of the primary tidal current C + + engineering packaging module and used for acquiring a primary tidal current C + + engineering of a complete secondary circuit station by using a code generation tool and sending the primary tidal current C + + engineering of the complete secondary circuit station to the primary tidal current C + + engineering packaging module;
the primary tide C + + engineering packaging module is connected with the input end of the secondary circuit complete station simulation system building module and is used for packaging the primary tide C + + engineering of the secondary circuit complete station into an interface program;
the secondary loop complete station simulation system building module is connected with the input end of the secondary loop simulation model building module and used for building a secondary loop complete simulation system according to the structure of the transformer substation, and the simulation system is provided with a real-time library service function and can call an encapsulated interface program;
and the secondary loop simulation model establishing module is used for establishing a system model corresponding to the instruction according to the simulation operation instruction.
In a particular embodiment, the device data includes: device type, performance parameters, and configuration parameters;
modeling by using SIMULINK primary power flow of MATLAB;
the code generation tool is an RTW code generation tool.
In one particular embodiment, the system model includes: and the secondary circuit complete station monitoring system and/or the secondary circuit complete station three-dimensional primary and secondary equipment checking system and/or the secondary circuit complete station three-dimensional primary and/or secondary equipment control system or the secondary circuit complete station accident alarm system.
In another specific embodiment, the primary flow C + + engineering encapsulation module further includes a function of debugging and modifying the primary flow C + + engineering.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention in a progressive manner. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种智能化供配电实训装置