Expanded voxel-based CAD model simulation method keeping design features

By combining features with grids in the CAD model and using expanded voxels to record model features and simulation data, the grid division and distortion problems in the existing technology are solved, the simulation speed and calculation efficiency are significantly improved, and high accuracy is maintained.

WO2024183495A1PCT designated stage expired Publication Date: 2024-09-12ZHEJIANG UNIV

Patent Information

Application Number
PCT/CN2024/073984
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2024-01-25
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing CAD-CAE technology has problems with mesh division and accuracy loss, mesh distortion and distortion during the model simulation and optimization process, resulting in reduced simulation speed and calculation accuracy, especially during multiple simulations and optimizations.

Method used

Adopt a method of maintaining design features based on expanded voxels, combine features with grids, use voxels as the basic unit to record model features and simulation data, only calculate voxels that need to be recalculated, and use feature history trees and voxel states Table optimization simulation process.

Benefits of technology

It significantly improves the simulation and optimization speed, reduces the calculation time, maintains the calculation accuracy, adapts to any fixed grid method, and adaptively sets the grid density and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024073984_12092024_PF_FP_ABST
    Figure CN2024073984_12092024_PF_FP_ABST
Patent Text Reader

Abstract

An expanded voxel-based CAD model simulation method keeping design features. The method comprises: using a voxel as an information container where a design intention and a simulation intention are located; combining features with grids on the basis of a fixed grid method; using a voxel as a basic unit, recording an editing operation of model features, namely, embedding the features into the voxel, and storing various data (such as volume and rigidity matrixes) related to units in simulation also by the voxel; and by querying recorded feature attributes, determining a voxel that needs to retain data and a voxel that needs recalculation before and after model editing. According to the method, the calculation time can be remarkably shortened by means of reuse of a previous calculation result without influencing the calculation precision at all; the method also satisfies the decoupling performance of a simulation method, and can be adapted to any fixed grid method. According to the method, a large number of numerical examples (comprising a design optimization example of million degrees of freedom) are tested, so that the performance of the method is better than that of a classic method.
Need to check novelty before this filing date? Find Prior Art

Description

A CAD model simulation method based on extended voxels to preserve design features Technical Field

[0001] The present invention relates to the technical field of CAD, finite element simulation, and CAD-CAE integration, and in particular to a CAD model simulation method based on extended voxels and retaining design features. Background Art

[0002] After decades of development and refinement, the finite element method (FEM) has become a mainstream numerical simulation and analysis tool, capable of handling complex engineering problems across multiple disciplines, fields, and operating conditions, including statics, dynamics, thermodynamics, and fluid dynamics. Currently, most CAD (Computer-Aided Design) and CAE (Computer-Aided Engineering) applications use FEM for model simulation and optimization. FEM treats an object as a finite number of small elements, requiring meshing of the entire model before analysis to establish a finite element analysis model. However, this approach faces two major challenges: The first is the discrepancy between the mesh and the actual model, requiring cumbersome model conversions that can result in varying degrees of loss of geometric accuracy. The second is that re-meshing is required at every step during model optimization. In some undesirable cases, mesh distortion and distortion can lead to ill-conditioned stiffness matrices, forcing the optimization process to be interrupted. This presents significant challenges and represents a key issue in CAD-CAE integration.

[0003] Therefore, researchers have proposed fixed-grid analysis methods, such as the finite cell method (FCM). FCM uses high-order shape functions to interpolate the physical field to be solved, and combines the virtual domain method (FDM), adaptive integration mechanism and fixed grid to accurately solve the mechanical response of the structure, improve the analysis accuracy of the structure, and avoid the grid update process. Since FCM's precise analysis process of complex structures is performed under a fixed grid, it can avoid grid update operations and grid distortion problems during the optimization process, so it is very beneficial for structural shape / topology optimization. However, although this method avoids model-related mesh subdivision, it inevitably introduces units that intersect with the model boundary, and the calculations on these units greatly reduce the simulation speed, especially when multiple simulations and optimizations are required.

[0004] Summary of the Invention

