Topology analysis method of PSCAD simulation model

文档序号:1073150 发布日期:2020-10-16 浏览:27次 中文

阅读说明:本技术 一种pscad仿真模型的拓扑解析方法 (Topology analysis method of PSCAD simulation model ) 是由 林俊杰 闫鹤鸣 乐健 林畅 高路 宗炫君 庞辉 刘栋 赵联港 于 2020-06-02 设计创作,主要内容包括:本发明提出了一种PSCAD仿真模型的拓扑解析方法。构建元件坐标解析函数,实现对PSCAD元件库中各个元件坐标的解析,通过给定基准坐标及方向,计算出元件所有外联节点的坐标;构建文件信息提取函数,读取PSCAD仿真模型文件,提取出模型中使用的元件参数和元件实际坐标;构建元件拓扑解析函数,将元件实际坐标进行汇总,并将每个坐标定义为一个节点,得出不同元件的所有外联节点所述的节点序号;将所有元件的参数信息及节点序号进行输出,获取各个元件的参数,通过节点序号得出不同元件所处的相应位置,两者相结合实现PSCAD仿真文件的拓扑解析。本发明能有效PSCAD图形化的仿真模型进行数据化,便于直接进行数据的利用。(The invention provides a topological analysis method of a PSCAD simulation model. Constructing an element coordinate analysis function, realizing the analysis of each element coordinate in a PSCAD element library, and calculating the coordinates of all external nodes of the element by giving a reference coordinate and a direction; establishing a file information extraction function, reading a PSCAD simulation model file, and extracting element parameters and element actual coordinates used in the model; constructing a topology analysis function of the elements, summarizing actual coordinates of the elements, defining each coordinate as a node, and obtaining node serial numbers of all external nodes of different elements; and outputting the parameter information and the node serial numbers of all the elements, acquiring the parameters of all the elements, obtaining the corresponding positions of different elements according to the node serial numbers, and combining the parameter information and the node serial numbers to realize the topology analysis of the PSCAD simulation file. The invention can effectively carry out the digitization of the PSCAD graphical simulation model and is convenient for directly utilizing the data.)

1. A topology analysis method of a PSCAD simulation model is characterized by comprising the following steps:

step 1: constructing an element coordinate analysis function, realizing the analysis of each element coordinate in a PSCAD element library, and calculating the coordinates of all external nodes of the element by giving a reference coordinate and a direction;

step 2: establishing a file information extraction function, reading a PSCAD simulation model file, and extracting element parameters and element actual coordinates used in the model;

and step 3: constructing a topology analysis function of the elements, summarizing actual coordinates of the elements, merging redundant coordinates, defining each merged coordinate set as a node, and obtaining node serial numbers of all external nodes of different elements;

and 4, step 4: and outputting the parameter information and the node serial numbers of all the elements, acquiring the parameters of all the elements, obtaining the corresponding positions of different elements according to the node serial numbers, and combining the parameter information and the node serial numbers to realize the topology analysis of the PSCAD simulation file.

Technical Field

The invention relates to an analysis method of a PSCAD simulation model, in particular to a topological analysis method of the PSCAD simulation model.

Technical Field

The PSCAD simulation software is special simulation software in the power system, and a user can realize simulation in various fields of the power system by using elements in the element library or various self-defined elements through an excellent graphical interface. After the simulation model is built, the PSCAD simulation software solves the model by using a time domain analysis method, and the method has the advantages of high simulation precision, accurate conclusion and the like. Since the solution method of the PSCAD simulation software is fixed, if a user needs to calculate by using another solution method, or verifies the correctness or validity of another solution method, direct comparison cannot be performed. The PSCAD simulation model file is analyzed to obtain the parameters and topological structure information of the elements, so that data can be conveniently provided for verifying the model by other solving methods.

Disclosure of Invention

The invention aims to provide a topological analysis method of a PSCAD simulation model.

The technical scheme of the invention is a topological analysis method of a PSCAD simulation model, which comprises the following steps:

step 1: constructing an element coordinate analysis function, realizing the analysis of each element coordinate in a PSCAD element library, and calculating the coordinates of all external nodes of the element by giving a reference coordinate and a direction;

step 2: establishing a file information extraction function, reading a PSCAD simulation model file, and extracting element parameters and element actual coordinates used in the model;

and step 3: constructing a topology analysis function of the elements, summarizing actual coordinates of the elements, merging redundant coordinates, defining each merged coordinate set as a node, and obtaining node serial numbers of all external nodes of different elements;

and 4, step 4: and outputting the parameter information and the node serial numbers of all the elements, acquiring the parameters of all the elements, obtaining the corresponding positions of different elements according to the node serial numbers, and combining the parameter information and the node serial numbers to realize the topology analysis of the PSCAD simulation file.

The invention has the beneficial effects that:

the element parameters and the topological structure of the PSCAD simulation model are obtained through analysis of the PSCAD simulation model, so that data can be recycled, and the data can be conveniently led into other systems for testing.

The invention is further described with reference to the following figures.

Drawings

FIG. 1 is an illustration of a reference node, a component orientation, and an outlying node of a typical component in a PSCAD component library of the present invention;

FIG. 2 is a schematic illustration of the element of FIG. 1 of the present invention rotated 90 to the right;

FIG. 3 is a schematic diagram of a simple PSCAD simulation model of the present invention;

FIG. 4 is a diagram illustrating the result of extracting information from FIG. 3 according to the present invention;

FIG. 5 is a set of coordinates of all of the elements of FIG. 3 in accordance with the present invention;

