Hexahedron volume calculation method and system based on digital twin

By decomposing the volume of the tetracorticized hexahedral into the sum of six sub-volumes and simplifying the calculation formula, the problem of the calculation of the hexahedral volume in the prior art is solved, and the calculation efficiency is improved.

CN113887107BActive Publication Date: 2025-04-04ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111194573.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2025-04-04
Estimated Expiration
2041-10-13

AI Technical Summary

Technical Problem

In the prior art, when calculating the volume of hexahedral, the floating point number is calculated more times, resulting in cumbersome calculation steps and large calculation resources.

Method used

By decomposing the volume of the tetracorticized hexahedral into the sum of six sub-volumes and simplifying the calculation formula, the number of floating-point operations for calculating the volume of the hexahedral is reduced from 264 steps to 72 steps.

Benefits of technology

It significantly reduces the calculation steps, shortens the calculation time, improves the calculation efficiency, and can be applied to the solution calculation of digital twins.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113887107B_ABST
    Figure CN113887107B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method and system for calculating the volume of a hexahedron based on a digital twin, the method comprising: numbering the eight vertices of the target hexahedron according to a set numbering rule; determining the coordinates of the eight vertices of the target hexahedron; further calculating the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices; forming a matrix with the diagonal vectors, calculating the matrix determinant; and finally adding the results of the matrix determinant of each face to obtain the volume of the target hexahedron. In view of the problems that the existing calculation of the floating-point number of the hexahedron volume is cumbersome and consumes a lot of computing resources, starting from the construction of a tetrahedron, the volume of the tetrahedron is decomposed into the sum of six sub-volumes, reducing the number of floating-point operations for calculating the volume of the hexahedron.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and specifically to a method and system for calculating the volume of a hexahedron based on digital twins. Background Art

[0002] Digital twin technology is a comprehensive multi-physics, multi-scale, probabilistic hyper-realistic simulation that uses the most appropriate physical models, sensor data, and historical data to mirror real-world machines and equipment and reflect their real-time working status.

[0003] In solving the mathematical model of digital twins, smooth finite elements are often used. The calculation process of smooth finite elements requires the volume of a hexahedron. Therefore, the volume of each area must be calculated in each time step, which takes up a large part of the problem calculation time. Therefore, it is necessary to complete the volume calculation in as few floating-point operations as possible.

[0004] The hexahedron region is specified by the positions of eight nodes that are logically connected as cubes. Using the common method in the tetrahedron requires 264 steps of floating point operations, which has the problems of cumbersome floating point calculations and consumption of a large amount of computing resources. Summary of the invention

[0005] To this end, the embodiment of the present application provides a hexahedron volume calculation method and system based on digital twins, which solves the problem of many floating-point calculations for calculating the hexahedron volume. The volume of the tetrahedron is decomposed into the sum of six sub-volumes, and then the calculation formula is further simplified, reducing the number of floating-point operations for the hexahedron volume to 72 steps, which can greatly reduce the calculation steps and thus shorten the calculation time, improve the calculation efficiency, and can be applied to the solution calculation of digital twins.

[0006] In order to achieve the above objectives, the embodiments of the present application provide the following technical solutions:

[0007] According to a first aspect of an embodiment of the present application, a method for calculating a hexahedron volume based on a digital twin is provided, the method comprising:

[0008] Number the eight vertices of the target hexahedron according to the set numbering rule;

[0009] Determine the coordinates of the eight vertices of the target hexahedron;

[0010] Calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices;

[0011] Form a matrix with diagonal vectors and calculate the matrix determinant;

[0012] Add the results of the matrix determinant of each face to obtain the volume of the target hexahedron.

[0013] Optionally, the coordinates of the diagonal vectors of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the coordinates of the diagonal vectors of each face are respectively:

[0014]

[0015]

[0016]

[0017]

[0018]

[0019]

[0020] in, They are the coordinates of the eight vertices of the target hexahedron.

[0021] Optionally, the matrix determinant of each face is added together to obtain the volume of the target hexahedron according to the following formula:

[0022] V TH =V 1375 +V 4576 +V 2376 +V 0231 +V 0451 +V 0462

[0023] Among them, V 1375 、V 4576 、V 2376 、V 0231 、V 0451 、V 0462 are the volumes of the six faces of the target hexahedron respectively.