[0005] In response to the problems existing in the above-mentioned fixed grid method, the present invention provides a CAD model method based on extended voxels to maintain design features, which can significantly improve the simulation and optimization speed. Traditional CAD / CAE methods always use model features as information containers to store design intent (such as shape parameterization) and simulation intent (such as grid programs and boundary conditions). In particular, the present invention uses voxels as information containers for design intent and simulation intent. On the basis of the fixed grid method, the features are combined with the grid to form extended voxels. The voxels are used as the basic unit to record the editing operations of the model features, that is, the features are embedded in the voxels. Furthermore, various types of data related to the units in the simulation (such as volume and stiffness matrix) are also stored via voxels. By querying the recorded feature attributes, it is possible to determine the voxels that need to retain data and the voxels that need to be recalculated before and after the model is edited. The main advantage of this is that the calculation time is significantly reduced by reusing the results of the previous step without affecting the calculation accuracy at all.

[0006] The technical solution adopted in the present invention is as follows:

[0007] A CAD model method for preserving design features based on extended voxels is disclosed. The method combines features with a grid to form voxels based on a fixed grid method. The method specifically includes: embedding a model to be simulated into a voxel grid, using voxels as basic units, recording editing operations of model features, and storing data obtained from simulation calculations. By querying the recorded feature attributes and determining which voxels need to retain data and which need to be recalculated before and after model editing, only the voxels that need to be recalculated are calculated. The method specifically includes the following steps:

[0008] 1) Construct a feature history tree based on model features, establish a mapping relationship between each node and voxel, and classify voxels into two states: active or not according to the voxel attribute table;

[0009] 2) Perform simulation and optimization based on voxel status, only calculating simulation data for activated voxels and reusing simulation data for inactivated voxels. Simultaneously, the simulation results are recorded at the corresponding voxels, reducing computation time through local calculation.

[0010] 3) Based on user needs or the optimization results of the previous step, modify the model feature list, update the voxel attribute table, and update the voxel status;

[0011] 4) Repeat steps 2)-3) until the simulation or optimization is completed.

[0012] In the above technical solution, further, in step 1), a feature history tree is constructed and a mapping between nodes and voxels is established, specifically as follows:

[0013] The data structure of the feature history tree is a binary tree, whose non-empty nodes store voxel attribute tables, including three data: feature operators, update labels f, and voxel state tables. The feature operators are used to determine whether a node is a basic feature node or to identify the operation that the node should perform. The update label f ​​is used to determine whether the node needs to be updated. The voxel state table is used to store the voxel state of each grid in the entire fixed grid. In the binary tree, the voxel state table of the parent node is obtained by operating the voxel state tables of its left and right subtrees with the feature operator corresponding to the parent node.

[0014] Furthermore, the feature operator is +, -, * or the basic feature F i , where the + operator means taking the union of the operation units, the * operator means taking the intersection, and the - operator means taking the complement of the subtracted operation unit and then taking the union with the subtracted operation unit;

[0015] The update label f ​​is 0 or 1, where 0 indicates that the voxel status table of the node has been updated, and 1 indicates that the node is newly added or needs to be updated;

[0016] The voxel state table is maintained independently by each node, corresponding to a fixed grid, and the state of the voxel is determined by the values ​​stored in it; in particular, each value in the voxel state table can only represent one of the following three states: solid voxel, boundary voxel and empty voxel, denoted as S, B and E respectively, which is determined by the specific model characteristics.

[0017] Furthermore, when constructing the feature history tree, the update labels f of all nodes are first set to 1, and each node is updated from bottom to top according to the feature tree structure. Except for the feature nodes, the voxel state of the grid in the voxel state table of each node is calculated by the voxel state of the left and right child nodes at the same grid position according to the feature operator of the node being sought; if the voxel state table of a node is empty, it means that it needs to be initialized, then no matter what the values ​​of the update labels f of the left and right subtrees are, the update range of its voxel state table is the union of the update ranges of the left and right subtrees; if the voxel state table of a node is not empty, it means that it only needs to be partially updated, then the update range of its voxel state table is taken from the union of the update ranges of the subtrees whose f value is 1; finally, the update label f ​​of each node is set to 0, indicating that the voxel state table has been updated.

[0018] Furthermore, in step 1), the voxels are divided into two states: activated or not activated according to the voxel attribute table, specifically:

