A post-processing streamline generation method for multi-physics field calculation results of power equipment

By using the Octrene model and Longekuta method in the multi-physics calculation of power equipment, the step size is dynamically adjusted, and the problem of low efficiency of traditional streamline extraction is solved, and efficient and accurate tracking of streamline positions is achieved.

CN120105840BActive Publication Date: 2025-08-19ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510595478.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-08-19
Estimated Expiration
2045-05-09

AI Technical Summary

Technical Problem

The streamline extraction efficiency in multi-physics calculation of traditional power equipment cannot meet the requirements of large-scale fine models.

Method used

The Octet Tree model is used in combination with the Longguta method, and the streamline position tracking is dynamically adjusted to adapt to the characteristics of the electromagnetic field area to construct a streamline position collection.

Benefits of technology

It improves the efficiency and accuracy of streamline tracing, can quickly and accurately locate the finite element grid to which the spatial point coordinates belong, and improves the efficiency of streamline extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120105840B_ABST
    Figure CN120105840B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus, computer device, storage medium, and computer program product for generating post-processing streamlines based on the multi-physics field calculation results of an electric power device. The method comprises: obtaining spatial point coordinates input for a simulation region of the electric power device; based on the spatial point coordinates, performing streamline position tracking processing within an octree model of the electric power device to obtain a streamline position set; the streamline position set includes each tracked streamline position and processing results associated with each streamline position; and the octree model is constructed based on the simulation results of the electric power device. This method can improve streamline tracking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment, storage medium and computer program product for generating post-processing streamlines of multi-physics field calculation results of power equipment. Background Art

[0002] Streamlines in multiphysics calculations for power equipment are a crucial tool for analyzing electric and magnetic field distributions. In practical applications, streamlines can help identify areas of concentrated field strength and the distribution of electrical stress within equipment, providing data support for design optimization and operational monitoring of power equipment.

[0003] In traditional technology, basic streamline extraction functions can be used for multi-physics field calculations of power equipment. However, the efficiency of its streamline extraction cannot meet the requirements of large-scale and detailed models of power equipment. Summary of the Invention

[0004] Based on this, it is necessary to provide a post-processing streamline generation method, device, computer equipment, computer-readable storage medium and computer program product for the multi-physical field calculation results of power equipment that can improve the efficiency of streamline extraction in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for generating post-processing streamlines based on multi-physics field calculation results of power equipment. The method comprises:

[0006] Obtaining spatial point coordinates input for a simulation area of power equipment;

[0007] Based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

[0008] In one embodiment, based on the spatial point coordinates, streamline position tracking processing is performed in the octree model to obtain a streamline position set, including:

[0009] In the octree model, determining a finite element grid position corresponding to the spatial point coordinates, and setting the finite element grid position as a current streamline position;

[0010] Performing Runge-Kutta processing on the current streamline position to obtain a next streamline position corresponding to the current streamline position;

[0011] determining a target step length required to advance to the next streamline position according to electromagnetic field region characteristics corresponding to the current streamline position;

[0012] Move to the next streamline position according to the target step size, and use the next streamline position as the current streamline position, jump to the step of performing Runge-Kutta processing on the current streamline position to obtain the next streamline position, until the preset streamline tracking termination condition is met, and output the streamline position set.

[0013] In one embodiment, performing Runge-Kutta processing on the current streamline position to obtain a next streamline position corresponding to the current streamline position includes:

[0014] Determining a first slope corresponding to the current streamline position;

[0015] Obtaining a second slope corresponding to the current streamline position according to the current streamline position, the first slope, and an integration step;

[0016] Obtaining a third slope corresponding to the current streamline position according to the current streamline position, the second slope, and the integration step;

[0017] Obtaining a fourth slope corresponding to the current streamline position according to the current streamline position, the third slope, and the integration step;

[0018] A next streamline position corresponding to the current streamline position is obtained according to the current streamline position, the integration step, the first slope, the second slope, the third slope, and the fourth slope.

[0019] In one embodiment, determining a target step length required to advance to the next streamline position based on the electromagnetic field region characteristics corresponding to the current streamline position includes:

[0020] If the region label in the electromagnetic field region feature corresponding to the current streamline position represents a high-variance region, determining the first step length as the target step length required to step to the next streamline position;

[0021] If the region label in the electromagnetic field region feature corresponding to the current streamline position represents a low-variation region, the second step length is determined as the target step length required to step to the next streamline position; the second step length is greater than the first step length.

[0022] In one embodiment, before performing streamline position tracking processing in the octree model of the power equipment based on the spatial point coordinates to obtain a streamline position set, the method further includes:

[0023] Obtaining electromagnetic field regional characteristics of the power equipment based on electromagnetic field distribution data in the simulation results of the power equipment;

[0024] According to the electromagnetic field region characteristics, an octree construction process is performed on the simulation results and the finite element mesh in the simulation region of the power equipment to obtain an octree model of the power equipment.

[0025] In one embodiment, obtaining the electromagnetic field regional characteristics of the power equipment based on the electromagnetic field distribution data in the simulation results of the power equipment includes:

[0026] Obtaining the electric field gradient and the magnetic field gradient of the power equipment according to the electromagnetic field distribution data in the simulation results of the power equipment;

[0027] Dividing a finite element mesh within a simulation region of the power device into a high-variance region and a low-variance region according to the electric field gradient and the magnetic field gradient, and setting the high-variance region or the low-variance region as a region label of the corresponding finite element mesh;

[0028] The electromagnetic field region feature is obtained according to the region label.

[0029] In one embodiment, according to the electromagnetic field region characteristics, an octree construction process is performed on the simulation results and the finite element mesh in the simulation region of the power equipment to obtain an octree model of the power equipment, including:

[0030] Performing a deep-level octree construction process on the simulation results and finite element mesh corresponding to the high-variability region in the electromagnetic field regional features to obtain an octree structure of the high-variability region;

[0031] Performing shallow-level octree construction processing on the simulation results and finite element mesh corresponding to the low-variation area in the electromagnetic field regional characteristics to obtain an octree structure of the low-variation area;

[0032] An octree model of the power equipment is obtained according to the octree structure of the high-variability region and the octree structure of the low-variability region.

[0033] In a second aspect, the present application also provides a post-processing streamline generation device for multi-physics field calculation results of power equipment. The device comprises:

[0034] A coordinate acquisition module, used to obtain the coordinates of a spatial point input for a simulation area of the power equipment;

[0035] A streamline tracking module is used to perform streamline position tracking processing in the octree model of the power equipment based on the spatial point coordinates to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and a processing result associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

[0036] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:

[0037] Obtaining spatial point coordinates input for a simulation area of power equipment;

[0038] Based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0040] Obtaining spatial point coordinates input for a simulation area of power equipment;

[0041] Based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

[0042] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0043] Obtaining spatial point coordinates input for a simulation area of power equipment;

[0044] Based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

[0045] The above-mentioned method, apparatus, computer device, storage medium, and computer program product for generating post-processing streamlines for multi-physics field calculation results of power equipment obtain spatial point coordinates input for the power equipment's simulation region; based on the spatial point coordinates, streamline positions are tracked within the power equipment's octree model to obtain a streamline position set; the streamline position set includes each tracked streamline position and the processing results associated with each streamline position; and the octree model is constructed based on the power equipment's simulation results. This method utilizes the constructed octree model to track streamline positions for the power equipment's spatial point coordinates, enabling rapid and accurate location of the finite element mesh to which the spatial point coordinates belong, thereby improving streamline tracking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of a method for generating post-processing streamlines for multi-physics field calculation results of power equipment in one embodiment;

[0047] Figure 2 1. A flowchart illustrating steps of performing streamline position tracking in an octree model according to an embodiment;

[0048] Figure 3 A flowchart of a method for generating post-processing streamlines of multi-physics field calculation results of power equipment in another embodiment;

[0049] Figure 4 A schematic flow chart of a method for generating post-processing streamlines of multi-physics field calculation results of power equipment in another embodiment;

[0050] Figure 5 A structural block diagram of a device for generating post-processing streamlines for multi-physics field calculation results of power equipment in one embodiment;

[0051] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0053] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0054] In one embodiment, Figure 1 As shown, a method for generating post-processing streamlines for multi-physics field calculation results of power equipment is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, or to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0055] Step S101: obtaining the spatial point coordinates input for the simulation area of the power equipment.

[0056] Spatial point coordinates refer to the coordinate values of a specific location within the simulation area of a power device in three-dimensional space. Spatial point coordinates typically consist of three values, representing the position on the X, Y, and Z axes, forming a spatial representation of a point.

[0057] Understandably, in power equipment simulation, spatial point coordinates may represent specific locations of equipment, such as transformers, switches, lines, or sensors. These point coordinates are fundamental to simulation and streamline tracing, as they help the terminal identify and locate the power equipment and its surroundings within the octree model.

[0058] Specifically, when users want to analyze physical phenomena such as fluid flow, electric field, magnetic field, etc. in the simulation area of power equipment, they can select a set of spatial point coordinates as the starting point of streamline tracing and input them into the terminal.

[0059] In step S102, based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed based on the simulation results of the power equipment.

[0060] The streamline position set refers to the set of all streamline positions that the streamline tracking passes through from the start to the end.

[0061] The processing result refers to the integral of the physical quantity calculated for the streamline position, and the processing result is used for analysis of the physical quantity, such as force field analysis, electromagnetic field analysis, or electric field analysis of power equipment.

[0062] Specifically, the terminal uses the acquired spatial point coordinates as the starting point for streamline position tracking processing, and then calculates the next streamline position based on the starting point. It then uses the data structure of the octree model to query the octree node related to the current streamline position, thereby determining the relevant parameters and processing results associated with the current streamline position; updates the streamline position based on the calculated speed information, and continues this process until the desired end point is reached or the termination condition is met (for example, the termination condition set for the streamline length and time).

