Method for directly generating numerical calculation model for multiphase materials from three-dimensional voxels
By directly generating three-dimensional voxels into numerical calculation models of multiphase materials, this method solves the problems of complex model conversion and decreased accuracy in existing technologies, and achieves efficient and accurate numerical simulation, which is applicable to fields such as computer graphics and geological simulation.
Patent Information
- Application Number
- PCT/CN2025/145848
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-16
- Filing Date
- 2025-12-26
- Publication Date
- 2026-11-19
AI Technical Summary
Existing numerical computation models require conversion from 3D voxel data through mesh generation or other preprocessing steps, which leads to complex model conversion processes, easy data loss, and decreased accuracy.
This paper provides a method for directly generating numerical models of multiphase materials from three-dimensional voxels. The method generates accurate numerical models directly from three-dimensional voxel data through an automated process, uses a dictionary data structure to store node and element information, and outputs model files that are compatible with mainstream numerical calculation software.
It has improved work efficiency and simulation accuracy, simplified workflows, lowered technical barriers, enabled non-professionals to perform numerical simulations, and promoted cooperation and application development between different disciplines.
Smart Images

Figure CN2025145848_19112026_PF_FP_ABST
Abstract
Description
A direct generation method for numerical computational models of multiphase materials from three-dimensional voxels Technical Field
[0001] This invention belongs to the field of computer graphics and numerical simulation technology, and in particular relates to a method for directly generating numerical calculation models of multiphase materials from three-dimensional voxels. Background Technology
[0002] Voxelization is the process of converting the geometric representation of an object into a voxel representation that most closely approximates the object, producing volume data that includes surface information and internal properties of the model. Three-dimensional voxels are a common spatial representation method widely used in fields such as medical image processing, computer graphics, and geological simulation.
[0003] Existing numerical computation models typically require generating finite element, finite difference, or other numerical computation formats from three-dimensional voxel data through meshing or other preprocessing steps. These traditional methods suffer from complex model conversion processes, data loss, and decreased accuracy.
[0004] Therefore, designing a method that can directly generate numerical computation models from three-dimensional voxel data has important theoretical value and practical significance. Summary of the Invention
[0005] The problem this invention aims to solve is to provide a method for directly generating numerical calculation models of multiphase materials from three-dimensional voxels. This method can directly generate accurate numerical calculation models from three-dimensional voxel data through an automated process, which greatly improves work efficiency and simulation accuracy, and provides an efficient and flexible numerical simulation solution for multiple fields.
[0006] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a method for directly generating a numerical calculation model of multiphase materials from three-dimensional voxels, comprising the following steps:
[0007] S1: Based on the voxel data, obtain the three-dimensional voxel size and resolution, and determine the number of nodes and elements in the numerical simulation;
[0008] S2: Loop through the coordinates of all nodes in the voxel data and multiply the coordinate values of the nodes by the three-dimensional voxel resolution;
[0009] S3: Loop through the coordinates of all cells in the voxel data;
[0010] S4: Loop through the grouping information in the voxel data;
[0011] S5: Output the model file according to the required numerical calculation model format;
[0012] S6: Perform numerical calculations using the output model file.
[0013] Furthermore, S1 includes the following steps:
[0014] S11: Extract the three-dimensional voxel dimensions from the voxel data, wherein the length of the three-dimensional voxel dimensions is l, the width of the three-dimensional voxel dimensions is m, and the height of the three-dimensional voxel dimensions is n;
[0015] S12: Obtain the three-dimensional voxel resolution lc from the voxel data;
[0016] S13: Based on the three-dimensional voxel size and the three-dimensional voxel resolution, calculate the number of nodes required in the numerical simulation as (l+1)×(m+1)×(n+1).
[0017] S14: Based on the three-dimensional voxel dimensions, calculate the number of units as l×m×n;
[0018] S15: Store the nodes and units according to a dictionary data structure.
[0019] Furthermore, S15 includes the following steps:
[0020] S151: Create a first dictionary and a second dictionary, the first dictionary is used to store nodes, and the second dictionary is used to store units;
[0021] S152: Traverse each 3D voxel size, generate a unique key for each node, and store it;
[0022] S153: Traverse each 3D voxel size, generate a unique key for each unit, and store it.
[0023] Furthermore, in S152, the coordinates of each node are multiplied by the three-dimensional voxel resolution to convert them into actual physical coordinates, and the index of each node and its corresponding coordinates are stored as key-value pairs in the first dictionary.
[0024] Furthermore, in S153, the node index of each unit is calculated based on the three-dimensional voxel size and the three-dimensional voxel resolution, and the index of each unit and the corresponding node index are stored as key-value pairs in the second dictionary.
[0025] Furthermore, S5 includes the following steps:
[0026] S51: Traverse the first dictionary and write the index and coordinates of each node to a file according to the required node format;
[0027] S52: Traverse the second dictionary and write the index and coordinates of each node to a file according to the required cell format;
[0028] S53: Write the group definition and the index of the element within the group.
[0029] Furthermore, the present invention provides an apparatus for performing the above-described data processing method.
[0030] Furthermore, the present invention provides an apparatus including a memory, a processor, and an algorithm stored in the memory and executable on the processor, wherein the processor implements the above-described data processing method when executing the computer program.
[0031] Furthermore, the present invention provides a computer-readable storage medium storing a computer algorithm, which, when executed by a processor, performs the aforementioned data processing.
[0032] The advantages and positive effects of this invention are:
[0033] This invention significantly improves the efficiency of converting voxel data into numerical models through automated processing, while ensuring model accuracy. The method optimizes the storage of node and cell information using a dictionary data structure, enhancing the flexibility and efficiency of data processing. Furthermore, this invention can output model files compatible with mainstream numerical computing software, requiring no additional format conversion and allowing direct use in numerical calculations, thus simplifying the entire workflow. This invention not only lowers the technical barrier, enabling non-experts to easily perform numerical simulations, but also promotes collaboration and application development across different disciplines due to its wide applicability, demonstrating broad application prospects. Attached Figure Description
[0034] Figure 1 is a schematic diagram of the overall process of an embodiment of the present invention.
[0035] Figure 2 is a schematic diagram of the node information output format in the output file in a specific embodiment of the present invention.
[0036] Figure 3 is a schematic diagram of the unit information output format in the output file in a specific embodiment of the present invention.
[0037] Figure 4 is a schematic diagram of the unit grouping information output format in the output file in a specific embodiment of the present invention.
[0038] Figure 5 is a schematic diagram of importing the output file into Abaqus in a specific embodiment of the present invention.
[0039] Figure 6 is a schematic diagram of importing the output file into Flac3D in a specific embodiment of the present invention.
[0040] Figure 7 is a schematic diagram of the results of importing the output file into Abaqus for numerical calculation in a specific embodiment of the present invention. Detailed Implementation
[0041] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0043] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0044] The embodiments of the present invention will be further described below with reference to the accompanying drawings:
[0045] As shown in Figure 1, a method for directly generating a numerical calculation model of a three-dimensional voxel to a multiphase material includes the following steps.
[0046] S1: Based on the given voxel data, obtain the 3D voxel size l×m×n and the 3D voxel resolution lc, determine the number of nodes for the numerical simulation as (l+1)×(m+1)×(n+1), and the number of elements as l×m×n. Both nodes and elements are stored according to a dictionary data structure. Specifically, S1 includes the following steps:
[0047] S11: Extract the three-dimensional voxel dimensions from the voxel data. The length of the three-dimensional voxel dimension is l, the width of the three-dimensional voxel dimension is m, and the height of the three-dimensional voxel dimension is n.
[0048] S12: Obtain the 3D voxel resolution lc from the voxel data.
[0049] S13: Calculate the number of nodes required in the numerical simulation based on the three-dimensional voxel size and resolution. Since the number of nodes in each dimension is the number of voxels plus one, the total number of nodes is (l+1)×(m+1)×(n+1).
[0050] S14: Calculate the number of units, i.e. the total number of voxels, based on the three-dimensional voxel dimensions, which is l×m×n.
[0051] S15: Store both nodes and cells according to a dictionary data structure. Specifically, S15 includes the following steps:
[0052] S151: Create two empty dictionaries. The first dictionary is used to store nodes (node_dict), and the second dictionary is used to store elements (element_dict).
[0053] S152: Traverse each 3D voxel size (l, m, n), generate a unique key for each node. Specifically, multiply the coordinates (x, y, z) of each node by the 3D voxel resolution (lc) to convert them into actual physical coordinates, and store the index of each node and its corresponding coordinates as key-value pairs in the first dictionary (node_dict).
[0054] S153: Traverse each 3D voxel size (l, m, n), generate a unique key for each element, and store it. Specifically, calculate the node index of each element based on the 3D voxel size and resolution, and store the index of each element and the corresponding node index as key-value pairs in the second dictionary (element_dict).
[0055] S2: The coordinates x, y, z of all nodes in the loop voxel data, and the node coordinates are multiplied by the 3D voxel resolution lc.
[0056] S3: Coordinates of all cells in the cyclic voxel data.
[0057] S4: Grouping information in the cyclic data based on the grouping information carried by the voxels.
[0058] S5: After completing the iteration for node, element, and grouping information of all voxels, output the model file according to the required numerical calculation model format. Specifically, S5 includes the following steps:
[0059] S51: Traverse the first dictionary (node_dict), write the index and coordinates of each node to a file, according to the required node format (taking Abaqus as an example).
[0060] S52: Traverse the second dictionary (element_dict), write the index and coordinates of each node to a file, in the required cell format (taking cell type C3D8 as an example).
[0061] S53: Write the group definition and the element index within the group (taking Abaqus as an example, the element index is grouped into 10 groups per line to adapt to the Abaqus input format).
[0062] S6: Perform numerical calculations using the output model file.
[0063] The present invention will now be described in detail with reference to specific embodiments:
[0064] In this embodiment, the conversion of a three-dimensional cube into a numerical computation model is taken as an example. As shown in Figure 1, a method for directly generating a three-dimensional voxel into a numerical computation model includes the following steps:
[0065] S1: Based on the given voxel data, obtain the dimensions l×m×n and resolution lc of the three-dimensional voxels, determine the number of nodes for the numerical simulation as (l+1)×(m+1)×(n+1), and the number of elements as l×m×n. Both nodes and elements are stored according to a dictionary data structure.
[0066] S2: Loop through the coordinates x, y, z of all nodes in the data and multiply the coordinate values by the resolution lc.
[0067] S3: Loop through the coordinates of all cells in the data.
[0068] S4: Based on the grouping information carried by the voxels, process the grouping information in the data in a loop so that the model can group the data voxels according to their different attributes.
[0069] S5: After processing all voxel node, element, and grouping information in a loop, output the model file according to the required numerical calculation model format. Figures 2 to 4 are schematic diagrams of the writing format of element information, node information, and grouping information in the output file, respectively. The format requirements for different element information can be adjusted as needed.
[0070] S6: Perform numerical calculations using the output model file. Figures 5 and 6 show the models imported into Abaqus and Flac3D, respectively, and Figure 7 shows the results of numerical calculations using the output model in Abaqus.
[0071] The advantages and positive effects of this invention are:
[0072] This invention significantly improves the efficiency of converting voxel data into numerical models through automated processing, while ensuring model accuracy. The method optimizes the storage of node and cell information using a dictionary data structure, enhancing the flexibility and efficiency of data processing. Furthermore, this invention can output model files compatible with mainstream numerical computing software, requiring no additional format conversion and allowing direct use in numerical calculations, thus simplifying the entire workflow. This invention not only lowers the technical barrier, enabling non-experts to easily perform numerical simulations, but also promotes collaboration and application development across different disciplines due to its wide applicability, demonstrating broad application prospects.
[0073] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. A method for direct generation of a three-dimensional voxel to multi-phase material numerical model, the method comprising: The method comprises the following steps of: S1: obtaining a three-dimensional voxel size and a three-dimensional voxel resolution according to voxel data, and determining a node number and a cell number for numerical simulation; S2: looping through coordinates of all nodes in the voxel data, and multiplying coordinate values of the nodes by the three-dimensional voxel resolution; S3: looping through coordinates of all cells in the voxel data; S4: looping through grouping information in the voxel data; S5: outputting a model file according to a format of a required numerical calculation model; S6: performing numerical calculation by using the output model file.
2. The method of claim 1, wherein: The S1 comprises the following steps of: S11: extracting the three-dimensional voxel size from the voxel data, wherein a length of the three-dimensional voxel size is l, a width of the three-dimensional voxel size is m, and a height of the three-dimensional voxel size is n; S12: obtaining the three-dimensional voxel resolution lc from the voxel data; S13: calculating the node number required in numerical simulation as (l+1)×(m+1)×(n+1) according to the three-dimensional voxel size and the three-dimensional voxel resolution; S14: calculating the cell number as l×m×n according to the three-dimensional voxel size; S15: storing the nodes and the cells in a dictionary data structure.
3. The method of claim 2, wherein: The S15 comprises the following steps of: S151: creating a first dictionary and a second dictionary, wherein the first dictionary is used for storing nodes, and the second dictionary is used for storing cells; S152: traversing each three-dimensional voxel size, generating a unique key for each node, and storing the key; S153: traversing each three-dimensional voxel size, generating a unique key for each cell, and storing the key.
4. The method of claim 3, wherein: In the S152, coordinates of each node are multiplied by the three-dimensional voxel resolution to convert into actual physical coordinates, and an index of each node and corresponding coordinates are stored in the first dictionary as a key-value pair.
5. The method of claim 3 or 4, wherein: In the S153, node indexes of each cell are calculated according to the three-dimensional voxel size and the three-dimensional voxel resolution, and an index of each cell and corresponding node indexes are stored in the second dictionary as a key-value pair.
6. The method of claim 1 to 4, wherein: The S5 comprises the following steps of: S51: traversing the first dictionary, writing an index and coordinates of each node into a file according to a required node format; S52: traversing the second dictionary, writing an index and coordinates of each node into a file according to a required cell format; S53: writing grouping definition and element indexes in the grouping.
7. An apparatus, characterized by: The data processing method as claimed in any one of claims 1 to 6 is run.
8. An apparatus comprising a memory, a processor, and an algorithm stored in the memory and executable on the processor, wherein: The processor implements the data processing method as claimed in any one of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium having stored thereon a computer algorithm, the computer algorithm comprising: The computer algorithm implements the data processing as claimed in any one of claims 1 to 6 when executed by the processor.