[0019] The voxel state table of the top node is a summary of the voxel state tables of all descendant nodes. The voxel state table of the top node's model is compared with the voxel state table obtained in the previous cycle to determine the activated voxels. All cells with voxel state values ​​of S and E in the current cycle's voxel state table do not need to be activated. For cells with a voxel state value of B, if the corresponding voxel state table value in the previous cycle was S or E, they are activated. If the corresponding voxel state table value in the previous cycle was B, this indicates that the voxel was a boundary voxel (i.e., partially empty and partially solid) in both the previous and current cycles. Whether it can be reused (inactivated) depends on whether the shape of the model cut by the voxel has changed. At this point, it is necessary to further compare the voxel shape to ensure consistency with the previous cycle. If so, the model within the voxel has not changed and activation is unnecessary. Otherwise, activation is required. To compare voxel shapes, a method can be used to perform multiple sampling within cells with a voxel state value of B, with the sampling results corresponding to the voxel shape one-to-one, and the sampling results are saved for comparison in the next cycle. If this is the first cycle, all cells with voxel state value B will be activated.

[0020] Furthermore, in step 3), modifying the model feature list and updating the voxel attribute table include three types of operations: inserting, deleting, and modifying, specifically:

[0021] 1) Insert

[0022] Insert the F2 feature node at the F1 feature node using any operation to generate an F2 node and a parent node with an empty voxel state table; set the update flag f of F2 and its ancestor nodes to 1, and then search for the node grid with the update flag f set to 1 according to the feature history tree and perform recursive update;

[0023] Since the voxel state table of the parent node is empty, the voxel state table is updated at the union of the feature ranges of the left and right subtrees, and its own feature range is obtained. When there are no other nodes that need to be updated, the update labels f of all nodes are set to 0.

[0024] 2) Delete

[0025] Set the update tags f of the ancestor nodes of the F1 feature node to 1. Then, if the F1 feature node is deleted, its parent node will also be deleted. Since the feature range information of the deleted node is lost, the voxel state tables of all its ancestor nodes will be deleted. Then, update the node grid until there are no other nodes that need to be updated, and set the update tags f of all nodes to 0.

[0026] 3) Modification

[0027] Modify the attributes of a feature node model, set the update tags f of the node and its ancestor nodes to 1, and then recursively update the grid nodes; until there are no other nodes that need to be updated, set the update tags f of all nodes to 0.

[0028] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the CAD model simulation method for retaining design features based on extended voxels as described in any one of the above items.

[0029] The present invention also provides a CAD model simulation system based on extended voxels and retaining design features, the system comprising:

[0030] one or more processors;

[0031] a memory for storing one or more programs;

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the CAD model simulation method for retaining design features based on extended voxels as described in any one of the above items.

[0033] The beneficial effects of the present invention are:

[0034] 1) Based on the maintenance of the design history tree, a cache mechanism such as the voxel state table is constructed. The query time complexity of the activated unit is O(log(n)), which can be used to quickly locate the activated units in a fixed grid.

[0035] 2) The data from the previous iteration can be reused, and the amount of simulation calculation can be directly reduced according to whether the unit is activated or not, without affecting the simulation accuracy, which significantly improves the simulation speed in continuous simulation and optimization.

[0036] 3) The proposed method is decoupled from the specific simulation method, can be adapted to any fixed grid method, and can adaptively set the grid density and grid accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] FIG1 is a schematic diagram of a feature history tree node, showing its data structure.

[0038] FIG2 is a schematic diagram of the initialization operation of the model feature history tree;

[0039] FIG3 is a schematic diagram of an insert operation into a model feature history tree;

[0040] FIG4 is a schematic diagram of a deletion operation of a model feature history tree;

[0041] FIG5 is a schematic diagram of the modification operation of the model feature history tree;

[0042] Figure 6 shows an example of the initialization operation of the model feature history tree (a) before updating; (b) after updating;

[0043] Figure 7 shows an example of an insert operation in a model feature history tree (a) before updating; (b) after updating;

[0044] Figure 8 shows an example of a deletion operation on a model feature history tree (a) before updating; (b) after updating;

[0045] Figure 9 shows an example of a modification operation on a model feature history tree (a) before updating; (b) after updating;

[0046] Figure 10 is a schematic diagram of the cantilever beam model (with boundary conditions) and the voxel grid.

[0047] FIG11 is a diagram showing the modification of the cantilever beam model and a comparison between the present invention and the conventional method. DETAILED DESCRIPTION

[0048] The present invention provides a CAD model method for maintaining design features based on expanded voxels, which is used to significantly improve the simulation and optimization speed. In particular, the present invention combines features with grids and uses voxels as the basic unit to record the editing operations of model features / primitives, that is, embedding features into voxels. Various types of data related to the units in the simulation (such as volume and stiffness matrix) are also stored via voxels. By querying the recorded feature attributes, it is possible to determine the voxels that need to retain data and the voxels that need to be recalculated before and after the model is edited. The main advantage of this is that the calculation time is significantly reduced by reusing the calculation results of the previous step without affecting the calculation accuracy at all.