[0063] In the above-mentioned method for generating streamlines after post-processing the multi-physics field calculation results of power equipment, spatial point coordinates are input for the power equipment's simulation region. Based on the spatial point coordinates, streamline positions are tracked within the power equipment's octree model to obtain a streamline position set. The streamline position set includes each tracked streamline position and the processing results associated with each streamline position. The octree model is constructed based on the simulation results of the power equipment. This method, utilizing the constructed octree model to track streamline positions for the power equipment's spatial point coordinates, can quickly and accurately locate the finite element mesh to which the spatial point coordinates belong, thereby improving streamline tracking efficiency.

[0064] In one embodiment, Figure 2 As shown, the above step S102 performs streamline position tracking processing in the octree model based on the spatial point coordinates to obtain a streamline position set, which specifically includes the following contents:

[0065] Step S201: In the octree model, a finite element grid position corresponding to the spatial point coordinates is determined, and the finite element grid position is set as the current streamline position.

[0066] Step S202: Perform Runge-Kutta processing on the current streamline position to obtain the next streamline position corresponding to the current streamline position.

[0067] Step S203 : determining a target step length required to advance to the next streamline position according to the electromagnetic field region characteristics corresponding to the current streamline position.

[0068] Step S204: Move to the next streamline position according to the target step size, and use the next streamline position as the current streamline position, jump to the step of performing Runge-Kutta processing on the current streamline position to obtain the next streamline position, until the preset streamline tracking termination condition is met, and output the streamline position set.

[0069] The Runge-Kutta method is a numerical analysis method used to solve ordinary differential equations. It starts with an initial value problem (i.e., given the initial conditions of a differential equation, such as the initial current streamline positions) and approximates the solution. The Runge-Kutta method can have different orders, such as a fourth-order Runge-Kutta method.

[0070] Specifically, the terminal first determines the finite element grid position corresponding to the spatial point coordinates in the octree model and sets it as the current streamline position; then the terminal can perform Runge-Kutta fourth-order integration processing on the current streamline position and the target step size to obtain the next streamline position; then the terminal can determine the target step size required to step to the next streamline position based on whether the regional label in the electromagnetic field region feature corresponding to the current streamline position represents a high-change region or a low-change region; moves to the next streamline position according to the target step size, and uses the next streamline position as the current streamline position, jumps to the above step S201 again, and continues to execute the above steps S201 to S204 until the movement is terminated when the preset streamline tracking termination condition is met, and finally outputs a streamline position set composed of each streamline position in the streamline position tracking process.

[0071] In practical applications, the preset streamline tracking termination conditions include:

[0072] (1) Electromagnetic saturation conditions of power equipment

[0073] If the electromagnetic field intensity in the current area has reached saturation (|E|≥ saturation value E or |B|≥ saturation value B), the streamline calculation is terminated.

[0074] (2) Boundary conditions

[0075] The calculation is terminated when the streamline enters the simulation area boundary or a specific boundary (such as the heat sink boundary, the device insulation layer boundary, and the material change boundary).

[0076] (3) Streamline spacing conditions:

[0077] If the distance between the current streamline position and other streamline positions is less than the preset threshold (such as distance ≤ threshold dist), and the directions tend to be consistent, it is considered that the flow field in the area has been fully described, and the streamline calculation is terminated.

[0078] In this embodiment, in the octree model, by combining the spatial point coordinates with the finite element grid position, the current streamline position can be effectively determined, which can make streamline tracking more accurate and efficient; then, the next streamline position is calculated through Rungeta processing, which effectively improves the accuracy of streamline position tracking processing; according to the electromagnetic field area characteristics corresponding to the current streamline position, the dynamic step distance is reasonably determined to ensure that the actual influence of the electromagnetic force is reflected in the fluid flow. This dynamic adaptive solution method allows the streamline position to smoothly transition between various electromagnetic field areas, thereby reducing the error caused by improper step size selection and further improving the accuracy of streamline position tracking processing.

[0079] In one embodiment, the above step S202 performs Runge-Kutta processing on the current streamline position to obtain the next streamline position corresponding to the current streamline position, which specifically includes the following contents: determining the first slope corresponding to the current streamline position; obtaining the second slope corresponding to the current streamline position based on the current streamline position, the first slope and the integration step; obtaining the third slope corresponding to the current streamline position based on the current streamline position, the second slope and the integration step; obtaining the fourth slope corresponding to the current streamline position based on the current streamline position, the third slope and the integration step; obtaining the next streamline position corresponding to the current streamline position based on the current streamline position, the integration step, the first slope, the second slope, the third slope and the fourth slope.

[0080] The integration step size refers to the magnitude of the change in the independent variable (i.e., the slope) at each iteration during the Runge-Kutta process.

[0081] The terminal can obtain the next streamline position corresponding to the current streamline position by performing a fourth-order Runge-Kutta process on the current streamline position. The current streamline position is marked as r n , the integration step is marked as Δs, the first slope is marked as k1, the second slope is marked as k2, the third slope is marked as k3, the fourth slope is marked as k4, and the next streamline position is marked as r n+1 , for the streamline differential equation: dr / ds=v(r), the fourth-order Runge-Kutta method is as follows:

[0082] (1) Determine the first slope: k1=v(r n );

[0083] (2) Determine the second slope: ;

[0084] (3) Determine the third slope: ;

[0085] (4) Determine the fourth slope: ;