[0024] Optionally, the V 1375 Calculate according to the following formula:

[0025]

[0026] The V 4576 Calculate according to the following formula:

[0027]

[0028] The V 2376 Calculate according to the following formula:

[0029]

[0030] Optionally, the V 0231 Calculate according to the following formula:

[0031]

[0032] The V 0451 Calculate according to the following formula:

[0033]

[0034] The V 0231 Calculate according to the following formula:

[0035]

[0036] Optionally, the method further includes: defining the vector V1 as the Jacobian determinant of the transformation of the point xc from the logical space to the physical space, and the vector V1 is expressed according to the following formula:

[0037]

[0038] Further simplified to:

[0039]

[0040] Further transformed into:

[0041]

[0042] Using the properties of the determinant and combining V TH The formula is:

[0043]

[0044] Optionally, the method further comprises: according to the simplified 16V1 formula and 12V TH The volume formula of the target hexahedron is obtained by the formula:

[0045]

[0046] According to a second aspect of an embodiment of the present application, a hexahedron volume calculation system based on a digital twin is provided, the system comprising:

[0047] A numbering module, used for numbering eight vertices of the target hexahedron according to a set numbering rule;

[0048] A coordinate module, used to determine the coordinates of the eight vertices of the target hexahedron;

[0049] A diagonal coordinate module, used for calculating the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices;

[0050] Matrix determinant module, used to form diagonal vectors into matrices and calculate matrix determinants;

[0051] The hexahedron volume module is used to add the results of the matrix determinant of each face to obtain the volume of the target hexahedron.

[0052] Optionally, the diagonal vector coordinates of each face in the diagonal coordinate module are respectively:

[0053]

[0054]

[0055]

[0056]

[0057]

[0058]

[0059] in, They are the coordinates of the eight vertices of the target hexahedron.

[0060] Optionally, the hexahedral volume module is calculated according to the following formula:

[0061] V TH =V 1375 +V 4576 +V 2376 +V 0231 +V 0451 +V 0462

[0062] Among them, V 1375 、V 4576 、V 2376 、V 0231 、V 0451 、V 0462 are the volumes of the six faces of the target hexahedron respectively.

[0063] Optionally, the V 1375 Calculate according to the following formula:

[0064]

[0065] The V 4576 Calculate according to the following formula:

[0066]

[0067] The V 2376 Calculate according to the following formula:

[0068]

[0069] Optionally, the V 0231 Calculate according to the following formula:

[0070]

[0071] The V 0451 Calculate according to the following formula:

[0072]

[0073] The V 0231 Calculate according to the following formula:

[0074]

[0075] Optionally, the hexahedral volume module is further used for:

[0076] Define vector V1 as the Jacobian determinant of the transformation of point xc from logical space to physical space, then vector V1 is expressed as follows:

[0077]

[0078] Further simplified to:

[0079]

[0080] Further transformed into:

[0081]

[0082] Using the properties of the determinant and combining V TH The formula is:

[0083]

[0084] Optionally, the hexahedral volume module is further used for:

[0085] According to the simplified 16V1 formula and 12V TH The volume formula of the target hexahedron is obtained by the formula:

[0086]

[0087] According to a third aspect of an embodiment of the present application, a device is provided, comprising: a data acquisition device, a processor and a memory; the data acquisition device is used to acquire data; the memory is used to store one or more program instructions; the processor is used to execute one or more program instructions to execute any method described in the first aspect.

[0088] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer storage medium contains one or more program instructions, and the one or more program instructions are used to execute the method as described in any one of the first aspects.

[0089] In summary, the embodiment of the present application provides a hexahedron volume calculation method and system based on digital twins, which sets a numbering rule to number the eight vertices of the target hexahedron; determines the coordinates of the eight vertices of the target hexahedron; further calculates the diagonal vector coordinates of each face of the target hexahedron based on the coordinates of the vertices; forms a matrix with the diagonal vectors, calculates the matrix determinant; and finally adds the results of the matrix determinant of each face to obtain the volume of the target hexahedron. In view of the problems that the existing floating-point calculation of the hexahedron volume is cumbersome and consumes a lot of computing resources, starting from the construction of a tetrahedron, the volume of the tetrahedron is decomposed into the sum of six sub-volumes, reducing the number of floating-point operations for calculating the hexahedron volume. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0091] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0092] Figure 1 A schematic diagram of a flow chart of a hexahedron volume calculation method based on digital twins provided in an embodiment of the present application;

