Summary of the invention
In view of this, the invention provides a kind of method generating PSCAD/EMTDC power system simulation model, so that the data file of existing PSS/E form is directly converted to the data layout that can run on PSCAD/EMTDC electromagnetic transients program, and then realize the object of AC and DC power system being carried out to efficiently and accurately simulation analysis.
For achieving the above object, the invention provides following technical scheme:
Generate a method for PSCAD/EMTDC power system simulation model, comprising:
Data encasement flow process: according to PSS/E flow data file, extracts and calculates electric power networks link information and static power component parameters; According to PSS/E dynamic data file, extract and calculate dynamic power component parameters; According to power system network topology file, extract and calculate electric power networks layout information;
Model Establishing process: according to described static power component parameters and the automatic generating power system component models of described dynamic power component parameters; According to described static power component parameters and described electric power networks layout information, according to the rule segmentation power system network module preset, according to actual emulation under the coordinate system in power system network layout information and PSCAD/EMTDC environment described model information between coordinate transformation algorithm generate the sub-network module of autoplacement under PSCAD/EMTDC environment, and each sub-network model calling information after record segmentation;
Model generation flow process: according to the link information of described electric power networks link information and described sub-network module, the sub-network module good to autoplacement and the component models self routing automatically generated.
Optionally, described electric power networks topology file is obtained through planar and coordinatograph by actual plant stand geographic position, comprises the layout information of all plant stands in electric system.
Optionally, described automatic generating power system component models, comprising:
Adopt the automatic generating power system component models of MATLAB programming language.
Optionally, described segmentation power system network module, obtains the sub-network module of autoplacement and the link information of each sub-network module, comprising:
In conjunction with described static power component parameters, actual area and voltage criterion, according to the rule segmentation power system network module preset, and the link information of each sub-network module range information recorded after segmentation and the model information comprised and each sub-network module;
According to the difference between the described model information coordinate system of actual emulation under the coordinate system in described power system network layout information and PSCAD/EMTDC environment, calculate and obtain coordinate transformation algorithm;
According to described coordinate transformation algorithm each sub-network module of model information autoplacement with each sub-network module.
Optionally, described segmentation mixed-media network modules mixed-media, comprising:
According to the plant stand area information in static power component parameters, the plant stand containing same zone thresholding is divided in a regions module;
According to voltage criterion, classifying and dividing is carried out to the plant stand of different electric pressure.
Optionally, described sub-network module to having split and the component models self routing automatically generated, comprising:
Straight line connected mode self routing is adopted between each sub-network module described;
The component models of described sub-network inside modules adopts two break connecting line mode self routings.
Optionally, described sub-network module to having split and the component models self routing automatically generated, comprising:
Calculate plant stand distance criterion in sub-network module;
Judge whether the air line distance between two plant stands is greater than described distance criterion;
If not, described two plant stands adopt two break connection modes to connect;
If so, the straight line access path judging described two plant stands whether with already present crossing elimination; As do not intersected, described two plant stands adopt two break connection modes to connect; If there is intersection, component models identical with self title respectively for described two plant stands is connected.
Known via above-mentioned technical scheme, compared with prior art, the embodiment of the invention discloses a kind of method generating PSCAD/EMTDC power system simulation model, described method adopts the data file of PSS/E form, extract the parameter calculating and set up PSCAD/EMTDC power system simulation model and need, then power system network module is split, and by the sub-network module of parameter autoplacement under corresponding coordinate mapping algorithm generates PSCAD/EMTDC environment, finally in described sub-network intermodule and module, carry out self routing, realize the foundation of PSCAD/EMTDC power system simulation model.This sets up the method for PSCAD/EMTDC power system simulation model, can according to the optimum configurations requirement of PSCAD/EMTDC electromagnetic transients program, carry out corresponding data conversion and the data after conversion are inputted PSCAD/EMTDC electromagnetic transients program, the PSCAD/EMTDC power system simulation model of generation can realize simulation analysis AC and DC power system being carried out to efficiently and accurately.
Embodiment
For the purpose of quoting and know, the explanation of the technical term hereinafter used, write a Chinese character in simplified form or abridge and be summarized as follows:
PSS/E:Powersystemsimulator/engineering, the simulation analysis software of a outstanding Engineering Oriented reality.
PSCAD: one power system simulation instrument race based on figure.
EMTDC: a set of electro-magnetic transient simulator program based on software, can be called by PSCAD.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the disclosed flowage structure figure generating PSCAD/EMTDC power system simulation model of the embodiment of the present invention, Fig. 2 is the disclosed method flow diagram generating PSCAD/EMTDC power system simulation model embodiment illustrated in fig. 1, shown in Fig. 1 and Fig. 2, the method for described generation PSCAD/EMTDC power system simulation model can comprise:
Step 201: generate electric power networks link information, static power component parameters, dynamic power component parameters and electric power networks layout information.
Step 201 can be called data encasement flow process, is specially: according to PSS/E flow data file, extracts and calculates electric power networks link information and static power component parameters; According to PSS/E dynamic data file, extract and calculate dynamic power component parameters; According to power system network topology file, extract and calculate electric power networks layout information.
Wherein, flow data file is the file that software PSS/E can directly derive, the network Power Flow Informations such as inner node voltage containing whole electric system electrical network and node phase angle.Described static power component parameters and dynamic power component parameters are also the files that software PSS/E can directly derive, and static power component parameters is used for the automatic modeling of static power system element, comprises the information such as circuit, load and transformer; Dynamic power component parameters is used for the automatic modeling of dynamic power system element, comprises the relevant informations such as generator, magnetizing exciter, speed regulator and power system stabilizer, PSS.
Step 201 is mainly in order to obtain the data parameters of the power system simulation model needs setting up PSCAD/EMTDC.Because the data of PSS/E flow data file and PSS/E dynamic data file inside all arrange according to set form, so functions such as fgets and strread adopting MATLAB programming language to contain, the selective extraction of desired data can be realized easily, the node serial number information extracted from flow data file is directly converted to electric power networks link information.
Electric power networks topology file as the prior art, is according to the information of each plant stand of practical power systems by manually working out, and is obtained, comprise the layout information of all plant stands in electric system by actual plant stand geographic position through planar and coordinatograph.Its method regards each plant stand of electric system as one without size point, is arranged on a two dimensional surface, obtains electrical network distribution plane figure according to the actual geographic position tiling of plant stand.An optional embodiment is that the upper left corner of electrical network distribution plane figure is decided to be true origin, and the downward positive dirction respectively as X-axis and Y-axis, can obtain the coordinate figure of each plant stand under this coordinate system to the right.Illustrate, can see Fig. 3, Fig. 3 14 node system electrical network flat distribution maps disclosed in the embodiment of the present invention.Distribution plots after Fig. 4 14 node system coordinatographs shown in Fig. 3 disclosed in the embodiment of the present invention, according to above-mentioned establishment of coordinate system method, can obtain plant stand-coordinate corresponding relation as shown in Figure 4.The numbering of each plant stand and respective coordinates are respectively according to first X-axis from small to large, Y-axis putting in order from small to large, enrolls data file successively, can obtain electric power networks topology file again, read the parameter information in above-mentioned file, electric power networks layout information can be formed.
Step 202: the sub-network module generating sub-network model calling information and autoplacement.
Step 202 can be called model Establishing process, is specially: according to described static power component parameters and the automatic generating power system component models of described dynamic power component parameters; According to described static power component parameters and described electric power networks layout information, according to the rule segmentation power system network module preset, according to actual emulation under the coordinate system in power system network layout information and PSCAD/EMTDC environment described model information between coordinate transformation algorithm generate the sub-network module of autoplacement under PSCAD/EMTDC environment, and each sub-network model calling information after record segmentation.
Wherein, power system component model specifically can adopt MATLAB programming language, according to described static power component parameters and the automatic generating power system component models of described dynamic power component parameters.Described component models can be called in follow-up self routing flow process.PSCAD/EMTDC simulation document can be opened in the form of text, text structure with emulate message, component module definition and module level distribution order be arranged in order.Each specific component module and parameter thereof can write with set form, thus automatic producing element model.
In a schematic example, the detailed process of segmentation power system network module can be the flowage structure figure of disclosed segmentation power system network module embodiment illustrated in fig. 1 see Fig. 5, Fig. 5.Wherein in dotted line frame content for specifically to split transfer process.Shown in Figure 5, segmentation power system network module specifically can comprise: in conjunction with described static power component parameters, actual area and voltage criterion, according to the rule segmentation power system network module preset, and each sub-network module range information after record segmentation and the model information comprised thereof and each sub-network model calling information; According to the difference between the described model information coordinate system of actual emulation under the coordinate system in described power system network layout information and PSCAD/EMTDC environment, calculate and obtain coordinate transformation algorithm; According to described coordinate transformation algorithm each sub-network module of model information autoplacement with each sub-network module.
Wherein, described sub-network model calling information is the information that electric power networks intercommunicates between each sub-network module after over-segmentation; The concrete sub-network module frame that described sub-network module range information is formed after can representing mixed-media network modules mixed-media segmentation; After described model information represents mixed-media network modules mixed-media segmentation, the station information that each sub-network inside modules comprises.
Wherein, described segmentation mixed-media network modules mixed-media, specifically can comprise according to the plant stand area information in static power component parameters, the plant stand containing same zone thresholding is divided in a regions module; According to voltage criterion, classifying and dividing is carried out to the plant stand of different electric pressure.
In order to ensure that in the final PSCAD/EMTDC realistic model generated, plant stand is corresponding with actual plant stand position, to be conducive to electric system researchist to the assurance of overall network framework and operation, following methods is adopted to carry out coordinate conversion: first to set each plant stand and comprise the circuit, transformer, generator, load and the parallel reactive compensator that are connected with its bus.Because the element location in each PSCAD/EMTDC page also adopts XY coordinated manner, namely the upper left corner is true origin, be respectively the coordinate system of X-axis and Y-axis positive dirction to the right downwards, therefore, in order to distinguish existing XY coordinate system under XY coordinate system in electric power networks layout information of the present invention and PSCAD/EMTDC, coordinate system in electric power networks layout information is set to XYA coordinate system, and the coordinate system under PSCAD/EMTDC is set to XYB coordinate system.Under XYB coordinate system, owing to adopting above-mentioned plant stand structure, the horizontal and vertical length of each plant stand can be expressed as DX and DY, can not process as a dimensionless point, and under XYA coordinate system, each plant stand is all considered as one without size point, therefore, regard as unit length on XYA coordinate bottom rail axis of ordinates as conversion method using DX and DY, utilize the model information containing sub-network module plant stand parameter information, coordinate transform is carried out to electric power networks layout information.In each sub-network inside modules, utilize the coordinate figure after conversion, plant stand is put into corresponding coordinate position, the sub-network module of autoplacement can be obtained.
Step 203: self routing.
Step 203 can be called model generation flow process, specifically comprises: according to the link information of described electric power networks link information and described sub-network module, the sub-network module good to autoplacement and the component models self routing automatically generated.
Before self routing, through step 201 and step 202, multiple sub-network module has been comprised in PSCAD/EMTDC power system simulation model, also layout is complete for the plant stand of each sub-network inside modules, and the component models such as each plant stand circuit, transformer, generator and load of comprising has generated, the parameter of mating with each component models has also inputted, and only needs the good line of cloth, just generates complete PSCAD/EMTDC power system simulation model.
Owing to PSCAD/EMTDC software Graphics interface can only be made the broken line connecting line at 90 ° of angles, consider the succinct and unified of overall page, two break connecting line modes shown in Fig. 6 are adopted to carry out network layout herein, Fig. 6 two break formula connection diagrams between plant stand disclosed in the embodiment of the present invention.Fig. 6 shows, no matter other plant stands are in which orientation of plant stand i, and both all can adopt the mode of two break connecting lines to be connected, and every bar connecting line is determined by four end points: starting point, break 1, break 2, terminal.If now made n bar connecting line, when (n+1)th, work, circuit should avoid a fixed 4n coordinate points, in case occur between circuit to connect situation, the method that program travels through respectively by xy by mistake, reduces program execution time.
According to the differentiation between sub-network inside modules and sub-network module, self routing can be divided into the wiring of sub-network inside modules to connect up with sub-network module-external.Because the annexation between module is comparatively simple, module-external wiring can adopt the mode of direct line to realize self routing.There is more component models in inside modules, if directly adopt two break connected modes, although also can reach the effect of self routing, overall routing is comparatively chaotic, is unfavorable for that model debugging and simulation result are observed.Neat for reaching inside modules wiring, debug object easily, the present invention adopts following steps:
Calculate plant stand distance criterion in sub-network module; Judge whether the air line distance between two plant stands is greater than described distance criterion; If not, described two plant stands adopt two break connection modes to connect; If so, the straight line access path judging described two plant stands whether with already present crossing elimination; As do not intersected, described two plant stands adopt two break connection modes to connect; If there is intersection, component models identical with self title respectively for described two plant stands is connected.
Said process can be specifically: 1. utilize the air line distance between each plant stand of the coordinate information of plant stand calculating sub-network inside modules, plant stand distance criterion can be obtained according to formula (1), connection distance between two plant stands is less than distance criterion L, directly adopts two break connected mode wirings.Otherwise, adopt step 2.
Formula (1)
In formula, L is sub-network inside modules plant stand distance criterion, l
ifor the air line distance between any two plant stands, n is that in book mixed-media network modules mixed-media, between each plant stand, connecting line is total, and Δ l is distance criterion free adjustment amount, can set according to actual conditions.
2. the connection distance between two plant stands is greater than distance criterion L, needs to carry out cross spider judgement, if the access path of two plant stands and already present connecting line crossover phenomenon do not occur, can directly adopt two break connected modes to carry out self routing; If there is crossover phenomenon, node identification (NodeLabel) element of PSCAD/EMTDC can be adopted, two plant stands occurring to intersect are connected with the node mark component models containing same names respectively.
The concrete recognition methods of cross spider is as follows: each plant stand is regarded as one without scale coordinate point, already present plant stand connecting line does straight-line segment process.Fig. 7 connecting line crossing instances disclosed in the embodiment of the present invention judges schematic diagram, and as shown in Figure 7, wherein solid line represents already present connecting line, and dotted line represents the connecting line of not making.Its starting point and terminal point coordinate are utilized to already present connecting line, lists straight-line equation AX+BY+C=0, slope absolute value is less than to the curve of 0.1, gets slope K=0, A=0; Slope absolute value is greater than to the curve of 10, gets slope K=100, B=0.Elements A, B, C and slope K put into matrix M A successively, store in MB, MC, MK.Suppose there is n bar connecting line at present, when work (n+1)th connecting line, the already present connecting line of more every bar need be traveled through, by the slope of (n+1)th connecting line compared with the slope of front n bar straight line, if slope is more or less the same, can think to there is not intersection between the two, otherwise, calculate both point of crossing coordinates, because this point of crossing is not necessarily present on connecting line, therefore this point of crossing is called virtual point of intersection.By transverse axis or the ordinate of orthogonal axes of the starting point and terminal that compare virtual point of intersection and (n+1)th connecting line segment, whether the section of sentencing exists intersection.If the horizontal ordinate of intersection point or Y value, in the scope of starting point and terminal, represent to exist and intersect; Otherwise, then there is not intersection.
In an application example, by being contrasted by the analysis result of the analysis result of PSS/E program and PSCAD/EMTDC simulated program, judge that both accurate is determined in Steady state and transient state situation.
39 node systems are as shown in Figure 8 realistic models general in electric system research field, containing 39 nodes (plant stand), and 10 generators, 28 circuits.File before and after conversion is carried out steady-state analysis, the Steady-state Parameters contrast table shown in table 1 and table 2 can be obtained.
Front and back node voltage contrast table changed by table 1
Node serial number |
PSS/E(pu) |
PSCAD/EMTDC(pu) |
Relative error |
30 |
1.048 |
1.055 |
0.67% |
31 |
0.982 |
1.023 |
4.18% |
32 |
0.983 |
0.963 |
2.03% |
33 |
0.997 |
1.012 |
1.50% |
34 |
1.012 |
0.980 |
3.16% |
35 |
1.049 |
1.033 |
1.53% |
36 |
1.064 |
1.056 |
0.75% |
37 |
1.028 |
1.037 |
0.88% |
38 |
1.027 |
1.029 |
0.19% |
39 |
1.03 |
1.015 |
1.46% |
Front and back circuit active power contrast table changed by table 2
As can be seen from Table 1 and Table 2, the relative error of voltage relative error and circuit active power is except indivedual, and substantially all within 2% and 1%, the system (PSCAD/EMTDC simulated program) after conversion has accuracy preferably under steady state conditions.
Generator power-angle curve figure under Fig. 9 failure condition disclosed in the embodiment of the present invention, wherein solid line is the simulation curve of PSCAD/EMTDC realistic model, and dotted line is the simulation curve under PSS/E environment.In the t=0.3s moment, near No. 2 plant stands, there is three-phase ground short trouble, failure removal after 0.1s.With the generator on No. 39 nodes for reference machine, the generator's power and angle response curve on No. 32 nodes can be obtained.As can be seen from Figure 9, two curves are very close, particularly lay out at first of merit angle, therefore, can find out that the system after conversion also has accuracy preferably in transient state situation.
Comprehensive above-mentioned Steady state and transient state ruuning situation, can find out that the system after conversion has accuracy preferably.
In the present embodiment, the method of described generation PSCAD/EMTDC power system simulation model adopts the data file of PSS/E form, extract the parameter calculating and set up PSCAD/EMTDC power system simulation model and need, then power system network module is split, and by the sub-network module of parameter autoplacement under corresponding coordinate mapping algorithm generates PSCAD/EMTDC environment, finally in described sub-network intermodule and module, carry out self routing, realize the foundation of PSCAD/EMTDC power system simulation model.This sets up the method for PSCAD/EMTDC power system simulation model, can according to the optimum configurations requirement of PSCAD/EMTDC electromagnetic transients program, change accordingly and the data after conversion are inputted PSCAD/EMTDC electromagnetic transients program, the PSCAD/EMTDC power system simulation model of generation can realize simulation analysis AC and DC power system being carried out to efficiently and accurately.
Also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.