[0086] (5) Get the next streamline position corresponding to the current streamline position: ;

[0087] If the current streamline position enters a new finite element mesh, the terminal can also re-interpolate and calculate the field value within the finite element mesh. n+1 The velocity vector v corresponding to the next streamline position n+1 Recorded in the streamline position collection.

[0088] In this embodiment, the slope is calculated by the current streamline position, and then the next streamline position is calculated based on the slope, the current streamline position and the integration step size, thereby achieving the solution of the next streamline position through a multi-order Runge Tower, effectively improving the accuracy of solving the next streamline position.

[0089] In one embodiment, the above-mentioned step S203 determines the target step length required to step to the next streamline position based on the electromagnetic field area characteristics corresponding to the current streamline position, and specifically includes the following contents: if the area label in the electromagnetic field area characteristics corresponding to the current streamline position represents a high-variation area, then the first step length is determined as the target step length required to step to the next streamline position; if the area label in the electromagnetic field area characteristics corresponding to the current streamline position represents a low-variation area, then the second step length is determined as the target step length required to step to the next streamline position; the second step length is greater than the first step length.

[0090] The first step length and the second step length are obtained according to a preset step length range, and the first step length may be the minimum step length in the step length range, and the second step length may be the maximum step length in the step length range.

[0091] The terminal can dynamically adjust the step size based on the characteristics of the electromagnetic field region corresponding to the current streamline position. Specifically, for the current streamline position in a high-variance region (for example, in a winding or magnetic circuit), a small target step size can be used to ensure the accuracy of the streamline integral in this high-variance region, such as by setting the target step size Δs to the minimum step size in the step size range. For the current streamline position in a low-variance region (for example, in an insulator or in air), a large target step size Δs can be used to improve the computational efficiency of the streamline integral in this low-variance region.

[0092] Furthermore, the terminal can dynamically adjust the step size based on the transient characteristics of the power equipment. Specifically, during periods of rapid transient changes (such as the initial power-on phase), a small step size can be used as the target step size; during steady-state periods, a large step size can be used as the target step size.

[0093] Furthermore, the terminal can calculate the integral error in real time and dynamically adjust the step size based on the integral error. Specifically, the terminal can use Runge-Kutta processing to calculate the current integral error; if the current integral exceeds a threshold, the step size is reduced; if the current integral is within the threshold and below a certain percentage, the step size is increased.

[0094] Furthermore, after the dynamically adjusted target step size is obtained in the above manner, the next streamline position can be calculated by the Rungeta library, and then it can be determined whether the preset streamline tracking termination condition is met.

[0095] In this embodiment, the terminal can dynamically adjust the step size according to the different characteristics of the electromagnetic field area characteristics corresponding to the current streamline position, and can also dynamically adjust the step size according to the transient characteristics and real-time integral error of the power equipment, thereby realizing dynamic adjustment of the step size during streamline tracking, thereby improving the flexibility and accuracy of streamline tracking processing.

[0096] In one embodiment, in step S102, before obtaining a set of streamline positions by tracking streamline positions in an octree model of the power equipment based on spatial point coordinates, the method further includes: obtaining electromagnetic field regional characteristics of the power equipment based on electromagnetic field distribution data in the simulation results of the power equipment; and, based on the electromagnetic field regional characteristics, performing an octree construction process on the simulation results and the finite element mesh within the simulation area of the power equipment to obtain an octree model of the power equipment. The simulation results of the power equipment refer to the use of finite element simulation technology to simulate the electromagnetic field, thermal field, structural stress, and vibration of the power equipment's internal physical fields to determine the performance parameters and optimize the design of the power equipment. In practical applications, electromagnetic field analysis, thermal field analysis, and structural stress analysis can be performed through finite element simulation of the power equipment to obtain corresponding simulation results.

[0097] Finite element analysis is used to decompose the simulation area of the power equipment into many smaller units, each of which can also be called a finite element mesh.

[0098] Specifically, after performing finite element simulation of a power device, the terminal can extract power lines (i.e., streamlines) from the simulation results and analyze key characteristic data. For example, electromagnetic field distribution data can be analyzed to obtain electromagnetic field regional characteristics. Electromagnetic field distribution data describes the spatial distribution of the electromagnetic field within the power device. The terminal can construct an octree to store the simulation results, finite element mesh, and other data for the power device to improve streamline tracking efficiency. To further improve octree tracking efficiency, the terminal can also utilize electromagnetic field regional characteristics to divide the finite element mesh of the power device's simulation area into high-variance and low-variance regions. Different hierarchical construction methods are used for each of the high-variance and low-variance regions, adaptively adjusting the octree's hierarchical depth based on the actual electromagnetic field distribution characteristics of the power device. Ultimately, an octree model that matches the electromagnetic field regional characteristics is constructed.

[0099] In this embodiment, the simulation results and the finite element mesh within the simulation area of the power equipment are constructed as an octree, and the electromagnetic field area characteristics of the power equipment are used to further optimize the hierarchical structure of the octree, so that the subsequent steps can use the constructed octree model to quickly and accurately locate the finite element mesh to which the spatial point coordinates belong, thereby improving the streamline tracking efficiency.

