Flexible DC converter valve three-dimensional digital twin polymorphic evolution realization method and system

The connectivity and interpolation framework of the flexible direct converter valve and the point-measuring data interpolation framework are constructed through the spatial cube grid, which solves the problems of low accuracy and low storage efficiency in the existing technology, and achieves more accurate measurement and higher efficiency data processing.

CN119066914APending Publication Date: 2024-12-03BEIJING KEDONG ELECTRIC POWER CONTROL SYST CO LTD +4
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411115238.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing three-dimensional digital twin polymorphic evolution method of flexible DC converter valves fails to fully consider the complex structure of the equipment, resulting in low interpolation accuracy of measurement point data and low historical data storage efficiency.

Method used

The connectivity and interpolation frame of the flexible direct converter valve are constructed in the form of a spatial cube grid. By traversing the geometric vertices of the three-dimensional model of the device, dividing the cube grid cells, judging the device component type, allocating the state attribute space, generating an index and Extract the measurement point data and perform weighted measurement values.

Benefits of technology

It improves the interpolation accuracy of three-dimensional digital twin measurement point data, reduces the storage space requirement of historical data, and supports flexible adjustment of the cube grid to adapt to different equipment components, achieving more accurate measurement results and more efficient data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066914A_ABST
    Figure CN119066914A_ABST
Patent Text Reader

Abstract

The invention discloses a flexible direct current converter valve three-dimensional digital twin polymorphic evolution implementation method and system, and the method is characterized in that the method comprises the steps: obtaining the contour space of flexible direct current converter valve equipment through traversing the coordinates of all geometric vertexes in a flexible direct current converter valve equipment three-dimensional model, and uniformly dividing a plurality of cubic grid units; judging an equipment part type corresponding to each cubic grid unit, obtaining a corresponding measuring point, and distributing a state attribute space for each cubic grid unit based on the equipment part type and the number of the calculation grid units with adjacent measuring points; generating an index by using the state attribute space, extracting measuring point data corresponding to each cubic grid unit from pre-stored multi-section structured measuring point data, and filling the measuring point data into a corresponding position field in the state attribute space; and calculating the weighted measurement value and the weighted grid quantity of each cubic grid unit by using the value of the corresponding position field in the state attribute space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a field, and more specifically, to a method and system for realizing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve. Background Art

[0002] The flexible DC converter valve is a new type of power electronic device that plays an important role in the field of new energy. Flexible DC transmission technology is an emerging DC transmission technology that has the advantages of flexibility and controllability, and can effectively solve problems such as new energy grid connection and distributed energy grid access. The flexible DC converter valve is one of the core components of flexible DC transmission technology. It can shorten the time for grid troubleshooting to less than 100 milliseconds, and can also achieve rapid compensation for fluctuating clean energy charge and power, making clean energy grid connection possible.

[0003] The multi-state evolution of a flexible DC converter valve usually starts with data acquisition. The existing sensor network or simulation data is used to collect the operating parameters of the flexible DC converter valve under different operating conditions, such as voltage, current, temperature, pressure, etc.; and a three-dimensional geometric model of the flexible DC converter valve is constructed based on three-dimensional modeling software; then a digital twin platform or simulation software is used to perform data processing, model integration and visualization, and the three-dimensional geometric model is imported into the digital twin platform and connected to the real-time or simulated data stream to achieve the mapping of physical space and virtual space; finally, the visualization tools provided by the digital twin platform are used to display the three-dimensional model of the flexible DC converter valve and its internal state changes in real time.

[0004] The polymorphic evolution effect of the digital twin mainly depends on the use of limited sensor measurement point data to calculate the state data of the complete digital twin. The above scheme mainly uses a general digital twin platform or simulation software to calculate the input measurement point data according to the spatial distance and connection topology. The spatial connection relationship of the complex equipment model of the flexible DC converter valve is not considered, and the calculated virtual measurement point state data usually has a certain deviation.

[0005] In view of the above problems, a method and system for realizing polymorphic evolution of three-dimensional digital twin of flexible DC converter valve is urgently needed. Summary of the invention

[0006] In order to address the deficiencies in the prior art, the present invention provides a method and system for realizing the polymorphic evolution of a three-dimensional digital twin of a flexible DC converter valve. The method compresses and stores historical measurement data by utilizing the periodicity and repeatability of measurement points. By fully considering the influence of the shape structure of the three-dimensional model of the equipment on the interpolation of measurement point data, a framework for the connectivity of the flexible DC converter valve and the interpolation of measurement point data is constructed in the form of a spatial cube grid to implement extraction and analysis of the measurement data.

[0007] The present invention adopts the following technical solution.

[0008] The first aspect of the present invention relates to a method for realizing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve, the method comprising the following steps: obtaining a contour space of the flexible direct current converter valve equipment by traversing the coordinates of all geometric vertices in a three-dimensional model of the flexible direct current converter valve equipment, and evenly dividing the contour space into a plurality of cubic grid units; determining the type of equipment component corresponding to each cubic grid unit, obtaining the measuring point corresponding to each cubic grid unit, and allocating a state attribute space to each cubic grid unit based on the equipment component type and the number of calculation grid units with adjacent measuring points; generating an index using the state attribute space, extracting the measuring point data corresponding to each cubic grid unit from pre-stored multi-section structured measuring point data, and filling the data into the corresponding position field in the state attribute space; calculating the weighted measurement value and weighted grid quantity of each cubic grid unit using the value of the corresponding position field in the state attribute space.

[0009] Preferably, determining the type of device component corresponding to each cubic grid unit includes: emitting rays from the center point of the grid unit in six directions of the three-dimensional space to obtain the projected intersecting triangular facets of the device component passed by the rays; restoring the corresponding triangular facets of the device component using the projected intersecting triangular facets, and determining the type of the device component based on the position of the corresponding triangular facets.

[0010] Preferably, obtaining the measuring point corresponding to each cubic grid unit includes: collecting the three-dimensional spatial coordinates of the measuring point, generating the corresponding relationship between the measuring point and the cubic grid unit based on the three-dimensional spatial coordinates and the vertex coordinates of the cubic grid unit obtained in advance; the measuring point collects state values ​​of different attributes based on different measuring point types.

[0011] Preferably, a state attribute space is allocated to each cubic grid unit based on the equipment component type and the number of computing grid units with adjacent measuring points, including: the state attribute space includes a state attribute array and an impact measuring point sublist corresponding to the state value type field in the state attribute array; the state attribute array includes at least the state value of each measuring point type; the number of impact measuring point sublists is one or more, and the impact measuring point sublist is used to record the number of one or more computing grid units for the current cubic grid unit, the measuring point number in the computing grid unit, the measured value of the measuring point, and the association relationship between the impact distance value of the measuring point for the current cubic grid unit.

[0012] Preferably, the state attribute space includes a state attribute array and a sub-list of influencing measurement points corresponding to the state value type field in the state attribute array, including: if the state value of a current measurement point type is 0, the state attribute space does not contain a sub-list of influencing measurement points for the current measurement point type; if the state value of the current measurement point type is 1, the state attribute space contains a sub-list of influencing measurement points for the current measurement point type.

[0013] Preferably, the influencing measurement point sublist is used to record the numbers of one or more computing grid cells for the current cubic grid cell, including: traversing all neighboring grid cells around the current cubic grid cell that are less than the farthest influencing path distance, and recording all neighboring grid cells that have the current measurement point type inside; and using all neighboring grid cells that have the current measurement point type inside as computing grid cells for the current measurement point type.

