CN106407515B - A method of the electric information virtual experimental based on PC machine platform - Google Patents
A method of the electric information virtual experimental based on PC machine platform Download PDFInfo
- Publication number
- CN106407515B CN106407515B CN201610793179.XA CN201610793179A CN106407515B CN 106407515 B CN106407515 B CN 106407515B CN 201610793179 A CN201610793179 A CN 201610793179A CN 106407515 B CN106407515 B CN 106407515B
- Authority
- CN
- China
- Prior art keywords
- data
- output
- user
- simulation
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B9/00—Simulators for teaching or training purposes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention belongs to electrical engineering teaching fields, pass through PSCAD/EMTDC more particularly to one kind and high-volume, the repeatedly calculating of number accurate simulation and data acquisition, output, processing technique, the method for improving simulation efficiency, the electric information virtual experimental based on PC machine platform for saving instruction cost are carried out to given system and proximate systems.The present invention includes: initialization emulation data;It is automatic to obtain data;Automatic input information;Automatic simulation;Autodraft;Automatic output data;It is automatic to send;Client process.A kind of method of electric information virtual experimental based on PC machine platform proposed by the present invention, the simulation calculation of a variety of models may be implemented, building and accurately calculating for a variety of models is realized using PSCAD/EMTDC component library abundant and custom feature, it is not necessarily to put into duplication of labour power for the close model present invention to go to change element, node serial number and name that original model only needs to indicate that needs are modified and modify topological structure according to demand, is automatically performed modification through the invention.
Description
Technical field
The invention belongs to electrical engineering teaching fields, and in particular to one kind is by PSCAD/EMTDC to given system and phase
Nearly system progress high-volume, repeatedly number accurate simulation calculate and data acquisition, output, processing technique, raising simulation efficiency, section
The method for saving the electric information virtual experimental based on PC machine platform of instruction cost.
Background technique
Power system simulation software replaces practical power systems with mathematical model, with numerical method to the operation characteristic of system
Tested and studied, oneself through become the indispensable powerful of electric system researcher, electric system planning,
In design and operation, power system simulation software may be used to determine programme, draft the method for operation, adjust automatic device
Control parameter carries out crash analysis and operations staff is assisted to make correct decision, greatly improves the operational efficiency of power grid.This
Outside, the educational function of power system simulation software makes it also play important work in the training of user and electric power enterprise employee
With.
Currently, a large amount of power system simulation software is by among all kinds of researchs of application and teaching, electromagnetic transient simulation is soft
Part PSCAD/EMTDC is exactly wherein widely used one kind.PSCAD/EMTDC has more perfect component models library, is
Meet different application requirements, PSCAD/EMTDC provides customized component models function for user, to enhance emulation
Flexibility.Therefore, PSCAD/EMTDC software is more and more introduced major colleges and universities in electrical engineering teaching process.
It needs to carry out a large amount of repeatability teaching for user, weight will be carried out to the same simulation model or close simulation model
The simulation calculation of renaturation, and since different user uses different parameters, also need to make model part change sometimes, this makes
The unskilled jobs such as the model buildings that will make repeatability in each learning process, parameter modification are obtained, learning efficiency is reduced.Needle
The same model and each user of close model are required to be equipped with a PSCAD/EMTDC software, this will largely
Instruction cost is improved, the reasonable distribution of teaching resource is unfavorable for.
200 nodes generally can satisfy demand for electrical engineering teaching, but just above-mentioned multiple batches of, repeated
Unskilled job be that each user purchases a set of PSCAD/EMTDC software and be not necessarily to, but also to carry out additionally
Communication investment, artificial investment, working efficiency is low, at high cost.So to reduce nontechnical repeated work, improve efficiency,
Reducing cost has important practical significance.
Summary of the invention
The purpose of the present invention is to provide one kind to reduce instruction cost, improves the base of the automatization level of simulated teaching
In the method for the electric information virtual experimental of PC machine platform.
The object of the present invention is achieved like this:
1. a kind of method of the electric information virtual experimental based on PC machine platform, which comprises the steps of:
(1) initialization emulation data: according to system topology, in the computer for being equipped with PSCAD/EMTDC software
Build simulation model, emulated for the first time and generate operation file initialize emulation data;According to the simulation model pair built
Element, node in system topology are numbered and name, and will treated that system topology figure is sent to is specified
Server-side (calculation server end or client computer terminal), user log in the customer service page in client computer terminal, obtain
System topology figure is taken, and fills according to system topology figure oneself component parameters, system parameter, knot in designated position
Structure transition information, output require four contents, and partial content is not filled in then using default value;
(2) obtain data automatically: user has filled in member on given client terminal computer according to system topology figure
After part parameter, system parameter, structural change information, output require and confirms submission, by the way that " calculation server end-client calculates
Between generator terminal " network program code from network client obtain user provide component parameters, system parameter, structure become
Dynamic information, output require, and by the different order-assigned serial numbers for submitting application, these data are imported into calculating service by serial number
Under designated position in user's application data form single group at device end, then calculated by network data exchange program code to user
Machine terminal sends expression " task has received, and please wait " this kind of feedback, and (such as text prompt dodges turn off the light flashing, the specific sound of buzzer
Sound etc.);When calculation server end, emulation terminates to have activated mark and still has untreated user to apply, then preferentially former by small serial number
Then required using the program in machine code acquisition component parameters therein of server end, system parameter, structural change information, output, and
Emulation end of identification is enabled to reenter unactivated state;
(3) automatic input information: when the program in machine code by server end obtains one from " user's request for data " list
After component parameters that user gives, system parameter, structural change information, output require, pass through the PSCAD/EMTDC information of establishment
Recording program emulates these four types of data inputs into system.User does not carry out all or part of above-mentioned four category information
It is given, then using the default value in initial emulation in experimental calculation machine;
(3.1) component parameters: pass through user is provided with the interface routine that Fortran writes in PSCAD/EMTDC
Each device parameter values are read into PSCAD/EMTDC in the form of array, then pass through the Datatap member in PSCAD/EMTDC
Parameters in array are input in corresponding Data Label element by part, and parameters are imported into corresponding member by it
In part, in " $ name " that parameter is wherein corresponded in " the Data signal name " and element of Data Label element
" name " is identical;
(3.2) system parameter: the mapped file .map in operation file obtained after first emulation has recorded system
Parameters can realize the change to system parameter by the modification to wherein data: for example,
FINISH_TIME=10.0 simulation time 10s
TIME_STEP=0.0005 simulation step length 0.0005s
Change simulation time and simulation step length by changing 10.0 and 0.0005;
(3.3) structural change information: first emulation obtains node branch message file (.dat), and this document is divided into homepage
Node branch information and subpage frame node branch information: by modifying modification of the data realization therein to experimental system structure.
For example, node branch data format is as follows:
Wherein, " 74,76,4,5 " are node serial number, and the bypass elements of " RLC, C " between two nodes are constituted, and " R " is electricity
Resistance;" L " is inductance;" C " be capacitor, power supply with " S " indicate, behind with numerical value be counter element value;"5000.0"
Branch capacitor of the node serial number between " 4,5 " is represented as 5000uF, " // " indicates further to explain, and " 2,1 " indicates the branch
Positioned at which layer of the place page, " NT_70, NT_72, P, N " indicates the title of the node, and " 4,5 " node be named as " P,
N";The modification of the topological structure of simulation model is realized by the modification to node branch message file .dat;
(3.4) output requires: output requires to be divided into two classes, and one kind is that snapshot output requires the i.e. system a certain moment or multiple
All status informations at moment;One kind is that the output requirement i.e. user of data channel needs the output channel name of data, the title
It is indicated in system topology figure;Snapshot output requires, i.e., by the executable file .exe generated in initial emulation,
Set snapshot, single/multiple snapshot, single snap shot time, multiple snapshot step-length;Have in executable file .exe and mentions accordingly
Show, option is filled according to prompt and is configured;And data output channel output requires to be the content for exporting processing, as selected
Any channel data (can single channel, can also multichannel) carries out output and shows;
Automatic simulation will can be carried out after above-mentioned four kinds of data inputs;
(4) automatic simulation: automatic simulation includes single automatic simulation and multiple automatic simulation, i.e., provides for a certain user
Component parameters, system parameter, structural change information, output require once to be emulated or Multi simulation running, primary emulation use
In the above- mentioned information that single user provides are fixed value the case where, the above- mentioned information that Multi simulation running is provided for single user are one
The information that group changes in a certain range, user wish by carrying out feelings of the Multi simulation running from the progress optimizing of the multiple groups result of output
Condition;Automatic simulation is realized by the executable file .exe in the operation file that generates in emulating for the first time, by executable
The selection of file .exe automatic simulation number carries out the selection of single/multiple automatic simulation, by executing file after the completion of selection
.exe automatic simulation is carried out, and generates new operation file, the snapshot document that user is required is stored in file corresponding to the user
In folder;
(5) autodraft: situation A: user needs calculation server help and generates variogram, then in simulation process,
It is called by the interface function of PSCAD/EMTDC and mapping software, is required to be user's needs according to the output of the data channel of user
The output channel name of data indicates title in system topology figure, generates corresponding figure using corresponding mapping software
Shape;Otherwise, it is directly entered in next step, and in (8) i.e. situation B, executes the Automatic Drawing based on client computer terminal;
(6) automatic output data: mention that it includes requirement of two classes in output requires: snapshot exports and wants summed data channel
Output requires, and wherein the output requirement of data channel is the output channel name that user needs data, by title in system topological knot
It is indicated in composition;It requires to be directed to demand of the different user to simulation result according to data channel output, by operation file
Mapped file .map or output channel configuration file .inf data are performed corresponding processing;Such as;
Partial data in output file .out is as follows:
Wherein first it is classified as simulation time, two, three column are respectively that the first and second output corresponding with simulation time is logical
The data in road, putting in order for output channel data column is sorted according to output channel configuration information, in mapped file
.map output channel configuration information is contained in output channel configuration file .inf, which lifts
Under such as:
PGB (1) Output Desc=" Vc " Group=" Main " Max=2.0 Min=-2.0 Units=" KV "
Wherein " 1 " in " PGB (1) " represents the sequence of the output channel, and " Output " shows that it is output channel,
" Vc " in " Desc=" Vc " " is the name of output channel, " Group=" Main " shows that the output channel is located at main interface,
" Max=2.0 Min=-2.0 " is the maximin of the output channel, and " Units=" KV " " is that the output channel exports number
According to unit;It is automatically found the channel name that user specifies data output according to output channel configuration information, determines data where it
Columns in output file .out, first row time and the column data are exported to automatically using emulation data processing subprogram and
It in text file corresponding to the user, and is saved into file corresponding with the user automatically, data export at this time
It completes;
(7) automatic to send: at calculation server end, will obtain by the above process output data corresponding with user and
Figure (the A situation of autodraft), and save into the specified folder of client;It examines and judges whether to have completed to own
Data inputting, automatic simulation, automatic Drafting, automaticdata output and the data of user save, if completed, pass through
Data file is transmitted in corresponding client terminal computer by " network data exchange program code ", and is calculated to client terminal
The feedback of machine " task is completed " and client provide prompt (such as text prompt, sudden strain of a muscle turn off the light stopping flashing, the specific sound of buzzer
Sound etc.);Calculation server end emulation end of identification reactivates, and detects whether still have untreated user to apply.If so, then originally
Read next simulation process for having generated " user data application list ", having carried out for another user in ground;
(8) client process (Automatic Drawing situation B): the Simulation result data that will be received receives data by user terminal
Processing subroutine saves on a client computer, and according to user's needs, passes through client plotting subroutine drawing result figure;It can
(or) coupled any D/A (digital quantity revolving die analog quantity) conversion equipment is transferred data to, it is bent to generate analog quantity variation
Line from the test equipments such as oscillograph and is saved for user.
The beneficial effects of the present invention are:
(1) method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, may be implemented a variety of moulds
The simulation calculation of type realizes building and accurately for a variety of models using PSCAD/EMTDC component library abundant and custom feature
It calculates, the close model present invention is only needed to indicate the member that needs are modified without putting into duplication of labour power and going to change original model
Part, node serial number and name are automatically performed modification through the invention.
(2) method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, can carry out long-range, more
Batch, repeatability, changeability teaching, user is not necessarily to come laboratory only that all kinds of parameters need to be provided can obtain phase through the invention
The simulation result answered, greatly enhancing efficiency of teaching realizes automated teaching.
(3) method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention not only may be implemented solid
Determine the simulation calculation of system model, and component parameters change can be carried out according to all kinds of demands of user, system parameter change, opened up
Structural change is flutterred, to improve the flexibility of system emulation, while providing wide autonomic nerve way platform for user.
(4) method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, can want according to user
It asks and output data is handled, and be transmitted to client computer.One of algorithm computer can be multiple server-sides
Computer Service improves the utilization rate of algorithm computer equipment, and resource is adequately utilized, while also avoiding user and obtaining
The difficulty of data needed for being searched after all experimental results.
(5) method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, due to entirely imparting knowledge to students
Accurate emulation experiment needed for all users simultaneously only can be completed with a set of PSCAD/EMTDC software in the process, and is all
User provides its required experimental result for analytical calculation, and whole process realizes automated teaching experiment, utmostly
On reduce the investments of human and material resources.While reducing cost payout, all emulation experiment requirements are efficiently realized.
(6) method of a kind of electrical tired virtual emulation based on PC machine platform proposed by the present invention, utilizes PSCAD/EMTDC
The middle interface routine write with Fortran is realized inside and outside data exchange, while being realized using PSCAD/EMTDC self-starting operation
Program automatic running output data, fully achieves automation virtual emulation, reduces the mistake of operation, composing software to the full extent
Journey.
Detailed description of the invention
Fig. 1 is principle of the invention figure.
The operating principle block diagram for the virtual instruction emulation mode that the teaching of Fig. 2 electrical engineering uses.
Fig. 3 is flow diagram of the present invention.
Fig. 4 is flow diagram of the present invention.
Fig. 5 is output data file flow chart.
Specific embodiment
The present invention is described further with reference to the accompanying drawing.
This programme is carrying out multiple batches of, repeated, variable element, structure changes for same simulation model or close simulation model
The problems such as simulation calculation, needs several Net-connected computers for being equipped with a PSCAD/EMTDC simulation software and image display software,
Using a computer as calculation server, remaining is as client computer terminal.Multiple automatic simulation, Er Qietong may be implemented
Crossing proposed data processing method not only can accomplish that data are accurately and fast collected, but also can accomplish at automatic sequence
Reason, so that the experiment that user need to only fill in oneself in client computer terminal server specifies parameter and changes demand
Accurate experimental result is obtained, so that user's learning efficiency also reduces instruction cost while raising, improves simulated teaching
Automatization level, as shown in Figure 1.
The implementation method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, as shown in Figure 2 in reality
Test simulation model required for the topological structure on computer according to system builds PSCAD/EMTDC simulation calculation.According to course
Design requirement forms multiple emulation experiment models, the corresponding PASCAD/EMTDC simulated program of each model.Model is carried out
Preliminary emulation, operation file needed for generating, such as " .map ", " .dat ", " .exe " file.According to the simulation model built to institute
The system topology figure for carrying out emulation experiment carries out node serial number, element number and name, and system is opened up by treated
It flutters structure chart and is sent to server end (calculation server end or client computer terminal).Each user is in client computer terminal
The given system topology of middle basis and node therein, element number and name fill in parameter (such as voltage source of each element
The information such as the line voltage RMS voltage of element, frequency), system information (such as simulation time, simulation step length, data output compensation
Etc. information) structural change information, (branch of certain nodes connections originally is disconnected such as in given topological structure or is not connected originally
The node connect is attached, increases impedance value between certain nodes, enables the transition informations such as certain node ground connection), output requires (as single
The requirement such as snapshot step-length, required simulation result in secondary/multiple snapshot, multiple snapshot).According to system topology figure specified
Component parameters have been filled on client terminal computer, system parameter, structural change information, output require and after confirming submission, lead to
The network program code " between calculation server end-client computer terminal " is crossed to provide from the client acquisition user in network
Component parameters, system parameter, structural change information, output require, and by it is different submit application order-assigned serial numbers, sequentially
Number these data are imported under the designated position in user's application data form single group at calculation server end, through the invention from
The component parameters that provide each user in client computer terminal, system parameter, structural change information, output are required by client
End numeric order is read under the designated position in an Excel table of experimental calculation machine.Pass through the code journey of server end
Sequence from " user's request for data " list obtain a user give component parameters, system parameter, structural change information, output want
After asking, these four types of data inputs are emulated into system by the PSCAD/EMTDC data input program of establishment.According to
System parameter given by family carries out corresponding modification to the mapped file (.map) in operation file;The knot according to given by user
Structure transition information modifies to the node branch message file (.dat) in operation file;The snapshot according to given by user is defeated
It requires to fill in execution file (.exe) snap option in operation file out;It is i.e. right as needed after completion data input
The simulation times option executed in file (.exe) is filled in, if user wants to carry out result ratio to a certain variable Multi simulation running
Right, then simulation times can be filled according to user intention, and otherwise simulation times are default value.After simulation times determine, lead to
The snapshot document crossed execution file (.exe) and carry out simulation calculation automatically, and generate new operation file, and user is required
It is stored in the corresponding file of customer terminal.Pass through PSCAD/EMTDC and mapping software in simulation process
Interface routine draws required figure in mapping software, component parameters, system parameter, the knot that will be given by user after the completion of emulation
Structure transition information, output require the obtained data of simulation result to be output in corresponding text file, while by data text
In file corresponding with the correspondence figure deposit client computer terminal made by mapping software.The total of emulation is judged later
Whether number is equal to the total number of persons of user, i.e., the parameter given to each user emulates and corresponding simulation result is defeated
Out into the corresponding file of client.If not completing all emulation, the member of next user is taken out from tables of data single group
Part parameter, system parameter, structural change information, output are required, and are carried out above-mentioned steps again one time using new operation file
Until the emulation experiment of all users all terminates.
The implementation method of a kind of electric information virtual experimental based on PC machine platform proposed by the present invention, in order in maximum
While limit reduces cost input, simulation accuracy is improved, the duplication of labour is reduced, improves the quality of teaching, in the whole process all
Using it is automatic obtain data, automatic input information, automatic single or multiple emulation, autodraft, automatic output data and
The courses of work such as automatic transmission.Its work step is as follows:
1. a kind of method of the electric information virtual experimental based on PC machine platform, which comprises the steps of:
(1) initialization emulation data: according to system topology, in the computer for being equipped with PSCAD/EMTDC software
Build simulation model, emulated for the first time and generate operation file initialize emulation data;According to the simulation model pair built
Element, node in system topology are numbered and name, and will treated that system topology figure is sent to is specified
Server-side (calculation server end or client computer terminal), user log in the customer service page in client computer terminal, obtain
System topology figure is taken, and fills according to system topology figure oneself component parameters, system parameter, knot in designated position
Structure transition information, output require four contents, and partial content is not filled in then using default value;
(2) obtain data automatically: user has filled in member on given client terminal computer according to system topology figure
After part parameter, system parameter, structural change information, output require and confirms submission, by the way that " calculation server end-client calculates
Between generator terminal " network program code from network client obtain user provide component parameters, system parameter, structure become
Dynamic information, output require, and by the different order-assigned serial numbers for submitting application, these data are imported into calculating service by serial number
Under designated position in user's application data form single group at device end, then calculated by network data exchange program code to user
Machine terminal sends expression " task has received, and please wait " this kind of feedback, and (such as text prompt dodges turn off the light flashing, the specific sound of buzzer
Sound etc.);When calculation server end, emulation end of identification has activated and has still had untreated user to apply, then preferentially former by small serial number
Then required using the program in machine code acquisition component parameters therein of server end, system parameter, structural change information, output, and
Emulation end of identification is enabled to reenter unactivated state;
(3) automatic input information: when the program in machine code by server end obtains one from " user's request for data " list
After component parameters that user gives, system parameter, structural change information, output require, pass through the PSCAD/EMTDC information of establishment
Recording program emulates these four types of data inputs into system.User does not carry out all or part of above-mentioned four category information
It is given, then using the default value in initial emulation in experimental calculation machine;
(3.1) component parameters: pass through user is provided with the interface routine that Fortran writes in PSCAD/EMTDC
Each device parameter values are read into PSCAD/EMTDC in the form of array, then pass through the Datatap member in PSCAD/EMTDC
Parameters in array are input in corresponding Data Label element by part, and parameters are imported into corresponding member by it
In part, in " $ name " that parameter is wherein corresponded in " the Data signal name " and element of Data Label element
" name " is identical;
(3.2) system parameter: the mapped file .map in operation file obtained after first emulation has recorded system
Parameters can realize the change to system parameter by the modification to wherein data: for example,
FINISH_TIME=10.0 simulation time 10s
TIME_STEP=0.0005 simulation step length 0.0005s
Change simulation time and simulation step length by changing 10.0 and 0.0005;
(3.3) structural change information: first emulation obtains node branch message file (.dat), and this document is divided into homepage
Node branch information and subpage frame node branch information: by modifying modification of the data realization therein to experimental system structure.
For example, node branch data format is as follows:
Wherein, " 74,76,4,5 " are node serial number, and the bypass elements of " RLC, C " between two nodes are constituted, and " R " is electricity
Resistance;" L " is inductance;" C " be capacitor, power supply with " S " indicate, behind with numerical value be counter element value;"5000.0"
Branch capacitor of the node serial number between " 4,5 " is represented as 5000uF, " // " indicates further to explain, and " 2,1 " indicates the branch
Positioned at which layer of the place page, " NT_70, NT_72, P, N " indicates the title of the node, and " 4,5 " node be named as " P,
N";The modification of the topological structure of simulation model is realized by the modification to node branch message file .dat;
(3.4) output requires: output requires to be divided into two classes, and one kind is that snapshot output requires the i.e. system a certain moment or multiple
All status informations at moment;One kind is that the output requirement i.e. user of data channel needs the output channel name of data, the title
It is indicated in system topology figure;Snapshot output requires, i.e., by the executable file .exe generated in initial emulation,
Set snapshot, single/multiple snapshot, single snap shot time, multiple snapshot step-length;Have in executable file .exe and mentions accordingly
Show, option is filled according to prompt and is configured;And data output channel output requires to be the content for exporting processing, as selected
Any channel data (can single channel, can also multichannel) carries out output and shows;
Automatic simulation will can be carried out after above-mentioned four kinds of data inputs;
(4) automatic simulation: automatic simulation includes single automatic simulation and multiple automatic simulation, i.e., provides for a certain user
Component parameters, system parameter, structural change information, output require once to be emulated or Multi simulation running, primary emulation use
In the above- mentioned information that single user provides are fixed value the case where, the above- mentioned information that Multi simulation running is provided for single user are one
The information that group changes in a certain range, user wish by carrying out feelings of the Multi simulation running from the progress optimizing of the multiple groups result of output
Condition;Automatic simulation is realized by the executable file .exe in the operation file that generates in emulating for the first time, by executable
The selection of file .exe automatic simulation number carries out the selection of single/multiple automatic simulation, by executing file after the completion of selection
.exe automatic simulation is carried out, and generates new operation file, the snapshot document that user is required is stored in file corresponding to the user
In folder;
(5) autodraft: situation A: user needs calculation server help and generates variogram, then in simulation process,
It is called by the interface function of PSCAD/EMTDC and mapping software, is required to be user's needs according to the output of the data channel of user
The output channel name of data indicates title in system topology figure, generates corresponding figure using corresponding mapping software
Shape;Otherwise, it is directly entered in next step, and in (8) i.e. situation B, executes the Automatic Drawing based on client computer terminal;
(6) automatic output data: mention that it includes requirement of two classes in output requires: snapshot exports and wants summed data channel
Output requires, and wherein the output requirement of data channel is the output channel name that user needs data, by title in system topological knot
It is indicated in composition;It requires to be directed to demand of the different user to simulation result according to data channel output, by operation file
Mapped file .map or output channel configuration file .inf data are performed corresponding processing;Such as;
Partial data in output file .out is as follows:
Wherein first it is classified as simulation time, two, three column are respectively that the first and second output corresponding with simulation time is logical
The data in road, putting in order for output channel data column is sorted according to output channel configuration information, in mapped file
.map output channel configuration information is contained in output channel configuration file .inf, which lifts
Under such as:
PGB (1) Output Desc=" Vc " Group=" Main " Max=2.0 Min=-2.0 Units=" KV "
Wherein " 1 " in " PGB (1) " represents the sequence of the output channel, and " Output " shows that it is output channel,
" Vc " in " Desc=" Vc " " is the name of output channel, " Group=" Main " shows that the output channel is located at main interface,
" Max=2.0 Min=-2.0 " is the maximin of the output channel, and " Units=" KV " " is that the output channel exports number
According to unit;It is automatically found the channel name that user specifies data output according to output channel configuration information, determines data where it
Columns in output file .out, first row time and the column data are exported to automatically using emulation data processing subprogram and
It in text file corresponding to the user, and is saved into file corresponding with the user automatically, data export at this time
It completes;
(7) automatic to send: at calculation server end, will obtain by the above process output data corresponding with user and
Figure (the A situation of autodraft), and save into the specified folder of client;It examines and judges whether to have completed to own
Data inputting, automatic simulation, automatic Drafting, automaticdata output and the data of user save, if completed, pass through
Data file is transmitted in corresponding client terminal computer by " network data exchange program code ", and is calculated to client terminal
The feedback of machine " task is completed " and client provide prompt (such as text prompt, sudden strain of a muscle turn off the light stopping flashing, the specific sound of buzzer
Sound etc.);Calculation server end emulation end of identification reactivates, and detects whether still have untreated user to apply.If so, then originally
Read next simulation process for having generated " user data application list ", having carried out for another user in ground;
(8) client process (Automatic Drawing situation B): the Simulation result data that will be received receives data by user terminal
Processing subroutine saves on a client computer, and according to user's needs, is saved by client plotting subroutine and draw knot
Fruit figure;Can (or) coupled any D/A (digital quantity revolving die analog quantity) conversion equipment is transferred data to, generate analog quantity
Change curve from the test equipments such as oscillograph and is saved for user.
It is taken in the networking experimental calculation machine for being equipped with PSCAD/EMTDC software and mapping software according to system topology
Simulation model is built, and carries out first emulation and generates operation file.According to the simulation model built to the member in system topology
Part, node are numbered and name, and the system topology figure handled is sent to server-side (calculation server end or visitor
Family terminal).
User logs in client computer terminal server, obtains system topology figure, and in designated position according to system
Topology diagram fill in oneself component parameters, system parameter, structural change information, output require four contents, such as fruit part
Content is not filled in then using default value.
As shown in figure 3, experimental calculation machine is obtained all automatically by operation data list after all users have filled in information
The component parameters of user, system parameter, structural change information, output are required and are arranged under designated position by serial number.Using filling out
It writes complete data form and takes out four information outstanding message typings that user provides by serial number and Fixed Time Interval.
Assuming that after four information of acquisition user M, as shown in figure 4, (1) takes out all component parameters by using Fortran
That writes is imported component parameters in PSCAD/EMTDC with array form with PSCAD/EMTDC interface routine, and utilizes PSCAD/
Each component parameters in array are input in corresponding Data Label element by the Datatap element in EMTDC, are passed through
Component parameters are imported the parameter bit in counter element by Data Label element;(2) extraction system parameter is in operation file
Data in mapped file (.map) make corresponding modification;(3) structural change information is taken out to the node branch in operation file
Data in road message file (.dat) make corresponding modification;(4) output is taken out to require, it is defeated according to the snapshot in output requirement
Snap option in the execution file (.exe) in operation file is made out and being filled in accordingly.After four information of typing, according to
Family offer information, which needs to make simulation times option in the execution file (.exe) in operation file, accordingly fills in.Pass through emulation
After number determines, the snapshot that file (.exe) executes simulation calculation, and generate new operation file, and user is required is executed
File is stored in file corresponding to the user.
It is defeated according to the data channel of user by the interface function of PSCAD/EMTDC and mapping software in simulation process
It requires out, generates corresponding figure.
After simulation calculation, output data file (.out).As shown in figure 5, according to the data in user M output requirement
Channel output requires to want to obtain the data channel title in simulation result, in output channel configuration file (.inf) or mapping
The arrangement number for requiring the data channel obtained is searched in file (.map).After all arrangements number of data channel needed for obtaining, defeated
The data of corresponding data channel and the time data of first row are imported and used according to arrangement number in data file (.out) out
In the corresponding text of family serial number, and save to file corresponding with user's serial number.
By obtaining output data corresponding with user and figure in the process above, and it is saved to and user's sequence
In number corresponding file.Judge whether to complete all data inputtings, automatic simulation, automaticdata output and act certainly
Figure utilizes newly generated operation file and the next number obtained from tables of data single group after this emulation if not completing
Continue the above process according to list.So far whole work process is completed.
Claims (1)
1. a kind of method of the electric information virtual experimental based on PC machine platform, which comprises the steps of:
(1) it initialization emulation data: according to system topology, is built in the computer for being equipped with PSCAD/EMTDC software
Simulation model, emulated for the first time and generate operation file initialize emulation data;According to the simulation model built to system
Element, node in topological structure are numbered and name, and system topology figure is sent to specified services by treated
End, user log in the customer service page in client computer terminal, obtain system topology figure, and in designated position according to being
System topology diagram fill in oneself component parameters, system parameter, structural change information, output require four contents, do not fill in
Partial content then uses default value;
(2) obtain data automatically: user has filled in element ginseng according to system topology figure on given client terminal
After number, system parameter, structural change information, output require and confirms submission, by the way that " calculation server end-client computer is whole
Between end " network program code obtain the user component parameters, system parameter, the structural change that provide from the client in network
Information, output require, and the order-assigned serial number of application is submitted by different clients, these data are imported into calculating by serial number
Under designated position in user's application data form single group of server end, then by network data exchange program code to client
Terminal, which is sent, indicates " task has received, and please wait " this kind of feedback, specifically includes text prompt, dodges turn off the light flashing and bee
Ring the specific sound of device;When calculation server end, emulation end of identification has activated and has still had untreated user to apply, then by small
Serial number priority principle obtains component parameters therein, system parameter, structural change information, defeated using the program in machine code of server end
It requires out, and emulation end of identification is enabled to reenter unactivated state;
(3) automatic input information: when the program in machine code by server end obtains a user from " user's request for data " list
After given component parameters, system parameter, structural change information, output require, pass through the PSCAD/EMTDC data input of establishment
Program emulates these four types of data inputs into system;User not to all or part of above-mentioned four category information carry out to
It is fixed, then using the default value in initial emulation in experimental calculation machine;
(3.1) component parameters: user provided by the interface routine write in PSCAD/EMTDC with Fortran each
Device parameter values are read into PSCAD/EMTDC in the form of array, then will by the Datatap element in PSCAD/EMTDC
Parameters in array are input in corresponding Data Label element, are imported into parameters by Data Label element
In corresponding element, " the $ name " of parameter is wherein corresponded in " the Data signal name " and element of Data Label element
In " name " it is identical;
(3.2) system parameter: the mapped file .map in operation file obtained after first emulation has recorded the items of system
Parameter can realize the change to system parameter by the modification to wherein data:
The simulation time of FINISH_TIME=10.0 10s
The simulation step length of TIME_STEP=0.0005 0.0005s
Change simulation time and simulation step length by changing 10.0 and 0.0005;
(3.3) structural change information: first emulation obtains node branch message file .dat, and this document is divided into homepage node branch
Road information and subpage frame node branch information, by modification homepage node branch information and subpage frame node branch information
Data realize the modification to experimental system structure;
(3.4) output requires: output requires to be divided into two classes, and one kind is that snapshot output requires i.e. system a certain moment or multiple moment
All status informations;One kind is that the output requirement i.e. user of data channel needs the output channel name of data, which is being
It is indicated in system topology diagram;Snapshot output requires, that is, passes through the executable file .exe generated in initial emulation, setting
Snapshot, single/multiple snapshot, single snap shot time, multiple snapshot step-length;There is corresponding prompt in executable file .exe,
Option is filled according to prompt to be configured;And data output channel output requires the content for output processing, as selected appoints
One channel data carries out output and shows;
Automatic simulation will can be carried out after above-mentioned four kinds of data inputs;
(4) automatic simulation: automatic simulation includes single automatic simulation and multiple automatic simulation, i.e., the member provided for a certain user
Part parameter, system parameter, structural change information, output require once to be emulated or Multi simulation running, primary emulation are used for single
The case where above- mentioned information that a user provides are fixed value, the above- mentioned information that Multi simulation running is provided for single user be one group
The information changed in a certain range, user wish by carrying out the case where Multi simulation running carries out optimizing from the multiple groups result of output;
Automatic simulation is realized by the executable file .exe in the operation file that generates in emulating for the first time, by executable text
The selection of part .exe automatic simulation number carries out the selection of single/multiple automatic simulation, passes through executable file after the completion of selection
.exe automatic simulation is carried out, and generates new operation file, the snapshot document that user is required is stored in file corresponding to the user
In folder;
(5) autodraft: situation A: user needs calculation server help and generates variogram, then in simulation process, passes through
The interface function of PSCAD/EMTDC and mapping software is called, and is required to be that user needs data according to the output of the data channel of user
Output channel name, title is indicated in system topology figure, corresponding mapping software is utilized to generate corresponding figure;It is no
Then, it is directly entered in next step, and in (8) i.e. situation B, executes the Automatic Drawing based on client computer terminal;
(6) automatic output data: mention that it includes requirement of two classes in output requires: the output of summed data channel is wanted in snapshot output
It is required that wherein the output requirement of data channel is the output channel name that user needs data, by title in system topology figure
In indicate;It requires to be directed to demand of the different user to simulation result according to data channel output, passes through reflecting in operation file
It penetrates file .map or output channel configuration file .inf performs corresponding processing data;
Partial data in output file .out is as follows:
Wherein first it is classified as simulation time, two, three column are respectively the first and second output channels corresponding with simulation time
Data, output channel data column to put in order sort according to output channel configuration information, mapped file .map with
Output channel configuration information is contained in output channel configuration file .inf, the output channel configuration information format is as follows:
PGB (1) Output Desc=" Vc " Group=" Main " Max=2.0 Min=-2.0 Units=" KV "
Wherein " 1 " in " PGB (1) " represents the sequence of the output channel, and " Output " shows that it is output channel, " Desc
" Vc " in=" Vc " " is the name of output channel, and " Group=" Main " " shows that the output channel is located at main interface, " Max
=2.0 Min=-2.0 " are the maximin of the output channel, and " Units=" KV " " is the output channel output data
Unit;It is automatically found the channel name that user specifies data output according to output channel configuration information, data output where determining it
Columns in file .out is automatically exported to first row time and the column data and the use using emulation data processing subprogram
It in text file corresponding to family, and is saved into file corresponding with the user automatically, data output at this time is completed;
(7) automatic to send: at calculation server end, output data corresponding with user and figure are obtained by step (6), and
It saves into the specified folder of client;Examine and judge whether to have completed the data inputting of all users, automatic simulation,
Automatic Drafting, automaticdata output and data save, if completed, will be counted by " network data exchange program code "
Be transmitted in corresponding client computer terminal according to file, and to client computer terminal " task is completed " feedback and in visitor
Family end provides prompt, including text prompt, and sudden strain of a muscle, which is turned off the light, stops flashing, the specific sound of buzzer;The emulation of calculation server end terminates
Mark reactivates, and detects whether still have untreated user to apply;If so, then local reading is next has generated " number of users
According to application list ", carry out the simulation process for another user;
(8) client process: the Simulation result data that will be received receives data processing subprogram by user terminal and is stored in client
On computer, and according to user's needs, is drawn by client plotting subroutine and export result figure;It transfers data to simultaneously
Coupled any digital quantity revolving die analog quantity conversion equipment generates analog quantity change curve, for user from test equipment
Observation and preservation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610793179.XA CN106407515B (en) | 2016-08-31 | 2016-08-31 | A method of the electric information virtual experimental based on PC machine platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610793179.XA CN106407515B (en) | 2016-08-31 | 2016-08-31 | A method of the electric information virtual experimental based on PC machine platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106407515A CN106407515A (en) | 2017-02-15 |
CN106407515B true CN106407515B (en) | 2019-11-12 |
Family
ID=58001034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610793179.XA Active CN106407515B (en) | 2016-08-31 | 2016-08-31 | A method of the electric information virtual experimental based on PC machine platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106407515B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110059380B (en) * | 2019-04-03 | 2022-09-13 | 武汉同立方智能科技有限公司 | Simulink-based electrical education three-dimensional virtual simulation method |
CN113408235A (en) * | 2020-03-17 | 2021-09-17 | 北大方正集团有限公司 | Parameter processing method, system and computer readable storage medium |
CN114077787B (en) * | 2021-10-21 | 2024-04-16 | 国网江西省电力有限公司萍乡供电分公司 | Automatic parameter setting method for PSCAD model element |
CN116522696B (en) * | 2023-07-05 | 2023-09-05 | 西安高压电器研究院股份有限公司 | Simulation method and device of capacity test loop, electronic equipment and storage medium |
CN117473798B (en) * | 2023-12-26 | 2024-05-14 | 国家超级计算天津中心 | Simulation project management method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996271A (en) * | 2010-08-12 | 2011-03-30 | 武汉大学 | Software interface for automatically generating simulation calculation model of PSCAD power system |
CN103838921A (en) * | 2014-02-13 | 2014-06-04 | 华北电力大学(保定) | PSCAD-EMTDC simulation model automatic generation method |
-
2016
- 2016-08-31 CN CN201610793179.XA patent/CN106407515B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996271A (en) * | 2010-08-12 | 2011-03-30 | 武汉大学 | Software interface for automatically generating simulation calculation model of PSCAD power system |
CN103838921A (en) * | 2014-02-13 | 2014-06-04 | 华北电力大学(保定) | PSCAD-EMTDC simulation model automatic generation method |
Non-Patent Citations (2)
Title |
---|
基于EMTDC_Pscad的同步电机建模仿真研究;邢剑等;《船电技术》;20121115;第32卷(第11期);第5-8页 * |
基于PSCAD_EMTDC的大规模交直流系统快速建模及有效性分析;许烽等;《高电压技术》;20131130;第39卷(第11期);第2762-2772页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106407515A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106407515B (en) | A method of the electric information virtual experimental based on PC machine platform | |
CN108958736A (en) | Page generation method, device, electronic equipment and computer-readable medium | |
CN111159951A (en) | ABAQUS finite element and boundary element-based coupling method | |
CN103019104A (en) | Visual process control system configuration simulation method | |
CN111708641A (en) | Memory management method, device and equipment and computer readable storage medium | |
CN108182854B (en) | PLC teaching experiment method for multi-person collaborative simulation of industrial system control process | |
Walker et al. | MATRIX x: A data analysis, system identification, control design and simulation package | |
CN111143223A (en) | Server pressure testing method and device | |
CN109039683A (en) | A kind of arranging service method and system | |
CN108877806B (en) | Test verification system for test instruction type voice control system | |
CN114415498A (en) | Generator excitation device PID parameter off-line setting method | |
CN113591219A (en) | Multi-working-condition CAE transient fatigue analysis loading method for whole vehicle | |
Zhang et al. | Educational software process improvement model and strategy | |
Berry et al. | Real time simulation of power system transient behaviour | |
JPH06149925A (en) | Circuit simulator | |
CN109241551A (en) | The persistence method of arch dam pouring construction simulation object | |
Bhalla et al. | Genesis: a neuronal simulation system | |
Ge et al. | Application and Practice of Remote Measurement and Control Platform in the Experiment Teaching Course of “Data Acquisition and Interface Technology” | |
CN110377971A (en) | A kind of chip drives EQ value optimal value determines method and device | |
CN109542790A (en) | A kind of automated testing method and system of pressure test | |
Nissen et al. | A practical guide for the creation of random number sequences from aggregated correlation data for multi-agent simulations | |
Clarke et al. | Planned developments in building energy simulation | |
Kootsey | Future directions in computer simulation | |
CN112163027B (en) | Django and LaTeX-based mathematical test question and paper combining system and method | |
Wang | Application of Virtual instrument in demonstration experiment of Electronic 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 |