[0100] In one embodiment, the electromagnetic field regional characteristics of the power equipment are obtained based on the electromagnetic field distribution data in the simulation results of the power equipment, specifically including the following contents: the electric field gradient and the magnetic field gradient of the power equipment are obtained based on the electromagnetic field distribution data in the simulation results of the power equipment; the finite element mesh in the simulation area of the power equipment is divided into high-variation areas and low-variation areas based on the electric field gradient and the magnetic field gradient, and the high-variation area or the low-variation area is set as the area label of the corresponding finite element mesh; the electromagnetic field regional characteristics are obtained based on the area label.

[0101] The electromagnetic field distribution data includes the electric field intensity E and the magnetic induction intensity B.

[0102] Specifically, the terminal can calculate the electric field gradient based on the electric field intensity E and magnetic induction intensity B in the electromagnetic field distribution data. and magnetic field gradient Then, according to the electric field gradient corresponding to the finite element grid in the simulation area of the power equipment, and magnetic field gradient The size of the finite element mesh in the simulation area of the power equipment is divided into high-variation areas and low-variation areas, and then the electromagnetic field regional characteristics of the high-variation areas and low-variation areas are obtained; wherein the electromagnetic field regional characteristics include data such as regional labels, field intensity change rates, unit numbers and position coordinates.

[0103] In practical applications, gradient thresholds can be set for the electric field gradient and the magnetic field gradient respectively. When the electric field gradient or the magnetic field gradient of the finite element mesh exceeds the gradient threshold, the finite element mesh is confirmed to be a high-variance area; when the electric field gradient and the magnetic field gradient of the finite element mesh do not exceed the gradient threshold, the finite element mesh is confirmed to be a low-variance area. For example, when >Threshold 1 or >Threshold 2, it is confirmed that the finite element mesh belongs to the high-variation area; when ≤Threshold 1 and When the value is less than or equal to the threshold value 2, the finite element mesh is confirmed to belong to the low-variation region.

[0104] In this embodiment, the electric field gradient and magnetic field gradient of the power equipment are calculated using electromagnetic field distribution data; then, based on the electric field gradient and magnetic field gradient, the finite element mesh within the simulation area of the power equipment is divided into high-variance areas and low-variance areas, and the electromagnetic field regional characteristics of the high-variance areas and low-variance areas are obtained. Accurate division of the finite element mesh within the simulation area of the power equipment is achieved according to the electromagnetic field distribution characteristics, providing a powerful processing basis for optimizing the hierarchical structure of the octree in subsequent steps.

[0105] In one embodiment, according to the electromagnetic field region characteristics, the simulation results and the finite element meshes in the simulation region of the power equipment are subjected to octree construction processing to obtain the octree model of the power equipment, which specifically includes the following contents: deep-level octree construction processing is performed on the simulation results and the finite element meshes corresponding to the high-variation region in the electromagnetic field region characteristics to obtain the octree structure of the high-variation region; shallow-level octree construction processing is performed on the simulation results and the finite element meshes corresponding to the low-variation region in the electromagnetic field region characteristics to obtain the octree structure of the low-variation region; based on the octree structure of the high-variation region and the octree structure of the low-variation region, the octree model of the power equipment is obtained.

[0106] Specifically, for high-variability areas in the electromagnetic field regional characteristics, a deep-level octree construction process can be performed on the simulation results and the finite element mesh, that is, the octree nodes are recursively subdivided to a higher level (for example, the depth reaches 8 layers or more) to ensure that the density of streamline integral units in the high-variability areas is higher, and the terminal obtains the octree structure of the high-variability areas. For low-variability areas in the electromagnetic field regional characteristics, a shallow-level octree construction process can be performed on the simulation results and the finite element mesh, that is, the octree node division level is lower (for example, the depth is kept at 3-4 layers) to reduce unnecessary calculations, and the terminal obtains the octree structure of the low-variability areas.

[0107] Furthermore, for the octree structures in high-variability areas and low-variability areas, the spatial range, division level, and regional characteristics of each node are recorded so that the position of the finite element mesh can be quickly searched and located later, thereby improving the speed of streamline tracing.

[0108] In this embodiment, by setting hierarchical structures of different depths in the octree for high-variation areas and low-variation areas in the electromagnetic field regional characteristics, on the one hand, the changes in streamline integration units in high-variation areas can be captured more comprehensively and accurately, and on the other hand, the amount of calculation in low-variation areas can be reduced, which greatly improves the adaptability of the constructed octree model to the electromagnetic field regional characteristics of power equipment, thereby improving the speed and accuracy of streamline tracking in the octree model.

[0109] In one embodiment, Figure 3 As shown, another method for generating post-processing streamlines for multi-physics field calculation results of power equipment is provided. This method is described by taking the application of the method to a terminal as an example, and includes the following steps:

[0110] Step S301 : obtaining the electric field gradient and magnetic field gradient of the power equipment according to the electromagnetic field distribution data in the simulation result of the power equipment.

