The content of the invention
The embodiment of the present invention provides a kind of emulation mode and equipment based on OS2 and SMRT systems.Solving OS2 can not be real
The problem of now real-time transient emulation based on SMRT systems is calculated.
To reach above-mentioned purpose, the embodiment of the present invention is adopted the following technical scheme that:
First aspect includes there is provided a kind of emulation mode based on OS2 and SMRT systems, this method:
DTS in OS2 sends mutual message to JMS systems, and mutual message is used to indicate SMRT systems in SMRT systems
Model in executive control operation, and after executive control operation carry out transient emulation calculating;
JMS systems are converted to mutual message the character string for the JSON forms that SMRT systems can be recognized, and by the JSON
The character string of form is sent to SMRT systems;
SMRT systems according to the character strings of the JSON forms to SMRT model executive control operations, executive control operation it
Transient emulation calculating is carried out afterwards, the result of transient emulation calculating is obtained, and the result that transient emulation is calculated is sent to JMS systems
System;
The result that transient emulation is calculated is converted to E language files by JMS systems, and E language files are sent into OS2
DTS。
Optionally, JMS systems are converted to mutual message the character string for the JSON forms that SMRT systems can be recognized, bag
Include:
Mutual message is converted to SMRT systems according to the mapping table of OS2 models and SMRT models and can recognized by JMS systems
JSON forms character string.
Optionally, the result that transient emulation is calculated is converted to E language files by JMS systems, including:
The result that transient emulation is calculated is converted to E language text by JMS systems according to the mapping table of OS2 models and SMRT models
Part.
Optionally, mutual message includes:At least one in straighforward operation message, remote regulating operation message and failure triggering message
Kind;
Straighforward operation message be used for indicate SMRT systems to SMRT models perform straighforward operation, and perform straighforward operation it
Transient emulation calculating is carried out afterwards.
Remote regulating operation message is used to indicate that SMRT systems perform SMRT models remote regulating operation, and operates it performing remote regulating
Transient emulation calculating is carried out afterwards;
Failure triggering message is used to indicate that SMRT systems perform SMRT models failure trigger action, and is touched performing failure
Transient emulation calculating is carried out after hair operation.
Second aspect includes there is provided a kind of emulator based on OS2 and SMRT systems, the equipment:OS2, SMRT system
With JMS systems;
DTS in OS2 is used to send mutual message to JMS systems, and mutual message is used to indicate SMRT systems to SMRT
Model executive control operation, and the progress transient emulation calculating after executive control operation;
JMS systems are used for the character string that mutual message is converted to the JSON forms that SMRT systems can be recognized, and should
The character string of JSON forms is sent to SMRT systems;
SMRT systems are used for the character string executive control operation according to the JSON forms, are carried out after executive control operation
Transient emulation is calculated, and obtains the result of transient emulation calculating, and the result that transient emulation is calculated is sent to JMS systems;
The result that JMS systems are additionally operable to calculate transient emulation is converted to E language files, and by E language files send to
DTS in OS2.
Optionally, JMS systems are specifically for being converted to mutual message according to the mapping table of OS2 models and SMRT models
The character string for the JSON forms that SMRT systems can be recognized.
Optionally, JMS systems are specifically for the knot that is calculated transient emulation according to the mapping table of OS2 models and SMRT models
Fruit is converted to E language files.
Optionally, mutual message includes:At least one in straighforward operation message, remote regulating operation message and failure triggering message
Kind.
Straighforward operation message be used for indicate SMRT systems to SMRT models perform straighforward operation, and perform straighforward operation it
Transient emulation calculating is carried out afterwards.
Remote regulating operation message is used to indicate that SMRT systems perform SMRT models remote regulating operation, and operates it performing remote regulating
Transient emulation calculating is carried out afterwards;
Failure triggering message is used to indicate that SMRT systems perform SMRT models failure trigger action, and is touched performing failure
Transient emulation calculating is carried out after hair operation.
DTS in emulation mode and equipment provided in an embodiment of the present invention based on OS2 and SMRT systems, OS2 can be by
Mutual message (it is used to indicate the executive control operation in the model of SMRT systems of SMRT systems, and after executive control operation
Carry out transient emulation calculating) send to JMS systems, then JMS systems the mutual message can be converted to SMRT systems can
The character string of the JSON forms of identification, and the character string of the JSON forms is sent to SMRT systems;And SMRT systems can root
According to the character string executive control operation of the JSON forms, transient emulation calculating is carried out after executive control operation, transient state is obtained
The result of simulation calculation, and the result that the transient emulation is calculated sent to JMS systems;And JMS systems can be by the transient state
The result of simulation calculation is converted to E language files, and the E language files are sent into the DTS into OS2.Because JMS systems can be with
DTS in the OS2 mutual messages sent are converted to the character string for the JSON forms that SMRT systems can be recognized, and interaction is reported
Text is sent to SMRT systems, therefore SMRT systems are after the character string of JSON forms is received, can be according to the JSON forms
Character string carry out transient emulation calculating, and the result that transient emulation is calculated is sent to JMS systems, and due to JMS systems
The result that the transient emulation is calculated can be converted to the E language files that the DTS in OS2 can be recognized, therefore the DTS in OS2
Can by the E language files obtain transient emulation calculate result, such embodiment of the present invention can not change OS2 and
On the premise of the existing model of SMRT systems and operation message, the work(of hybrid simulation is realized by DTS the and SMRT systems in OS2
Can, so as to realize that the real-time transient emulation based on SMRT systems is calculated in OS2.
Embodiment
The emulation mode provided in an embodiment of the present invention based on OS2 and SMRT systems and equipment are carried out below in conjunction with the accompanying drawings
It is described in detail.
In embodiments of the present invention, word " exemplary " or " such as " makees example, illustration or explanation for expression.This
Any embodiment or design for being described as " exemplary " or " such as " in inventive embodiments are not necessarily to be construed as ratio
Other embodiments or design more preferably or more advantage.Specifically, word purport using " exemplary " or " such as "
Related notion is being presented in a concrete fashion.
Deficiency based on current OS2 (being specifically the DTS in OS2) in terms of transient emulation, the present invention is intended to provide a kind of
Based on the data interactive method of OS2 and SMRT system hybrid simulations, realized in OS2 temporary during the high-precision real based on SMRT systems
State is emulated.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is retouched in detail
State, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
As shown in figure 1, the emulation mode provided in an embodiment of the present invention based on OS2 and SMRT systems, can include as follows
Step:
DTS in S101, OS2 sends mutual message to JMS systems.
Wherein, mutual message is used to indicate the executive control operation in SMRT models of SMRT systems, and is performing control behaviour
Transient emulation calculating is carried out after work.
In the embodiment of the present invention, it can be controlled by using being clicked in DTS of the teacher or student of the DTS in OS2 in OS2
System operation is sent mutual message to JMS systems with triggering the DTS in OS2.
Control operation can be included in straighforward operation, remote regulating operation or failure trigger action extremely in the embodiment of the present invention
Few one kind.Mutual message can include straighforward operation message, remote regulating operation message and failure triggering message in the embodiment of the present invention
At least one of.Wherein, straighforward operation message is used to indicate that SMRT systems perform SMRT models straighforward operation, and is performing
Transient emulation calculating is carried out after straighforward operation;Remote regulating operation message is used to indicate that SMRT systems perform SMRT models remote regulating behaviour
Make, and transient emulation calculating is carried out after remote regulating operation is performed;Failure triggering message is used to indicate SMRT systems to SMRT moulds
Type performs failure trigger action, and the progress transient emulation calculating after failure trigger action is performed.
Exemplary, after straighforward operation is clicked in DTS of the teacher or student for using the DTS in OS2 in OS2,
DTS in OS2 can send straighforward operation message to JMS systems.Exemplary, the straighforward operation message can be:
{UserName:rcs_super;PassWord:1;StationName:Sieve hole station;equname:Congratulate sieve two wires;
ServiceType:SMRT_YK;status:open}
It can be seen that the entitled rcs_super of user, password is 1, plant stand entitled sieve hole station from the straighforward operation message, if
Standby entitled he sieve two wires, service type be SMRT_YK (i.e. expression service type is remote control) and state of a control is open (i.e. tables
It is unlatching to show state of a control).
It should be noted that the JMS systems in the embodiment of the present invention include two functions, one is model conversion function,
Another is message forwarding capability.Wherein, model conversion refers to that OS2 models are changed with SMRT models mapping relations, message forwarding
Function is mainly based upon Java Message Service (English full name:Java Message Service, abbreviation JSM) realize.Wherein,
JMS is the application programming interfaces on Message Oriented Middleware in a Java platform, between two application programs, or
Message is sent in distributed system, asynchronous communication is carried out.
S102, JMS system are converted to mutual message the character string for the JSON forms that SMRT systems can be recognized.
In the embodiment of the present invention, JMS systems are after the mutual message that the DTS in receiving OS2 is sent, due to JMS systems
System needs the mutual message that the DTS being forwarded to mutual message in SMRT systems, and SMRT system None- identifieds OS2 is sent, because
This JMS system first can be converted to mutual message the character string for the JSON forms that SMRT systems can be recognized, then again will
The character string of JSON forms is sent to SMRT systems (performing following S103).Optionally, JMS systems can be according to OS2 models
Mutual message is converted to the character string of JSON forms with the mapping table of SMRT models.
Optionally, in the embodiment of the present invention, mutual message can be the message of JSON forms.
OS2 models refer to that south electric network is set up based on common information model (Common Information Model, CIM)
A set of description electric power enterprise all main objects, particularly and model of the operation power about object.
SMRT models refer to the model set up in circuit analysis based on modal analysis.
It should be appreciated by those skilled in the art that the mapping relations between OS2 models and SMRT models include same emulation pair
As the mapping relations between the representation in OS2 and the representation in SMRT systems, for the control of simulation object
The representation in OS2 and the mapping relations between the representation in SMRT systems are operated, and for simulation object
Representation of the Transient simulation results in OS2 and the representation in SMRT systems between mapping relations.
Exemplary, the mapping table of OS2 models and SMRT models can be shown same imitative in table 1 as described in Table 1
Mapping relations between representation of the true object in OS2 and the representation in SMRT systems.
Table 1
OS2 models |
SMRT models |
Plant stand name implementor name |
The node 2 of node 1 |
Sieve hole Zhan Heluo two wires |
LUODON50525.HEZHOU50525.2 |
Congratulate the line of sieve one in sieve hole station |
LUODON50525.HEZHOU50525.1 |
…… |
…… |
In table 1, " sieve hole Zhan Heluo two wires " in OS2 models is when being mapped in SMRT models:
“LUODON50525.HEZHOU50525.2”;" congratulating the line of sieve one in sieve hole station " in OS2 models, be when being mapped in SMRT models:
“LUODON50525.HEZHOU50525.1”。
It should be noted that JSON (English full name:Java Script Object Notation) it is a kind of lightweight
Data interchange format.JSON is it used similar to C language family (including C languages using the text formatting of language is totally independent of
Speech, C Plus Plus, C# language, Java language, JavaScript language, Perl language and Python etc.) speech habits,
Therefore JSON is easy to parse and generated, and is a kind of preferable data interchange language.
Exemplary, JMS systems are received after above-mentioned straighforward operation message, can be according to OS2 models and SMRT models
Mapping table by above-mentioned straighforward operation message (i.e. { UserName:rcs_super;PassWord:1;StationName:Sieve hole
Stand;equname:Congratulate sieve two wires;ServiceType:SMRT_YK;status:Open }) be converted to the characters of following JSON forms
String (is referred to as character string 1) in the embodiment of the present invention:
{f_inf.loff:LUODON50525.HEZHOU50525.2}
Wherein, " f_inf. " is message prefix, and loff represents line outage, ":" after in portion identification SMRT models
Specific line information.
S103, JMS system send the character string of the JSON forms to SMRT systems.
S104, SMRT system, to SMRT model executive control operations, are performing control according to the character string of the JSON forms
Transient emulation calculating is carried out after operation, the result of transient emulation calculating is obtained.
S105, SMRT system send the result that transient emulation is calculated to JMS systems.
In the embodiment of the present invention, after the character string for the JSON forms that the transmission of JMS systems is received in SMRT systems, first
Then SMRT systems can calculate execution control behaviour according to the character string of JSON forms to SMRT model executive control operations
Transient emulation calculating is carried out to SMRT models after work, the result of transient emulation calculating, and the knot that transient emulation is calculated is obtained
Fruit is sent to JMS systems.
Optionally, the result that above-mentioned transient emulation is calculated can be SMRT systems to SMRT model executive control operations after
The data section of the whole network (i.e. whole power network) in SMRT models.
Exemplary, SMRT systems receive above-mentioned character string 1, and perform above-mentioned S104 and S105, obtain transient emulation
After the result of calculating, the result that SMRT systems can calculate transient emulation is with the character string (present invention of following JSON forms
It is referred to as character string 2 in embodiment) send to JMS systems.
{YC_L 525.0 LUODON50525.HEZHOU50525.1 1217.0-146.4 12.4;YC_L 525.0
LUODON50525.HEZHOU50525.2 1289.7-157.6 13.1;……}
Wherein, YC_L identifies the circuit in SMRT systems, 525.0 mark voltage class, HEZHOU50 LUODON50 marks
The node at SMRT system lines two ends, last three parts represent active and reactive and electric current respectively.
The result that transient emulation is calculated is converted to E language files by S106, JMS system.
In the embodiment of the present invention JMS systems receive SMRT systems send transient emulation calculate result after, due to
The result that transient emulation is calculated is transmitted to the DTS in OS2 by JMS systems, and the DTS None- identifieds in OS2 are with JSON forms
Character string forms transient emulation calculate result, therefore JMS systems transient emulation can be calculated first result conversion
The E language files that can be recognized for the DTS in OS2, then send the DTS into OS2 by E language files again and (perform following
S107)。
Optionally, the result that JMS systems can calculate transient emulation according to the mapping table of OS2 models and SMRT models turns
It is changed to E language files.
It should be noted that the E language files in the embodiment of the present invention refer to the file write using E language.E language
(also referred to as E linguistic norms) be on the basis of the power system CIM of IEC 61970-301 object-oriented is abstract, for CIM with
Extensible markup language (English full name:Extensible Markup Language, abbreviation XML) effect of mode when being described
A kind of new and effective electric power system data markup language that rate defect is formulated.
Exemplary, JMS systems are received after above-mentioned character string 2, can be according to the mapping of OS2 models and SMRT models
Above-mentioned character string 2 is converted to following E language files by table:
<ACLineSegment>
The active state quantity measurement (0 of@plant stand names implementor name:Invalid 1:Effectively) idle state quantity measurement (0:Invalid 1:
Effectively) circuit current state quantity measurement (0:Invalid 1:Effectively)
Congratulate the 1-146.4 1 12.4 0 of one line of sieve 1217.0 in sieve # hole station
The 1-157.6 1 13.1 0 of sieve # hole Zhan Heluo two wires 1289.7
……
</ACLineSegment>。
S107, JMS system send E language files the DTS into OS2.
After E language files to be sent to JMS systems the DTS into OS2 in the embodiment of the present invention, JMS can be according to the E languages
Say the result that file acquisition transient emulation is calculated.
DTS in emulation mode provided in an embodiment of the present invention based on OS2 and SMRT systems, OS2 can be by interaction report
Text (it is used to indicate SMRT systems to SMRT model executive control operations, and the progress transient emulation meter after executive control operation
Calculate) send to JMS systems, then JMS systems can be converted to the mutual message character string of JSON forms, and by the JSON
The character string of form is sent to SMRT systems;And SMRT systems can according to the character string executive control operations of the JSON forms,
Transient emulation calculating is carried out after executive control operation, the result of transient emulation calculating is obtained, and the transient emulation is calculated
Result send to JMS systems;And JMS systems can be converted to the result that the transient emulation is calculated E language files, and will
The E language files send the DTS into OS2.Because JMS systems can be converted to the mutual messages sent of the DTS in OS2
The character string for the JSON forms that SMRT systems can be recognized, and mutual message is sent to SMRT systems, therefore SMRT systems exist
After the character string for receiving JSON forms, transient emulation calculating can be carried out according to the character string of the JSON forms, and will be temporary
The result of state simulation calculation is sent to JMS systems, and because JMS systems can be converted to the result that the transient emulation is calculated
The E language files that DTS in OS2 can be recognized, therefore DTS in OS2 can pass through the E language files and obtain transient emulation meter
The result of calculation, such embodiment of the present invention can not change the existing model of OS2 and SMRT systems and operation message on the premise of,
The function of hybrid simulation is realized by DTS the and SMRT systems in OS2, so as to be realized in OS2 based on the real-time of SMRT systems
Transient emulation is calculated.
In the embodiment of the present invention, in above-described embodiment so that mutual message is straighforward operation message as an example, carry out exemplary
Explanation.When mutual message is that remote regulating operates message or failure triggering message, above-mentioned S101-S107 side still can be used
Method realizes that the real-time transient emulation based on SMRT systems is calculated in OS2.
Optionally, in the emulation mode provided in an embodiment of the present invention based on OS2 and SMRT systems, the friendship in above-mentioned S101
Exemplary in the case that mutual message is failure triggering message, failure triggering message can be:
{UserName:rcs_super;PassWord:1;StationName:Sieve hole station;equname:Congratulate sieve two wires;
ServiceType:SMRT_FT;faultPhase:ABC;faultDuring:200;faultWeiZhi:0.5;faultType:
Ground connection }
It can be seen that service type is SMRT_FT (representing failure triggering) from failure triggering message, failure is
ABC, trouble duration is 200ms, and abort situation is 50%, and fault type is earth fault.
Exemplary, JMS systems can trigger above-mentioned failure the character string that message is converted to following JSON forms
(being referred to as character string 3 in the embodiment of the present invention):
{ f_inf.tb=0.2;
F_inf.df=0.5;
F_inf.l=LUODON50525.HEZHOU50525.2;
F_inf.rka=0.0000;
F_inf.xka=0.0000;
F_inf.rkb=0.0000;
F_inf.xkb=0.0000;
F_inf.rkc=0.0000;
F_inf.xkc=0.0000;
F_inf.rkg=0.0000;
F_inf.xkg=0.0000 }
Wherein, f_inf. is message prefix, and tb represents the duration, and df represents fault distance, and l represents faulty line, rk
Represent the impedance of each phase respectively with xk.
SMRT systems are received after the character string of above-mentioned JSON forms, can according to the character string trigger failure, and
Trigger failure after, carry out transient emulation calculating, the result that transient emulation is calculated then is sent to JMS systems, finally again by
The result that transient emulation is calculated is converted to E language files and sends the DTS into OS2 by JMS systems.
Optionally, as shown in Fig. 2 the embodiment of the present invention provides a kind of emulator based on OS2 and SMRT systems, this sets
It is standby to include:OS2, SMRT system and JMS systems;
DTS in OS2 is used to send mutual message to JMS systems, and mutual message is used to indicate SMRT systems to SMRT
Model executive control operation, and the progress transient emulation calculating after executive control operation;
JMS systems are used for the character string that mutual message is converted to the JSON forms that SMRT systems can be recognized, and should
The character string of JSON forms is sent to SMRT systems;
SMRT systems are used for the character string executive control operation according to JSON forms, are carried out after executive control operation temporary
State simulation calculation, obtains the result of transient emulation calculating, and the result that transient emulation is calculated is sent to JMS systems;
The result that JMS systems are additionally operable to calculate transient emulation is converted to E language files, and by E language files send to
DTS in OS2.
DTS in emulator provided in an embodiment of the present invention based on OS2 and SMRT systems, OS2 can be by interaction report
Text (it is used to indicate SMRT systems to SMRT model executive control operations, and the progress transient emulation meter after executive control operation
Calculate) send to JMS systems, then JMS systems can be converted to the mutual message character string of JSON forms, and by the JSON
The character string of form is sent to SMRT systems;And SMRT systems can according to the character string executive control operations of the JSON forms,
Transient emulation calculating is carried out after executive control operation, the result of transient emulation calculating is obtained, and the transient emulation is calculated
Result send to JMS systems;And JMS systems can be converted to the result that the transient emulation is calculated E language files, and will
The E language files send the DTS into OS2.Because JMS systems can be converted to the mutual messages sent of the DTS in OS2
The character string for the JSON forms that SMRT systems can be recognized, and mutual message is sent to SMRT systems, therefore SMRT systems exist
After the character string for receiving JSON forms, transient emulation calculating can be carried out according to the character string of the JSON forms, and will be temporary
The result of state simulation calculation is sent to JMS systems, and because JMS systems can be converted to the result that the transient emulation is calculated
The E language files that DTS in OS2 can be recognized, therefore DTS in OS2 can pass through the E language files and obtain transient emulation meter
The result of calculation, such embodiment of the present invention can not change the existing model of OS2 and SMRT systems and operation message on the premise of,
The function of hybrid simulation is realized by DTS the and SMRT systems in OS2, so as to be realized in OS2 based on the real-time of SMRT systems
Transient emulation is calculated.
Optionally, JMS systems are specifically for being converted to mutual message according to the mapping table of OS2 models and SMRT models
The character string for the JSON forms that SMRT systems can be recognized.
Optionally, JMS systems are specifically for the knot that is calculated transient emulation according to the mapping table of OS2 models and SMRT models
Fruit is converted to E language files.
Optionally, mutual message includes:At least one in straighforward operation message, remote regulating operation message and failure triggering message
Kind.
Straighforward operation message be used for indicate SMRT systems to SMRT models perform straighforward operation, and perform straighforward operation it
Transient emulation calculating is carried out afterwards;
Remote regulating operation message is used to indicate that SMRT systems perform SMRT models remote regulating operation, and operates it performing remote regulating
Transient emulation calculating is carried out afterwards;
Failure triggering message is used to indicate that SMRT systems perform SMRT models failure trigger action, and is touched performing failure
Transient emulation calculating is carried out after hair operation.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.