[0093] Figure 2 A schematic diagram of a hexahedron provided in an embodiment of the present application;

[0094] Figure 3 Another schematic diagram of a hexahedron provided in an embodiment of the present application;

[0095] Figure 4 A schematic diagram of a quadrangular pyramid provided in an embodiment of the present application;

[0096] Figure 5A schematic diagram of a polyhedron provided in an embodiment of the present application;

[0097] Figure 6 A schematic diagram of a specific application process of the efficient calculation method for the volume of a hexahedral unit provided in an embodiment of the present application in a digital twin;

[0098] Figure 7 A schematic diagram of an example of calculating the volume of a hexahedron provided in an embodiment of the present application;

[0099] Figure 8 A schematic diagram comparing the number of floating-point operations required for the embodiments of the present application;

[0100] Fig. 9 Block diagram of a hexahedron volume calculation system based on digital twins provided in an embodiment of the present application. DETAILED DESCRIPTION

[0101] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0102] Figure 1 A schematic flow chart of a hexahedron volume calculation method based on digital twins provided in an embodiment of the present application is shown, and the method comprises the following steps:

[0103] Step 101: numbering eight vertices of the target hexahedron according to a set numbering rule;

[0104] Step 102: Determine the coordinates of eight vertices of the target hexahedron;

[0105] Step 103: Calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices;

[0106] Step 104: compose the diagonal vectors into a matrix and calculate the matrix determinant;

[0107] Step 105: Add the results of the matrix determinant of each face to obtain the volume of the target hexahedron.

[0108] like Figure 2As shown, the hexahedral volume region is specified by the location of eight nodes. Since the nodes are allowed to move independently of each other in the physical simulation, the four edges around a face of the logical cube are usually not coplanar, so the planar boundary of the hexahedral unit is constructed by dividing the faces of the hexahedron into triangles. Each face is divided into four triangles, and the hexahedron is defined by a 24-sided triangular polyhedron called a 24-sided hexahedron. Figure 3 The centroid divides each face into four triangles, and such a hexahedron is called a tetrahedron (TH).

[0109] In a possible implementation, in step 103, the diagonal vector coordinates of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the diagonal vector coordinates of each face are respectively as shown in formula group (1):

[0110]

[0111]

[0112]

[0113]

[0114]

[0115]

[0116] in, They are the coordinates of the eight vertices of the target hexahedron.

[0117] In a possible implementation, in step 105, the matrix determinant of each face is added together to obtain the volume of the target hexahedron according to the following formula (2):

[0118] V TH =V 1375 +V 4576 +V 2376 +V 0231 +V 0451 +V 0462 Formula (2)

[0119] Among them, V 1375 、V 4576 、V 2376 、V 0231 、V 0451 、V 0462 are the volumes of the six faces of the target hexahedron respectively.

[0120] In a possible implementation manner, the V 1375 Calculate according to the following formula (3):

[0121]

[0122] The V 4576 Calculate according to the following formula (4):

[0123]

[0124] The V 2376 Calculate according to the following formula (5):

[0125]

[0126] In a possible implementation manner, the V 0231 Calculate according to the following formula (6):

[0127]

[0128] The V 0451 Calculate according to the following formula (7):

[0129]

[0130] The V 0231 Calculate according to the following formula (8):

[0131]

[0132] In a possible implementation, the method further includes: defining the vector V1 as the Jacobian determinant of the transformation of the point xc from the logical space to the physical space, then the vector V1 is expressed according to the following formula (9):

[0133]

[0134] Further simplified to formula (10):

[0135]

[0136] Further transformed into formula (11):

[0137]

[0138] Using the properties of the determinant and combining V TH The formula is obtained as formula (12):

[0139]

[0140] In a possible implementation manner, the method further includes: according to the simplified 16V1 formula and 12V THThe volume formula of the target hexahedron is obtained by the formula (13):

[0141]

[0142] In order to solve the problem of many floating-point number calculations in calculating the volume of a hexahedron, the embodiment of the present application constructs a tetrahedron, decomposes the volume of the tetrahedron into the sum of six sub-volumes, and then further simplifies the calculation formula, thereby reducing the number of floating-point number operations in calculating the volume of the hexahedron. The number of floating-point number operations for the volume of the hexahedron is reduced to 72 steps, which improves the calculation efficiency. It can also be applied to the solution calculation of digital twins.