[0049] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0050] First, the general process of FCM simulation is as follows:

[0051] 1. Initialization: Create a constructive solid geometry model (CSG) and a voxel grid.

[0052] 2. Construct simulation linear equations: KU=F

[0053] Where K is the global stiffness matrix, U is the node displacement vector, and F is the node load vector.

[0054] In the above equation, F is generally defined by the user and is a known quantity. The global stiffness matrix K, assembled from the element stiffness matrices KE, requires program calculation and is the most time-consuming part of the FCM simulation program.

[0055] 3. Solve the linear equations: Solve the linear equations in step 2 to obtain the node displacement vector U.

[0056] 4. Post-processing: Calculate the displacement and stress of each point of the model according to U, and the simulation ends.

[0057] The above is a single simulation process, but if a model needs to be modified and simulated multiple times, the above process needs to be performed multiple times. Note that during multiple simulations, the model is mostly only partially modified, that is, most areas of the model remain unchanged, and the unit stiffness matrix KE in step 2 is related to the model, that is, it is not necessary to recalculate the KE of all voxels. In response to this situation, the present invention locates the units that need to be recalculated, reuses the calculation results from the previous simulation process, and only calculates the necessary unit stiffness matrix, significantly reducing the calculation time without affecting the calculation accuracy.

[0058] As described above, the CAD model method for preserving design features based on extended voxels proposed in the present invention includes the following steps:

[0059] 1) Construct a feature history tree based on model features, establish a mapping relationship between each node and voxel, and divide the voxels into two states: active or not according to the voxel attribute table.

[0060] 2) Perform simulation and optimization based on voxel status (calculate only activated voxel data and reuse inactive voxel data), while recording simulation results by voxel, and reducing computation time through local calculation.

[0061] 3) Based on user needs or the optimization results of the previous step, modify the model feature list, update the voxel attribute table, and update the voxel status.

[0062] 4) Repeat steps 2)-3) until the simulation or optimization is completed.

[0063] In the above technical solution, the step 1) constructing the feature history tree is as follows:

[0064] The data structure of the feature history tree is a binary tree. Its non-empty nodes store three data: the feature operator (+, -, *, or F), the update label f ​​(0 or 1), and the voxel state table, as shown in Figure 1.

[0065] Feature operators are used to identify the corresponding operation of a node and determine whether it is a feature node. The + operator represents the union of the operation units, the * operator represents the intersection, and the - operator represents the complement of the subtraction operation unit and the union with the subtracted operation unit. F indicates that the node is a feature node and does not depend on other nodes.

[0066] The update label f ​​is used to determine whether the node has changed to reduce calculation, which will be introduced below.

[0067] The voxel state table is maintained independently at each node, corresponding to a fixed grid. The values ​​stored in the table determine the state of the voxel. Specifically, each value in the voxel state table can represent only one of three states: solid voxel, boundary voxel, and empty voxel (denoted as S, B, and E, respectively), determined by specific characteristics. Storing S and B (E does not need to be stored) in a hash table balances storage capacity and access speed.

[0068] By defining the operator, we can give an operation table (where the first column represents the left operation unit, the first row represents the right operation unit, and the remaining items represent the operation results):

[0069] When constructing the feature history tree, f is set to 1 for all nodes, indicating that they are newly added or updated. Each node is updated from the bottom up according to the feature tree structure. The voxel state table for each node is calculated using the voxel states (S, B, or E) of the same position in the left and right cells according to the above calculation table.

[0070] The calculation rule is: if the voxel state table of a node is empty, then regardless of the value of f in the left and right subtrees, the update range of its voxel state table is the union of the update ranges of the left and right subtrees. If the voxel state table of a node is not empty, then the update range of its voxel state table is the union of the update ranges of the subtrees whose f value is 1.

[0071] The position range of the voxel table that needs to be calculated can be determined by the graphical range of the feature node, which can further reduce the amount of calculation. Finally, each node f is set to 0, indicating that the voxel state table is updated, as shown in Figure 2.

[0072] In the above technical solution, the simulation and optimization based on the voxel state in step 2) are as follows:

[0073] Based on the voxel state table of the model at the top node, compare it with the voxel state table in the previous cycle to determine the activated voxels (if it is the first cycle, all cells with value B are activated):