[0014] Preferably, the correlation relationship between the influence distance values ​​of the measuring point on the current cubic grid unit is as follows: extracting the center point coordinates of the current cubic grid unit and the computing grid unit, and calculating the distance between the center point coordinates of the two; normalizing the distance between the center point coordinates based on the side length of the cubic grid unit; using the normalized distance between the center point coordinates as the influence distance value J of the measuring point i on the current cubic grid unit in the computing grid unit. i .

[0015] Preferably, the state attribute space is used to generate an index, and the measuring point data corresponding to each cubic grid unit is extracted from the pre-stored multi-section structured measuring point data, including: the pre-stored multi-section structured measuring point data is structured based on the number of sections, the number of state value types, the number of measuring points, and the number of acquisition moments in each section; the pre-stored multi-section structured measuring point data supports sequential storage, reading and replay of measuring point data based on array access index and two-dimensional array index.

[0016] Preferably, the state attribute space is used to generate an index, including: generating the array access index based on the state value type to be analyzed; generating a row index in a two-dimensional array index based on the measurement point number in each calculation grid unit in the sub-list of the affecting measurement points in the state attribute space; and generating a column index in the two-dimensional array index based on the time to be analyzed.

[0017] Preferably, the weighted measurement value and the weighted grid quantity of each cubic grid unit are calculated using the value of the corresponding position field in the state attribute space, including: using the influence distance values ​​J1, J2, ..., J of the calculation grid unit in the influence measurement point sublist n Obtain the influence weights and calculate the measured values ​​V1, V2, …, V nPerform weighted summation to obtain the weighted measurement value of the current cubic grid unit for the current measurement point type t w i is the influence weight, and the calculation formula is:

[0018]

[0019] n is the number of measurement points in the influencing measurement point sublist.

[0020] Preferably, the weighted measurement value and weighted grid quantity of each cubic grid unit are calculated using the value of the corresponding position field in the state attribute space, including: obtaining all the measurement point types in the current cubic grid unit, setting the influence weight for each type of measurement point type, and calculating all the weighted measurement values ​​V t A weighted sum is performed to obtain a weighted grid volume.

[0021] The second aspect of the present invention relates to a three-dimensional digital twin polymorphic evolution implementation system of a flexible direct current converter valve using the method in the first aspect of the present invention, the system comprising a partitioning module, an allocation module, an extraction module and a calculation module; wherein the partitioning module is used to obtain the contour space of the flexible direct current converter valve device by traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve device, and evenly divide the contour space into multiple cubic grid units; the allocation module is used to determine the type of equipment component corresponding to each cubic grid unit, obtain the measuring point corresponding to each cubic grid unit, and allocate a state attribute space to each cubic grid unit based on the equipment component type and the number of calculation grid units with adjacent measuring points; the extraction module is used to generate an index using the state attribute space, extract the measuring point data corresponding to each cubic grid unit from the pre-stored multi-section structured measuring point data, and fill it into the corresponding position field in the state attribute space; the calculation module is used to calculate the weighted measurement value and weighted grid quantity of each cubic grid unit using the value of the corresponding position field in the state attribute space.

[0022] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.

[0023] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in the first aspect of the present invention.

[0024] The beneficial effect of the present invention lies in that, compared with the prior art, a method and system for realizing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve in the present invention fully considers the influence of the shape structure of the three-dimensional model of the equipment on the interpolation of the measuring point data, and adopts the form of a spatial cube grid to construct the connectivity of the flexible direct current converter valve and the framework of the interpolation of the measuring point data, thereby improving the interpolation accuracy of the measuring point data of the three-dimensional digital twin; in addition, the present invention utilizes the periodicity and repeatability of the measuring points to compress the historical data, thereby reducing the data storage space occupied by the historical data.

[0025] The beneficial effects of the present invention also include:

[0026] 1. By autonomously dividing the cubic grid units, the cubic grid for separating the equipment components can be obtained according to the equipment component parameters in the flexible direct current converter valve, so as to achieve the analysis purpose of one equipment component in one cubic grid unit under ideal conditions. According to the measurement and evaluation requirements of the equipment components of the flexible direct current converter valve, the method supports flexible adjustment of the cubic grid units, so as to accurately divide the cubic grid and collect and analyze the measurement information according to the equipment models actually used in the flexible direct current converter valve and the equipment components of different sizes.

[0027] 2. The measurement data collection and extraction process of the present invention is implemented based on the evaluation requirements of each different equipment component. The type of equipment component can be obtained based on the reasonable classification of spatial information such as the shape and position of the equipment in the three-dimensional modeling process. In order to save the amount of modeling calculations, the type of equipment component is estimated based on the distance between the intersecting triangles on the six rays and the center point of the cube grid unit. Based on the pre-acquired three-dimensional point cloud data, it also supports pre-judgment of the type of equipment component through the contour information of the three-dimensional point cloud falling into the cube grid space, and the contour of the equipment component is classified and labeled before the implementation of the method of the present invention.

[0028] On this basis, according to the type of equipment components, each cubic grid dispatches the measurement point information inside the grid and all the measurement point information outside the grid to the greatest extent, and uses the influence distance as the weight to implement comprehensive and accurate measurement evaluation of the full information for each cubic grid, and obtains the most reliable measurement results in a simple calculation method. At present, the present invention provides more accurate measurement results than any previous equipment component measurement data of the three-dimensional twin model.

[0029] 3. In practice, the method can also support the use of different distance weight calculation methods. For example, the distance weight is used to characterize the attenuation between multiple measuring point signals and restore the original fault at the position to be calculated. In this process, the pre-attenuation signal of the weighted virtual measuring point to be calculated is evaluated by the attenuation degree of the measuring information of the measuring points at different distances, thereby fully avoiding unknown potential faults at the grid unit position without measuring points.

[0030] 4. Generally speaking, when the flexible direct current converter valve equipment is put into use, it does not support shutdown and business interruption for secondary needs such as safety measurement. However, with the development of business, the demand for measurement and control of flexible direct current converter valve equipment has gradually increased, which has led to an imbalance between business demand and equipment deployment. By adopting the method of the present invention, there is no need to improve the sensor deployment method in the flexible direct current converter valve hall, and more measurement points can be virtualized, which saves labor costs and equipment costs while ensuring safer and more cautious measurement and control results.

[0031] 5. In order to avoid extracting a large amount of memory data in the process of calculating the measurement values ​​of virtual measuring points, causing memory overflow or slow calculation process, the method of the present invention collects and stores the original measurement data in a multi-section indexed manner, and pre-constructs a cubic grid unit, a device type corresponding to each grid unit, and a STATE array corresponding to each grid unit, so as to use the STATE array as an index in real time to extract and put back the data to be calculated in an orderly and efficient manner from the multi-section measurement data, ensuring that the calculation process is fast and accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the steps of a method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to the present invention;

[0033] Figure 2 This is a schematic diagram of the module structure of a three-dimensional digital twin polymorphic evolution implementation system of a flexible direct current converter valve of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in the present invention are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, all other embodiments not recorded in the present invention obtained by ordinary technicians in this field according to the embodiments recorded in the present invention without making creative work should belong to the protection scope of the present invention.

[0035] Figure 1 The figure is a schematic diagram of the steps of a method for realizing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to the present invention. Figure 1 As shown, the first aspect of the present invention relates to a method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve, and the method includes steps 1 to 4.

[0036] Step 1: Obtain the contour space of the flexible direct current converter valve device by traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve device, and evenly divide the contour space into multiple cubic grid units.

[0037] Step 2, determine the equipment component type corresponding to each cubic grid unit, obtain the measurement point corresponding to each cubic grid unit, and allocate state attribute space to each cubic grid unit based on the equipment component type and the number of calculation grid units with adjacent measurement points.

[0038] Step 3: Generate an index using the state attribute space, extract the measurement point data corresponding to each cubic grid unit from the pre-stored multi-section structured measurement point data, and fill it into the corresponding position field in the state attribute space.