[0143] The method provided in the embodiment of the present application is further explained below with reference to specific examples:

[0144] like Figure 4 As shown, the tetrahedron can be regarded as the sum of the volumes of two tetrahedrons. The tetrahedron volume calculation formula (14) is:

[0145]

[0146] like Figure 5 As shown, for the polyhedron composed of vertices 0, 1, 3, 5, and 7, its volume is:

[0147]

[0148] For convenience Abbreviated as

[0149]

[0150] Substituting formula group (1) into (16) and simplifying it, we obtain:

[0151]

[0152] Similarly, we can get:

[0153]

[0154]

[0155] For the face S including node 0 0231 The volume can be simplified to:

[0156]

[0157] Similarly:

[0158]

[0159]

[0160] The volume of the entire tetrahedron is:

[0161] V TH =V 1375 +V 4576 +V 2376 +V 0231 +V 0451 +V 0462 Formula (23)

[0162] Define vector V1 as the Jacobian of the transformation of point xc from logical space to physical space.

[0163]

[0164] Simplified to:

[0165]

[0166] The transformation of formula (25) can be written as:

[0167]

[0168] By using the properties of the determinant to expand it and compare it with (23), we can obtain:

[0169]

[0170] Substituting (25) into (27), we obtain

[0171]

[0172] In recent years, with the amazing growth and progress of the Internet of Things and sensor technology, a new monitoring technology has entered people's field of vision - digital twin technology. The first formal definition of digital twin came from a study by NASA in 2010, which pointed out that this is one of the biggest challenges in the next 10 to 20 years. Digital twin technology is a comprehensive multi-physics, multi-scale, probabilistic hyper-realistic simulation. It uses the most appropriate physical model, sensor data and historical data to mirror the real-world machine equipment and reflect its real-time working status. Figure 6 The specific application of the efficient calculation method of the hexahedral unit volume provided in the embodiment of the present application in the digital twin is shown.