[0111] Step S302: Divide the finite element mesh within the simulation area of the power equipment into high-variation areas and low-variation areas based on the electric field gradient and the magnetic field gradient, and set the high-variation area or the low-variation area as the area label of the corresponding finite element mesh; obtain the electromagnetic field area characteristics based on the area label.

[0112] Step S303 , performing deep-level octree construction processing on the simulation results and finite element meshes corresponding to the high-variation region in the electromagnetic field regional characteristics, to obtain the octree structure of the high-variation region.

[0113] Step S304 , performing shallow-level octree construction processing on the simulation results and finite element mesh corresponding to the low-variation region in the electromagnetic field regional characteristics, to obtain an octree structure of the low-variation region.

[0114] Step S305 , obtaining an octree model of the power equipment according to the octree structure of the high-variability region and the octree structure of the low-variability region.

[0115] Step S306: obtaining the spatial point coordinates input for the simulation area of the power equipment.

[0116] Step S307: In the octree model, a finite element grid position corresponding to the spatial point coordinate is determined, and the finite element grid position is set as the current streamline position.

[0117] Step S308: Perform Runge-Kutta processing on the current streamline position to obtain the next streamline position corresponding to the current streamline position.

[0118] Step S309 : determining a target step length required to advance to the next streamline position based on the electromagnetic field region characteristics corresponding to the current streamline position.

[0119] Step S310: Move to the next streamline position according to the target step size, and use the next streamline position as the current streamline position.

[0120] After executing step S309 , the process jumps to step S307 to execute the above steps until the preset streamline tracking termination condition is met, and the streamline position set is output.

[0121] The above-mentioned post-processing streamline generation method for the multi-physics field calculation results of power equipment can achieve the following beneficial effects: by constructing the simulation results and the finite element mesh within the simulation area of the power equipment into an octree, and further optimizing the hierarchical structure of the octree by utilizing the electromagnetic field area characteristics of the power equipment, the constructed octree model can quickly and accurately locate the finite element mesh to which the spatial point coordinates belong, thereby improving the streamline tracking efficiency.

[0122] In order to more clearly illustrate the post-processing streamline generation method of the multi-physics field calculation results of the power equipment provided by the embodiment of the present disclosure, the post-processing streamline generation method of the multi-physics field calculation results of the power equipment is specifically described below with a specific embodiment. Figure 4 As shown in FIG, another method for generating post-processing streamlines of multi-physics field calculation results of power equipment is provided, which can be applied to terminals and specifically includes the following contents:

[0123] The terminal obtains the finite element simulation results and streamline seed points of the power equipment input by the user.

[0124] Step 1. Power equipment electromagnetic field characteristic analysis module: Based on the electromagnetic field distribution data in the power equipment simulation results, including electric field intensity E and magnetic induction intensity B, the system calculates the electric field gradient and magnetic field gradient ; According to the gradient size, the finite element mesh in the simulation area is divided into high-variation areas and low-variation areas.

[0125] Step 2: Multi-level spatial octree module, including tree creation and search: based on the electromagnetic field area characteristic data of the power equipment, its finite element mesh model data, and simulation result data, an octree data structure is created.

[0126] Step 3: Streamline integration module, using Runge-Kutta 4th order integration method: according to the current streamline position r n , flow field distribution data and integration step Δs, and use the multi-level spatial octree module to quickly locate the unit at the next position.

[0127] Step 4: Intelligent Streamline Tracking and Termination Module: Based on the simulated electromagnetic field characteristic data of the power equipment and the current streamline calculation status, the module automatically calculates the step length required to advance to the next position, obtains the dynamically adjusted step length value, and thus obtains the coordinates of the next streamline position. It then determines whether to terminate the streamline calculation based on the termination conditions.

[0128] Step 5. Iterate and calculate the complete streamline data: According to the streamline termination module criteria, if the termination condition is not met, step to the next position, return to the spatial octree module, and continue to calculate the streamline; if the termination condition is met, end the streamline calculation, and record the complete streamline point coordinates and result values, so as to display them to the user for viewing and analysis in the software.

[0129] In this embodiment, by analyzing the electromagnetic field characteristics of power equipment, a multi-level optimization of the spatial octree of the finite element mesh is performed. This effectively improves the efficiency of finding the grid cell to which a spatial point belongs through the octree, thereby improving the efficiency of streamline calculation. The intelligent streamline tracking module effectively reduces the number of streamline points required for calculation, thereby improving streamline calculation efficiency. Furthermore, the step size is automatically reduced in areas of high electromagnetic field variation and transient characteristics, thereby improving streamline calculation accuracy. The intelligent streamline termination module adds specific criteria tailored to the basic termination criteria for power equipment simulation, enabling functions such as streamline truncation at locations of material changes.

[0130] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0131] Based on the same inventive concept, an embodiment of the present application further provides a device for generating post-processing streamlines for the results of multi-physics field calculations of power equipment, which is used to implement the aforementioned method for generating post-processing streamlines for the results of multi-physics field calculations of power equipment. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations in the embodiments of one or more devices for generating post-processing streamlines for the results of multi-physics field calculations of power equipment provided below can be found in the limitations of the method for generating post-processing streamlines for the results of multi-physics field calculations of power equipment described above, and will not be repeated here.