[0039] Step 4, using the value of the corresponding position field in the state attribute space, calculate the weighted measurement value and weighted grid quantity of each cubic grid unit.

[0040] First, the information of the outer cube of the three-dimensional model of the flexible direct current converter valve equipment is calculated, and the maximum value Xmax of the X axis, the minimum value Xmin of the X axis, the maximum value Ymax of the Y axis, the minimum value Ymin of the Y axis, the maximum value Zmax of the Z axis, and the minimum value Zmin of the Z axis of all geometric vertices are obtained by traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve equipment.

[0041] Set the side length of each cubic grid unit to d, and divide the cubic grid unit with point P (Xmin, Ymin, Zmin) as the starting point.

[0042] In the X direction, (Xmax-Xmin) / d rows can be divided. If (Xmax-Xmin) / d is not an integer, the number of rows is (Xmax-Xmin) / d rounded up and added with 1, and the number of rows in the X direction is recorded as Rx.

[0043] The Y direction can be divided into (Ymax-Ymin) / d rows. If (Ymax-Ymin) / d is not an integer, the number of rows is (Ymax-Ymin) / d rounded up and added with 1, and the number of rows in the Y direction is recorded as Ry.

[0044] In the Z direction, it can be divided into (Zmax-Zmin) / d rows. If (Zmax-Zmin) / d is not an integer, the number of rows is (Zmax-Zmin) / d rounded up and added with 1, and the number of rows in the Z direction is recorded as Rz.

[0045] A total of Rx*Ry*Rz space cube grid units can be divided and stored in a three-dimensional array, which is UnitArray[Rx][Ry][Rz].

[0046] Suppose the three axial serial numbers of the cube grid cells in the array are i, j, and k (the serial numbers start from 0, then the spatial coordinates of the lower left corner of the cube grid cell corresponding to the three-dimensional array of cube grid cells [i][j][k] are (Xmin+i*d, Ymin+j*d, Zmin+k*d).

[0047] Determine the validity of each of the cubic grid units, if there is a device in the grid unit, it is valid. A similar method can also be used to determine the type of device component corresponding to each cubic grid unit. Preferably, determining the type of device component corresponding to each cubic grid unit includes: starting from the center point of the grid unit, emitting rays in six directions of three-dimensional space to obtain the projected intersecting triangular facets of the device component passed by the ray; using the projected intersecting triangular facets to restore the corresponding triangular facets of the device component, and determining the type of the device component based on the position of the corresponding triangular facets.

[0048] Since some cubic grid cells do not intersect with the physical space of the three-dimensional model of the flexible direct current converter valve equipment, it will affect the calculation of the measurement point data. It is necessary to judge the validity of these cubic grid cells, that is, whether each cubic grid cell intersects with a certain three-dimensional model space position of the equipment component of the flexible direct current converter valve equipment. In addition, it is necessary to obtain the electrical equipment component where the cubic grid cell is located to set the electrical, thermal, and magnetic conduction parameters of the cubic grid cell.

[0049] The method for judging the validity of the three-dimensional array [i][j][k] of each cube grid unit is as follows:

[0050] The coordinates of the lower left vertex of the enclosing cube A of the grid corresponding to the three-dimensional array of cube grid cells [i][j][k] are (Xmin+i*d,Ymin+j*d,Zmin+k*d), and the upper right vertex are (Xmin+(i+1)*d,Ymin+(j+1)*d,Zmin+(k+1)*d).

[0051] The three-dimensional models of all equipment components of the flexible direct current converter valve equipment are obtained in sequence, and the outer cube B of the three-dimensional model of each equipment component is calculated to determine whether the outer cube B has an intersecting part with the outer cube A. If there is no intersection, proceed to the next equipment component; if there is an intersection, record the equipment component and proceed to the next step for further intersection judgment.

[0052] For the equipment components that the outsourced cubes intersect in the previous step, further determine whether the cube grid unit is valid by determining whether the center point of the cube grid unit is inside the geometric model of a certain equipment component; if the center point of the grid unit is not inside the geometric model of the equipment component, and the grid unit intersects with the equipment component space, mark the grid unit as invalid. If the cube grid unit intersects with a certain equipment component, the cube grid unit is valid, and the validity of the cube grid unit is recorded as true, and the serial number of the intersecting equipment component of the cube grid unit is recorded; otherwise, the cube grid unit is invalid, and the validity of the cube grid unit is recorded as false.

[0053] A detection ray is constructed from the center point of the cubic grid unit, and the projected intersecting triangular facets on the detection rays in different directions are obtained to analyze whether the center point of the cubic grid unit is located inside the equipment component. The projected intersecting triangular facets are obtained by pre-modeling the flexible direct current converter valve equipment in three dimensions, for example, by using a three-dimensional point cloud method to support scanning equipment to continuously scan and detect the flexible direct current converter valve equipment, thereby obtaining multiple triangular facets.

[0054] The method for determining whether the center point of a cubic grid cell is inside the geometric model of a certain device component is as follows:

[0055] The coordinates of the center point of the cube grid unit are calculated as CA

[0056] (Xmin+i*d+d / 2,Ymin+j*d+d / 2,Zmin+j*d+d / 2)=(Dx,Dy,Dz)

[0057] With CA as the center, six intersection detection rays are generated in six directions corresponding to the three axes corresponding to the cube grid unit. The definition of the rays is as follows:

[0058] Ray 1: Ray starting point CA, ray direction point D1 (Dx+1000, Dy, Dz)

[0059] Ray 2: Ray starting point CA, ray direction point D2 (Dx-1000, Dy, Dz)

[0060] Ray 3: Ray starting point CA, ray direction point D3 (Dx, Dy+1000, Dz)

[0061] Ray 4: Ray starting point CA, ray direction point D4 (Dx, Dy-1000, Dz)

[0062] Ray 5: Ray starting point CA, ray direction point D5 (Dx, Dy, Dz+1000)

[0063] Ray 6: Ray starting point CA, ray direction point D6 (Dx, Dy, Dz-1000)

[0064] For each detection ray, a plane P perpendicular to the ray is generated through the ray direction point, and then all the triangular geometric facets on the same side of the three-dimensional model of the equipment component are projected onto plane P in turn to form a projected triangle T. If the ray direction point is inside the projected triangle T (including the edge), the ray intersects with the triangular facet, otherwise the ray does not intersect with the triangular facet.

[0065] The specific steps of the above method are as follows:

[0066] Let the triangle patch be M, and the coordinates of the three vertices be (Ax, Ay, Az), (Bx, By, Bz), (Cx, Cy, Cz)

[0067] For ray 1:

[0068] Compare the x-coordinates of Ax, Bx, Cx and CA respectively. If Ax, Bx, Cx are all less than or equal to the x-coordinate of CA, then the triangle M is on a different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0069] The coordinates of the three vertices of the triangle formed after projection are A”(D1x+1000,Ay,Az),B”

[0070] (D1x+1000,By,Bz),C”(D1x+1000,Cy,Cz).

[0071] Calculate the area S1 of triangle D1A"B", the area S2 of triangle D1A"C", the area S3 of triangle D1B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D1 is in the projected triangle T; otherwise, D1 is not in the projected triangle T.

[0072] If D1 is projecting triangle T, then ray 1 has an intersecting triangle M, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles are judged and ray 1 does not have an intersecting triangle.

[0073] For ray 2:

[0074] Compare the x-coordinates of Ax, Bx, Cx and CA respectively. If Ax, Bx, Cx are all greater than or equal to the x-coordinate of CA, then the triangle M is on a different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0075] The coordinates of the three vertices of the triangle formed after projection are A”(D2x-1000,Ay,Az), B”(D2x-1000,By,Bz), and C”(D2x-1000,Cy,Cz).