[0074] Specifically, the following rules are given (where the first column represents the voxel state table unit of the previous round, and the first row represents the voxel state table unit of this round):

[0075] The cells with values ​​of S or E in the voxel state table have uniform simulation data due to their regularity and do not need to be activated. Only the simulation data (such as volume, stiffness matrix, etc.) of the activated voxels are recalculated and recorded per voxel, while the recorded simulation data of the inactivated voxels are reused.

[0076] In the above technical solution, the voxel attribute table is updated in step 3), specifically as follows:

[0077] Updates to the model feature history tree can be briefly divided into the following three categories: insertion, deletion, and modification. The following will be introduced in turn:

[0078] 1) Insert

[0079] As shown in Figure 3, an F2 feature node is inserted at the F1 feature node using an arbitrary operation, generating an F2 node and a parent node with an empty voxel state table. The f value of F2 and its ancestor nodes is set to 1. Next, the node grid with f value 1 is searched for and recursively updated based on the feature history tree.

[0080] Since the voxel state table of the parent node is empty, the voxel feature table is updated at the union of the feature ranges of the left and right subtrees, and the feature range of the parent node is obtained. When there are no other nodes to update, all f are set to 0.

[0081] 2) Delete

[0082] As shown in Figure 4, the f values ​​of all ancestor nodes of feature node F1 are set to 1. Afterward, if feature node F1 is deleted, its parent node is also deleted. Because the feature range information of the deleted node is lost, the voxel state tables of all its ancestor nodes are also deleted. The node grid is then updated. Once there are no more nodes to update, all f values ​​are set to 0.

[0083] 3) Modification

[0084] As shown in Figure 5, modify the properties of the F2 feature node model. Set F2 and its ancestor node f to 1. Then recursively update the grid nodes. When there are no more nodes to update, set all f to 0.

[0085] More specifically, considering the continuous editing operation shown in Figures 6-9, the following steps may be included:

[0086] 1) Based on the model feature list, a voxel attribute table is constructed to establish a mapping relationship between model features and voxels. According to the voxel attribute table, voxels are divided into two states: activated or not.

[0087] As shown in Figure 6(a), the f of all nodes is 1, indicating that they are newly added or updated nodes. The voxel state tables of the top two nodes are empty. Since hash tables are used for storage, they are empty tables here. Each node is updated from bottom to top according to the feature tree structure. The voxel state table of each node is calculated by the voxel state (S, B or E) of the same position of the left and right units according to the above operation table. The dotted box in Figure 6(b) indicates the position range of the voxel table to be calculated, which can be determined by the graphic range of the feature node, which can further reduce the amount of calculation. Finally, the f of each node is set to 0, indicating that the voxel state table has been updated. The voxel state table of the top node represents the voxel state of the model composed of the feature tree.

[0088] Because it is the first cycle, all the cells with value B in the voxel state table of the top node are activated.

[0089] 2) Simulate and optimize based on voxel state (calculate only activated voxel data and reuse inactive voxel data), and simultaneously calculate simulation results through voxel records, reducing computational time through local calculations.

[0090] 3) Based on user needs or the optimization results of the previous step, modify the model feature list, update the voxel attribute table, and update the voxel status.

[0091] As shown in Figure 6-8, the following operations are performed on the model feature history tree in three iterations: insertion, deletion, and modification.

[0092] Insertion: As shown in Figure 7(a), the F4 feature node is inserted at the F3 feature node using the + operation, generating an F4 node and an empty + node. The f values ​​of F4 and its ancestor node are both set to 1. Next, according to the feature history tree, the node grid with f value 1 is searched for and recursively updated. Since the voxel state table of the + node is empty, the update range of its voxel state table is the union of the update ranges of the left and right subtrees. Since f value of the left subtree (* node) of the - node is 0 and f value of the right subtree (+ node) is 1, the voxel feature table is updated only within the feature range of the right subtree, as shown in Figure 7(b). Since no other nodes need to be updated, all f values ​​are set to 0.

[0093] Deletion: As shown in Figure 8(a), the F3 feature node and its ancestor node f are both set to 1. Afterwards, deleting the F3 feature node also deletes the + node. Because the feature range information of the deleted node is lost, the voxel state table of its ancestor node is also deleted. The node grid is then updated. Since the voxel state table of the - node is empty, regardless of the values ​​of the left and right subtrees, it is updated using the union of the feature ranges of the left and right subtrees, as shown in Figure 8(b). Since no other nodes need to be updated, all f values ​​are set to 0.