[0132] In one embodiment, Figure 5 As shown, a post-processing streamline generation device 500 for multi-physics field calculation results of power equipment is provided, comprising: a coordinate acquisition module 501 and a streamline tracking module 502, wherein:

[0133] The coordinate acquisition module 501 is used to acquire the coordinates of a spatial point inputted into the simulation area of the power equipment.

[0134] The streamline tracking module 502 is used to track streamline positions in the octree model based on spatial point coordinates to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and processing results associated with each streamline position.

[0135] In one embodiment, the streamline tracking module 502 is also used to determine the finite element grid position corresponding to the spatial point coordinates in the octree model, and set the finite element grid position as the current streamline position; perform Runge-Kutta processing on the current streamline position to obtain the next streamline position corresponding to the current streamline position; determine the target step length required to step to the next streamline position based on the electromagnetic field area characteristics corresponding to the current streamline position; move to the next streamline position according to the target step length, and use the next streamline position as the current streamline position, jump to the step of performing Runge-Kutta processing on the current streamline position to obtain the next streamline position, until the preset streamline tracking termination condition is met, and output the streamline position set.

[0136] In one embodiment, the post-processing streamline generation device 500 of the multi-physical field calculation results of the power equipment also includes a position processing module, which is used to determine the first slope corresponding to the current streamline position; obtain the second slope corresponding to the current streamline position according to the current streamline position, the first slope and the integration step; obtain the third slope corresponding to the current streamline position according to the current streamline position, the second slope and the integration step; obtain the fourth slope corresponding to the current streamline position according to the current streamline position, the third slope and the integration step; obtain the next streamline position corresponding to the current streamline position according to the current streamline position, the integration step, the first slope, the second slope, the third slope and the fourth slope.

[0137] In one embodiment, the post-processing streamline generation device 500 of the multi-physics field calculation results of the power equipment also includes a step size adjustment module, which is used to determine the first step size as the target step size required to step to the next streamline position if the regional label in the electromagnetic field regional feature corresponding to the current streamline position represents a high-variation area; if the regional label in the electromagnetic field regional feature corresponding to the current streamline position represents a low-variation area, then determine the second step size as the target step size required to step to the next streamline position; the second step size is larger than the first step size.

[0138] In one embodiment, the post-processing streamline generation apparatus 500 for multi-physics field calculation results of an electric power device further includes a pre-configuration module for obtaining electromagnetic field regional characteristics of the electric power device based on electromagnetic field distribution data in the simulation results of the electric power device; and for performing octree construction processing on the simulation results and the finite element mesh within the simulation region of the electric power device based on the electromagnetic field regional characteristics to obtain an octree model of the electric power device. In one embodiment, the post-processing streamline generation apparatus 500 for multi-physics field calculation results of an electric power device further includes a feature acquisition module for obtaining electric field gradients and magnetic field gradients of the electric power device based on electromagnetic field distribution data in the simulation results of the electric power device; dividing the finite element mesh within the simulation region of the electric power device into high-variance regions and low-variance regions based on the electric field gradients and magnetic field gradients, and setting the high-variance regions or low-variance regions as region labels of the corresponding finite element meshes; and obtaining electromagnetic field regional characteristics based on the region labels.

[0139] In one embodiment, the post-processing streamline generation device 500 for the multi-physics field calculation results of the power equipment also includes a model construction module, which is used to perform deep-level octree construction processing on the simulation results and finite element meshes corresponding to the high-variation areas in the electromagnetic field area characteristics to obtain the octree structure of the high-variation areas; perform shallow-level octree construction processing on the simulation results and finite element meshes corresponding to the low-variation areas in the electromagnetic field area characteristics to obtain the octree structure of the low-variation areas; and obtain the octree model of the power equipment based on the octree structure of the high-variation areas and the octree structure of the low-variation areas.

[0140] Each module in the apparatus for generating post-processing streamlines for multi-physics field calculation results of power equipment can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0141] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means, and the wireless means can be achieved via Wi-Fi, mobile cellular networks, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements a method for generating post-processing streamlines for multi-physics field calculation results of power equipment. The display unit of the computer device is used to produce a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0142] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0143] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0144] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0145] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0146] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0147] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0148] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for generating post-processing streamlines of multi-physics field calculation results of power equipment, characterized in that: The method comprises: Obtain the electric field gradient and magnetic field gradient corresponding to the finite element mesh within the simulation area of the power equipment; If the gradient threshold corresponding to the electric field gradient or the magnetic field gradient exceeds the corresponding gradient threshold, dividing the finite element mesh into a high-variance region; If neither the electric field gradient nor the magnetic field gradient exceeds a corresponding gradient threshold, dividing the finite element mesh into a low-variance region; Performing deep-level octree construction processing on the simulation results and finite element mesh corresponding to the high-variation region in the electromagnetic field regional characteristics to obtain an octree structure of the high-variation region; Performing shallow-level octree construction processing on the simulation results and finite element mesh corresponding to the low-variation area in the electromagnetic field regional characteristics to obtain an octree structure of the low-variation area; Obtaining an octree model of the power equipment according to the octree structure of the high-variability region and the octree structure of the low-variability region; Obtaining spatial point coordinates input for a simulation area of the power equipment; Based on the spatial point coordinates, streamline position tracking processing is performed in the octree model of the power equipment to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and the processing results associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