[0076] Calculate the area S1 of triangle D2A"B", the area S2 of triangle D2A"C", the area S3 of triangle D2B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D2 is in the projected triangle T; otherwise, D2 is not in the projected triangle T.

[0077] If D2 is projecting triangle T, then ray 2 has intersecting triangles, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles have been judged and ray 2 does not have intersecting triangles.

[0078] For ray 3:

[0079] Compare the y coordinates of Ay, By, Cy and CA respectively. If Ay, By, Cy are all less than or equal to the y coordinate of CA, the triangle M is on the different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0080] The coordinates of the three vertices of the triangle formed after projection are A”(Ax,D3y+1000,Az),B”

[0081] (Bx,D3y+1000,Bz),C”(Cx,D3y+1000,Cz).

[0082] Calculate the area S1 of triangle D3A"B", the area S2 of triangle D3A"C", the area S3 of triangle D3B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D3 is in the projected triangle T; otherwise, D3 is not in the projected triangle T.

[0083] If D3 is projecting triangle T, then ray 3 has intersecting triangles, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles have been judged and ray 3 does not have intersecting triangles.

[0084] For ray 4:

[0085] Compare the y coordinates of Ay, By, Cy and CA respectively. If Ay, By, Cy are all greater than or equal to the y coordinate of CA, the triangle M is on the different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0086] The coordinates of the three vertices of the triangle formed after projection are A”(Ax,D4y+1000,Az),B”

[0087] (Bx,D4y+1000,Bz),C”(Cx,D4y+1000,Cz).

[0088] Calculate the area S1 of triangle D4A"B", the area S2 of triangle D4A"C", the area S3 of triangle D4B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D3 is in the projected triangle T; otherwise, D3 is not in the projected triangle T.

[0089] If D4 is projecting triangle T, then ray 4 has intersecting triangles, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles have been judged and ray 4 has no intersecting triangles.

[0090] For ray 5:

[0091] Compare the z coordinates of Az, Bz, Cz and CA respectively. If Az, Bz, Cz are all less than or equal to the z coordinate of CA, then the triangle M is on a different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0092] The coordinates of the three vertices of the triangle formed after projection are A”(Ax, Ay, D5z+1000), B”

[0093] (Bx,By,D5z+1000),C”(Cx,Cy,D5z+1000).

[0094] Calculate the area S1 of triangle D5A"B", the area S2 of triangle D5A"C", the area S3 of triangle D5B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D5 is in the projected triangle T; otherwise, D5 is not in the projected triangle T.

[0095] If D5 is projecting triangle T, then ray 5 has intersecting triangles, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles are judged and ray 5 does not have intersecting triangles.

[0096] For ray 6:

[0097] Compare the z coordinates of Az, Bz, Cz and CA respectively. If Az, Bz, Cz are all greater than or equal to the z coordinate of CA, the triangle M is on the different side of the ray and cannot intersect. Then continue to take the next triangle for judgment.

[0098] The coordinates of the three vertices of the triangle formed after projection are A”(Ax, Ay, D6z+1000), B”

[0099] (Bx,By,D6z+1000),C”(Cx,Cy,D6z+1000).

[0100] Calculate the area S1 of triangle D6A"B", the area S2 of triangle D6A"C", the area S3 of triangle D6B"C", and the area S of triangle A"B"C" respectively. If S=S1+S2+S3, then D6 is in the projected triangle T; otherwise, D6 is not in the projected triangle T.

[0101] If D6 is projecting triangle T, then ray 6 has intersecting triangles, and the judgment ends; otherwise, continue to take the next triangle for judgment until all triangles have been judged and ray 6 has no intersecting triangles.

[0102] A similar method is used to determine the position of the intersecting triangles on the ray, or the outline of the equipment component is obtained by the point cloud reconstruction method in the prior art, so as to obtain the type information of the equipment through a classification algorithm.

[0103] Preferably, a state attribute space is allocated to each cubic grid unit based on the equipment component type and the number of computing grid units with adjacent measuring points, including: the state attribute space includes a state attribute array and an impact measuring point sublist corresponding to the state value type field in the state attribute array; the state attribute array includes at least the state value of each measuring point type; the number of impact measuring point sublists is one or more, and the impact measuring point sublist is used to record the number of one or more computing grid units for the current cubic grid unit, the measuring point number in the computing grid unit, the measured value of the measuring point, and the association relationship between the impact distance value of the measuring point for the current cubic grid unit.

[0104] Based on the equipment component type corresponding to the center point of the cubic grid unit, a state attribute space is allocated to each cubic grid unit. The state attribute space of each cubic grid unit is stored in a reserved space in the database. The state attribute space stores the state values ​​corresponding to the attributes of multiple grid units in sequence.

[0105] The state attribute space is one or more arrays located at a specific position in the storage space or corresponding to a specific pointer for extracting and identifying data from the storage space. The one or more data in the storage space are used to store the attribute information and measurement point data of different dimensions of the current cube grid unit, such as the data V used to store the calculation measurement point unit and the state attribute array STATE used to store the state attributes of the grid unit mentioned below.

[0106] In order to establish a digital twin of a flexible direct current converter valve, the present invention constructs a digital twin of a flexible direct current converter valve based on spatial cube grid units. Each grid unit is a basic unit of the digital twin and stores the state attribute values ​​of the measuring points in each spatial grid unit of the flexible direct current converter valve device.

[0107] Each spatial grid cell includes different status values ​​according to the equipment component to which it belongs, as shown in the following table:

[0108]

[0109]

[0110] Table 1STATE array field table Different types of equipment components correspond to different state value types.

[0111] The state value definition type of the cube unit grid is set according to the device component where the cube unit grid is located and the physical characteristics of the device component. First, the state value type definition of each cube unit grid is set to 0000, and then the state value type definition of each cube unit grid is set according to the following rules.

[0112]

[0113] Table 2 Correspondence between equipment components and fields in the STATE array

[0114] Therefore, the present invention defines a STATE array according to the type of the state attribute of the current cube grid unit. It is easy to imagine that the array includes 5 fields in the form of [voltage state value field, current state value field, temperature state value field, vibration state value field, grid unit validity field]. Each field identifies the state attribute space of the current cube grid, whether the corresponding measurement point information or indirect measurement value storage space is reserved. If the state value field value is 0, it means that there is no storage location allocated for such a measurement point in the storage space, and if the field value is 1, it means that storage space is allocated for such measurement point information in the storage space. In the following text, the allocation method of the storage space will be described. In addition, the grid unit validity field value is 0, indicating that there is no device in the grid, so there is no need to allocate storage space for the measurement point information. The field value is 1, indicating that there is a device and the storage space is allocated accordingly.

[0115] The STATE array itself is also stored in the state attribute space. In addition, based on the information in the STATE array and the number of neighboring calculation grid cells of the cube grid cell that are used to calculate the measurement information obtained subsequently, the present invention also allocates the amount of storage space of the grid to each cube grid cell. Based on the above information, one or more empty arrays can be generated, each of which has a fixed length, and the length is determined based on the number of calculation grid cells. The number of arrays is obtained based on the values ​​of multiple state value fields in the STATE array. In addition, the actual meaning of the information in the array is also analyzed based on the values ​​of the state value fields.

[0116] The state measurement points are various sensors installed inside the converter valve device, which can generate different types of state values. It is easy to imagine that the measurement point position is obtained by collecting three-dimensional position space information based on the positioning model inside the measurement point sensor. Before being installed inside the converter valve device, the positioning module inside the sensor converts the collected three-dimensional geographic coordinates into the calculated coordinates of the cubic grid unit in the present invention through position alignment calculation, so that the measurement point sensor sends the measurement point information and position information together to obtain the three-dimensional position coordinates (Cx, Cy, Cz). This information is used for subsequent calculations of the cubic grid units corresponding to the measurement points.