[0094] Revise:

[0095] As shown in Figure 9(a), modify the attributes of the F4 feature node model by increasing the width of the rectangle. Set the f values ​​of F4 and its ancestor nodes to 1. Then, recursively update the mesh nodes. First, update the voxel attribute table of the F4 node, which can be obtained from the updated model shape. Next, update the - node. Since f values ​​in its left subtree (* node) are 0 and f values ​​in its right subtree (+ node) are 1, only update the voxel feature table within the feature range of the right subtree, as shown in Figure 9(b). Since no other nodes require updating, set all f values ​​to 0.

[0096] After the editing operation is completed, the voxel state table of the model based on the top node is compared with the voxel state table in the previous cycle to determine the activated voxel.

[0097] 4) Repeat steps 2)-3) until the simulation or optimization is completed.

[0098] The following is further explained with examples.

[0099] Consider a cantilever beam model with a hole, embedded in a 6×3 voxel grid, as shown in Figure 10.

[0100] This example consists of four simulations, each of which is performed after modifying the model (CSG).

[0101] Specifically:

[0102] 1. Initialize the cantilever beam model with a hole and perform simulation.

[0103] 2. Insert a fillet feature, which consists of a cube and a circle, for simulation.

[0104] 3. Modify the features, reduce the fillet and its corresponding features, and perform simulation.

[0105] 4. Delete the circular hole feature and perform simulation.

[0106] FIG11 lists the CSG diagram of each simulation model, the voxels that need to be recalculated (activated) by the traditional FCM method and the method of the present invention (i.e., the corresponding gray units in the figure). It can be seen that the present invention only needs to calculate the unit stiffness matrix of a smaller number of voxels compared to the traditional FCM method. The method described in the application technical solution is used to determine the state of the voxels, wherein only the B-type voxels that change due to model changes before and after simulation need to recalculate (activate) their KE (S and E-type voxels can pre-calculate KE, which does not take up simulation time and is not included in the statistics).

[0107] In the four simulations, the number of element stiffness matrices KE required to be calculated by the present invention and the traditional method are 26 and 62 respectively, and the speed is increased by about 2.4 times, which shows the high efficiency of the present invention in the field of continuous simulation.

[0108] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0109] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0110] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

Claims

1. A CAD model simulation method based on extended voxels and maintaining design features, characterized in that: The method combines features with grids to form voxels based on a fixed grid method, specifically including: embedding the model to be simulated into a voxel grid, taking voxels as basic units, recording the editing operation of the model features, and storing the data obtained by simulation calculation, by querying the recorded feature attributes and judging the voxels that need to retain data and the voxels that need to be recalculated before and after the model is edited, and only calculating the voxels that need to be recalculated; specifically including the following steps: 1) Construct a feature history tree based on model features, establish a mapping relationship between each node and voxel, and divide the voxels into two states: activated or not according to the voxel attribute table; 2) Simulate and optimize based on voxel status, only calculate the simulation data of activated voxels and reuse the simulation data of inactivated voxels, and record the simulation calculation results through the corresponding voxels to reduce the calculation time through local calculation; 3) Modify the model feature list, update the voxel attribute table, and update the voxel status based on user needs or the optimization results of the previous step; 4) Repeat steps 2)-3) until the simulation or optimization is completed.

2. The CAD model simulation method based on extended voxels and maintaining design features according to claim 1, characterized in that: In the step 1), a feature history tree is constructed to establish a mapping between nodes and voxels, as follows: The data structure of the feature history tree is a binary tree, whose non-empty nodes store voxel attribute tables, including three data: feature operators, update labels f, and voxel state tables; among them, the feature operator is used to determine whether the node is a basic feature node or to identify the operation that the node should perform, the update label f ​​is used to determine whether the node needs to be updated, and the voxel state table is used to store the voxel state of each grid in the entire fixed grid; in the binary tree, the voxel state table of the parent node is obtained by operating the voxel state tables of its left and right subtrees through the feature operator corresponding to the parent node.