2. The method according to claim 1, characterized in that The streamline position tracking process is performed in the octree model based on the spatial point coordinates to obtain a streamline position set, including: In the octree model, determining a finite element grid position corresponding to the spatial point coordinates, and setting the finite element grid position as a current streamline position; Performing Runge-Kutta processing on the current streamline position to obtain a next streamline position corresponding to the current streamline position; determining a target step length required to advance to the next streamline position according to electromagnetic field region characteristics corresponding to the current streamline position; Move to the next streamline position according to the target step size, and use the next streamline position as the current streamline position, jump to the step of performing Runge-Kutta processing on the current streamline position to obtain the next streamline position, until the preset streamline tracking termination condition is met, and output the streamline position set.

3. The method according to claim 2, characterized in that The performing Runge-Kutta processing on the current streamline position to obtain a next streamline position corresponding to the current streamline position includes: Determining a first slope corresponding to the current streamline position; Obtaining a second slope corresponding to the current streamline position according to the current streamline position, the first slope, and an integration step; Obtaining a third slope corresponding to the current streamline position according to the current streamline position, the second slope, and the integration step; Obtaining a fourth slope corresponding to the current streamline position according to the current streamline position, the third slope, and the integration step; A next streamline position corresponding to the current streamline position is obtained according to the current streamline position, the integration step, the first slope, the second slope, the third slope, and the fourth slope.

4. The method according to claim 2, characterized in that The step of determining a target step length required to advance to the next streamline position according to the electromagnetic field region characteristics corresponding to the current streamline position includes: If the region label in the electromagnetic field region feature corresponding to the current streamline position represents a high-variance region, determining the first step length as the target step length required to step to the next streamline position; If the region label in the electromagnetic field region feature corresponding to the current streamline position represents a low-variation region, the second step length is determined as the target step length required to step to the next streamline position; the second step length is greater than the first step length.

5. The method according to claim 1, wherein Before performing streamline position tracking processing in the octree model of the power equipment based on the spatial point coordinates to obtain a streamline position set, the method further includes: The electromagnetic field regional characteristics of the electric power equipment are obtained according to the electromagnetic field distribution data in the simulation results of the electric power equipment.

6. The method according to claim 5, characterized in that The obtaining of electromagnetic field regional characteristics of the power equipment according to electromagnetic field distribution data in the simulation results of the power equipment includes: Obtaining the electric field gradient and the magnetic field gradient of the power equipment according to the electromagnetic field distribution data in the simulation results of the power equipment; Dividing a finite element mesh within a simulation region of the power device into a high-variance region and a low-variance region according to the electric field gradient and the magnetic field gradient, and setting the high-variance region or the low-variance region as a region label of the corresponding finite element mesh; The electromagnetic field region feature is obtained according to the region label.

7. A post-processing streamline generation device for multi-physics field calculation results of power equipment, characterized in that: The device comprises: A preconfigured module is used to obtain the electric field gradient and magnetic field gradient corresponding to the finite element mesh in the simulation area of the power equipment; if the gradient threshold corresponding to the electric field gradient or the magnetic field gradient exceeds the corresponding gradient threshold, the finite element mesh is divided into a high-variance area; if neither the electric field gradient nor the magnetic field gradient exceeds the corresponding gradient threshold, the finite element mesh is divided into a low-variance area; a deep-level octree construction process is performed on the simulation results and the finite element mesh corresponding to the high-variance area in the electromagnetic field area characteristics to obtain the octree structure of the high-variance area; a shallow-level octree construction process is performed on the simulation results and the finite element mesh corresponding to the low-variance area in the electromagnetic field area characteristics to obtain the octree structure of the low-variance area; an octree model of the power equipment is obtained based on the octree structure of the high-variance area and the octree structure of the low-variance area; A coordinate acquisition module, configured to acquire the coordinates of a spatial point inputted into a simulation area of the power equipment; A streamline tracking module is used to perform streamline position tracking processing in the octree model of the power equipment based on the spatial point coordinates to obtain a streamline position set; the streamline position set includes each streamline position obtained by tracking and a processing result associated with each streamline position; the octree model is constructed according to the simulation results of the power equipment.

8. The device according to claim 7, characterized in that The streamline tracking module is further configured to determine, in the octree model, a finite element grid position corresponding to the spatial point coordinates, and set the finite element grid position as a current streamline position; Performing Runge-Kutta processing on the current streamline position to obtain a next streamline position corresponding to the current streamline position; determining a target step length required to step to the next streamline position based on the electromagnetic field region characteristics corresponding to the current streamline position; moving to the next streamline position according to the target step length, and using the next streamline position as the current streamline position, jumping to executing the step of performing Runge-Kutta processing on the current streamline position to obtain the next streamline position, until a preset streamline tracking termination condition is met, and outputting the streamline position set.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Self-adaptive step flow line generation method based on complete information entropy, computer equipment and storage medium

    CN116167221A