[0117] The status measurement points installed inside the converter valve equipment cannot cover all the cubic grid units. In order to update the current state data of the converter valve digital twin, the cubic grid unit where each measuring point is located is first calculated for the same type of measuring point, and then the set of measuring point grid units corresponding to each cubic grid unit that does not include the current type of measuring point is obtained.

[0118] According to the three-dimensional spatial coordinates of the measuring point, the cubic grid unit corresponding to the measuring point is calculated.

[0119] According to the three-dimensional spatial coordinates (Cx, Cy, Cz) of each measuring point, as well as the maximum value Xmax of the X axis, the minimum value Xmin of the X axis, the maximum value Ymax of the Y axis, the minimum value Ymin of the Y axis, the maximum value Zmax of the Z axis, the minimum value Zmin of the Z axis of all defined geometric vertices, and the side length d of the cube grid unit, the three-dimensional serial number of the cube space grid where each measuring point is located can be calculated:

[0120] The array index Rx of the X plane is (Cx-Xmin) / d. If (Cx-Xmin) / d is not an integer, the number of rows is Cx-Xmin) / d rounded up and added to 1.

[0121] The array index Ry of the Y plane is (Cy-Ymin) / d. If (Cy-Ymin) / d is not an integer, the number of rows is (Cy-Ymin) / d rounded up and added with 1.

[0122] The array index Rz of the Z plane is (Cz-Zmin) / d. If (Cz-Zmin) / d is not an integer, the number of rows is (Cz-Zmin) / d rounded up and added with 1.

[0123] For any current cubic grid unit that does not contain the current measuring point, a calculation measuring point unit associated with the current cubic grid unit is extracted, and a path distance of the calculation measuring point unit to the current cubic grid unit is extracted.

[0124] The calculation measurement point unit is the adjacent grid unit of the current cube grid unit, and the adjacent grid unit is obtained based on the preset farthest influence path distance.

[0125] Preferably, the influencing measurement point sublist is used to record the numbers of one or more computing grid cells for the current cubic grid cell, including: traversing all neighboring grid cells around the current cubic grid cell that are less than the farthest influencing path distance, and recording all neighboring grid cells that have the current measurement point type inside; and using all neighboring grid cells that have the current measurement point type inside as computing grid cells for the current measurement point type.

[0126] For a measuring point, calculate the calculated measuring point unit corresponding to each cubic grid unit that does not contain the measuring point, and use the method of active expansion search of the unit where the measuring point is located to perform the following operations on all measuring points. The specific steps are as follows:

[0127] (1) For the cubic grid cell Q where the measuring point A is located, set MD to the farthest influencing path distance.

[0128] (2) Let the cell array elements of the cubic grid cell Q be C[Nx][Ny][Nz], where Nx is the array index of the X dimension, Ny is the array index of the Y dimension, and Nz is the array index of the Z dimension.

[0129] (3) Establish a cubic grid cell array V for temporarily storing adjacent grid cells waiting to be searched; and set the cubic grid cell Q to the visited state.

[0130] (4) Get the array elements of the adjacent cells of the cubic grid cell Q.

[0131] The number of adjacent grid cells of the cubic grid cell Q is 26, including:

[0132] The faces overlap 6 adjacent grid cells, which are:

[0133] C[Nx+1][Ny][Nz], C[Nx-1][Ny][Nz],

[0134] C[Nx][Ny+1][Nz], C[Nx][Ny-1][Nz],

[0135] C[Nx][Ny][Nz+1], C[Nx][Ny][Nz-1];

[0136] There are 12 adjacent grid cells with overlapping edges, which are:

[0137] C[Nx][Ny+1][Nz+1], C[Nx][Ny-1][Nz-1],

[0138] C[Nx][Ny+1][Nz-1], C[Nx][Ny-1][Nz+1],

[0139] C[Nx+1][Ny][Nz+1], C[Nx-1][Ny][Nz-1],

[0140] C[Nx+1][Ny][Nz-1], C[Nx-1][Ny][Nz+1],

[0141] C[Nx+1][Ny+1][Nz], C[Nx-1][Ny-1][Nz],

[0142] C[Nx+1][Ny-1][Nz], C[Nx-1][Ny+1][Nz];

[0143] There are 8 adjacent grid units with overlapping vertices, which are:

[0144] C[Nx+1][Ny+1][Nz+1], C[Nx-1][Ny-1][Nz+1],

[0145] C[Nx+1][Ny-1][Nz+1], C[Nx-1][Ny+1][Nz+1],

[0146] C[Nx+1][Ny+1][Nz-1], C[Nx-1][Ny-1][Nz-1],

[0147] C[Nx+1][Ny-1][Nz-1], C[Nx-1][Ny+1][Nz-1].

[0148] (5) The associated calculation point cells are selected from all adjacent grid cells of the current cube grid cell.

[0149] Define all the adjacent grid cells containing the current measurement point among the 26 adjacent grid cells around the current cubic grid cell that does not contain the current measurement point as associated calculation measurement point units, which are used to compensate the current measurement information of the current cubic grid cell, and are therefore also called compensated adjacent grid cells. Determine whether the above 26 grid cells are compensated adjacent grid cells. If they are compensated, store the compensated grid cell B in the cubic grid cell array V as the initial array cell element; set the access status of grid cell B to have been accessed; and assign values ​​to the influencing measurement points of the compensated adjacent grid cells at the same time, and the assignment is implemented using the measurement values ​​of the real measurement points. The way to store grid cell B in the cubic grid cell array V is to add them to the end of the array in sequence.

[0150] The path distance is calculated based on the geometric distance between the cubic grid units. Preferably, the correlation relationship between the influence distance values ​​of the measuring point on the current cubic grid unit is as follows: extract the center point coordinates of the current cubic grid unit and the calculation grid unit, and calculate the distance between the center point coordinates of the two; normalize the distance between the center point coordinates based on the side length of the cubic grid unit; use the distance between the normalized center point coordinates as the influence distance value J of the measuring point i in the calculation grid unit on the current cubic grid unit i .

[0151] For the six adjacent grid cells with overlapping faces, the path distance between the measuring point A in the adjacent grid cell and the current cube grid is 1.

[0152] For 12 adjacent grid cells with overlapping edges, the path distance between the measuring point A in the adjacent grid cell and the current cube grid is

[0153] For 8 adjacent grid cells with overlapping vertices, the path distance between the measuring point A in the adjacent grid cell and the current cube grid is

[0154] In addition, it is necessary to determine whether the grid cells are reasonable.

[0155] If the current cube grid at the edge may have far less than 26 adjacent grid cells, then it is determined whether the adjacent grid cells actually exist, that is, whether the adjacent grid cells are reasonable grid cells. Therefore, for each adjacent grid cell, the following steps are performed:

[0156] The sequence number of the X dimension of the grid unit is greater than or equal to 0 and less than or equal to the maximum number of rows Rx in the X direction. If it is satisfied, it is reasonable; otherwise, it is unreasonable.

[0157] The sequence number of the Y dimension of the grid unit is greater than or equal to 0 and less than or equal to the maximum number of rows Ry in the Y direction. If it is satisfied, it is reasonable; otherwise, it is unreasonable.

[0158] The sequence number of the Z dimension of the grid unit is greater than or equal to 0 and less than or equal to the maximum number of rows Rz in the Z direction. If it is satisfied, it is reasonable; otherwise, it is unreasonable.

[0159] In the process of constructing the cube grid unit data V, the computer also determines whether the grid unit is reasonable through the access status of the grid unit to avoid duplication problems in computer storage operations. For each cube grid unit whose measurement point information is currently to be calculated, the access status of the grid unit is not visited. If it meets the requirements, it is reasonable, and if it does not meet the requirements, it is unreasonable.

