Multi-platform power simulation model automatic conversion system and method
The automated multi-platform power simulation model conversion system solves the problems of long construction time, low efficiency and high error rate of power simulation models in the existing technology, and realizes efficient and accurate automated generation and analysis of power simulation models.
Patent Information
- Application Number
- CN202511571043.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-30
- Publication Date
- 2026-01-27
AI Technical Summary
Existing power system simulation software suffers from problems such as repetitive work, low efficiency in topology building, susceptibility to errors, poor readability of drawings, and high barriers to entry during the modeling process, resulting in long simulation model building times and low efficiency.
This paper provides an automatic conversion system and method for multi-platform power simulation models. The system sets the appearance parameters of components through a template construction module, initializes the default parameters through a parameter setting module, determines the connection relationship through a component connection module, and automatically draws the simulation model through a model drawing module, thereby achieving one-click automated modeling.
It improves modeling efficiency, reduces human error, lowers the error rate, ensures model accuracy and consistency, supports hierarchical modeling and multi-level power grid structures, enhances system scalability, and simplifies the simulation analysis process.
Smart Images

Figure CN121413245A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart grid and power transmission and distribution system simulation technology, and in particular to an automatic conversion system and method for multi-platform power simulation models. Background Technology
[0002] With the continuous expansion of power system scale and the increasing complexity of its operating characteristics, digital simulation has become an indispensable core tool for planning and design, operation scheduling, and fault analysis. Existing mainstream power system simulation software (such as PSCAD, DIgSILENT PowerFactory, PSS / E, MATPOWER, etc.) generally adopts a modeling method of "component library + graphical drag-and-drop + manual connection": users need to select generators, transformers, lines, loads, reactive power compensation, protection, and other models one by one from the component library, drag and drop them onto the canvas, and then manually complete the electrical connections and parameter input to finally form a topology diagram. Although this method is more intuitive than earlier text input, it has revealed the following prominent problems in practical engineering applications: 1. Starting from zero in modeling: Each modeling process must start from a blank canvas, resulting in a high proportion of repetitive work.
[0003] 2. Low efficiency in topology construction: Large-scale power grid simulation models often require dragging hundreds of components and connecting them thousands of times, with mechanical operations alone accounting for 30%–50% of the entire simulation cycle.
[0004] 3. Lack of layout optimization: Manual placement often results in overlapping components, intersecting wires, inconsistent busbar lengths, and chaotic partitioning, leading to poor drawing readability and difficulties in later maintenance.
[0005] 4. High error-proneness: The large number of components in the model makes it easy to make basic errors such as incorrect or missing connections, conflicting node numbers, and confused parameter units during manual modeling. These errors require repeated verification and further extend the project time.
[0006] 5. High learning curve: The wide variety of components and parameters makes it difficult for beginners to learn, leading to a high error rate and further reducing efficiency.
[0007] Therefore, how to improve the existing technology of power simulation model building, which suffers from long construction time, low efficiency and high error rate, is an urgent technical problem to be solved in this field. Summary of the Invention
[0008] Based on this, the purpose of this application is to provide an automatic conversion system and method for multi-platform power simulation models to solve at least one of the technical problems mentioned in the background art.
[0009] Firstly, this application provides an automatic conversion system for multi-platform power simulation models, including: The template building module is used to set the appearance parameters of each component in the interface in order to build static templates for the components; The parameter setting module is used to initialize the default parameters of each component; The component connection module is used to determine the component library corresponding to each line level, as well as the connection relationship between the components in the component library; The model drawing module is used to select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component, and the connection relationship between the components.
[0010] Furthermore, the template construction module includes, in parallel arrangement, size setting units, shape setting units, port setting units, position setting units, type setting units, and name setting units: The dimension setting unit is used to set the initial dimension data of each component; The shape setting unit is used to set the shape representation of each component; Port setting unit, used to set the port parameters of each component; The position setting unit is used to set the position information of each component; The type setting unit is used to set the type of each component; The naming setting unit is used to set the initial name of each component.
[0011] Furthermore, the shape setting unit includes a shape display component, and a path setting component and a text setting component connected to the output of the shape display component: Shape display component, used to determine how the shape of the component is displayed; display method, including any one or more of path display or text display; The path setting component is used to set the specific values of the path, as well as the thickness, fill content, and edge content color of each path when the display mode is path display; The text setting component is used to set specific values for the text, as well as the size, color, and position of the text relative to the element when the display mode is text display.
[0012] Furthermore, the port setting unit includes a port quantity component, a port direction component, and a port positioning component connected in sequence, as well as an absolute positioning component and a relative positioning component connected to the output of the port positioning component: The port quantity component is used to set the number of ports for each component; Port direction component, used to configure the data direction of each port; Port positioning component, used to determine the positioning method of component ports; positioning method includes any one or more of absolute positioning or relative positioning; The absolute positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the coordinates of the positioning point in the component coordinate system when the positioning method is absolute positioning. The relative positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the position ratio of the positioning point on the surface of the component.
[0013] Furthermore, the parameter setting module includes a parameter name setting unit, a parameter type setting unit, a parameter value setting unit, and a selection list setting unit that are set in parallel. The parameter name setting unit is used to set the variable name for each parameter; The parameter type setting unit is used to set the storage format and data calculation type of each parameter; The parameter value setting unit is used to set the default value of each parameter; The selection list setting unit is used to set a parameter selection list, which contains several selectable parameters.
[0014] Furthermore, the component connection module includes a component library construction unit, a component library initialization unit, and a wiring unit connected in sequence: The component library construction unit is used to classify the components corresponding to each line level and obtain the component library corresponding to each line level. The component library initialization unit is used to define the type of each component, the ID of each component, the number of ports of each component, and the ID, data type and name of each port; The connection unit is used to determine the connection relationship between each element based on the starting element ID, the port ID of the starting element, the ending element ID, and the port ID of the ending element.
[0015] Furthermore, the model drawing module includes a component formatting unit, a busbar processing unit, a first drawing unit, a position adjustment unit, and a second drawing unit connected in sequence. The component formatting unit is used to instantiate the corresponding component based on the component static template, default parameters and connection relationships of each component, and obtain the component instance; The bus processing unit is used to obtain the number of ports connected to the bus in each line level based on the component instance, determine the bus length, and the position of each port on the bus; The first drawing unit is used to draw the component instances that are directly connected to each busbar, thus obtaining the model skeleton; The position adjustment unit is used to adjust the position of each bus and the component instances directly connected to it according to the level of each bus and the number of component instances among the buses of the same level. The second drawing unit is used to draw the power simulation model based on the model skeleton, the current positions of each bus and each component instance, and the port information connecting each component instance and the bus.
[0016] Furthermore, the multi-platform power simulation model automatic conversion system also includes: The digital model adding module includes a selection unit, an encapsulation unit, a trigger condition setting unit, and a judgment unit connected in sequence; The selection unit is used to select several components in the drawn power simulation model; A packaging unit is used to package selected components into a sub-model. The trigger condition setting unit is used to set trigger conditions for the encapsulated sub-model.
[0017] Secondly, this application also provides an automatic conversion method for multi-platform power simulation models, including: Set the appearance parameters of each component in the interface to build a static template for the component; Initialize the default parameters of each component; Determine the component library corresponding to each line level, and the connection relationship between the components in the component library; Select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component, and the connection relationship between the components.
[0018] Further steps in creating the power simulation model include: Based on the component's static template, default parameters, and connection relationships, instantiate the corresponding component to obtain a component instance; Based on the component examples, the number of ports connected to the busbar in each line level is obtained, the busbar length and the position of each port on the busbar are determined; Draw the component instances that are directly connected to each busbar to obtain the model skeleton; Adjust the position of each busbar and the component instances directly connected to it based on the busbar's level and the number of component instances among buses of the same level. The power simulation model is drawn based on the model skeleton, the current positions of each bus and component instance, and the port information connecting each component instance and the bus.
[0019] This invention provides an automatic conversion system and method for multi-platform power simulation models. A template construction module sets the appearance parameters of each component in the interface to build static component templates. By uniformly setting appearance parameters (such as size, shape, port position, etc.), it ensures that all components have a consistent style on the interface, resulting in high visual consistency. Furthermore, static templates can be called multiple times, avoiding redrawing, reducing modeling workload and human error, and improving work efficiency. A parameter setting module initializes the default parameters of each component, allowing users to automatically load reasonable default values (such as rated voltage, impedance, capacity) during the modeling process, improving modeling efficiency. Preset default parameters are based on engineering experience or standard data, avoiding parameter anomalies due to manual errors or insufficient knowledge, thus reducing human error and improving model accuracy. In the early simulation stage, users can directly use default parameters to run preliminary analyses, accelerating the iteration process. A component connection module determines the corresponding parameters for each line level. The system automatically selects the appropriate component library based on the voltage level of the power line, avoiding misuse of equipment and improving safety. It also supports hierarchical modeling, with different component libraries corresponding to different voltage levels, enabling the construction of multi-level power grid structures that align with the hierarchical operation characteristics of actual power systems and enhance system scalability. Finally, the model drawing module selects the corresponding component library based on the power line level and draws the power simulation model using static templates, default parameters, and connection relationships between components. This allows for one-click automated modeling, converting front-end graphical information into a computable simulation model, improving modeling efficiency and ensuring consistency between graphics and the model. Generating graphics and simulation models based on the same data source (template + parameters + connection relationships) avoids inconsistencies between graphics and models, facilitating subsequent simulation and analysis. The generated model can be directly used for power flow calculations, short-circuit analysis, transient simulations, etc., forming a complete closed loop. This solves the problems of long model building times, low efficiency, and high error rates in existing power simulation technologies. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the structure of the multi-platform power simulation model automatic conversion system according to an embodiment of the present invention; Figure 2 This is a flowchart of the automatic conversion method for multi-platform power simulation models according to an embodiment of the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0022] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., these directional indications are only used to explain the relative positional relationships and movement of the components in a specific posture. If the specific posture changes, the directional indications will also change accordingly. Furthermore, if the embodiments of the present invention involve descriptions such as "first," "second," "S1," "S2," "step one," "step two," etc., these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance, or implicitly indicating the number of technical features indicated or the order of method execution. Those skilled in the art will understand that anything that does not violate the inventive concept and is within the scope of the present invention should be included in the protection scope of the present invention.
[0023] like Figure 1 As shown, the present invention provides an automatic conversion system for multi-platform power simulation models, comprising: Template building module 101 is used to set the appearance parameters of each component in the interface in order to build a static template of the component; The parameter setting module 102 is used to initialize the default parameters of each component; The component connection module 103 is used to determine the component library corresponding to each line level, as well as the connection relationship between the components in the component library; The model drawing module 104 is used to select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component and the connection relationship between the components.
[0024] Specifically, optional, but not limited to, setting the appearance parameters of each component in the interface through the template building module to construct static templates for components, thereby ensuring a consistent style across the entire simulation model interface by uniformly setting the appearance parameters (such as color, shape, size, etc.) of various types of components, improving readability and professionalism. Simultaneously, the constructed static templates can be reused, reducing repetitive design work and improving modeling efficiency. Furthermore, since each type of component has a corresponding static template, when it is necessary to change the static template corresponding to a different type of component, it is not necessary to modify the existing model individually; simply redrawing the model based on the corresponding static template of that type of component will update all existing models for that type of component, reducing maintenance costs. Parameter information will also load all matching parameters according to the component type, eliminating the need for manual parameter modification by the user, thus improving modeling efficiency. Default parameters can also serve as initial simulation conditions, allowing the system to quickly enter a running state, facilitating preliminary verification of the model structure. These default parameters can be configured or modified according to different projects or standards to adapt to various simulation needs. Then, the component connection module determines the component library corresponding to each line level and the connection relationships between the components in the library. Since some components can only be used for their corresponding line levels, such as 500 kV... Four-split conductors can only be used in 500 kV ultra-high voltage transmission lines, and cannot be installed on low-voltage transmission lines, such as 10 kV overhead insulated conductors. They can only be used in 10 kV medium-voltage distribution lines, and not in 110 kV... Since power lines can be instantly broken down, it is possible to acquire all available components for each power line level to build a component library corresponding to each power line level. During the modeling process, components that cannot be used at the current power line level are removed, reducing the time wasted by users in selecting available components and improving modeling efficiency. At the same time, the connection rules between components (such as electrical connection logic and topology constraints) are automatically identified and set, reducing manual intervention, improving modeling accuracy, and providing a data foundation for subsequent topology modeling. When a new power line level or component type is added, only the corresponding library and connection rules need to be updated, making the system highly scalable. Finally, the model drawing module selects the corresponding component library according to the power line level, and draws the power simulation model based on the component static template, the default parameters of each component, and the connection relationships between each component. By integrating the component static template, parameters, and connection relationships, "one-click" model generation is achieved, greatly reducing the workload of manual drawing. During the modeling process, the corresponding level of component library and connection rules can be automatically called to ensure that the model meets the design standards in terms of topology and parameters, and the power simulation model is drawn.
[0025] Preferably, the template construction module includes a size setting unit, an outline setting unit, a port setting unit, a position setting unit, a type setting unit, and a name setting unit arranged in parallel: The dimension setting unit is used to set the initial dimension data of each component; The shape setting unit is used to set the shape representation of each component; Port setting unit, used to set the port parameters of each component; The position setting unit is used to set the position information of each component; The type setting unit is used to set the type of each component; The naming setting unit is used to set the initial name of each component.
[0026] Specifically, the initial size data of each component can be set through the size setting unit to build the initial framework of the template, providing a geometric basis for subsequent simulation, assembly, and manufacturing. Then, the shape setting unit sets the shape of each component to determine how the component template is displayed on the interface, helping designers to intuitively identify components and reduce misuse. Next, the port setting unit sets the port parameters of each component to ensure accurate definition of pin functions and electrical types (input / output / power supply, etc.) and to provide a connection basis for the simulation model. At the same time, the position setting unit is used to set the specific position information of each component on the drawing board. Then, the type setting unit sets the type of each component, which facilitates the retrieval of components by type (such as resistors, MCUs, connectors, etc.) in the component library, reducing retrieval time and improving modeling efficiency. Finally, the name setting unit sets the initial name of each component to ensure the uniqueness of each component in the library and avoid confusion. Thus, by sequentially setting the size, shape, port, type, and name of the components, a data foundation is provided for subsequent topology modeling.
[0027] It is worth noting that the units described in the template construction module are for illustrative purposes only and are not limited thereto. Other configuration units may be added in real time by those skilled in the art based on the specific circumstances of the circuit model to be simulated.
[0028] Preferably, the shape setting unit includes a shape display component, and a path setting component and a text setting component connected to the output of the shape display component: The shape display component is used to determine how the shape of the component is displayed. The display method includes any one or more of path display or text display. For example, components are connected on a bus at set intervals. When the bus is not rotated or rotated by 180° or -180°, the component connection is divided into an upper and lower structure. If the bus is rotated by 90° or -90°, the component connection is divided into a left and right structure to facilitate user reading. Once the shape, appearance, and ports of other components are defined, they cannot be modified because the components correspond to real-world objects. Unless the corresponding object is modified, the corresponding components do not need to be redefined. During the modeling process, the size and rotation angle of the components can be modified at any time to make the interface more harmonious and aesthetically pleasing. Optionally, several nodes in the canvas can be encapsulated as subsystems. The number of ports in a subsystem can be dynamically increased or decreased as the number of ports within the subsystem increases or decreases. At the same time, port information can be modified within the subsystem to change the port information of the subsystem itself. Path information is also displayed in the form of thumbnails, following the information connected within the subsystem.
[0029] The path setting component is used to set the specific values of the path, as well as the thickness, fill content, and edge content color of each path when the display mode is path display. For example, the specific values of the path settings can be defined according to SVG display standards, with the top-left corner of the element as the origin of the coordinate system, the rightward direction as the x-axis, and the downward direction as the y-axis for path drawing. There are many strategies for drawing paths, where lowercase commands represent relative displacement, and uppercase commands represent absolute displacement. Taking relative displacement as an example, the advantage of relative displacement is that each command follows the endpoint of the previous command as the starting point of the next command. The following commands are examples, but not limited to: 1. m (lowercase first letter of move) represents the unit of movement of the cursor, such as m1,1; then the cursor will move to a position relative to the top left corner, moving 1 unit to the right on the x-axis and 1 unit down on the y-axis; m does not leave a real footprint. 2. l (lowercase first letter of line) represents a line. Following step 1, if the following parameter is l2,2, then it will draw a line 2 units to the right and 2 units down based on step 1, leaving a real footprint. There are also commands such as a to draw a circle, h to draw horizontally, and v to draw vertically. After the path is drawn, define the path thickness, the fill content of each path, and the content color of the edges; The text setting component is used to set specific values for the text, as well as the size, color, and position of the text relative to the element when the display mode is text display.
[0030] Specifically, the display method can be selected, but is not limited to, based on the characteristics of each component, using appropriate shape display methods, such as path display or text display. For example, path display is suitable for scenarios that emphasize structural relationships (such as circuit lines and pipe flow directions), such as geometric figures, flowcharts, and network topologies. Functions can be differentiated by "fill content" and "edge color" (e.g., red outline for high-voltage lines, green fill for grounding lines). Text display is suitable for scenarios that emphasize semantic information (such as component models and threshold data), such as labels, annotations, and parameters. Hierarchy can be highlighted by "font size / color" (e.g., 20px bold red for titles, 12px gray for remarks). After determining the shape display method for each component, i.e. Depending on the selected display method, corresponding components can be used to process the elements. For example, when the display method is path display, the specific values of the path, as well as the fill content and edge content color of each path can be set through the path setting component to complete the shape setting of the corresponding element. When the display method is text display, the specific values of the text, as well as the size, color and position information of the text relative to the element can be set through the text setting component. The position information can be represented by absolute positioning or relative positioning to complete the shape setting of the corresponding element. By using different display methods to define the shape of the element, the characteristics of each type of element are further highlighted, making it more efficient for users to find the corresponding element and improving modeling efficiency.
[0031] Preferably, the port setting unit includes a port quantity component, a port direction component, and a port positioning component connected in sequence, as well as an absolute positioning component and a relative positioning component connected to the output of the port positioning component: The port quantity component is used to set the number of ports for each component; Port direction component, used to configure the data direction of each port; Port positioning component, used to determine the positioning method of component ports; positioning method includes any one or more of absolute positioning or relative positioning; The absolute positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the coordinates of the positioning point in the component coordinate system when the positioning method is absolute positioning. The relative positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the position ratio of the positioning point on the surface of the component.
[0032] Specifically, the number of ports for each component can be set using the port quantity setting component, providing a data basis for determining the connection relationship between components. Then, the data direction of each port can be configured using the port direction component, including the data input direction and data output direction. Finally, the positioning method of the component port can be determined using the port positioning component according to the actual situation, such as absolute positioning or relative positioning. For example, when a component port needs to be aligned with other models, absolute positioning can be used, that is, taking any point on the port as the positioning point, obtaining the coordinates of the positioning point in the component coordinate system, and determining the specific position of the port. When a component needs to be frequently reused, dragged, rotated, or mirrored, relative positioning can be used, that is, taking any point on the port as the positioning point, obtaining the position ratio of the positioning point on the component surface, and determining the specific position of the port, thus providing a positional basis for determining the connection relationship between components / ports.
[0033] Preferably, the parameter setting module includes a parameter name setting unit, a parameter type setting unit, a parameter value setting unit, and a selection list setting unit that are set in parallel. The parameter name setting unit is used to set the variable name for each parameter; The parameter type setting unit is used to set the storage format and data calculation type of each parameter; The parameter value setting unit is used to set the default value of each parameter; The selection list setting unit is used to set a parameter selection list, which contains several selectable parameters.
[0034] Specifically, the variable names for each parameter can be set, but are not limited to, through the parameter name setting unit. Meaningful variable names (such as maxSpeed, temperatureThreshold) allow users and the system to quickly understand the parameter's purpose, improving readability and maintainability. Simultaneously, variable names can serve as keys for code generation, configuration parsing, or API interfaces, enabling seamless integration between configuration and program logic. For example, in industrial control configuration software, naming "maximum motor speed" motor_max_rpm is more readable than using p1 and facilitates subsequent system integration. The storage format and data calculation type for each parameter can be set through the parameter type setting unit to avoid runtime errors caused by type mismatches (such as assigning a string to a numerical variable). For example, in a simulation platform, "time step" can be optionally set to float. The system includes four sub-modules: a parameter type setting to prevent program crashes caused by user input of "abc"; a parameter value setting unit to set default values for each parameter, eliminating the need for manual configuration at the start of modeling, as the system provides reasonable default values for operation, improving usability; and a default value setting unit to ensure consistent behavior of all unconfigured parameters, avoiding "empty" or "undefined" behaviors, allowing users to quickly build simulation models and then fine-tune parameters later. A parameter selection list setting unit provides a list of selectable parameters, accessible via dropdown lists or single / multiple selection boxes. Users can only select from predefined options, preventing spelling errors or out-of-bounds input. For example, in a network configuration tool, the "protocol type" dropdown list includes TCP, UDP, and HTTP, preventing users from inputting invalid values like "tcpp". These four units in the parameter setting module form the foundation of a highly cohesive, loosely coupled configuration system, significantly improving system availability, maintainability, and reliability when combined.
[0035] It is worth noting that the units described in the parameter setting module are for illustrative purposes only and are not limited thereto. Other setting units may be added in real time by those skilled in the art based on the specific circumstances of the circuit model to be simulated.
[0036] Preferably, the component connection module includes a component library construction unit, a component library initialization unit, and a wiring unit connected in sequence. The component library construction unit is used to classify the components corresponding to each line level and obtain the component library corresponding to each line level. The component library initialization unit is used to define the type of each component, the ID of each component, the number of ports of each component, and the ID, data type and name of each port; The connection unit is used to determine the connection relationship between each element based on the starting element ID, the port ID of the starting element, the ending element ID, and the port ID of the ending element.
[0037] Specifically, optional but not limited to classifying components corresponding to each line level through the component library construction unit, a component library corresponding to each line level is obtained. Components of the same voltage / rate / functional level are grouped into independent libraries to prevent high-voltage symbols from being mistakenly inserted into low-voltage drawings. During the modeling process, by removing components that cannot be used at the current line level, the time wasted by users in selecting available components is reduced, improving modeling efficiency and avoiding errors. The component library initialization unit defines the type of each component, the ID of each component, the number of ports of each component, and the ID, data type and name of each port to confirm the unique identity of each component and its port and avoid duplicate references. The connection unit determines the connection relationship between each component based on the ID of each component and the ID of each port, such as the starting component ID, the port ID of the starting component, the ending component ID, and the port ID of the ending component, etc. The "component ID + port ID" tuple is used as the endpoint of the connection to prevent incorrect connections caused by "duplicate port names" or "coordinate drift". Moreover, the connection algorithm only needs to traverse the ID map and does not need to parse the graphic coordinates, which greatly improves the modeling speed.
[0038] Preferably, the model drawing module includes a component formatting unit, a busbar processing unit, a first drawing unit, a position adjustment unit, and a second drawing unit connected in sequence. The component formatting unit is used to instantiate corresponding components based on the component static template, default parameters, and connection relationships of each component, thus obtaining component instances. For example, it can optionally use the component type to adopt the component's default initial size, assemble the shape, and define the path and text of the representation for the components in the recommendations. The type definition of the port, the specific location of the port, and the port data in the recommendation data are integrated. By assembling the parameters of the port, the initial formatting of a component is achieved.
[0039] The bus processing unit is used to obtain the number of ports connected to the bus in each line level based on the component instance, determine the bus length, and the position of each port on the bus. For example, the components of the bus in the data can be processed again. First, find all components directly connected to the bus that have a connection relationship with the bus. Based on the number, extend the length of the bus in the form of 50*number, and add a port at this position. Record the ID of all components directly connected to the bus and the ID of the newly added port. Based on the position of the bus on the x-axis, add 50*index (the index, which is the number of components connected to the bus) to record the x-axis position of the components directly connected to the bus in the first round. The y-axis record is recorded by adding 50 to the current y-axis data of the bus.
[0040] The first drawing unit is used to draw component instances directly connected to each busbar to obtain the model skeleton. For example, it can optionally draw components directly connected to the busbar. Based on the busbar ID and connection relationship data, it iterates through all components connected to the current busbar in sequence, finds the position information under the ID of the current component recorded in the previous step, and combines it with the preliminary formatted data of the component in the first step to verify the specific position of the component. The verification method is to first check the positioning method of the component port, calculate the relative x-axis value of the component, and then use the x-axis value recorded in the previous step to subtract this relative x-axis value to obtain the x-axis value of the component. The y-axis value is obtained by directly using the value recorded in the second step.
[0041] The position adjustment unit is used to adjust the position of each busbar and its directly connected component instances based on the busbar's level and the number of component instances among buses of the same level. For example, when drawing in step 3 above, it's necessary to find other components (not on the previous level busbar) connected to the component from step 3. Once another component is found connected, its x-axis is calculated using the same method as the component's positioning in step 3. The component's formatting follows the method from step 1. The y-axis determination requires adding 50 to the calculation from step 3. If the component has a lower level, the same logic applies, except the y-axis also needs to be adjusted. Add 50 again; here 50 is a base value. When the height of this component is higher than 50, add the height of the component itself, and so on. Going back to step 2, when the component is a busbar, the busbar's level determines its position. Once the higher-level busbars in this drawing board have been drawn, busbars of the same level are drawn on the same horizontal line, that is, the y-axis values are the same, and the x-axis interval between two busbars differs by 100. Busbars of different levels are kept on the same vertical line, that is, the same x-axis, and the basic y-axis interval differs by 100. If there are many components between two busbars, increase the y-axis value occupied by all components, and add an additional 40 height.
[0042] The second drawing unit is used to draw the power simulation model based on the model skeleton, the current positions of each bus and component instance, and the port information connecting each component instance and the bus. For example, the model is then converted according to different line levels, and each converted component is sequentially added to the drawing data for a one-time drawing. Using the method described above, the model in the interface can be converted into data and then drawn onto the interface, displayed as a chart. This chart shows the appearance of each component, the relationships between components, and the parameter information of each component. Users can still adjust the components and modify parameters based on the drawn model, just like in a self-drawn model.
[0043] Specifically, optional but not limited to instantiating corresponding components based on their static templates, default parameters, and connection relationships using the component formatting unit, component instances are obtained. The "static template + parameters" approach ensures consistency between component graphics and attributes, avoiding manual drawing errors. Template-based design supports rapid expansion of new component types, improving system maintainability. Based on the connection relationships of each component, the logic between components is automatically inferred, reducing manual intervention and improving accuracy. The busbar processing unit obtains the number of ports connected to the busbar in each line level based on the component instances, determines the busbar length, and the position of each port on the busbar. It can automatically identify the "busbar-component" connection relationship, avoiding manual specification and improving intelligence. Busbars are categorized by voltage level (e.g., 500kV, 220kV, 110kV) to lay the foundation for subsequent layered layout. Simultaneously, the positions of each connection point on the busbar are calculated in advance to avoid port overlap or conflicts during subsequent drawing. The first drawing unit draws the connections between various components. For component instances directly connected to busbars, priority is given to drawing "near-busbar" components to establish the "model skeleton" of the diagram. This reduces the complexity of subsequent components not directly connected to busbars and improves efficiency by processing the directly connected parts first. The position adjustment unit adjusts the position of each busbar and its directly connected component instances according to the busbar's level and the number of component instances between buses of the same level. This avoids overcrowding in some areas and sparse areas in others, improving the balance of component distribution. High-voltage busbars are placed on the upper layer or in the center, and lower-voltage buses expand outwards layer by layer, conforming to the "pyramid" visual habit of power system diagrams. Finally, the second drawing unit draws the power simulation model based on the current position of each busbar and component instance, as well as the port information connecting each component instance and the busbar. This ensures that all electrical connections are accurately represented in the diagram without omissions or errors. At the same time, algorithms that use the shortest path, avoid intersections, and reduce inflection points are employed to improve the clarity of the lines.
[0044] This embodiment presents an automatic conversion system for multi-platform power simulation models according to the present invention. A template construction module sets the appearance parameters of each component in the interface to build static component templates. By uniformly setting appearance parameters (such as size, shape, port position, etc.), it ensures that all components have a consistent style on the interface, resulting in high visual consistency. Furthermore, the static templates can be called multiple times, avoiding repetitive drawing, reducing modeling workload and human error, and improving work efficiency. A parameter setting module initializes the default parameters of each component, allowing users to automatically load reasonable default values (such as rated voltage, impedance, capacity) during the modeling process, improving modeling efficiency. Preset default parameters are based on engineering experience or standard data, avoiding parameter anomalies due to manual errors or insufficient knowledge, thus reducing human error and improving model accuracy. In the early simulation stage, users can directly use the default parameters to run preliminary analyses, accelerating the iteration process. A component connection module determines the relationship between each line level and... The system automatically selects the appropriate component library based on the voltage level of the power line, avoiding misuse of equipment and improving safety. It also supports hierarchical modeling, with different component libraries corresponding to different voltage levels, enabling the construction of multi-level power grid structures that align with the hierarchical operation characteristics of actual power systems and enhance system scalability. Finally, the model drawing module selects the corresponding component library based on the power line level and draws the power simulation model based on the static templates of the components, the default parameters of each component, and the connection relationships between them. This allows for one-click automated modeling, converting front-end graphical information into a computable simulation model, improving modeling efficiency while ensuring consistency between the graphics and the model. The graphics and simulation model are generated based on the same data source (template + parameters + connection relationships), avoiding the "graphics-model inconsistency" problem, facilitating subsequent simulation and analysis. The generated model can be directly used for power flow calculation, short-circuit analysis, transient simulation, etc., forming a complete closed loop. This solves the problems of long model building time, low efficiency, and high error rate in existing power simulation technologies.
[0045] Preferably, the multi-platform power simulation model automatic conversion system also includes: The digital model adding module includes a selection unit, an encapsulation unit, a trigger condition setting unit, and a judgment unit connected in sequence; The selection unit is used to select several components in the generated power simulation model. For example, taking a 220kV voltage level as an example, when the bus is at 220kV, connecting this line to 110kV and 35kV requires at least one three-winding transformer. This transformer has high, medium, and low voltage ports, with the high-voltage port connecting to the 200kV bus, the medium-voltage port connecting to the 110kV bus, and the low-voltage port connecting to the 35kV bus. The 220kV bus can also be extended as section I, connected to section II bus via a bus tie switch element; the 110kV bus can be connected to the 10kV bus via a two-winding element; section I of 100kV can be connected to section II of 110kV bus via a bus tie switch, and so on. Encapsulation units are used to encapsulate selected components into sub-models. Encapsulation units are designed to help users build minimum units that are more suitable for their specific use cases and are used frequently. For example, when building a model, the minimum unit subsystem needs two ports, which are connected to a circuit breaker and then to a busbar. A load needs to be connected to the busbar. At this time, users can generate custom modules by selecting these units. Custom modules allow users to define the module type, voltage level, and other identifiers. When referenced next time, the module is drawn directly on the interface based on the defined type and voltage level.
[0046] The trigger condition setting unit is used to set trigger conditions for the encapsulated sub-model. For example, when a user right-clicks a bus on the interface, the system filters all the levels in the model definition based on the bus's own voltage level, selecting which models are available for the user to choose at the current level. Once the user selects a model, the system can use all the methods mentioned in the drawing unit to draw the selected model onto the interface. For example, you can optionally select a bounding box or multiple selections based on the already drawn model, package all these elements, including their connection information, together to generate a new model, and define the triggering conditions; next time, you can repeat the method in step 4 above on the canvas based on these selected models.
[0047] More specifically, the completed power simulation model can be obtained from the aforementioned multi-platform power simulation model automatic conversion system. If the completed power simulation model needs to be modified or rebuilt, it will take too much time and waste a lot of resources. Therefore, it is possible, but not limited to, to add modules to the digital model to repackage components that need to be reused multiple times. Subsequent modifications can then directly extract the repackaged sub-model, improving modeling efficiency.
[0048] like Figure 2 As shown, this invention also provides an automatic conversion method for multi-platform power simulation models, comprising: S1: Set the appearance parameters of each component in the interface to build a static template for the component; Specifically, optional but not limited to setting the appearance parameters of each component in the interface through the template building module, a static template for the component can be built. By uniformly setting the appearance parameters (such as color, shape, size, etc.) of each type of component, the style of the entire simulation model interface can be ensured to be consistent, improving readability and professionalism. At the same time, the built static template can be reused, reducing repetitive design work and improving modeling efficiency. Furthermore, since each type of component has a corresponding static template, when the appearance of a certain type of component needs to be adjusted, only the template parameters corresponding to that type of component need to be modified for a global update, reducing maintenance costs.
[0049] S2: Initialize the default parameters of each component; Specifically, the default parameters for initializing each component can be selected, but are not limited to, so that users do not need to manually input the basic parameters of each component when modeling, thus improving the modeling speed. At the same time, the default parameters can be used as initial simulation conditions, so that the system can quickly enter the running state, which is convenient for preliminary verification of the model structure. Furthermore, the default parameters can be configured or modified according to different projects or standards to adapt to various simulation needs.
[0050] S3: Determine the component library corresponding to each line level, and the connection relationship between the components in the component library; Specifically, the system can optionally, but is not limited to, determining the component library corresponding to each line level and the connection relationships between the components in the library. Since some components can only be used for their corresponding line levels, such as 500 kV four-split conductors which can only be used for 500 kV ultra-high voltage transmission lines and cannot be installed on low voltage transmission lines, and 10 kV overhead insulated wires which can only be used for 10 kV medium voltage distribution lines and would be instantly broken down on 110 kV lines, it is optional to obtain all available components for each line level to construct the component library corresponding to each line level. During the modeling process, components that cannot be used for the current line level are removed, reducing the time wasted by users in selecting available components and improving modeling efficiency. At the same time, the system automatically identifies and sets the connection rules between components (such as electrical connection logic and topology constraints), reducing manual intervention, improving modeling accuracy, and providing a data foundation for subsequent topology modeling. When adding a new line level or component type, only the corresponding library and connection rules need to be updated, making the system highly scalable.
[0051] S4: Select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component, and the connection relationship between each component.
[0052] Specifically, the corresponding component library can be selected, but is not limited to, based on the line level. The power simulation model can be drawn based on the static templates of the components, the default parameters of each component, and the connection relationships between the components. By integrating the static templates of the components, the parameters, and the connection relationships, a "one-click" model generation can be achieved, which greatly reduces the workload of manual drawing. During the modeling process, the corresponding level of component library and connection rules can be automatically called to ensure that the model meets the design standards in terms of topology and parameters, and the power simulation model is drawn.
[0053] Preferably, the step of drawing the power simulation model may include: S41: Instantiate the corresponding component based on the component static template, default parameters and connection relationship of each component to obtain the component instance; Specifically, it is optional, but not limited to, instantiating corresponding components based on the static templates, default parameters, and connection relationships of each component to obtain component instances. By using the "static template + parameters" method, it ensures that the component graphics and attributes are consistent, avoiding manual drawing errors. Templated design supports the rapid expansion of new component types, improving system maintainability. Based on the connection relationships of each component, it automatically infers the logic between components, reducing manual intervention and improving accuracy.
[0054] S42: Based on the component instance, obtain the number of ports connected to the busbar in each line level, determine the busbar length, and the position of each port on the busbar; Specifically, it can be selected, but is not limited to, obtaining the number of ports connected to the busbar in each line level based on the component instance, determining the busbar length, and the position of each port on the busbar. It can automatically identify the "busbar-component" connection relationship, avoid manual specification, improve the level of intelligence, and classify the busbars according to voltage level (such as 500kV, 220kV, 110kV) to lay the foundation for subsequent layered layout. At the same time, it can calculate the position of each connection point on the busbar in advance to avoid port overlap or conflict during subsequent drawing.
[0055] S43: Draw the component instances that are directly connected to each busbar to obtain the model skeleton; Specifically, you can choose, but are not limited to, drawing component instances that are directly connected to each busbar. Prioritize drawing components near the "busbar" to establish the "model skeleton" of the graphic. This way, by processing the directly connected parts first, you can reduce the complexity of components that are not directly connected to the busbars and improve efficiency.
[0056] S44: Adjust the position of each busbar and the component instances directly connected to it according to the level of each busbar and the number of component instances between each busbar of the same level; Specifically, the position of each bus and its directly connected component instances can be adjusted according to the bus level and the number of component instances between buses of the same level, to avoid overly dense components in one area and sparse components in another area, thereby improving the balance of component distribution. High-voltage buses are placed on the upper layer or in the center, and lower-voltage buses are gradually expanded outwards, which conforms to the "pyramid" visual habit of power system diagrams.
[0057] S45: Based on the model skeleton, the current positions of each bus and each component instance, and the port information connecting each component instance and the bus, the power simulation model is drawn.
[0058] Specifically, the power simulation model can be drawn based on the current positions of each bus and component instance, as well as the port information connecting each component instance and the bus. This ensures that all electrical connections are accurately represented in the diagram without omissions or errors. At the same time, algorithms that use the shortest path, avoid intersections, and reduce inflection points are employed to improve the clarity of the lines.
[0059] This embodiment presents an automatic conversion method for multi-platform power simulation models according to the present invention. By setting the appearance parameters of each component in the interface, a static template for the component is constructed. This ensures that all components have a consistent style on the interface and high visual consistency through uniformly setting appearance parameters (such as size, shape, port position, etc.). Furthermore, the static template can be called multiple times, avoiding repetitive drawing, reducing modeling workload and human error, and improving work efficiency. By initializing the default parameters of each component, users can automatically load reasonable default values (such as rated voltage, impedance, capacity) during the modeling process, improving modeling efficiency. The preset default parameters are based on engineering experience or standard data, avoiding parameter anomalies due to manual errors or insufficient knowledge, thus reducing human error and improving model accuracy. In the early simulation stage, users can directly use the default parameters to run preliminary analysis, accelerating the iteration process. By determining the component library corresponding to each line level… The system automatically selects the appropriate component library based on the voltage level of the power grid, avoiding misuse of equipment and improving safety. It also supports hierarchical modeling, with different component libraries corresponding to different voltage levels, enabling the construction of multi-level power grid structures that align with the hierarchical operation characteristics of actual power systems and enhance system scalability. Finally, by selecting the appropriate component library based on the power grid level, and drawing the power simulation model using static templates, default parameters, and connection relationships between components, one-click automated modeling is achieved. This transforms front-end graphical information into a computable simulation model, improving modeling efficiency while ensuring consistency between the graphics and the model. Generating both graphics and the simulation model based on the same data source (template + parameters + connection relationships) avoids inconsistencies between the graphics and the model, facilitating subsequent simulation and analysis. The generated model can be directly used for power flow calculations, short-circuit analysis, transient simulations, etc., forming a complete closed loop. This solves the problems of long model building times, low efficiency, and high error rates in existing power simulation technologies.
[0060] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. An automatic conversion system for multi-platform power simulation models, characterized in that, include: The template building module is used to set the appearance parameters of each component in the interface in order to build static templates for the components; The parameter setting module is used to initialize the default parameters of each component; The component connection module is used to determine the component library corresponding to each line level, as well as the connection relationship between the components in the component library; The model drawing module is used to select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component, and the connection relationship between the components.
2. The system according to claim 1, characterized in that, The template building module includes four units arranged side-by-side: size setting unit, shape setting unit, port setting unit, position setting unit, type setting unit, and name setting unit. The dimension setting unit is used to set the initial dimension data of each component; The shape setting unit is used to set the shape representation of each component; Port setting unit, used to set the port parameters of each component; The position setting unit is used to set the position information of each component; The type setting unit is used to set the type of each component; The naming setting unit is used to set the initial name of each component.
3. The system according to claim 2, characterized in that, The shape setting unit includes a shape display component, as well as a path setting component and a text setting component connected to the output of the shape display component: Shape display component, used to determine how the shape of the component is displayed; display method, including any one or more of path display or text display; The path setting component is used to set the specific values of the path, as well as the thickness, fill content, and edge content color of each path when the display mode is path display; The text setting component is used to set specific values for the text, as well as the size, color, and position of the text relative to the element, when the display mode is text display.
4. The system according to claim 2, characterized in that, The port setting unit includes a port quantity component, a port direction component, and a port positioning component connected in sequence, as well as an absolute positioning component and a relative positioning component connected to the output of the port positioning component. The port quantity component is used to set the number of ports for each component; The port direction component is used to configure the data direction of each port; Port positioning component, used to determine the positioning method of component ports; positioning method includes any one or more of absolute positioning or relative positioning; The absolute positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the coordinates of the positioning point in the component coordinate system when the positioning method is absolute positioning. The relative positioning component is used to determine the specific location of the port by taking any point on the port as the positioning point and obtaining the position ratio of the positioning point on the component surface.
5. The system according to claim 1, characterized in that, The parameter setting module includes a parameter name setting unit, a parameter type setting unit, a parameter value setting unit, and a selection list setting unit, which are set in parallel. The parameter name setting unit is used to set the variable name for each parameter; The parameter type setting unit is used to set the storage format and data calculation type of each parameter; The parameter value setting unit is used to set the default value of each parameter; The selection list setting unit is used to set a parameter selection list, which contains several selectable parameters.
6. The system according to claim 1, characterized in that, The component connection module includes a component library construction unit, a component library initialization unit, and a wiring unit connected in sequence. The component library construction unit is used to classify the components corresponding to each line level and obtain the component library corresponding to each line level. The component library initialization unit is used to define the type of each component, the ID of each component, the number of ports of each component, and the ID, data type and name of each port; The connection unit is used to determine the connection relationship between each element based on the starting element ID, the port ID of the starting element, the ending element ID, and the port ID of the ending element.
7. The system according to claim 1, characterized in that, The model drawing module includes a component formatting unit, a busbar processing unit, a first drawing unit, a position adjustment unit, and a second drawing unit connected in sequence. The component formatting unit is used to instantiate the corresponding component based on the component static template, default parameters and connection relationships of each component, and obtain the component instance; The bus processing unit is used to obtain the number of ports connected to the bus in each line level based on the component instance, determine the bus length, and the position of each port on the bus; The first drawing unit is used to draw the component instances that are directly connected to each busbar, thus obtaining the model skeleton; The position adjustment unit is used to adjust the position of each bus and the component instances directly connected to it according to the level of each bus and the number of component instances among the buses of the same level. The second drawing unit is used to draw the power simulation model based on the model skeleton, the current positions of each bus and each component instance, and the port information connecting each component instance and the bus.
8. The system according to claim 1, characterized in that, The multi-platform power simulation model automatic conversion system also includes: The digital model adding module includes a selection unit, an encapsulation unit, a trigger condition setting unit, and a judgment unit connected in sequence; The selection unit is used to select several components in the drawn power simulation model; A packaging unit is used to package selected components into a sub-model. The trigger condition setting unit is used to set trigger conditions for the encapsulated sub-model.
9. An automatic conversion method for multi-platform power simulation models, comprising: Set the appearance parameters of each component in the interface to build a static template for the component; Initialize the default parameters of each component; Determine the component library corresponding to each line level, and the connection relationship between the components in the component library; Select the corresponding component library according to the line level, and draw the power simulation model based on the static template of the component, the default parameters of each component, and the connection relationship between each component.
10. The method according to claim 9, characterized in that, The steps to obtain a power simulation model include: Based on the component's static template, default parameters, and connection relationships, instantiate the corresponding component to obtain a component instance; Based on the component examples, the number of ports connected to the busbar in each line level is obtained, the busbar length and the position of each port on the busbar are determined; Draw the component instances that are directly connected to each busbar to obtain the model skeleton; Adjust the position of each busbar and the component instances directly connected to it based on the busbar's level and the number of component instances among buses of the same level. The power simulation model is drawn based on the model skeleton, the current positions of each bus and component instance, and the port information connecting each component instance and the bus.