Finite element stress field agent prediction and topology consistent cloud map reconstruction method and system
By combining node-element topology templates and neural networks, the problems of long calculation cycles and topology mismatch in finite element simulation are solved, enabling rapid stress field prediction and topology-consistent cloud map reconstruction, thus improving simulation efficiency and result accuracy.
Patent Information
- Application Number
- CN202611450169.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies in finite element simulation suffer from problems such as long calculation cycles, mismatch between prediction results and topology, overly optimistic verification indicators, and broken cloud maps, making it difficult to quickly obtain the stress field of the entire node and maintain the consistency of the spatial structure.
By introducing node-element topology templates, the correspondence between working parameters and node results is established. A surrogate model is trained and a node-element topology template library is used for prediction and topology reconstruction to ensure that the prediction results are consistent with the topology of the finite element model. A neural network is used for normalization and denormalization processing, and the results are verified in conjunction with spatial quality evaluation indicators.
It achieves rapid stress field prediction and topology-consistent cloud map reconstruction, reduces the need for repetitive finite element solutions, stably handles geometric changes, and improves the spatial consistency and accuracy of prediction results.
Smart Images

Figure CN123159016A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of finite element simulation technology, specifically to a method and system for finite element stress field proxy prediction and topology-consistent cloud map reconstruction. Background Technology
[0002] Finite element method (FEM) simulation is widely used in engineering structural design and analysis. It typically requires solving for multiple load cases to obtain the stress distribution of the structure under various load conditions and geometric configurations. The basic process of FEM analysis includes geometric modeling, mesh generation, application of boundary conditions and loads, and solution calculation, ultimately obtaining the stress, displacement, and other field results at each node, and generating stress contour maps through post-processing. For large-scale models or nonlinear analyses, a single FEM solution can take tens of minutes to several hours. When the number of load cases is large, the computational cost of repeated solutions increases significantly, especially in scenarios requiring rapid response, such as digital twins and online evaluation.
[0003] Existing technologies introduce machine learning into finite element analysis, replacing repetitive solutions by constructing surrogate models. Some schemes use neural networks to establish the mapping relationship between working condition parameters and structural response. For example, some schemes use generative adversarial learning to construct surrogate models for modal parameter calculation, some use BP neural networks to predict maximum stress values or stress variation curves, and others use radial basis function neural networks to establish the mapping between parameters and residual stress. CN114925619B proposes training a machine learning model based on a finite number of working conditions, obtaining the predicted stress at the nodes, constructing a scatter plot based on the node coordinates, and coloring it to obtain a three-dimensional cloud map model.
[0004] However, existing technologies still have the following drawbacks: (1) When directly repeating the finite element solution, the calculation cycle of parameter scanning or new working condition design is long, making it difficult to quickly obtain the stress field of the entire nodal area.
[0005] (2) Some proxy prediction methods rely on fixed-length vectors or fixed node layouts. When changes in model, mesh configuration or geometric parameters lead to changes in the number of nodes, node spatial positions or element connection relationships, it is difficult to maintain a stable one-to-one correspondence between the prediction results and the target node set, and it is also difficult to directly use the original topology to complete the reconstruction of the entire stress field.
[0006] (3) Randomly splitting nodes into the training set and the validation set will cause adjacent nodes of the same working condition to appear on both sides at the same time, resulting in an overly optimistic validation index that cannot truly reflect the generalization ability of the new working condition.
[0007] (4) Only by node MAE, RMSE or R 2 The evaluation cannot explain whether the spatial structure of the predicted cloud map is maintained, nor can it reflect whether the high-stress danger area has been correctly located.
[0008] (5) Drawing directly using scatter magnification, general Delaunay grid or mismatched cell connections may result in cloud map breaks, white holes or displacement of high stress areas by crossing holes, boundaries or different facets. Summary of the Invention
[0009] In view of this, the present invention provides a finite element stress field proxy prediction and topology-consistent cloud map reconstruction method. By introducing a node-element topology template, the proxy prediction and topology reconstruction are unified on the same data basis, effectively solving the problem of mismatch between the prediction results and the topology of the finite element model.
[0010] To achieve the above objectives, the technical solution adopted by this invention is: a finite element stress field proxy prediction and topology-consistent cloud map reconstruction method, comprising: Step 1: Based on the working condition identifier associated with the finite element results, establish the correspondence between the working condition parameters and the node result dataset. The node result dataset includes node identifier, node spatial coordinates, and node stress. Step 2: For each node of each working condition, concatenate its global working condition parameters with the spatial coordinates of that node to form a node feature vector. Use the node feature vectors of all nodes as input and the corresponding node stress as the prediction target to train the surrogate model. Step 3: Determine the final prediction template corresponding to the target working condition from the node unit topology template library; Step 4: Combine the working condition parameters of the target working condition with the spatial coordinates of each node in the final prediction template to form a node feature vector, input it into the surrogate model, and obtain the predicted stress corresponding to each node. Step 5: Extract effective boundary patches based on the element type identifier and element connection relationship in the final prediction template, and write the predicted stress back to the corresponding node according to the node identifier of the same template to form a stress field and stress cloud map consistent with the node set and element topology of the template.
[0011] Furthermore, the stress contributions of multiple elements at the same node are summarized using the node identifier as the key, and the average stress is calculated as the node stress.
[0012] Furthermore, the surrogate model is a neural network, which independently outputs normalized stress prediction values for each node's feature vector, and obtains node stress prediction values after inverse normalization; the statistics used for normalization and inverse normalization are both obtained by fitting the training set.
[0013] Furthermore, the statistics used in the normalization and denormalization processes include the mean and standard deviation of each dimension of the node features, as well as the mean and standard deviation of the node stress. The statistics are obtained by fitting the training set. The fitting method is as follows: traverse all nodes in the training set, calculate the mean and standard deviation of each dimension of the node features on all nodes, and calculate the mean and standard deviation of the node stress on all nodes. When the validation set or blind test set is normalized and denormalized, the mean and standard deviation obtained by fitting the training set are used.
[0014] Furthermore, the templates in the node-unit topology template library include template identifiers, node identifiers, node spatial coordinates, unit type identifiers, unit connection relationships, and geometric parameters.
[0015] Furthermore, if the target working condition has the same geometry and mesh configuration as the existing template, the existing template is used; if the geometric parameters of the target working condition change, a template that precisely matches the target geometric parameters is searched; if no precisely matching template exists, the normalized weighted distance between the target geometric parameters and the geometric parameters of each template is calculated, and the template with the closest distance is selected; if no matching template exists, a message indicating that no applicable template is available is returned, and no prediction results are generated.
[0016] Furthermore, candidate faces for each element are determined based on the element type identifier and the node connection order; The number of occurrences of each candidate face is counted using the set of node labels that make up the face as the key. Faces that occur more than once are discarded as internal shared faces, and faces that occur once are retained as outer boundary faces. The outer boundary surface is divided into triangles according to the triangulation rules specified for the corresponding element type. Degenerate patches with missing node identifiers, duplicate nodes, or zero area are filtered out to obtain valid boundary patches. After writing the predicted stress back to the corresponding node according to the node identifier, the written-back node stress is used as the corresponding value of each vertex of the effective boundary patch, and interpolation coloring is performed to generate the stress field and stress cloud map.
[0017] Furthermore, for each entity element, a set of closed candidate patches is generated for each element according to the standard topological relationship and node connection order corresponding to its element type identifier. For two-dimensional planar elements or shell elements, the visible surface is determined according to its boundary or surface connection rules; the generated candidate patches record the set of node labels that make up the patch and the corresponding element affiliation.
[0018] Furthermore, for the verification case, the real node field and the predicted node field are mapped to a unified spatial grid using the same node coordinates, the same node element topology, and the same regular grid. The mean square error, peak signal-to-noise ratio, and structural similarity are calculated. A high-stress mask is constructed with a preset stress threshold as the boundary to calculate the cross-union ratio, thereby verifying and quality-controlling the prediction results of the surrogate model.
[0019] A finite element stress field proxy prediction and topology-consistent cloud map reconstruction system, applied to the aforementioned finite element stress field proxy prediction and topology-consistent cloud map reconstruction method, includes: The data processing module is used to read finite element results, summarize and average the stress values of elements at the nodes in the target area using node labels as keys, and output a node result dataset containing node identifiers, node coordinates, and average Mises stress of the nodes. The result alignment module is used to establish the correspondence between working condition parameters and nodal result datasets based on the working condition identifiers associated with the finite element results. The dataset management module is used to divide the training file set and the validation file set with the complete simulation file as the smallest unit of division, and to generate stable new file allocation values based on a fixed random seed and working condition identifier. The feature construction and normalization module is used to copy the global parameters of each working condition to each node of that working condition, concatenate the node spatial coordinates to form the node feature vector, and normalize the input features and node stress according to the statistics fitted by the training file set. The proxy model module receives the normalized node features, passes them through the input mapping layer, normalization layer, nonlinear activation, residual block and output mapping layer to obtain the normalized stress prediction value, and then inversely normalizes it to the node stress according to the statistics fitted to the training set. The topology template determination module is used to perform parameter applicability range determination and determine the final prediction template corresponding to the target working condition from the node-cell topology template library; The finite element topology reconstruction module is used to extract effective boundary patches based on the element type identifier and element connection relationship in the final prediction template, and write back the predicted stress to the corresponding node according to the node identifier of the same template to form a stress field and stress cloud map consistent with the node set and element topology of the template. The spatial quality assessment module is used to calculate mean square error, peak signal-to-noise ratio, structural similarity, and cross-intersection ratio of high-stress areas on the same topology and regular grid, and outputs working condition indicators, summary indicators, and real / predicted / error cloud maps.
[0020] The beneficial effects of the above technical solution are: (1) By using the preprocessing chain of “finite element result quality verification, node aggregation, and working condition alignment”, the number of invalid training samples caused by missing fields, parameter mismatch and label inconsistency can be reduced.
[0021] (2) Use complete simulation files instead of nodes as the division granularity, and fit the normalized statistics only on the training set to make the verification index closer to the generalization ability of the new working conditions.
[0022] (3) The global working condition parameters and the node spatial coordinates are integrated into node features, and stress values with different numbers of nodes and different working conditions can be output in batches using a single node-level model.
[0023] (4) By determining the applicable domain of parameters and the topology template of the target working condition node-unit, the fixed geometry / fixed mesh working condition can stably utilize the existing template, and further distinguish the geometric change working condition from the cases of precise matching, approximate matching with allowable geometric deviation, and target geometry template generation; thereby expanding the applicable scenarios of the method, avoiding misrepresentation of the approximate template result as the target geometry result, and avoiding forcibly outputting the prediction result for working conditions that are beyond the applicable range or have no available template.
[0024] (5) By identifying the element type, removing the internal shared surface and triangulating the outer boundary surface, the node coordinates, node identifiers, element types and element connection relationships are all derived from the same final prediction template determined in step S3. Based on this, the prediction value is written back and the cloud map is reconstructed, the boundary and surface relationship of the structure corresponding to the template are preserved, and the risk of scatter plotting or general interpolation crossing holes and boundaries is reduced.
[0025] (6) The SSIM, PSNR and IoU of the high stress area are jointly evaluated by the real field / predicted field with the same topology and regular grid, which simultaneously reflects the overall structural similarity, signal-to-noise ratio and the consistency of the location of the dangerous area. Attached Figure Description
[0026] Figure 1 This is a general block diagram of the system of the present invention; Figure 2 The flowchart shows the method for stress field prediction and topology-consistent cloud map reconstruction. Figure 3 Flowchart for determining the applicable domain of parameters and the node-cell topology template; Figure 4 This diagram illustrates the extraction of candidate surfaces for finite element solid elements, the elimination of internal shared surfaces, and the triangulation of external boundary surfaces. Figure 5 A schematic diagram comparing the actual stress field, the predicted stress field, and the absolute error field; Figure 6 This is a schematic diagram of the high-stress zone. Detailed Implementation
[0027] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments: Example 1: This example aims to provide a method for finite element stress field proxy prediction and topology-consistent cloud map reconstruction. It is mainly used in the field of machine learning proxy modeling and stress field visualization of finite element simulation data. Specifically, it involves a method and system for performing nodal stress proxy prediction using multi-dimensional working condition parameters and finite element node spatial information as joint inputs, and for completing stress field and cloud map reconstruction using the node-element topology relationship corresponding to the target working condition. When changes in geometric parameters cause changes in node spatial position, number of nodes, or element connection relationship, corresponding adaptation can be achieved by selecting or generating node-element topology templates.
[0028] Existing technologies mainly involve finite element proxy modeling, maximum stress prediction, physical information stress field prediction, finite element topology interpolation, or residual stress reconstruction. The core of this embodiment is not a standalone machine learning prediction or cloud map drawing, but rather the establishment of a continuous technology chain around the same node-element topology template. First, a node stress proxy mapping is established by jointly representing the working condition parameters and node spatial information. Then, for the target working condition, a node-element topology template corresponding to its finite element model, mesh configuration, or geometric parameters is determined. This template at least stores node identifiers, node spatial coordinates, element type identifiers, and element connection relationships, serving as the common data foundation for overall prediction and subsequent topology reconstruction. When the target working condition uses existing geometry and mesh configurations, the corresponding template is used; when changes in geometric parameters lead to changes in node layout or element connection relationships, the final prediction template is determined through precise matching, tolerance judgment, or target template generation. The prediction results are written back based on the node identifiers of the same template, and structural boundary patches are extracted and topology constraint reconstruction is implemented based on the actual element connection relationships of the same template, thereby avoiding inconsistencies between the node set and the drawing topology source. Spatial quality evaluation is performed on the same topology and the same regular mesh.
[0029] In practical implementation, this embodiment provides a finite element stress field proxy prediction and topology-consistent cloud map reconstruction method, the technical objectives of which are as follows: (1) Under the premise that the finite element simulation results are available, how to establish a fast mapping from multidimensional working condition parameters and node spatial position to node stress, and use the node-element topology relationship that is compatible with the target working condition to complete the whole field stress prediction and topology consistency reconstruction, so as to reduce the need for repeated finite element solutions for new working conditions.
[0030] (2) When the target working condition uses the existing geometry and mesh configuration, how to reliably reuse the corresponding node-element topology template; when the change of geometric parameters causes changes in the number of nodes, node positions or element connection relationships, how to determine the template that is compatible with the target geometry, and give clear handling when there is no accurate template, the applicable range is exceeded or there is no available template, rather than forcibly outputting results that are inconsistent with the target structure.
[0031] (3) How to establish a consistent correspondence between finite element results, working condition parameters, node coordinates and node labels during the data preprocessing stage, and avoid data leakage caused by the same working condition node across the training set and validation set.
[0032] (4) How to use the connection relationship between the finite element type and the real element to reconstruct the boundary patch of the predicted nodal field in a topologically consistent manner, so as to avoid the general interpolation crossing holes or boundaries.
[0033] (5) How to evaluate the spatial quality of the predicted stress field through structural similarity, peak signal-to-noise ratio and crossover ratio in high stress areas.
[0034] In specific implementation of this embodiment, such as Figure 1-2 As shown, it includes the following steps: Step 1: Finite element sample structuring Based on the working condition identifiers associated with the finite element results, a correspondence is established between the working condition parameters and the nodal result dataset. The nodal result dataset includes node identifiers, node spatial coordinates, and nodal stresses. The von Mises stress contributions of multiple element nodes at the same node are summarized using the node identifier as the key, and the average Mises equivalent stress at the node is calculated. In specific implementation, nodes are set... have von Mises stress contribution of each effective element node The nodal average Mises equivalent stress is calculated according to the following formula: (1) In the formula, For nodes The number of effective element nodal stress contributions. The contribution of von Mises stress at the k-th element node position. Equation (1) indicates that the von Mises stress at each element node position is obtained first, and then the average of multiple contributions for the same node is taken; this definition is different from averaging the stress tensor components first and then calculating the von Mises stress. When When this happens, no sample is generated for that node.
[0035] Records of working conditions that lack necessary fields, have no effective stress values, or whose node coordinates cannot be obtained are considered abnormal and are removed. The correspondence between working condition parameters and node result datasets is established based on the working condition identifier associated with the finite element results. Records that do not match are not allowed to enter the training.
[0036] Step 2, Node-level proxy mapping For each node under each working condition, its global working condition parameters are concatenated with the spatial coordinates of that node to form a node feature vector. The surrogate model is trained using the node feature vectors of all nodes as input and the corresponding node stress as the prediction target.
[0037] For each node in each operating condition, correlate m global operating condition parameters with the spatial coordinates of that node. Concatenate to form node feature vectors During node feature construction, the m global operating condition parameters are concatenated with the q-dimensional spatial coordinates of node i to obtain the node feature vector. (2) In the formula, These are global operating parameters. The coordinates are spatial vectors of the nodes; two-dimensional coordinates are taken according to the dimensions of the research object. or three-dimensional coordinates In two-dimensional problems And q=2, in a three-dimensional problem Furthermore, q=3, and in this embodiment, m=7, q=2, and the feature dimension is 9.
[0038] In this embodiment, the surrogate model is a neural network. It independently outputs normalized stress prediction values for each node's feature vector, and then performs inverse normalization to obtain the node stress prediction values. The statistics used for normalization and inverse normalization are obtained by fitting the training set. These statistics include the mean and standard deviation of each dimension of the node features, as well as the mean and standard deviation of the node stress. The statistics are obtained by fitting the training set by iterating through all nodes in the training set and calculating the mean and standard deviation of each dimension of the node features across all nodes, as well as the mean and standard deviation of the node stress across all nodes. When performing normalization and inverse normalization on the validation set or blind test set, the mean and standard deviation obtained from the training set are used.
[0039] During implementation, the input features and nodal stresses are normalized separately. The d-th dimension of the nodal features is normalized using the following formula: (3) Nodal stress Normalize according to the following formula: (4) In the formula, and These are the mean and standard deviation of the d-th dimension of the node features in the training file set, respectively. and These are the mean and standard deviation of the node stresses in the training file set, respectively; the validation set and blind test set do not participate in the fitting of the above statistics.
[0040] A nodal stress surrogate prediction relationship is established, and the neural network predicts the nodal stress node by node for all nodes under all working conditions. In this embodiment, the prediction target is the average Mises equivalent stress of the nodes. During implementation, the surrogate model with normalized nodal features as input parameters θ is used. The model output is then inversely normalized to obtain the predicted nodal stress. : (5) The training file set and the validation file set are constructed using the complete simulation file as the smallest unit. Node samples are expanded only from their respective file lists without node-level random partitioning. The normalized statistics of the input and output are fitted only by the training file set, and the validation or blind test files are only transformed.
[0041] Step 3: Determine the target operating condition node-unit topology template like Figure 3 As shown, the final prediction template corresponding to the target working condition is determined from the node unit topology template library. For the working condition to be predicted, the applicable range of the input parameters of the surrogate model is determined. The r-th parameter of the working condition to be predicted should satisfy the following: (6) In the formula, and Let be the minimum and maximum values of the r-th parameter in the training samples, respectively. To allow for a margin, if any parameter exceeds the range specified in equation (6), a message indicating that the proxy model is not applicable will be output, and no effective stress field result will be generated. Among the m working condition parameters, the parameters that change the spatial position of nodes, the number of nodes, or the connection relationship of finite element elements are denoted as geometric parameters. .
[0042] After the parameter applicability range is determined, the final prediction template corresponding to the target working condition is determined from the node-element topology template library. Each template saves at least the template identifier, node identifier, node spatial coordinates, element type identifier, and element connection relationship; for models with geometric changes, the corresponding geometric parameters are also saved. If the target working condition uses the existing geometry and mesh configuration, the corresponding template is reused based on the finite element model identifier, mesh configuration identifier, or equivalent identification information; if changes in geometric parameters may cause changes in node layout or element connection relationship, template matching is performed based on the geometric parameters, and the template that precisely corresponds to the target geometry is preferred.
[0043] In this embodiment, if the geometric parameters of the target working condition change, a template that precisely matches the target geometric parameters is searched; if no precisely matching template exists, the normalized weighted distance between the target geometric parameters and the geometric parameters of each template is calculated, and the template with the closest distance is selected; if no matching template exists, a message indicating that no applicable template is available is returned, and no prediction result is generated. Template distance and selection under geometrically changing working conditions: For target working conditions with varying geometric parameters and no precisely matching template, the normalized weighted distance between the predicted geometric parameter and the j-th template is: (7) The nearest template is determined using the following formula: (8) In the formula, the superscript tar of g represents the target to be predicted; the subscript r represents the r-th geometric parameter. This represents the r-th geometric parameter of the j-th template; The scale for the corresponding geometric parameters, δ is the weight. When the minimum distance determined by equation (8) is not greater than δ, the nearest template can be used as an approximate template or a reference for generating the target template under the condition of allowing geometric deviation; when strict target geometric consistency is required, the node-cell topology template corresponding to the target geometry is generated and then predicted; when the minimum distance exceeds δ and the target template cannot be generated, no applicable template is returned.
[0044] When the minimum distance is no greater than the preset matching tolerance δ and the application scenario allows for a deviation within the tolerance range between the target geometry and the template geometry, the nearest template can be used as an approximate prediction template. Simultaneously, the target geometry parameters, template geometry parameters, and their deviation are recorded in the output. In this case, the topological consistency of the resulting node set and cloud map is relative to the selected approximate template. When the application scenario requires strict consistency between the prediction result and the target geometry, the node coordinates of the nearest template are not directly used to replace the target geometry node coordinates. Instead, a corresponding node-cell topology template is generated based on the target geometry parameters before prediction is performed. If the minimum distance exceeds... If the target geometry template cannot be generated, a "No applicable template" message will be returned, and no valid stress field results will be generated.
[0045] Step 4, Whole-field node prediction The target working condition parameters are combined with the spatial coordinates of each node in the final prediction template, and then input into the surrogate model in batches. After output inverse normalization, the predicted stresses corresponding to all nodes of the template are obtained, forming a node result dataset that at least includes node identifiers, node spatial coordinates, template identifiers, and corresponding node stresses.
[0046] The final prediction template can be an existing template directly corresponding to the target working condition, a template that precisely matches the target geometry, an approximate template under conditions that allow for geometric deviations, or a target geometry template newly generated based on the target geometric parameters. When using an approximate template, the geometric parameter deviation should be clearly identified in the results and should not be presented as a reconstruction result that is strictly consistent with the target geometry.
[0047] Step 5: Reconstruction of the stress field from finite element topological constraints like Figure 4-6 As shown, effective boundary patches are generated based on the element type identifier and element connection relationship in the determined final prediction template, and the predicted stress is written back to the corresponding node based on the node identifier of the same template, forming a stress field and stress cloud map consistent with the node set and element topology of the template.
[0048] Specifically, it includes: (a) Element Type Identification: The element topology is determined based on the finite element type identifier and node connection order, rather than solely on the number of nodes. Surface node extraction rules and triangulation rules are set separately for different element types. For example, for an eight-node hexahedral solid element, six quadrilateral candidate faces can be generated based on the node connection order; for a four-node tetrahedral solid element, four triangular candidate faces can be generated. For two-dimensional planar elements or shell elements, the visible faces are determined based on their boundary or surface connection rules. The above element types are merely examples; the actual extraction rules should be consistent with the finite element type and node connection order recorded in the template. (b) Candidate face extraction: Generate candidate face patches for each solid element; (c) Internal shared face removal: The number of times each candidate face appears is counted using the set of node labels that make up the face as the key. Faces shared by two adjacent entity units are internal faces and are removed. Only the outer boundary face that appears once is retained. (d) Triangulation of outer boundary surfaces: The outer boundary surfaces are split into triangles according to the surface rules specified by the corresponding element type, and degenerate surfaces with missing or repeated node labels or areas close to zero are filtered out. (e) Nodal stress write-back and contour map generation: The predicted nodal stress is used as the corresponding vertex value for interpolation and coloring, and a topology-consistent stress contour map is output.
[0049] In this embodiment, candidate facets for each unit are determined based on the unit type identifier and node connection order. The number of occurrences of each candidate facet is counted using the set of node labels that make up the facet as the key. Facets that occur more than once are discarded as internal shared faces, while those that occur once are retained as outer boundary faces. The outer boundary faces are split into triangles according to the triangulation rules specified for the corresponding unit type. Degenerate facets with missing node identifiers, duplicate nodes, or zero area are filtered out to obtain valid boundary facets. The predicted stress is written back to the corresponding node according to the node identifier. The written-back node stress is used as the corresponding value of each vertex of the valid boundary facet, and interpolation coloring is performed to generate the stress field and stress cloud map.
[0050] For solid elements, a set of closed candidate patches is generated for each element according to the standard topological relationship and node connection order corresponding to its element type identifier; for two-dimensional planar elements or shell elements, the visible surface is determined according to its boundary or surface connection rules; the generated candidate patches record the set of node labels that make up the patch and the corresponding element affiliation.
[0051] For the verification case, the real node field and the predicted node field are mapped to a unified spatial grid using the same node coordinates, the same node element topology, and the same regular grid. The mean square error, peak signal-to-noise ratio, and structural similarity are calculated. A high-stress mask is constructed with a preset stress threshold as the boundary to calculate the cross-union ratio. The prediction results of the surrogate model are verified and quality controlled.
[0052] In implementation, the real and predicted node fields are linearly interpolated using the same node coordinates, the same finite element topology, and the same regular mesh to construct an effective overlapping region Ω. In implementation, let the set of regular mesh locations be G, and the real and predicted fields be T(q) and P(q), respectively. Then, the effective overlapping region is defined as: (9) Within the effective overlap region Ω, the mean square error is: (10) In the formula, Let Ω be the number of effective grid points within the effective overlap region. Let L be the dynamic range of the true stress field within the effective overlap region, then L and PSNR are respectively: (11) (12) When MSE=0, the predicted field and the actual field are completely identical on Ω, and PSNR can be written as positive infinity; when L=0, PSNR is not calculated.
[0053] For the real and predicted fields within the effective overlapping region, the structural similarity can be expressed as: (13) In the formula, , These are the means of the actual field and the predicted field, respectively. , These are the standard deviations, For covariance, and This is a stability constant; only effective grid points within Ω are used in the calculation.
[0054] Construct the real high-stress mask and the predicted high-stress mask using the stress threshold τ: (14) (15) Where 1[·] is the indicator function. The intersection-union ratio between the actual high-stress region and the predicted high-stress region is: (16) In the formula, n(A) represents the number of grid points in set A. The stress threshold τ can be determined based on the allowable stress of the material, the value specified in the design criteria, or the preset dangerous stress standard. In this embodiment, it is taken as 450 MPa. When the denominator of formula (16) is zero, the IoU of this working condition is recorded as unusable and is not replaced by zero.
[0055] Calculate the mean square error (MSE), peak signal-to-noise ratio (PSNR), and structural similarity (SSIM) according to equations (10) to (13); construct the real high-stress mask and the predicted high-stress mask according to equations (14) and (15), and calculate the intersection-union ratio (IoU) according to equation (16) for verification and quality control.
[0056] This embodiment trains and validates an existing finite element working condition library, places multiple finite element result files into the data directory, and provides a working condition parameter table corresponding to the files, as well as the instance, analysis step, region, and stress field of the data quality gate check result file; the von Mises stress contribution of each node element node is averaged according to Equation (1) and a node result dataset is generated. The parameter alignment module completes the matching according to the working condition identifier, and unmatched records are removed. Then, a training and validation list is generated according to a preset ratio based on the complete simulation file, and the input / output scaler is fitted only on the training set, and normalization is implemented according to Equations (3) and (4). The embodiment uses an input mapping layer (9→128), two 128-dimensional residual blocks, and an output mapping layer (128→64→1) to train the node surrogate model, and obtains the inverse normalized node stress according to Equation (5), saving the training loss, validation loss, optimal round, and model weight; the specific layer width, number of residual blocks, and number of normalization groups can be adjusted while maintaining data dependencies.
[0057] To further verify the model's generalization ability to unseen geometric configurations, a geometric grouping was set up in addition to the aforementioned file-level partitioning for validation. A geometric group was defined with identical combinations of geometric parameters, and all finite element files corresponding to the same geometric group could only be included in either the training or validation set. This prevented the same geometric configuration from appearing simultaneously in both the training and validation sets simply due to differences in material or load parameters. This validation method was used to separately evaluate the surrogate model's predictive ability for geometric configurations not included in the training.
[0058] In this embodiment, for the nodal stress prediction and cloud map reconstruction of the new working condition, seven parameters of the new working condition are input. The system first performs parameter applicability range determination according to equation (6). If the target working condition uses the existing geometry and mesh configuration, the existing node-element topology template is directly determined based on the corresponding model identifier, mesh configuration identifier or equivalent identification information. If the change of geometric parameters of the target working condition may cause changes in node position, number of nodes or element connection relationship, a node-element topology template whose geometric parameters meet the exact matching condition is searched. If an exact template exists, it is directly adopted. If no exact template exists, the nearest template is determined according to equations (7) and (8) and the minimum distance is calculated. For application scenarios that allow the use of approximate geometry within the matching tolerance δ, the nearest template can be used when the minimum distance is not greater than δ, but the target geometric parameters, template geometric parameters and their deviations must be recorded in the results. For application scenarios that require strict consistency between the cloud map and the target geometry, the node coordinates of the nearest template are not used directly to replace the node coordinates of the target geometry. Instead, the corresponding node-element topology template is generated based on the target geometry parameters. If the distance exceeds δ and the target template cannot be generated, a "no applicable template" message is returned, and the stress field results are not generated.
[0059] After determining the final prediction template, the target working condition parameters are concatenated with the spatial coordinates of each node in the template to form a nine-dimensional feature. This feature is then fed into the surrogate model in batches. After inverse normalization, the predicted stress of each node in the template is obtained, and the results are written back based on the node identifiers of the same template. Subsequently, based on the element type and element connection relationship recorded in the same template, candidate surface extraction, internal shared surface removal, and external boundary surface triangulation are performed. Degenerate patches with missing nodes, duplicate nodes, or areas close to zero are skipped. The predicted stress of the nodes is used as the vertex value to reconstruct the topological constraint cloud map.
[0060] When the template file, topology data, or predicted values contain non-numeric, NaN, or infinite values, the node identifiers cannot be matched, or the element connections cannot form valid boundary patches, a locatable error is returned, and a fake contour map is not output. If the node results also contain other node field variables such as the maximum principal strain, the same result write-back and contour map reconstruction process can be used on the same node-element topology template.
[0061] This embodiment utilizes spatial error and high-stress regions for evaluation. Common node labels and coordinates are read from the real and predicted node fields, and triangular patches are generated using the same finite element topology. Linear interpolation is then used to map these patches to the same regular mesh. An effective overlapping region is constructed according to equation (9), and MSE, PSNR, SSIM, and IoU of the high-stress region are calculated based on equations (10) to (16). The system simultaneously outputs the real contour map, predicted contour map, error contour map, high-stress region overlap map, and a case-by-case index table. Spatial indices are not calculated when there are insufficient effective overlapping points on the regular mesh.
[0062] This embodiment reports on existing embodiments of the project: the verification file set contains 21 operating condition files, 991,297 nodes, and node-level R... 2 = 0.95789, MAE = 19.76 MPa, RMSE = 61.19 MPa; the spatial evaluation report records an average SSIM of 0.9917, an average PSNR of 39.47 dB, and an average IoU in the high-stress region of 0.9420. The above data are used to illustrate the feasibility, nodal prediction accuracy, and spatial reconstruction quality of this scheme under existing document-level verification conditions. The group reservation method will be verified separately, and nodal-level error indices and spatial quality indices will be reported separately.
[0063] Example 2 The following examples predict the stress field of a specified surface / section of a two-dimensional model or three-dimensional structure under parametric finite element conditions. The nodal spatial coordinates are derived from two-dimensional coordinates. This indicates that there are 7 load condition parameters m, including 3 structural parameters, 2 material parameters, and 2 load / load condition parameters, for a total feature dimension of 9. For load conditions using the same geometry and mesh configuration, the corresponding node-element topology template can be directly applied. If any of the three structural parameters causes changes in node coordinates, node quantity, or element connection relationships, it is included in the geometric parameter set and a corresponding relationship is established with the corresponding node-element topology template. Those skilled in the art can extend the node spatial coordinates to three-dimensional coordinates. At this point, the input dimension is m+3; the outer surface extraction rules can also be applied to the surface stress field reconstruction of three-dimensional solid elements.
[0064] In this embodiment, the system modules include the following: (1) Data processing module: When reading finite element results, it checks whether the instance, analysis step, target area, and stress field exist; it summarizes and averages the stress values of the elements at the nodes in the target area using the node label as the key, and outputs a node result dataset containing node identifier, node coordinates, and average Mises stress of the nodes (in the example, it is stored in CSV format, containing NodeLabel, X, Y, and Avg_Mises fields). If a necessary field or coordinate is missing, an anomaly is recorded and the corresponding working condition is skipped.
[0065] (2) Result alignment module: Based on the working condition identifier associated with the finite element results, establish the correspondence between working condition parameters and node result dataset (in the example, this is achieved by parsing the working condition field in the parameter table and node file name); unmatched records are prohibited from entering the training set, and a list of records to be supplemented or removed is output.
[0066] (3) Dataset management module: The training file set and the validation file set are divided into complete simulation files as the smallest unit. For incremental data, the historical file allocation is retained, and a stable new file allocation value is generated according to a fixed random seed and working condition identifier, so that the new working condition does not change the historical evaluation baseline.
[0067] (4) Feature construction and normalization module: used to copy the global parameters of each working condition to each node of the working condition, splice the node spatial coordinates to form the node feature vector, and normalize the input features and node stress according to the statistics fitted by the training file set; in this embodiment, the 7 global parameters of each working condition are copied to each node of the working condition, splice the node X and Y coordinates, and form the nine-dimensional node features according to Equation (2); the input and output scalers only use the training file set for fitting, and the specific normalization relationship is shown in Equation (3) and Equation (4).
[0068] (5) Proxy Model Module: Receives the normalized node features, passes them through the input mapping layer, normalization layer, nonlinear activation, residual block, and output mapping layer to obtain the normalized stress prediction value, and then denormalizes it to the node stress according to equation (5). The embodiment uses GroupNorm, GELU activation, mean squared error loss, gradient pruning, learning rate plateau decay, and early stopping strategy; the above specific network structure is a replaceable implementation method.
[0069] (6) Topology template determination module: used to determine the applicable range of parameters and determine the final prediction template corresponding to the target working condition from the node-element topology template library; in this embodiment, for target working conditions that use existing geometry and mesh configuration, the corresponding template is directly obtained based on the model identifier, mesh configuration identifier or equivalent identification information; for working conditions with geometric changes, accurate template matching is prioritized. If there is no accurate template, the nearest template and its distance are calculated according to equations (7) and (8), and the matching tolerance δ is used to determine whether an approximate template is allowed. For working conditions that require strict consistency of target geometry, the node-element topology template corresponding to the target geometry is generated before prediction is performed; for working conditions that exceed the applicable range, the distance exceeds the tolerance and the target template cannot be generated, the effective stress field result is not output. The module also records the source of the final template; when an approximate template is used, the deviation between the target geometry and the template geometry is also recorded.
[0070] (7) Finite element topology reconstruction module: It is used to extract effective boundary patches based on the element type identifier and element connection relationship in the final prediction template, and write back the predicted stress to the corresponding node according to the node identifier of the same template to form a stress field and stress cloud map consistent with the node set and element topology of the template. In this embodiment, element type identification, candidate surface extraction, internal shared surface elimination, external boundary surface triangulation and degenerate patch filtering are performed, and the node stress is used as vertex value for interpolation and coloring to output stress cloud map.
[0071] (8) Spatial quality evaluation module: used to calculate mean square error, peak signal-to-noise ratio, structural similarity and cross-interference ratio of high stress area on the same topology and the same regular grid, and output the working condition index, summary index and the true / predicted / error cloud map. In implementation, MSE, PSNR, SSIM and IoU of high stress area are calculated according to Equations (9) to (16) on the same topology and the same regular grid, and the working condition index, summary index and the true / predicted / error cloud map are output.
[0072] In this embodiment, the training and validation sets are divided according to the complete simulation file, and normalized statistics are fitted separately on the training set. Then, the global working condition parameters and node coordinates are concatenated into a feature vector and input into the neural network to establish a node-by-node stress proxy mapping. During prediction, the applicable range of parameters for the target working condition is first determined. Then, the final prediction template is selected from the template library through strategies such as precise matching, weighted distance calculation, and tolerance determination. The target working condition parameters and the node coordinates of the template are combined and input into the proxy model to obtain the predicted stress of all nodes in batches. Based on the element type and element connection relationship recorded in the template, the effective boundary patches are extracted. After writing back the predicted stress according to the node identifier, interpolation and coloring are performed to ensure that the output contour map is consistent with the template topology.
[0073] The embodiments of the present invention described above do not constitute a limitation on the scope of protection of the present invention. The basic concept of the present invention lies in... Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A finite element stress field proxy prediction and topology consistent nephogram reconstruction method, characterized in that, include: Step 1: Based on the working condition identifier associated with the finite element results, establish the correspondence between the working condition parameters and the node result dataset. The node result dataset includes node identifier, node spatial coordinates, and node stress. Step 2: For each node of each working condition, concatenate its global working condition parameters with the spatial coordinates of that node to form a node feature vector. Use the node feature vectors of all nodes as input and the corresponding node stress as the prediction target to train the surrogate model. Step 3: Determine the final prediction template corresponding to the target working condition from the node unit topology template library; Step 4: Combine the working condition parameters of the target working condition with the spatial coordinates of each node in the final prediction template to form a node feature vector, input it into the surrogate model, and obtain the predicted stress corresponding to each node. Step 5: Extract effective boundary patches based on the element type identifier and element connection relationship in the final prediction template, and write the predicted stress back to the corresponding node according to the node identifier of the same template to form a stress field and stress cloud map consistent with the node set and element topology of the template.
2. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, The stress contributions of multiple elements at the same node are summarized using the node identifier as the key, and the average stress is calculated as the node stress.
3. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, The surrogate model is a neural network that outputs normalized stress prediction values for each node independently of the input node feature vector, and obtains the node stress prediction values after inverse normalization; the statistics used for normalization and inverse normalization are obtained by fitting the training set.
4. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 3, characterized in that, The statistics used in the normalization and denormalization processes include the mean and standard deviation of each dimension of the node features, as well as the mean and standard deviation of the node stress. The statistics are obtained by fitting the training set. The fitting method is as follows: traverse all nodes in the training set, calculate the mean and standard deviation of each dimension of the node features on all nodes, and calculate the mean and standard deviation of the node stress on all nodes. When the validation set or blind test set is normalized and denormalized, the mean and standard deviation obtained by fitting the training set are used.
5. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, The templates in the node-unit topology template library include template identifiers, node identifiers, node spatial coordinates, unit type identifiers, unit connection relationships, and geometric parameters.
6. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 5, characterized in that, If the target working condition is consistent with the geometry and mesh configuration of the existing template, then the existing template will be used; If the geometric parameters of the target working condition change, find a template that precisely matches the target geometric parameters; If no exact matching template exists, calculate the normalized weighted distance between the target geometric parameters and the geometric parameters of each template, and select the template with the closest distance. If no matching template exists, a message indicating no applicable template is returned, and no prediction result is generated.
7. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, Candidate faces for each element are determined based on the element type identifier and the node connection order; The number of occurrences of each candidate face is counted using the set of node labels that make up the face as the key. Faces that occur more than once are discarded as internal shared faces, and faces that occur once are retained as outer boundary faces. The outer boundary surface is divided into triangles according to the triangulation rules specified for the corresponding element type. Degenerate patches with missing node identifiers, duplicate nodes, or zero area are filtered out to obtain valid boundary patches. After writing the predicted stress back to the corresponding node according to the node identifier, the written-back node stress is used as the corresponding value of each vertex of the effective boundary patch, and interpolation coloring is performed to generate the stress field and stress cloud map.
8. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, For each solid element, a set of closed candidate patches is generated for each element according to the standard topological relationship and node connection order corresponding to its element type identifier. For two-dimensional planar elements or shell elements, the visible surface is determined according to its boundary or surface connection rules; the generated candidate patches record the set of node labels that make up the patch and the corresponding element affiliation.
9. The finite element stress field proxy prediction and topological consistent nephogram reconstruction method according to claim 1, characterized in that, For the verification case, the real node field and the predicted node field are mapped to a unified spatial grid using the same node coordinates, the same node element topology, and the same regular grid. The mean square error, peak signal-to-noise ratio, and structural similarity are calculated. A high-stress mask is constructed with a preset stress threshold as the boundary to calculate the cross-union ratio. The prediction results of the surrogate model are verified and quality controlled.
10. A finite element stress field proxy prediction and topologically consistent nephogram reconstruction system, applied to the finite element stress field proxy prediction and topologically consistent nephogram reconstruction method of any one of claims 1-9, characterized in that, include: The data processing module is used to read finite element results, summarize and average the stress values of elements at the nodes in the target area using node labels as keys, and output a node result dataset containing node identifiers, node coordinates, and average Mises stress of the nodes. The result alignment module is used to establish the correspondence between working condition parameters and nodal result datasets based on the working condition identifiers associated with the finite element results. The dataset management module is used to divide the training file set and the validation file set with the complete simulation file as the smallest unit of division, and to generate stable new file allocation values based on a fixed random seed and working condition identifier. The feature construction and normalization module is used to copy the global parameters of each working condition to each node of that working condition, concatenate the node spatial coordinates to form the node feature vector, and normalize the input features and node stress according to the statistics fitted by the training file set. The proxy model module receives the normalized node features, passes them through the input mapping layer, normalization layer, nonlinear activation, residual block and output mapping layer to obtain the normalized stress prediction value, and then inversely normalizes it to the node stress according to the statistics fitted to the training set. The topology template determination module is used to perform parameter applicability range determination and determine the final prediction template corresponding to the target working condition from the node-cell topology template library; The finite element topology reconstruction module is used to extract effective boundary patches based on the element type identifier and element connection relationship in the final prediction template, and write back the predicted stress to the corresponding node according to the node identifier of the same template to form a stress field and stress cloud map consistent with the node set and element topology of the template. The spatial quality assessment module is used to calculate mean square error, peak signal-to-noise ratio, structural similarity, and cross-intersection ratio of high-stress areas on the same topology and regular grid, and outputs working condition indicators, summary indicators, and real / predicted / error cloud maps.
Citation Information
Patent Citations
Model reconstruction method, electronic device and medium for large equipment
CN114925619B