[0160] In addition, in the process of allocating arrays, methods related to the state value types of grid cells and measuring points are also required. If the value of a state value type in the STATE array is 0, the array V and the array position of other measuring point data information are not allocated to it, and the current cube grid cell does not have these arrays.

[0161] If the measuring point is a voltage state value, determine whether the first bit on the left of the state value type of the grid unit is 1. If it is 1, the grid unit and the measuring point state value type are related. If it is 0, the grid unit and the measuring point state value type are not related. If the measuring point is a current state value, determine whether the second bit on the left of the state value type of the grid unit is 1. If it is 1, the grid unit and the measuring point state value type are related. If it is 0, the grid unit and the measuring point state value type are not related.

[0162] If the measuring point is a temperature state value, determine whether the third bit on the left of the state value type of the grid unit is 1. If it is 1, the grid unit and the measuring point state value type are related. If it is 0, the grid unit and the measuring point state value type are not related.

[0163] If the measuring point is a vibration state value, determine whether the 4th bit on the left of the state value type of the grid unit is 1. If it is 1, the grid unit and the measuring point state value type are related. If it is 0, the grid unit and the measuring point state value type are not related.

[0164] In addition, according to actual measurement needs, a position can be reserved for the state value type field in the STATE array to add other measurement point state value types according to future business expansion. According to the field value in the STATE array, the number of cube grid cell arrays V can be changed, and the number and length of the corresponding measurement point information storage array can also be changed.

[0165] In the process of constructing array V, a temporary array Vtemp is needed to store all reasonable neighbor grids of the current cube grid unit. When constructing array V, take out neighbor grid elements one by one from Vtemp, and judge whether they can be stored in data V. After the judgment, discard the element from Vtemp. In the process of loop operation, judge whether the cube grid unit array Vtemp is empty. If it is empty, the calculation measurement point unit search step of measuring point A ends; if it is not empty, continue to take out the first cube grid unit Q in the array from the head of the array, and remove grid unit Q from the cube grid unit array; compare the influence distance value of measuring point A of grid unit Q. If the influence distance value of measuring point A is greater than the farthest influence path distance MD of the measuring point, do not add the neighbor grid element to array V, otherwise add the neighbor grid element to data V. For the construction process of Vtemp, obtain the neighbor grid units of cube grid unit Q. The acquisition method is the same as before, and a total of 26 neighbor grid units are obtained.

[0166] According to the above rules, determine whether the above 26 grid cells are reasonable and belong to adjacent grid cells with relevant measuring point status value types. If they are reasonable and the measuring point status value types are relevant, then add the reasonable grid cell B with relevant measuring point status value types from the tail of the array Vtemp of the cube grid cell C; and set the access status of the grid cell B to have been visited; then add the measuring point A to the list of affected measuring points of the current cube grid cell C, and assign the measuring point A influence distance value of the grid cell B.

[0167] The assignment method is:

[0168] For adjacent grid cells with overlapping surfaces, the influence distance of measurement point A of grid cell B is the influence distance of measurement point A of grid cell Q plus 1.

[0169] For adjacent grid cells with overlapping edges, the influence distance of point A of grid cell B is the influence distance of point A of grid cell Q plus the influence distance of point A of grid cell Q

[0170] For adjacent grid cells with overlapping vertices, the influence distance of point A of grid cell B is the influence distance of point A of grid cell Q plus the influence distance of point A of grid cell Q

[0171] The list of influencing measuring points includes multiple columns of different information. The first column may be each element Q in the cubic grid cell array V, followed by the measuring point A corresponding to each element, the measurement value of each measuring point and the influencing distance value of each measuring point.

[0172] Therefore, the array of cubic grid cells can be represented as:

[0173] V=[Q1,Q2,Q3,……,Qn]

[0174] In the formula, Q1 to Qn are multiple three-dimensional grid units, the grid units are numbered 1, 2, 3, ..., n, and the number of grid units is n.

[0175] Finally, the content of the list of influencing measurement points is:

[0176] Calculate the grid cell V Measuring point Measurement value Impact distance value Q1 A1 T1 V1 Q2 A2 T2 V2 Q3 A3 T3 V3 …… …… …… …… Q An Tn Vn

[0177] Table 3 List of impact measurement points

[0178] For the array V, if a neighboring grid cell satisfies the conditions of being a compensated grid cell, a neighboring grid cell, and a reasonable grid cell at the same time, it will be filled into the array, otherwise, it will not be stored in the array. As mentioned above, not every cubic grid uses 26 neighboring grids as the computational grid cell that affects the measurement point, so in fact the array content is not complete, and each sub-array is connected head to tail to ensure the continuity of the array.

[0179] The above list corresponds to all types of measurement points. All types of measurement points and all calculation measurement point units are put into the list of affected measurement points. One grid unit may correspond to multiple measurement points. In the actual calculation process, the above list can be disassembled into 4 lists. After disassembly, there is a sublist for one type of measurement point; if there are 4 types of measurement points in the current cube grid unit, there are 4 sublists for subsequent extraction of measurement point data and calculation.

[0180] Preferably, the state attribute space includes a state attribute array and a sub-list of influencing measurement points corresponding to the state value type field in the state attribute array, including: if the state value of a current measurement point type is 0, the state attribute space does not contain a sub-list of influencing measurement points for the current measurement point type; if the state value of the current measurement point type is 1, the state attribute space contains a sub-list of influencing measurement points for the current measurement point type.

[0181] Calculate the state value of each state type in the current cube grid cell. If the grid has a current measurement point, directly use the measurement value as the state value. If not, find the weighted measurement value of the neighboring grid.

[0182] Preferably, the weighted measurement value and the weighted grid quantity of each cubic grid unit are calculated using the value of the corresponding position field in the state attribute space, including: using the influence distance values ​​J1, J2, ..., J of the calculation grid unit in the influence measurement point sublist n Obtain the influence weights and calculate the measured values ​​V1, V2, …, V n Perform weighted summation to obtain the weighted measurement value of the current cubic grid unit for the current measurement point type t

[0183] w i is the influence weight, and the calculation formula is:

[0184]

[0185] n is the number of measurement points in the influencing measurement point sublist.

[0186] The weighted measurements are calculated as follows:

[0187] When the measurement point data is updated regularly, the measurement point data of each grid unit A is interpolated in turn to realize the data update of the digital twin. The state value of grid unit A is calculated using the nonlinear interpolation method. The process is as follows:

[0188] (1) Assume that grid unit B has n influencing measuring points A1, A2, ....An, and the measuring point values ​​are T1, T2, ....Tn, and the corresponding influencing distance values ​​are V1, V2, ....., Vn, respectively.

[0189] (2) Determine in turn whether the corresponding voltage, current, temperature, vibration and other state values ​​of grid unit B are valid, and determine whether the state value is valid by whether the corresponding state bit is 1. If the state S is valid, proceed to the next step of calculation.

[0190] (3) Select the influencing measuring points, corresponding measuring point values ​​and corresponding influencing distance values ​​of the grid unit B corresponding to the state S from the influencing measuring points A1, A2...An, etc. There are m influencing measuring points of the state S, and the measuring point values ​​are J1, J2...Jm, and the corresponding influences are Y1, Y2, ..., Ym. Among them, Y1 = w1*J1, Y2 = w2*J2, Y3 = w3*J3, ..., Yn = wn*Jn. Among them, the nonlinear influence weight w of each state S influencing measuring point is calculated i According to the inverse distance weighting method, things that are closer to each other are more similar than things that are farther away from each other, and the nonlinear influence weight is:

[0191] (4) Calculate the total weighted influence value Vt=Y1+Y2+.....+Ym of the above measurement points. t is the state type, such as the voltage state value, current state value, temperature state value, etc. in Table 1.

[0192] The status measurement points installed inside the converter valve equipment cannot cover all the cubic grid units. Through weighted calculation, the weighted influence value can supplement this missing data for the display of the digital twin.

[0193] (5) Finally, the state value Sa of the state value S of the grid unit Q is calculated by accumulating the product of the measurement point value Vt and the influence weight Wt of each state S. The influence weight can also be obtained in a similar way.

[0194] Preferably, the weighted measurement value and weighted grid quantity of each cubic grid unit are calculated using the value of the corresponding position field in the state attribute space, including: obtaining all the measurement point types in the current cubic grid unit, setting the influence weight for each type of measurement point type, and calculating all the weighted measurement values ​​V t A weighted sum is performed to obtain a weighted grid volume.

[0195] In this way, even if there is no measurement point in a device component in a certain grid, the state value of the current grid can be calculated by collecting the parameters of the adjacent grids. In addition, the weighted grid quantity can also evaluate the influence of other grids around the current grid on the current grid, as well as the complexity of the current grid.

[0196] Preferably, the state attribute space is used to generate an index, and the measuring point data corresponding to each cubic grid unit is extracted from the pre-stored multi-section structured measuring point data, including: the pre-stored multi-section structured measuring point data is structured based on the number of sections, the number of state value types, the number of measuring points, and the number of acquisition moments in each section; the pre-stored multi-section structured measuring point data supports sequential storage, reading and replay of measuring point data based on array access index and two-dimensional array index.

[0197] In engineering applications, since the measurement point data increases with the running time, the present invention uses data section compression to store the measurement point data and related data. This storage process is the storage of the original measurement point data, which does not include the array construction and measurement value calculation process mentioned above, but only stores the generated measurement information intact.

[0198] The digital twin of the flexible direct current converter valve has many measurement points and a large amount of historical data. In order to reduce the storage space of historical data, the periodicity and repeatability of the measurement point values ​​are used, and the multi-data section compression method is used to store the section set of the cubic grid unit. The process is as follows:

[0199] (1) Assume that the grid unit of the digital twin of the flexible DC converter valve has n measurement points, namely A1, A2, ..., An, and m data sections are packaged and saved each time. A data section contains all the measurement point data collected at a time.

[0200] (2) Generate a one-dimensional array R for storing multi-section measurement point data, create an access index K for array R; write the number of sections M into the corresponding position of array R[1]; write the number of measurement points n into the corresponding position of array R[2]; write the number of status values ​​4 into the corresponding position of array R[3], and set index K to 4;

[0201] (3) The cross-sectional data of each state value is saved in a loop in the order of voltage, current, temperature, vibration, etc. until the cross-sectional data of all states are saved.

[0202] (4) For state S, create a two-dimensional state value array C[n][m] of measuring points, where C[a][b] represents the value of the b-th section of state S of the a-th measuring point; assign the state of state S of each cubic grid unit to the measuring point state value array in turn. If the cubic grid unit is invalid or the corresponding state value of the state S of the cubic grid unit is invalid, the state assignment is set to -10000 for assignment.

[0203] (5) Create an access point status value array row index Ir and set Ir to 0; create a access point status value array column index Ic and set Ic to 0; create a status value repeat count Z and set it to 1; create the current measurement point number N and store N in C[0][0].

[0204] (6) During the storage process, in order to access each location step by step, set the access index: increase Ic by 1,

[0205] (7) Check the column access index: If Ic is greater than or equal to m, increase the index Ir by 1 and set Ic to 0.

[0206] (8) Check row access index: If Ir is greater than or equal to n, the process of storing the cross-section data of the S state ends and jumps to (4) to continue storing the data of the next state; otherwise, continue to execute (9).

[0207] (9) Processing status value data: If C[Ir][Ic] is equal to N, then Z is incremented by 1 and execution is jumped to (6); if C[Ir][Ic] is not equal to N, then the value of N is written into the array R[K] and the index K is incremented by 1; then the value of Z is written into the array R[K] and the index K is incremented by 1, then Z is set to 0 and execution is jumped to (6).

[0208] (10) Write the value of index K (the total amount of data in multiple sections) into the array position corresponding to R[0], and then write the entire array R into the storage device.

[0209] (11) Continue to store the next set of section arrays and jump to (2) to execute again.

[0210] The index is generated by using the state attribute space, including: generating the array access index K based on the state value type to be analyzed; generating the row index Ir in the two-digit array index based on the measurement point number in each calculation grid unit in the sublist of the affecting measurement points in the state attribute space; and generating the column index Ic in the two-digit array index based on the time to be analyzed.

[0211] The data with index and storage structure stored in the previous step can be used for calling. The calling method is to refer to the information format in the state attribute space pre-established for each cube grid unit such as the STATE data mentioned above, and use the data required by the state attribute space as the index to extract the corresponding useful information from the multi-section data and fill it into the state attribute space.

[0212] The next step is to traverse the multi-section data with storage structure and index obtained in the previous step, take out and put back the arrays one by one, and parse each measurement value to finally obtain the information required in the state attribute space.

[0213] The digital twin of the flexible direct current converter valve is replayed by reading and parsing the historical data storage data and restoring it to the initial measurement point sequence. The process is as follows:

[0214] (1) Create a storage device access index Q and set it to 0.

[0215] (2) Read the 0th storage position of the storage device, and the obtained value is the array length S of the first multi-section storage array; create a measurement point data array P[S], start from the Qth storage position of the storage device, read S data into the array P[S], and add Q to S.

[0216] (3) Let the number of sections be M, and set M to array P[1]; let the number of measurement points be N, and set N to array P[2]; let the number of states be T, and set T to array P[3]; create the access index K of array P and set it to 4;

[0217] (4) Read the cross-section data of each state type in a loop in the order of voltage, current, temperature, vibration, etc. If the cross-section data of all states are parsed, continue parsing the next set of cross-section arrays and jump to (2) to re-execute; otherwise, continue to execute (5);

[0218] (5) According to the number of sections M and the number of measuring points N, a state value array C[N][M] of the measuring point state S is created, where C[a][b] is used to store the value of the b-th section of the a-th measuring point in state S;

[0219] (6) Create a row access index Ir of the two-dimensional array C and set Ir to 0; create a column access index Ic of the two-dimensional array C and set Ic to 0; create a state value repeat count Z; and create the current measurement point number N.

[0220] (7) Read the value at the corresponding position of array P[K] and store it in the space corresponding to number N, read the value at the corresponding position of array P[K+1] and store it in Z, and add 2 to K.

[0221] (8) Set C[Ir][Ic] to V, decrement Z by 1, and increase Ic by 1;

[0222] (9) If Z is equal to 0, jump to (7);

[0223] (10) If Ic is greater than or equal to M, increase Ir by 1 and set Ic to 0.

[0224] (11) If Ir is greater than or equal to N, the parsing process of the data packet in state S ends and the process jumps to (12); otherwise, the process jumps to (8).

[0225] (12) According to the data of the state value array C of state S, the state value of state S of the corresponding order measurement point in the digital twin is set, and then jump to execute (4).

[0226] In the process of taking out and putting back the arrays one by one, and taking out and putting back the elements in the arrays one by one, a multidimensional array with index C[Ir][Ic] is generated through the array in the state attribute space mentioned above, so that all data that meet the index are filled into the state attribute space. At this point, the construction of information in the state attribute space is completed, providing organized multidimensional and scalable measurement information for each cubic grid unit in the three-dimensional digital twin, ensuring the basic data support for the realization process of the polymorphic evolution of the three-dimensional digital twin.