[0173] like Figure 6 As shown in Figure 1, the smooth finite element method is involved in solving the mathematical model of the twin. In the calculation steps of the smooth finite element method, V IJ (V IJThe calculation process of (i) the volume of the Ith and Jth point units involves the volume calculation of the hexahedron. The calculation of the volume of the hexahedron consumes computing resources. The traditional hexahedron volume calculation method requires a large number of floating point operations.

[0174] The efficient hexahedron volume calculation method adopted in the present invention can reduce the number of floating-point number calculations, which is conducive to the efficient solution of digital twin problems.

[0175] The following is a simple example of calculating the volume of a hexahedron. Figure 7 As shown, the coordinates of each point are

[0176] x0(0,0,0)x1(2,0,0)x2(0,2,0)x3(2,2,0)

[0177] x4(0,0,2)x5(2,0,2)x6(0,2,2)x7(2,2,2)

[0178] According to formula (29) and formula (30):

[0179]

[0180]

[0181] Equal to the actual volume of the hexahedron.

[0182] The number of floating point calculations is compared according to the following formula (31) and formula (32):

[0183] Traditional method:

[0184] The present invention:

[0185] Figure 8 The figure shows the comparison of the number of floating-point operations required by the method of the present invention and the traditional method. The traditional method requires 264 floating-point operations, while the method requires only 72 floating-point operations, which is 72.7% lower than the traditional method. This greatly saves computer computing resources and is conducive to the efficient solution of the digital twin model.

[0186] In order to solve the problem of many floating-point number calculations for calculating the volume of a hexahedron, the embodiment of the present application constructs a tetrahedron, decomposes the volume of the tetrahedron into the sum of six sub-volumes, and then further simplifies the calculation formula, thereby reducing the number of floating-point number operations for calculating the volume of the hexahedron. The number of floating-point number operations for the volume of the hexahedron is reduced to 72 steps, which improves the calculation efficiency. It can be applied to the solution calculation of digital twins.

[0187] In summary, the embodiment of the present application provides a hexahedron volume calculation method based on digital twins, which sets a numbering rule to number the eight vertices of the target hexahedron; determines the coordinates of the eight vertices of the target hexahedron; further calculates the diagonal vector coordinates of each face of the target hexahedron based on the coordinates of the vertices; forms a matrix with the diagonal vectors, calculates the matrix determinant; and finally adds the results of the matrix determinant of each face to obtain the volume of the target hexahedron. In view of the problems that the existing floating-point calculation of the hexahedron volume is cumbersome and consumes a lot of computing resources, starting from the construction of a tetrahedron, the volume of the tetrahedron is decomposed into the sum of six sub-volumes, reducing the number of floating-point operations for calculating the hexahedron volume.

[0188] Based on the same technical concept, the embodiment of the present application also provides a hexahedron volume calculation system based on digital twins, such as Fig. 9 As shown, the system comprises:

[0189] A numbering module 901 is used to number the eight vertices of the target hexahedron according to a set numbering rule;

[0190] A coordinate module 902 is used to determine the coordinates of eight vertices of the target hexahedron;

[0191] A diagonal coordinate module 903 is used to calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices;

[0192] A matrix determinant module 904 is used to form a matrix from diagonal vectors and calculate the matrix determinant;

[0193] The hexahedron volume module 905 is used to add the results of the matrix determinant of each face to obtain the volume of the target hexahedron.

[0194] In a possible implementation, the diagonal vector coordinates of each face in the diagonal coordinate module 903 are respectively as shown in formula group (1).

[0195] In a possible implementation, the hexahedral volume module 905 is specifically calculated according to formula (2).

[0196] In a possible implementation, the hexahedral volume module 905 is further used to define the vector V1 as the Jacobian determinant of the transformation of the point xc from the logical space to the physical space, and the vector V1 is expressed according to formula (9).

[0197] In a possible implementation manner, the hexahedral volume module 905 is further used to: TH The volume formula of the target hexahedron is obtained by formula (13).

[0198] Based on the same technical concept, an embodiment of the present application also provides a device, which includes: a data acquisition device, a processor and a memory; the data acquisition device is used to collect data; the memory is used to store one or more program instructions; the processor is used to execute one or more program instructions to execute the described method.

[0199] Based on the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer storage medium contains one or more program instructions, and the one or more program instructions are used to execute the described method.

[0200] In this specification, each embodiment of the above method is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For relevant parts, refer to the partial description of the method embodiment.

[0201] It should be noted that, although the operations of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0202] Although the present application provides method operation steps such as embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way of executing the order of many steps and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.

[0203] The units, devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by functions divided into various modules. Of course, when implementing this application, the functions of each module can be implemented in the same or more software and / or hardware, or the modules that implement the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0204] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0205] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0206] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0207] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0208] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A hexahedron volume calculation method based on digital twins, characterized in that: The method comprises: The eight vertices of the target hexahedron are numbered according to the set numbering rule. The bottom vertices are numbered 0231 in clockwise order, and the top vertices are numbered 4675 in clockwise order. The bottom vertex 1 corresponds to the top vertex 4. Determine the coordinates of the eight vertices of the target hexahedron; Calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices; Form a matrix with diagonal vectors and calculate the matrix determinant; Add the matrix determinant of each face to get the volume of the target hexahedron, including: Defined as the Jacobian of the transformation of the point xc from logical space to physical space, the volume It is expressed as follows: ; Further simplified to: ; Further transformed into: ; Expand and combine using the properties of the determinant The formula is: ; According to the simplified formula and The volume formula of the target hexahedron is obtained by the formula: ; The diagonal vector coordinates of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the diagonal vector coordinates of each face are respectively: ; ; ; ; ; ; in, , , , , , , , They are the coordinates of the eight vertices of the target hexahedron.

2. The method according to claim 1, characterized in that The matrix determinant of each face is added together to obtain the volume of the target hexahedron according to the following formula: ; in, , , , , , are the volumes of the six faces of the target hexahedron respectively.