FIG. 6 is a block diagram of the coordinate set update with redundant nodes removed according to the present invention;

FIG. 7 is a set of independent nodes after redundant node removal by the node of FIG. 5 in accordance with the present invention;

FIG. 8 is a labeled diagram of nodes of various components of the simulation model of FIG. 3 according to the present invention.

Detailed Description

And (3) for the step 1, constructing an element coordinate analysis function, realizing the analysis of each element coordinate in the PSCAD element library, and calculating the coordinates of all external nodes of the element by giving a reference coordinate and a direction. The specific embodiment is as follows.

Step 1 is a pre-analysis step of a topological analysis model of a PSCAD simulation model, and aims to analyze elements in an element library carried in PSCAD simulation software. The components in the component library are illustrated by taking a typical component as an example, and the reference coordinates, the directions and the external nodes are defined as shown in fig. 1.

As can be seen in fig. 1, the element has one reference coordinate, indicated by a circle, and three circumscribed coordinates, indicated by boxes.

From the component properties, it can be seen that the component reference coordinate is (x, y) ═ 162,90, and the component direction is 0.

The three external coordinates are calculated as follows:

when the orientation of the element is changed, fig. 2 shows the element in fig. 1 turned 90 ° to the right, and it can be seen from the attributes that its reference coordinates (x, y) are still (162,90), and the orientation of the element is changed to 1, and then its three extrinsic coordinate calculation formulas are as follows:

Figure BDA0002520728010000022

for different elements in the element library, corresponding external coordinate analysis functions are required to be compiled according to the reference coordinates and the directions of the elements, and the reason is that the reference coordinates of the elements are only used for displaying the positions of the elements in the topology, and the elements are directly connected with each other through the external coordinates, so that all the external coordinates of the elements need to be obtained firstly.

Different coordinate analysis functions are required to be constructed for different elements and different directions of the same element, and the purpose is to finish the extraction of the actual connection node coordinates of the elements, so that the coordinate analysis functions of different elements are different and are difficult to express by a uniform formula.

Therefore, in the process of analyzing the element coordinates, firstly, what specific element is determined, then, the direction is determined, and then, a corresponding separate analysis function is called to output the node coordinates of the element.

And 2, constructing a file information extraction function, reading a PSCAD simulation model file, and extracting element parameters and actual element coordinates used in the model.

Taking the simulation model shown in fig. 3 as an example, the extracted information is shown in fig. 4.

In fig. 3, it can be seen that the common power supply element, the resistance element, the inductance element, and the ground element are connected by three wires.

It can be seen that the graphical topology program is subjected to preliminary analysis, and element types, coordinates and parameters in the graphical topology program are extracted.

Step 3, constructing a topology analysis function of the elements, summarizing actual coordinates of the elements, merging redundant coordinates, defining each merged coordinate set as a node, and obtaining node serial numbers of all external nodes of different elements;

in fig. 4, the set of all the coordinates is derived as shown in fig. 5.

In fig. 3, there are three conductors connecting the power supply element, the resistance element, the inductance element, and the ground element, respectively.

The coordinates connected by the wires can be regarded as a node, so that the redundant coordinates are removed from the coordinate set shown in fig. 5, the redundant coordinate removal process is shown in fig. 6, and the obtained independent node is shown in fig. 7.

When redundant coordinate removal is performed, two coordinates are considered to be connected and considered to be the same node when they have the following condition.

(1) The coordinates of the two nodes are the same;

(2) the two nodes are connected through a straight line segment;

(3) the two nodes are connected through a broken line segment;

(4) two nodes have a variable name;

in fig. 7, it can be seen that the model has three independent nodes, named node 1, node 2, and node 3, respectively.

According to the coordinates of each element in fig. 4, the coordinate labeling can be performed on the external nodes of each element in the PSCAD simulation model, and the labeling result is shown in fig. 8. As a specific implementation, in fig. 4, it can be seen that the power supply element (source _1) has coordinates of [ (0, 0); (324,216) ], in conjunction with FIG. 7, it can be seen that coordinate (0,0) is located in node 1 (first row) and coordinate (324,216) is located in node 2 (second row), so the independent node numbers across source _1 are [1,2 ]; similarly, the independent node at the two ends of the resistance element is [2,3], the independent node at the two ends of the inductance element is [3,1], and the power element and the resistance element both have the independent node 2, which indicates that the power element and the resistance element are connected with each other.

And 4, outputting the parameter information and the node serial numbers of all the elements, acquiring the parameters of all the elements, obtaining the corresponding positions of different elements according to the node serial numbers, and combining the parameter information and the node serial numbers to realize the topological analysis of the PSCAD simulation file. Through the step, the graphical simulation model is subjected to data output, the parameter information and the node information of each element are output, and the extracted information can be subjected to customized output according to the requirements of users.

According to the method, the wire information and the element information in the PSCAD simulation model are extracted, the redundant nodes are removed, the independent nodes in the topological structure of the simulation model are reserved, then the coordinate information of the elements is combined, the serial numbers of the independent nodes to which the elements belong are determined, and if the serial numbers of the independent nodes to which the two elements belong are consistent, the two elements are proved to be connected. The implementation of the invention can carry out digital output on the graphical information of the PSCAD simulation model, thereby facilitating the secondary development and utilization of data.

The above embodiments are provided only for illustrating the present invention and not for limiting the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and therefore all equivalent technical solutions should also fall within the scope of the present invention, and should be defined by the claims.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种芯片和终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类