3. The CAD model simulation method based on extended voxels and maintaining design features according to claim 2, characterized in that: The feature operator is +, -, * or the basic feature F i , where the + operator represents taking the union of the operation units, the * operator represents taking the intersection, and the - operator represents taking the complement of the subtracted operation unit and then taking the union with the subtracted operation unit; The update label f ​​is 0 or 1, where 0 means that the node voxel status table has been updated, and 1 means that The node is newly added or needs to be updated; The voxel state table is maintained independently by each node, corresponding to a fixed grid, and the state of the voxel is determined by the value stored in it; in particular, each value in the voxel state table can only represent one of the following three states: solid voxel, boundary voxel and empty voxel, denoted as S, B and E respectively, which is determined by the specific model characteristics.

4. The CAD model simulation method based on extended voxels and retaining design features according to claim 3, characterized in that: When constructing the feature history tree, the update labels f of all nodes are first set to 1, and each node is updated from bottom to top according to the feature tree structure. Except for the feature nodes, the voxel state of the grid in the voxel state table of each node is calculated by the voxel state of the left and right child nodes at the same grid position according to the feature operator of the node in question; if the voxel state table of a node is empty, it means that it needs to be initialized. Then, regardless of the values ​​of the update labels f of the left and right subtrees, the update range of its voxel state table is the union of the update ranges of the left and right subtrees; if the voxel state table of a node is not empty, it means that it only needs a partial update. Then, the update range of its voxel state table is taken from the union of the update ranges of the subtrees whose f value is 1; finally, the update label f ​​of each node is set to 0, indicating that the voxel state table has been updated.

5. The CAD model simulation method based on extended voxels and retaining design features according to claim 3, characterized in that: In the step 1), the voxels are divided into two states: activated or not activated according to the voxel attribute table, specifically: The voxel state table of the model based on the top node is compared with the voxel state table obtained in the previous cycle to determine the activated voxels: all units with voxel state values ​​of S and E in the voxel state table of this cycle do not need to be activated, and for units with voxel state value of B, if the value in the corresponding voxel state table in the previous cycle is S or E, they are activated; if the value in the corresponding voxel state table in the previous round is B, whether to activate it is determined based on the model data recorded in the unit; if the current is the first cycle, all units with voxel state value B are activated.

6. The CAD model simulation method based on extended voxels and retaining design features according to claim 5, characterized in that: The determination of activation based on the model data recorded by the unit is as follows: for a unit whose voxel state value is B, if the value in the corresponding voxel state table in the previous round is B, it is necessary to further compare whether the voxel shape is consistent with the previous round. If they are consistent, it means that the model in the voxel has not changed, and there is no need to activate it. Otherwise, it is activated.

7. The CAD model simulation method based on extended voxels and retaining design features according to claim 3, characterized in that: Modifying the model feature list and updating the voxel attribute table in step 3) includes three types of operations: insertion, deletion and modification, specifically: 1) Insert Insert the F2 feature node at the F1 feature node by any operation to generate an F2 node and a parent node with an empty voxel state table; set the update label f ​​of F2 and its ancestor nodes to 1, and then search for the node grid with the update label f ​​of 1 according to the feature history tree for recursive update; Since the voxel state table of the parent node is empty, the voxel state table is updated at the union of the feature ranges of the left and right subtrees, and its own feature range is obtained until no other nodes need to be updated, and the update labels f of all nodes are set to 0; 2) Delete Set the update labels f of the ancestor nodes of the F1 feature node to 1. After that, delete the F1 feature node, and its parent node will also be deleted. Since the feature range information of the deleted node is lost, the voxel state tables of all its ancestor nodes will be deleted. Then update the node grid until there are no other nodes to be updated, and set the update labels f of all nodes to 0. 3) Modification Modify the attributes of a feature node model, set the update labels f of the node and its ancestor nodes to 1, and then recursively update the grid nodes; until there are no other nodes that need to be updated, set the update labels f of all nodes to 0.

Citation Information

Patent Citations

  • VBO-based efficient geometric simulation method for cutting process

    CN113343546A

  • Three-dimensional CAD (computer-aided design) reconstruction method for pixel type topological optimization result

    CN114707388A

  • Dynamic updating method for webpage side triangular patch model based on voxel division

    CN115587451A

  • CAD model simulation method for maintaining design features based on expansion voxels

    CN116090313A

  • Dual mode post processing

    US20210150000A1

Cited By

  • Topological optimization method based on binary tree search, computer equipment and storage medium

    CN119761111A

  • Topology optimization method based on binary tree search, computer device and storage medium

    CN119761111B

  • Mapping association method and system for 3D tile and BIM vector model editing

    CN121808919A