3. The method according to claim 2, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 4. The method according to claim 2, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 5. A hexahedron volume calculation system based on digital twins, characterized in that: The system comprises: A numbering module is used to number the eight vertices of the target hexahedron according to a set numbering rule, the bottom vertices are numbered 0231 in clockwise order, the top vertices are numbered 4675 in clockwise order, and the bottom vertex 1 corresponds to the top vertex 4; A coordinate module, used to determine the coordinates of the eight vertices of the target hexahedron; A diagonal coordinate module, used for calculating the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices; Matrix determinant module, used to form diagonal vectors into matrices and calculate matrix determinants; The hexahedron volume module is used to add the matrix determinant results of each face to obtain the volume of the target hexahedron, including: Defined as the Jacobian of the transformation of the point xc from logical space to physical space, the volume It is expressed as follows: ; Further simplified to: ; Further transformed into: ; Expand and combine using the properties of the determinant The formula is: ; According to the simplified formula and The volume formula of the target hexahedron is obtained by the formula: ; The diagonal vector coordinates of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the diagonal vector coordinates of each face are respectively: ; ; ; ; ; ; in, , , , , , , , They are the coordinates of the eight vertices of the target hexahedron.

6. The system according to claim 5, characterized in that The hexahedral volume module is specifically calculated according to the following formula: ; in, , , , , , are the volumes of the six faces of the target hexahedron respectively.

7. The system according to claim 6, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 8. The system according to claim 6, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 9. A device, characterized in that: The device comprises: a data acquisition device, a processor and a memory; The data acquisition device is used to collect data; the memory is used to store one or more program instructions; the processor is used to execute one or more program instructions to perform a hexahedron volume calculation method based on digital twins, the method comprising: The eight vertices of the target hexahedron are numbered according to the set numbering rule. The bottom vertices are numbered 0231 in clockwise order, and the top vertices are numbered 4675 in clockwise order. The bottom vertex 1 corresponds to the top vertex 4. Determine the coordinates of the eight vertices of the target hexahedron; Calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices; Form a matrix with diagonal vectors and calculate the matrix determinant; Add the matrix determinant of each face to get the volume of the target hexahedron, including: Defined as the Jacobian of the transformation of the point xc from logical space to physical space, the volume It is expressed as follows: ; Further simplified to: ; Further transformed into: ; Expand and combine using the properties of the determinant The formula is: ; According to the simplified formula and The volume formula of the target hexahedron is obtained by the formula: ; The diagonal vector coordinates of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the diagonal vector coordinates of each face are respectively: ; ; ; ; ; ; in, , , , , , , , They are the coordinates of the eight vertices of the target hexahedron.

10. A device according to claim 9, characterized in that The matrix determinant of each face is added together to obtain the volume of the target hexahedron according to the following formula: ; in, , , , , , are the volumes of the six faces of the target hexahedron respectively.

11. A device as claimed in claim 10, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 12. A device as claimed in claim 10, characterized in that Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 13. A computer-readable storage medium, characterized in that: The computer storage medium includes one or more program instructions, and the one or more program instructions are used to execute a hexahedron volume calculation method based on digital twins, and the method includes: The eight vertices of the target hexahedron are numbered according to the set numbering rule. The bottom vertices are numbered 0231 in clockwise order, and the top vertices are numbered 4675 in clockwise order. The bottom vertex 1 corresponds to the top vertex 4. Determine the coordinates of the eight vertices of the target hexahedron; Calculate the diagonal vector coordinates of each face of the target hexahedron according to the coordinates of the vertices; Form a matrix with diagonal vectors and calculate the matrix determinant; Add the matrix determinant of each face to get the volume of the target hexahedron, including: Defined as the Jacobian of the transformation of the point xc from logical space to physical space, the volume It is expressed as follows: ; Further simplified to: ; Further transformed into: ; Expand and combine using the properties of the determinant The formula is: ; According to the simplified formula and The volume formula of the target hexahedron is obtained by the formula: ; The diagonal vector coordinates of each face of the target hexahedron are calculated according to the coordinates of the vertices, and the diagonal vector coordinates of each face are respectively: ; ; ; ; ; ; in, , , , , , , , They are the coordinates of the eight vertices of the target hexahedron.

14. A computer-readable storage medium according to claim 13, characterized in that: The volume of the target hexahedron is obtained by adding the matrix determinant of each face, according to the following formula: ; in, , , , , , are the volumes of the six faces of the target hexahedron respectively.

15. A computer-readable storage medium according to claim 14, characterized in that: Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。 16. A computer-readable storage medium according to claim 14, characterized in that: Said Calculate according to the following formula: ; Said Calculate according to the following formula: ; Said Calculate according to the following formula: 。

Citation Information

Patent Citations

  • Smooth finite element numerical calculation method based on digital twin

    CN113946994A