[0227] The second aspect of the present invention relates to a three-dimensional digital twin polymorphic evolution implementation system of a flexible direct current converter valve using the method in the second aspect of the present invention, the system comprising a partitioning module, an allocation module, an extraction module and a calculation module; wherein the partitioning module is used to obtain the contour space of the flexible direct current converter valve device by traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve device, and evenly divide the contour space into multiple cubic grid units; the allocation module is used to determine the type of equipment component corresponding to each cubic grid unit, obtain the measuring point corresponding to each cubic grid unit, and allocate a state attribute space to each cubic grid unit based on the equipment component type and the number of calculation grid units with adjacent measuring points; the extraction module is used to generate an index using the state attribute space, extract the measuring point data corresponding to each cubic grid unit from the pre-stored multi-section structured measuring point data, and fill it into the corresponding position field in the state attribute space; the calculation module is used to calculate the weighted measurement value and weighted grid quantity of each cubic grid unit using the value of the corresponding position field in the state attribute space.

[0228] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.

[0229] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method in the first aspect of the present invention.

[0230] In summary, the state attribute space data obtained by the present invention can be used as the basis for the polymorphic evolution of three-dimensional data twins, and can be used for the construction of digital twins of flexible direct current valve sensors, the updating of current state data, and the storage and replay of historical state data.

[0231] The method of the present invention fully considers the influence of the shape structure of the equipment three-dimensional model on the interpolation of the measuring point data, and at the same time compresses the historical data by utilizing the periodicity and repeatability of the measuring points, thereby reducing the storage space of the historical data.

[0232] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve, characterized in that: The method comprises the following steps: By traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve device, the contour space of the flexible direct current converter valve device is obtained, and a plurality of cubic grid units are evenly divided in the contour space; Determine the type of equipment component corresponding to each of the cubic grid units, obtain the measurement point corresponding to each of the cubic grid units, and allocate a state attribute space to each of the cubic grid units based on the equipment component type and the number of calculation grid units with adjacent measurement points; Generate an index using the state attribute space, extract the measurement point data corresponding to each of the cubic grid units from the pre-stored multi-section structured measurement point data, and fill in the corresponding position field in the state attribute space; The weighted measurement value and the weighted grid quantity of each of the cubic grid units are calculated using the value of the corresponding position field in the state attribute space.

2. According to claim 1, a method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve is characterized in that: The determining the type of device component corresponding to each of the cubic grid units includes: Starting from the center point of the grid unit, rays are emitted in six directions of the three-dimensional space to obtain the projected intersection triangles of the device components through which the rays pass; The projected intersecting triangular facets are used to restore the corresponding triangular facets of the equipment component, and the type of the equipment component is determined based on the position of the corresponding triangular facets.

3. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 2 is characterized in that: The obtaining of the measuring point corresponding to each of the cubic grid units comprises: Collecting the three-dimensional space coordinates of the measuring point, and generating a corresponding relationship between the measuring point and the cubic grid unit based on the three-dimensional space coordinates and the pre-obtained vertex coordinates of the cubic grid unit; The measuring points collect status values ​​of different attributes based on different measuring point types.

4. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 3 is characterized in that: The allocating state attribute space to each of the cubic grid cells based on the type of the equipment component and the number of the calculation grid cells with adjacent measurement points includes: The state attribute space includes a state attribute array and an impact measurement point sublist corresponding to the state value type field in the state attribute array; The state attribute array includes at least the state value of each measuring point type; The number of the influencing measurement point sub-lists is one or more, and the influencing measurement point sub-lists are used to record the numbers of one or more computing grid units for the current cube grid unit, the measurement point numbers in the computing grid units, the measurement values ​​of the measurement points, and the association relationship between the influence distance values ​​of the measurement points for the current cube grid unit.

5. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 4 is characterized in that: The state attribute space includes a state attribute array and an impact measurement point sublist corresponding to the state value type field in the state attribute array, including: If the state value of a current measurement point type is 0, the state attribute space does not contain a sub-list of influencing measurement points for the current measurement point type; If the state value of a current measurement point type is 1, the state attribute space contains a sub-list of influencing measurement points for the current measurement point type.

6. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 5 is characterized in that: The influencing point sublist is used to record the serial numbers of one or more computing grid units for the current cubic grid unit, including: Traverse all neighboring grid cells around the current cube grid cell whose distance is less than the farthest influencing path, and record all neighboring grid cells with the current measuring point type inside; All neighboring grid cells that have the current measurement point type inside are used as calculation grid cells for the current measurement point type.

7. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 6 is characterized in that: The correlation relationship between the influence distance values ​​of the measuring point on the current cubic grid unit is: Extracting the center point coordinates of the current cube grid unit and the calculation grid unit, and calculating the distance between the center point coordinates of the two; Normalizing the distances between the center point coordinates based on the side length of the cubic grid unit; The normalized distance between the center point coordinates is used as the influence distance value J of the measuring point i in the calculation grid unit for the current cube grid unit. i .

8. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 7 is characterized in that: The step of generating an index using the state attribute space and extracting the measurement point data corresponding to each of the cubic grid units from the pre-stored multi-section structured measurement point data includes: The pre-stored multi-section structured measuring point data is structured based on the number of sections, the number of state value types, the number of measuring points, and the number of acquisition moments in each section; The pre-stored multi-section structured measuring point data supports sequential storage, reading and retrieving of measuring point data based on array access index and two-dimensional array index.

9. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 8, characterized in that: The step of generating an index by using the state attribute space includes: Based on the state value type to be analyzed, generating the array access index; Generate a row index in the two-bit array index based on the measurement point number in each calculation grid unit in the affecting measurement point sublist in the state attribute space; Generates the column index in the two-dimensional array index based on the time to be analyzed.

10. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 9, characterized in that: The step of calculating the weighted measurement value and the weighted grid quantity of each of the cubic grid units by using the value of the corresponding position field in the state attribute space includes: The influence distance values ​​J1, J2, ..., J of the calculation grid cells in the influence measurement point sublist are used. n Obtain the influence weights, and calculate the measurement values ​​V1, V2, ..., V n Perform weighted summation to obtain the weighted measurement value of the current cubic grid unit for the current measurement point type t w i is the influence weight, and the calculation formula is: n is the number of measurement points in the influencing measurement point sublist.

11. The method for implementing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve according to claim 10, characterized in that: The step of calculating the weighted measurement value and the weighted grid quantity of each of the cubic grid units by using the value of the corresponding position field in the state attribute space includes: Obtain all the measurement point types in the current cube grid unit, set the influence weight for each type of measurement point type, and calculate all the weighted measurement values ​​V t A weighted summation is performed to obtain the weighted grid quantity.

12. A system for realizing polymorphic evolution of a three-dimensional digital twin of a flexible direct current converter valve using the method of any one of claims 1 to 11, characterized in that: The system includes a partitioning module, an allocation module, an extraction module and a calculation module; wherein, The partitioning module is used to obtain the contour space of the flexible direct current converter valve device by traversing the coordinates of all geometric vertices in the three-dimensional model of the flexible direct current converter valve device, and evenly divide the contour space into a plurality of cubic grid units; The allocation module is used to determine the type of equipment component corresponding to each of the cubic grid units, obtain the measuring point corresponding to each of the cubic grid units, and allocate a state attribute space to each of the cubic grid units based on the type of equipment component and the number of computing grid units with adjacent measuring points; The extraction module is used to generate an index using the state attribute space, extract the measurement point data corresponding to each of the cubic grid cells from the pre-stored multi-section structured measurement point data, and fill in the corresponding position field in the state attribute space; The calculation module is used to calculate the weighted measurement value and weighted grid quantity of each of the cubic grid units by using the value of the corresponding position field in the state attribute space.

13. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-11.

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