Structural feature extraction method and device of multi-physics field calculation model, computer equipment and readable storage medium
By setting feature parameters and extracting structural constraint parameters in the multi-physics calculation model, the problem of difficulty in batch extraction of similar structures in the prior art is solved, and the rapid and accurate screening of feature structures in the multi-physics calculation model is achieved.
Patent Information
- Application Number
- CN202510141568.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-05-02
AI Technical Summary
It is difficult for the prior art to achieve batch extraction of similar structures in multi-physics computing models. Users need to select the structures that need to be operated one by one, which is inefficient.
A structural feature extraction method for multi-physics computing model is provided. By displaying the feature parameter setting interface, it obtains structural constraint parameters in response to the user-setting feature parameters, and extracts feature structures that meet constraint conditions in the model based on these parameters.
The accurate and quick screening of feature structures in multi-physics computing models is achieved, and the screening of complex geometric shapes can be achieved by setting different structural constraint parameters, achieving the purpose of batch extraction of feature structures.
Smart Images

Figure CN119918293A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer-aided engineering technology, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for extracting structural features of a multi-physics field computing model. Background Art
[0002] Multi-physics computational models are usually used to deal with the interaction of multiple physical fields such as heat, electricity, force, magnetism, etc. in complex systems such as large assemblies. Computer-aided engineering technology can use multi-physics computational models to optimize design and improve system performance through simulation analysis. It is widely used in complex engineering problems in multiple fields such as structure, heat flow, and electromagnetism. Among them, in order to effectively couple and solve the interaction between different physical fields, the structural processing of physical field computational models is particularly critical. In the structural processing of multi-physics computational models, it is usually necessary to perform batch operations on similar structures contained in the model. However, in related technologies, users are usually required to select the structures to be operated one by one, which makes it difficult to achieve batch extraction of similar structures. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for extracting structural features of a multi-physical field computing model in order to address the above-mentioned technical problems.
[0004] In a first aspect, the present application provides a method for extracting structural features of a multi-physics field computing model, comprising:
[0005] Display the characteristic parameter setting interface of the multi-physics field calculation model;
[0006] In response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface, a structural constraint parameter of the structure to be extracted is obtained;
[0007] According to the structural constraint parameters, characteristic structures meeting the constraint conditions of the structural constraint parameters are extracted in the multi-physics field calculation model.
[0008] In one embodiment, the structural constraint parameters include volume constraint parameters of the structure to be extracted; and extracting characteristic structures that meet the constraint conditions of the structural constraint parameters in the multi-physics field computing model based on the structural constraint parameters includes: for each geometric body included in the multi-physics field computing model, obtaining a non-uniform rational B-spline surface on the surface of each geometric body; dividing each non-uniform rational B-spline surface into a plurality of grid units, and calculating the unit volume of each grid unit; accumulating the unit volumes of each grid unit corresponding to the geometric body to obtain the volume of the geometric body; and screening out characteristic structures that meet the volume constraint conditions corresponding to the volume constraint parameters in the multi-physics field computing model based on the volumes of each geometric body in the multi-physics field computing model.
[0009] In one embodiment, the structural constraint parameters include area constraint parameters of the structure to be extracted; and extracting characteristic structures that meet the constraint conditions of the structural constraint parameters in the multi-physics field computing model based on the structural constraint parameters includes: for each body surface included in the multi-physics field computing model, obtaining multiple boundary points of the body surface; based on the multiple boundary points of the body surface, dividing the body surface into multiple triangular facets, and calculating the area of each triangular facet; accumulating the areas of each triangular facet corresponding to the same body surface to obtain the area of the body surface; and according to the areas of each body surface in the multi-physics field computing model, screening out characteristic structures that meet the area constraint conditions corresponding to the area constraint parameters in the multi-physics field computing model.
[0010] In one embodiment, the structural constraint parameters include side length constraint parameters of the structure to be extracted; and extracting characteristic structures that meet the constraint conditions of the structural constraint parameters in the multi-physics field computational model based on the structural constraint parameters includes: for each body surface included in the multi-physics field computational model, obtaining the boundary curve of the body surface; based on multiple boundary points on the boundary curve, dividing the boundary curve into multiple line segments, and calculating the length of each line segment of the boundary curve; accumulating the lengths of each line segment corresponding to the same boundary curve to obtain the length of the boundary curve; and according to the lengths of each boundary curve in the multi-physics field computational model, screening out characteristic structures that meet the side length constraint conditions corresponding to the side length constraint parameters in the multi-physics field computational model.
[0011] In one embodiment, the structural constraint parameters include aperture constraint parameters of the structure to be extracted; extracting characteristic structures that meet the constraint conditions of the structural constraint parameters in the multi-physics field computational model based on the structural constraint parameters includes: screening out hole structures containing cylindrical surfaces in the multi-physics field computational model based on the topological relationship between the surfaces of each body in the multi-physics field computational model and the geometric attribute information of each surface of the body; for each hole structure, calculating the radius of the cylindrical surface of the hole structure; and screening out the aperture constraint conditions that meet the aperture constraint parameters in the multi-physics field computational model based on the radius of each hole structure. characteristic structure; and / or, the structural constraint parameters include the fillet radius constraint parameters of the structure to be extracted; the extracting, in the multi-physics field computing model, the characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters, comprises: screening out the fillet surface structure in the multi-physics field computing model according to the topological relationship between the surfaces of each body in the multi-physics field computing model and the curvature information of each of the surfaces of the body; calculating the fillet radius of each of the fillet surface structures; and screening out, in the multi-physics field computing model, the characteristic structure that meets the fillet radius constraint conditions corresponding to the fillet radius constraint parameters according to the fillet radius of each of the fillet surface structures.
[0012] In one of the embodiments, the feature parameter setting interface also displays the model structure information of the multi-physics field computing model; the feature parameter setting interface displaying the multi-physics field computing model also includes: determining the feature extraction range of the multi-physics field computing model in response to the range selection operation of the model structure information; executing the step of extracting the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field computing model according to the structural constraint parameters within the feature extraction range.
[0013] In one embodiment, the multi-physics field computational model is a model of an assembly.
[0014] In a second aspect, the present application also provides a structural feature extraction device for a multi-physics field computing model, comprising:
[0015] An interface display module is used to display the characteristic parameter setting interface of the multi-physics field calculation model;
[0016] A parameter acquisition module, configured to obtain structural constraint parameters of the structure to be extracted in response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface;
[0017] The feature extraction module is used to extract the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model according to the structural constraint parameters.
[0018] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0019] Display the characteristic parameter setting interface of the multi-physics field calculation model;
[0020] In response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface, a structural constraint parameter of the structure to be extracted is obtained;
[0021] According to the structural constraint parameters, characteristic structures meeting the constraint conditions of the structural constraint parameters are extracted in the multi-physics field calculation model.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0023] Display the characteristic parameter setting interface of the multi-physics field calculation model;
[0024] In response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface, a structural constraint parameter of the structure to be extracted is obtained;
[0025] According to the structural constraint parameters, characteristic structures meeting the constraint conditions of the structural constraint parameters are extracted in the multi-physics field calculation model.
[0026] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0027] Display the characteristic parameter setting interface of the multi-physics field calculation model;
[0028] In response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface, a structural constraint parameter of the structure to be extracted is obtained;
[0029] According to the structural constraint parameters, characteristic structures meeting the constraint conditions of the structural constraint parameters are extracted in the multi-physics field calculation model.
[0030] The structural feature extraction method, device, computer equipment, computer-readable storage medium and computer program product of the multi-physics field computing model first display the feature parameter setting interface of the multi-physics field computing model, then respond to the feature parameter setting operation of the multi-physics field computing model based on the feature parameter setting interface, obtain the structural constraint parameters of the structure to be extracted, and then extract the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field computing model according to the structural constraint parameters. This scheme combines constraint calculation with geometric feature recognition for structural extraction in the multi-physics field computing model, and screens out the feature structure whose geometric index meets the structural constraint corresponding to the structural constraint parameter from the multi-physics field computing model according to the structural constraint parameters set by the user. In this way, accurate and fast screening of feature structures in the multi-physics field computing model can be achieved, and screening of various complex geometric shapes can be achieved by setting different structural constraint parameters, thereby realizing batch extraction of various feature structures in the multi-physics field computing model. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic flow chart of a method for extracting structural features of a multi-physics field computing model in one embodiment;
[0033] Figure 2 A schematic diagram of a process for selecting a characteristic structure that meets a volume constraint condition in one embodiment;
[0034] Figure 3 A schematic diagram of a process for selecting a feature structure that meets an area constraint condition in one embodiment;
[0035] Figure 4 A schematic diagram of a process for selecting a feature structure that satisfies an edge length constraint condition in one embodiment;
[0036] Figure 5 A schematic diagram of a process for screening a characteristic structure that meets an aperture constraint condition in one embodiment;
[0037] Figure 6 A schematic diagram of a process for selecting a feature structure that satisfies a fillet radius constraint condition in one embodiment;
[0038] Figure 7 A schematic diagram of a process for selecting a feature structure that meets a constraint condition in one embodiment;
[0039] Figure 8 A structural block diagram of a device for extracting structural features of a multi-physics field computing model in one embodiment;
[0040] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] In one embodiment, Figure 1 As shown, a method for extracting structural features of a multi-physics field computing model is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0043] Step S101, displaying a characteristic parameter setting interface of a multi-physics field calculation model.
[0044] The terminal may store data of one or more multi-physics computing models, and the user may view or operate the data by interacting with the terminal. By way of example, in one embodiment, the multi-physics computing model may be a model of an assembly, and the model may include structural information of multiple geometric bodies in the assembly and topological relationship information between the geometric bodies. By way of example, the assembly may be an electrical device, and the multi-physics computing model may include structural information of each part of the electrical device and topological relationship information between the parts.
[0045] In this step, the terminal can display the characteristic parameter setting interface of the multi-physics field computing model. Among them, the characteristic parameter setting interface can be used to set the structural constraint parameters of a multi-physics field computing model selected by the user. Optionally, the characteristic parameter setting interface may include but is not limited to one or more interactive controls such as input boxes, buttons, check boxes, sliders, etc., and the user can perform characteristic parameter setting operations on the multi-physics field computing model by interacting with at least one interactive control. Exemplarily, the characteristic parameter setting interface may include interactive controls for setting different types of geometric features (such as volume, area, side length, aperture, etc.), and the user can set the structural constraint parameters corresponding to one or more geometric features by interacting with one or more of the interactive controls.
[0046] Step S102 , in response to a characteristic parameter setting operation on a multi-physics field calculation model based on a characteristic parameter setting interface, obtain structural constraint parameters of the structure to be extracted.
[0047] In response to the user's feature parameter setting operation in the feature parameter setting interface, the structural constraint parameters set by the user can be obtained. Optionally, the structural constraint parameters can include one or more parameters, each of which can be used to indicate a constraint condition for combining features.
[0048] Step S103, extracting characteristic structures that meet the constraint conditions of the structural constraint parameters in the multi-physics field calculation model according to the structural constraint parameters.
[0049] Among them, according to the structural constraint parameters, the constraints that the geometric features of the characteristic structures to be extracted from the multi-physics field calculation model should meet can be determined. Based on this, in this step, each geometric body in the multi-physics field calculation model can be traversed according to the structural constraint parameters to screen out the characteristic structures whose collective features meet the corresponding constraints. Optionally, when the structural constraint parameters contain multiple parameters corresponding to multiple geometric features, the screened characteristic structures can simultaneously meet the constraints corresponding to each geometric feature.
[0050] In the structural feature extraction method of the multi-physics calculation model, constraint calculation is combined with geometric feature recognition for structural extraction in the multi-physics calculation model, and according to the structural constraint parameters set by the user, characteristic structures whose geometric indicators can satisfy the structural constraints corresponding to the structural constraint parameters are screened out from the multi-physics calculation model. In this way, accurate and fast screening of characteristic structures in the multi-physics calculation model can be achieved, and screening of various complex geometric shapes can be achieved by setting different structural constraint parameters, thereby realizing batch extraction of various characteristic structures in the multi-physics calculation model.
[0051] In an exemplary embodiment, the structural constraint parameters may include volume constraint parameters of the structure to be extracted; Figure 2 As shown, according to the structural constraint parameters, the step of extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model may include:
[0052] Step S201, for each geometric body included in the multi-physics field calculation model, obtain the non-uniform rational B-spline surface of each surface of the geometric body.
[0053] Specifically, the volume constraint parameter can be used to indicate the volume constraint conditions that the volume of the geometric body needs to comply with, such as the range of values that the volume of the geometric body needs to comply with. In order to calculate the volume of each geometric body, in this embodiment, the non-uniform rational B-spline (NURBS) surface (hereinafter referred to as "NURBS surface") on the surface of the geometric body can be used to calculate the volume of the geometric body. Among them, non-uniform rational B-spline is a mathematical representation widely used in computer graphics, engineering design and computer-aided design, which can be used to represent and generate complex curves and surfaces. Among them, NURBS surfaces can be defined by control points, weights and node vectors.
[0054] In this step, for each independent geometric body in the multi-physics field calculation model, the NURBS surface corresponding to its body surface can be obtained. Optionally, for each geometric body, the possible internal bodies and body surfaces in the geometric body can be determined based on the connection relationship between the faces recorded in its topology table, so that the body surface corresponding to the geometric body can be determined more accurately. The topology table is a data structure used to describe the structure and connection relationship of a geometric model (such as a 3D model, mesh, surface, etc.).
[0055] Step S202: divide each non-uniform rational B-spline surface into a plurality of grid cells, and calculate the cell volume of each grid cell.
[0056] For each NURBS surface, the expression of the surface and its boundary in the parametric space (UV space) can be obtained. The parametric space (UV space) is a two-dimensional coordinate system used to describe the shape of a surface or curve. By using the parameters u and v in this space, complex geometries such as NURBS surfaces can be easily represented. Each point in the UV space can correspond to a point on the surface, and the range of u and v is usually between [0, 1], indicating the position of the surface in two directions.
[0057] Among them, according to the expression of NURBS surface in parametric space (UV space), the NURBS surface can be meshed on the uv plane where the NURBS surface is located. For example, the value range of parameter u can be, for example , divided into M small intervals, and the value range of parameter v, such as , divided into N small intervals, thus forming M×N unit grids.
[0058] For each unit grid, its area can be calculated : , where , .
[0059] Then, according to the area of the unit grid, the corresponding unit volume can be further calculated.
[0060] Optionally, for each unit grid, the corresponding unit volume can be calculated using the height of its vertex. For example, a grid unit (i, j) may contain 4 vertices, whose positions on the uv plane can be expressed as , , , . With the vertex For example, , ; Then, calculate the 3D coordinates of the point using the surface equation of the NURBS surface: Similarly, the three-dimensional coordinates of the other vertices of the unit grid can be obtained in the same way. Assume that the three-dimensional coordinates of the four vertices of the unit grid are , , , , then the unit volume of the unit grid It can be calculated by the following formula:
[0061]
[0062] Optionally, for each unit grid, the Gaussian points in the grid may be calculated, and the unit volume of the unit grid may be calculated using the height of the Gaussian points.
[0063] Step S203, accumulating the unit volumes of the grid units corresponding to the geometric body to obtain the volume of the geometric body.
[0064] Among them, for each body surface of the geometric body, the unit volume of each grid unit corresponding to the body surface can be accumulated , get the initial volume of the geometry ,in Then, the initial volumes corresponding to the surfaces of each body can be summed to obtain the volume of the geometric body.
[0065] It is understandable that when a geometric body contains multiple body surfaces, since the normal vector directions of the NURBS surfaces corresponding to each body surface are different, when summing up their corresponding initial volumes, the repeatedly calculated parts can be offset, thereby obtaining the accurate volume of the geometric body.
[0066] Step S204, based on the volumes of the geometric bodies in the multi-physics field calculation model, select characteristic structures that satisfy the volume constraint conditions corresponding to the volume constraint parameters in the multi-physics field calculation model.
[0067] Among them, for each geometric body in the multi-physics field calculation model, it can be determined whether its volume satisfies the volume constraint condition corresponding to the volume constraint parameter, and the geometric body whose volume satisfies the volume constraint condition is used as the screened feature structure.
[0068] In this embodiment, when the structural constraint parameters include volume constraint parameters, the volume of the geometric body is calculated using the non-uniform rational B-spline surface of the surface of each geometric body in the multi-physics field calculation model. The volume of geometric bodies of different shapes can be accurately calculated, thereby achieving accurate screening of characteristic structures that meet the volume conditions.
[0069] In an exemplary embodiment, the structural constraint parameters include area constraint parameters of the structure to be extracted; Figure 3 As shown, according to the structural constraint parameters, the step of extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model may include:
[0070] Step S301, for each body surface included in the multi-physics field calculation model, a plurality of boundary points of the body surface are obtained.
[0071] Specifically, the area constraint parameter can be used to indicate the area constraint condition that the area of the geometric body needs to comply with, for example, it can be a value range that the surface area of the geometric body needs to comply with, or a value range that the surface area of a single body in the geometric body needs to comply with, etc. Optionally, the area constraint parameter can include a flag bit for indicating the area type, and the terminal can determine whether the area constraint condition corresponds to the overall surface area of the geometric body or the surface area of a single body according to different values of the flag bit.
[0072] In order to calculate the area of the body surface of each geometric body in the multi-physics field calculation model, in this step, multiple boundary points of the body surface can be obtained for each body surface included in the multi-physics field calculation model. For example, the points on the boundary curve can be calculated by obtaining the NURBS surface of the body surface and the expression of the boundary curve of the surface in the parameterized space (UV space).
[0073] Step S302 : based on a plurality of boundary points on the body surface, the body surface is divided into a plurality of triangular facets, and the area of each triangular facet is calculated.
[0074] Based on the multiple boundary points of the body surface, the body surface can be segmented into multiple non-overlapping triangular facets. Then, the area of each triangular facet can be calculated respectively. Exemplarily, the area of each triangular facet can be calculated according to the vertex coordinates of each triangular facet.
[0075] Step S303: Accumulate the areas of the triangular facets corresponding to the same volume surface to obtain the volume surface area.
[0076] Among them, for the triangular facets obtained by segmenting the same body surface, the areas of these triangular facets can be added together to obtain the area of the body surface.
[0077] Step S304, based on the surface area of each body in the multi-physics field calculation model, select a characteristic structure that satisfies the area constraint condition corresponding to the area constraint parameter in the multi-physics field calculation model.
[0078] Among them, according to the area constraint parameters and the areas of the surfaces of various bodies in the multi-physics field calculation model, characteristic structures that meet the area constraint conditions corresponding to the area constraint parameters can be screened out in the multi-physics field calculation model.
[0079] Exemplarily, when the area constraint parameter indicates that the area constraint condition corresponds to the overall surface area of a geometric body, the areas of all the corresponding body surfaces of each geometric body can be summed up to obtain the surface area of the geometric body. Then, it can be determined whether the surface area of each geometric body satisfies the area constraint condition corresponding to the area constraint parameter, and the geometric bodies whose surface areas satisfy the area constraint condition can be used as the screened feature structures.
[0080] Exemplarily, when the area constraint parameter indicates that the area constraint condition corresponds to the area of a single body surface, it can be determined whether the area of each body surface satisfies the area constraint condition corresponding to the area constraint parameter, and the geometric body containing the body surface whose area satisfies the area constraint condition is used as the screened feature structure. Optionally, the body surface whose area satisfies the area constraint condition can also be used as the screened feature structure.
[0081] In this embodiment, when the structural constraint parameters include area constraint parameters, the surface of each geometric body is divided into triangular facets, and the area of the body surface is obtained by accumulating the areas of the triangular facets. This allows for more accurate area calculations for irregular body surfaces, which is conducive to better screening out characteristic structures that meet the area constraint conditions in the multi-physical field calculation model.
[0082] In an exemplary embodiment, the structural constraint parameters include side length constraint parameters of the structure to be extracted; Figure 4 As shown, according to the structural constraint parameters, the step of extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model may include:
[0083] Step S401, for each body surface included in the multi-physics field calculation model, obtain the boundary curve of the body surface.
[0084] Specifically, the edge length constraint parameter may be used to indicate an edge length constraint condition that a boundary of a surface of a geometric body needs to comply with, for example, it may be a value range that the edge length needs to comply with.
[0085] In order to calculate the side length of the surface of each geometric body in the multi-physics field computing model, in this step, the boundary curve of the surface can be obtained for each surface of the body included in the multi-physics field computing model. For example, in this step, the NURBS surface of the body surface and the expression of the boundary curve of the surface in the parametric space (UV space) can be obtained.
[0086] Step S402 : based on a plurality of boundary points on the boundary curve, the boundary curve is divided into a plurality of line segments, and the length of each line segment of the boundary curve is calculated.
[0087] Among them, based on the boundary curve of the body surface, multiple boundary points on the line can be determined. Then, the boundary curve can be divided into multiple line segments using the boundary points on the boundary curve, and the length of each line segment can be calculated respectively. Exemplarily, the length of the line segment can be calculated according to the three-dimensional coordinates of the endpoints of each line segment.
[0088] Step S403: Accumulate the lengths of the line segments corresponding to the same boundary curve to obtain the length of the boundary curve.
[0089] Among them, for multiple line segments obtained by segmenting the same boundary curve, their corresponding lengths may be accumulated to obtain the length of the boundary curve.
[0090] Step S404, based on the lengths of the boundary curves in the multi-physics field calculation model, a characteristic structure satisfying the edge length constraint condition corresponding to the edge length constraint parameter is screened out in the multi-physics field calculation model.
[0091] Among them, for each boundary curve in the multi-physics field calculation model, it can be determined whether its length satisfies the edge length constraint condition corresponding to the edge length constraint parameter, and the geometric body containing the boundary curve whose edge length satisfies the edge length constraint condition is used as the characteristic structure obtained by screening. Optionally, the boundary curve whose edge length satisfies the edge length constraint condition can also be used as the characteristic structure obtained by screening.
[0092] In this embodiment, when the structural constraint parameters include edge length constraint parameters, the boundary curve of each body surface is divided into multiple line segments, and the length of the boundary curve is obtained by accumulating the length of each line segment. This allows for more accurate edge length calculations for irregular boundary curves, which is conducive to better screening out characteristic structures that meet the edge length constraint conditions in the multi-physical field calculation model.
[0093] In an exemplary embodiment, the structural constraint parameters may include aperture constraint parameters of the structure to be extracted; Figure 5As shown, according to the structural constraint parameters, the step of extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model may include:
[0094] Step S501 , based on the topological relationship between the surfaces of various bodies in the multi-physics field calculation model and the geometric attribute information of the surfaces of various bodies, the hole structure containing the cylindrical surface is screened out in the multi-physics field calculation model.
[0095] Specifically, the aperture constraint parameter can be used to indicate the aperture constraint condition that the pore structure of the geometric body needs to comply with, for example, it can be the range of values that the radius or diameter of the pore structure needs to comply with.
[0096] In order to select the characteristic structure that meets the aperture constraint condition, in this step, the hole structure containing the cylindrical surface can be selected based on the topological relationship between the surfaces of each body in the multi-physics field calculation model and the geometric attribute information of each body surface. The geometric attribute information of the body surface can include the normal vector direction, geometric shape and other information of the body surface.
[0097] Exemplarily, the topological relationship between the surfaces of each body and the geometric property information of each body surface in the multi-physics field calculation model can be pre-recorded in the topological table of the geometric body to which the body surface belongs. The topological table can use a specific label (such as "inner circle") to mark the hole structure containing the cylindrical surface, so that the hole structure containing the cylindrical surface can be obtained by searching the body surface corresponding to the label in the topological table.
[0098] Step S502: For each hole structure, calculate the radius of the cylindrical surface of the hole structure.
[0099] For each hole structure obtained by the above screening, the radius of its cylindrical surface can be calculated. For example, the radius corresponding to the cylindrical surface of the hole structure can be obtained by calculating the center of the boundary of the NURBS surface corresponding to the cylindrical surface and then calculating the distance between the center and the point on the boundary.
[0100] Step S503 , based on the radius of each hole structure, select a characteristic structure that satisfies the aperture constraint condition corresponding to the aperture constraint parameter in the multi-physics field calculation model.
[0101] Among them, for each pore structure in the multi-physics field calculation model, it can be determined whether the pore structure satisfies the pore constraint condition corresponding to the pore constraint parameter according to its radius, and the geometric body containing the pore structure whose pore size satisfies the pore constraint condition is used as the screened characteristic structure. Optionally, the pore structure whose pore size satisfies the pore constraint condition can also be used as the screened characteristic structure.
[0102] In an exemplary embodiment, the structural constraint parameters may also include corner radius constraint parameters of the structure to be extracted. Figure 6 As shown, according to the structural constraint parameters, the step of extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model may include:
[0103] Step S601, based on the topological relationship between the surfaces of various bodies in the multi-physics field calculation model and the curvature information of the surfaces of various bodies, a fillet surface structure is screened out in the multi-physics field calculation model.
[0104] Specifically, the fillet radius constraint parameter may be used to indicate a fillet radius constraint condition that the fillet structure of a geometric body needs to comply with, for example, it may be a value range that the fillet radius of the fillet structure needs to comply with.
[0105] In order to select the characteristic structure that meets the fillet radius constraint condition, in this step, the fillet surface structure containing the fillet can be selected based on the topological relationship between the surfaces of each body in the multi-physics field calculation model and the geometric attribute information of each body surface. The geometric attribute information of the body surface may include the normal vector direction, geometric shape and other information of the body surface.
[0106] For example, the fillet surface structure may include an arc surface. In this step, the arc surface may be selected by calculating the curvature of each body surface according to the geometric property information of each body surface, and then the fillet surface structure may be selected according to the topological relationship between the arc surface and other body surfaces.
[0107] Step S602, calculating the fillet radius of each fillet surface structure.
[0108] Among them, for each rounded surface structure obtained by the above screening, the rounded radius of the rounded surface structure can be obtained by calculating the curvature radius of the arc surface contained therein.
[0109] Step S603 , based on the fillet radius of each fillet surface structure, select a characteristic structure that satisfies the fillet radius constraint condition corresponding to the fillet radius constraint parameter in the multi-physics field calculation model.
[0110] Among them, for each fillet surface structure in the multi-physics field calculation model, it can be determined whether the fillet surface structure satisfies the fillet radius constraint condition corresponding to the fillet radius constraint parameter according to its fillet radius, and the geometric body containing the fillet surface structure whose fillet radius satisfies the fillet radius constraint condition is used as the screened feature structure. Optionally, the fillet surface structure whose fillet radius satisfies the fillet radius constraint condition can also be used as the screened feature structure.
[0111] In this embodiment, when the structural constraint parameters include aperture constraint parameters or fillet radius constraint parameters, the hole structure or fillet surface structure is first screened out from the multi-physics field calculation model, and then the corresponding radius is calculated, thereby effectively improving the screening efficiency of the characteristic structure.
[0112] In an exemplary embodiment, the feature parameter setting interface can also display the model structure information of the multi-physics field computing model; after displaying the feature parameter setting interface of the multi-physics field computing model, it can also include: determining the feature extraction range of the multi-physics field computing model in response to the range selection operation of the model structure information; executing the step of extracting the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field computing model according to the structural constraint parameters within the feature extraction range.
[0113] Specifically, the feature parameter setting interface can display the model structure information of the multi-physics field computing model. Among them, the model structure information can include the structural information of each geometric structure in the multi-physics field computing model and the topological relationship information between each geometric structure. Exemplarily, the model structure information of the multi-physics field computing model can be displayed as a visualized three-dimensional model of the multi-physics field computing model, or it can be displayed as a visualized list containing the structural information and topological relationship information of each geometric structure of the multi-physics field computing model.
[0114] Among them, the user can perform a range selection operation on the model structure information by interacting with the model structure information displayed in the feature parameter setting interface. For example, when the model structure information is displayed as a visual three-dimensional model, the user can circle or click one or more parts in the visual three-dimensional model to select one or more geometric structures in the multi-physics field calculation model. For another example, when the model structure information is displayed as a visual list, the user can select one or more geometric structures in the multi-physics field calculation model by clicking on the items corresponding to one or more geometric structures in the list.
[0115] In response to the user's range selection operation on the model structure information, the geometric structure selected by the user can be used as the feature extraction range of the multi-physics field calculation model. Then, based on the feature extraction range, a feature structure that meets the constraint conditions of the structural constraint parameters can be extracted from the geometric structure selected by the user.
[0116] In this embodiment, by displaying the model structure information of the multi-physics field calculation model on the feature parameter setting interface and supporting users to perform range selection operations on the model structure information, users can set the range of feature structure screening according to specific needs, thereby improving the screening efficiency of feature structures.
[0117] Among them, it can be understood that since the structural constraint parameters set by the user may include multiple parameters corresponding to multiple geometric features, when extracting the characteristic structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model based on the structural constraint parameters, it is possible to determine whether the structural constraint parameters contain the parameters corresponding to the geometric features for each geometric feature, and when it is determined that the parameters corresponding to the geometric features are contained, perform the corresponding characteristic structure extraction operation.
[0118] For example, Figure 7 As shown in the figure, after obtaining the structural constraint parameters, it can be determined whether they contain the volume constraint parameters. If they do, the characteristic structures that meet the volume constraint conditions corresponding to the volume constraint parameters are screened out in the multi-physics field calculation model according to the volume constraint parameters, and used as the basis for subsequent feature structure extraction corresponding to other geometric features. If they do not, the feature structure extraction operation corresponding to the volume constraint conditions is skipped.
[0119] Then, it can be determined whether the structural constraint parameters include area constraint parameters. If included, it is further determined whether the area constraint parameter corresponds to the surface area of the geometric body or the area of the surface of a separate body. Then, according to the area constraint parameter, the feature structure that meets the area constraint condition corresponding to the area constraint parameter can be screened out, and used as the basis for subsequent feature structure extraction corresponding to other geometric features. If not included, the feature structure extraction operation corresponding to the area constraint condition is skipped.
[0120] Then, it can be determined whether the structural constraint parameters include the edge length constraint parameters. If they do, the feature structures that meet the edge length constraint conditions corresponding to the edge length constraint parameters can be screened out based on the edge length constraint parameters, and used as the basis for subsequent feature structure extraction corresponding to other geometric features. If they do not, the feature structure extraction operation corresponding to the edge length constraint conditions is skipped.
[0121] Then, it can be determined whether the structural constraint parameters include aperture constraint parameters or fillet radius constraint parameters. If they are included, the characteristic structure that meets the aperture constraint condition or fillet radius constraint condition can be screened out according to the aperture constraint parameters or fillet radius constraint parameters. If they are not included, the characteristic structure extraction operation corresponding to the aperture constraint condition or fillet radius constraint condition is skipped.
[0122] Based on this, after performing one or more feature structure extraction operations, feature structures that meet the constraints set by the user corresponding to various geometric features can be extracted from the multi-physics field calculation model.
[0123] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0124] Based on the same inventive concept, the embodiment of the present application also provides a device for extracting structural features of a multi-physical field computing model for implementing the method for extracting structural features of a multi-physical field computing model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for extracting structural features of one or more multi-physical field computing models provided below can be found in the above limitations on the method for extracting structural features of a multi-physical field computing model, and will not be repeated here.
[0125] In an exemplary embodiment, Figure 8 As shown, a structural feature extraction device 800 of a multi-physics field calculation model is provided, comprising:
[0126] An interface display module 801 is used to display a characteristic parameter setting interface of a multi-physics field calculation model;
[0127] A parameter acquisition module 802, configured to obtain structural constraint parameters of the structure to be extracted in response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface;
[0128] The feature extraction module 803 is used to extract the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model according to the structural constraint parameters.
[0129] In an exemplary embodiment, the structural constraint parameters include volume constraint parameters of the structure to be extracted; the feature extraction module 803 is used to: for each geometric body included in the multi-physics field computing model, obtain the non-uniform rational B-spline surface of each surface of the geometric body; divide each of the non-uniform rational B-spline surfaces into a plurality of grid units, and calculate the unit volume of each of the grid units; accumulate the unit volumes of each of the grid units corresponding to the geometric body to obtain the volume of the geometric body; according to the volume of each of the geometric bodies in the multi-physics field computing model, screen out the characteristic structure that meets the volume constraint condition corresponding to the volume constraint parameter in the multi-physics field computing model.
[0130] In an exemplary embodiment, the structural constraint parameters include area constraint parameters of the structure to be extracted; the feature extraction module 803 is used to: for each body surface included in the multi-physics field computing model, obtain multiple boundary points of the body surface; based on the multiple boundary points of the body surface, divide the body surface into multiple triangular facets, and calculate the area of each triangular facet; accumulate the areas of each triangular facet corresponding to the same body surface to obtain the area of the body surface; according to the area of each body surface in the multi-physics field computing model, screen out the characteristic structure that meets the area constraint condition corresponding to the area constraint parameter in the multi-physics field computing model.
[0131] In an exemplary embodiment, the structural constraint parameters include edge length constraint parameters of the structure to be extracted; the feature extraction module 803 is used to: for each body surface included in the multi-physics field calculation model, obtain the boundary curve of the body surface; based on multiple boundary points on the boundary curve, divide the boundary curve into multiple line segments, and calculate the length of each line segment of the boundary curve; accumulate the lengths of each line segment corresponding to the same boundary curve to obtain the length of the boundary curve; according to the lengths of each boundary curve in the multi-physics field calculation model, screen out the characteristic structure that meets the edge length constraint condition corresponding to the edge length constraint parameter in the multi-physics field calculation model.
[0132] In an exemplary embodiment, the structural constraint parameters include aperture constraint parameters of the structure to be extracted; the feature extraction module 803 is used to: screen out hole structures containing cylindrical surfaces in the multi-physics field computing model according to the topological relationship between the surfaces of each body in the multi-physics field computing model and the geometric attribute information of each of the surfaces of the body; for each of the hole structures, calculate the radius of the cylindrical surface of the hole structure; according to the radius of each of the hole structures, screen out feature structures that satisfy the aperture constraint conditions corresponding to the aperture constraint parameters in the multi-physics field computing model; and / or, the structural constraint parameters include fillet radius constraint parameters of the structure to be extracted; the feature extraction module 803 is used to: screen out fillet surface structures in the multi-physics field computing model according to the topological relationship between the surfaces of each body in the multi-physics field computing model and the curvature information of each of the surfaces of the body; calculate the fillet radius of each of the fillet surface structures; according to the fillet radius of each of the fillet surface structures, screen out feature structures that satisfy the fillet radius constraint conditions corresponding to the fillet radius constraint parameters in the multi-physics field computing model.
[0133] In an exemplary embodiment, the feature parameter setting interface also displays the model structure information of the multi-physics field computing model; the device also includes: a range acquisition module, which is used to determine the feature extraction range of the multi-physics field computing model in response to the range selection operation of the model structure information; an execution module, which is used to execute the step of extracting the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field computing model according to the structural constraint parameters within the feature extraction range.
[0134] In an exemplary embodiment, the multi-physics field computational model is a model of an assembly.
[0135] Each module in the structural feature extraction device of the multi-physics field calculation model can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0136] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for extracting structural features of a multi-physics field computing model is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0137] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0140] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0144] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for extracting structural features of a multi-physics field computing model, characterized in that: The method comprises: Display the characteristic parameter setting interface of the multi-physics field calculation model; In response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface, a structural constraint parameter of the structure to be extracted is obtained; According to the structural constraint parameters, characteristic structures meeting the constraint conditions of the structural constraint parameters are extracted in the multi-physics field calculation model.
2. The method according to claim 1, characterized in that The structural constraint parameters include volume constraint parameters of the structure to be extracted; The step of extracting, in the multi-physics field calculation model, a characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters includes: For each geometric body included in the multi-physics field calculation model, a non-uniform rational B-spline surface of each body surface of the geometric body is obtained; Dividing each of the non-uniform rational B-spline surfaces into a plurality of grid cells, and calculating a unit volume of each of the grid cells; Accumulating the unit volumes of the grid units corresponding to the geometric body to obtain the volume of the geometric body; According to the volume of each of the geometric bodies in the multi-physics field calculation model, a characteristic structure that satisfies the volume constraint condition corresponding to the volume constraint parameter is screened out in the multi-physics field calculation model.
3. The method according to claim 1, characterized in that The structural constraint parameters include area constraint parameters of the structure to be extracted; The step of extracting, in the multi-physics field calculation model, a characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters includes: For each body surface included in the multi-physics field calculation model, obtaining a plurality of boundary points of the body surface; Based on the plurality of boundary points on the body surface, the body surface is divided into a plurality of triangular facets, and the area of each of the triangular facets is calculated; Accumulating the areas of the triangular facets corresponding to the same surface of the body to obtain the area of the surface of the body; According to the area of each of the body surfaces in the multi-physics field calculation model, a characteristic structure satisfying the area constraint condition corresponding to the area constraint parameter is screened out in the multi-physics field calculation model.
4. The method according to claim 1, characterized in that: The structural constraint parameters include side length constraint parameters of the structure to be extracted; The step of extracting, in the multi-physics field calculation model, a characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters includes: For each body surface included in the multi-physics field calculation model, obtaining a boundary curve of the body surface; Based on a plurality of boundary points on the boundary curve, the boundary curve is divided into a plurality of line segments, and the length of each line segment of the boundary curve is calculated; Accumulating the lengths of the line segments corresponding to the same boundary curve to obtain the length of the boundary curve; According to the length of each boundary curve in the multi-physics field calculation model, a characteristic structure that satisfies the side length constraint condition corresponding to the side length constraint parameter is screened out in the multi-physics field calculation model.
5. The method according to claim 1, characterized in that The structural constraint parameters include aperture constraint parameters of the structure to be extracted; The step of extracting, in the multi-physics field calculation model, a characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters includes: According to the topological relationship between the surfaces of each body in the multi-physics field calculation model and the geometric attribute information of each surface of the body, the hole structure containing the cylindrical surface is screened out in the multi-physics field calculation model; For each of the hole structures, calculating the radius of the cylindrical surface of the hole structure; According to the radius of each of the hole structures, a characteristic structure satisfying an aperture constraint condition corresponding to the aperture constraint parameter is screened out in the multi-physics field calculation model; and / or, The structural constraint parameters include the fillet radius constraint parameters of the structure to be extracted; The step of extracting, in the multi-physics field calculation model, a characteristic structure that meets the constraint conditions of the structural constraint parameters according to the structural constraint parameters includes: Screening out fillet surface structures in the multi-physics field calculation model according to the topological relationship between the surfaces of each body in the multi-physics field calculation model and the curvature information of each of the surfaces of the body; Calculating the fillet radius of each fillet surface structure; According to the fillet radius of each of the fillet surface structures, a characteristic structure satisfying the fillet radius constraint condition corresponding to the fillet radius constraint parameter is screened out in the multi-physics field calculation model.
6. The method according to any one of claims 1 to 5, characterized in that: The characteristic parameter setting interface also displays the model structure information of the multi-physics field calculation model; The characteristic parameter setting interface of the multi-physics field calculation model is displayed, and further includes: In response to a range selection operation on the model structure information, determining a feature extraction range of the multi-physics field calculation model; The step of extracting a feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model according to the structural constraint parameters is performed within the feature extraction range.
7. The method according to claim 1, characterized in that The multi-physics field calculation model is a model of an assembly.
8. A structural feature extraction device for a multi-physics field calculation model, characterized in that: The device comprises: An interface display module is used to display the characteristic parameter setting interface of the multi-physics field calculation model; A parameter acquisition module, configured to obtain structural constraint parameters of the structure to be extracted in response to a characteristic parameter setting operation on the multi-physics field calculation model based on the characteristic parameter setting interface; The feature extraction module is used to extract the feature structure that meets the constraint conditions of the structural constraint parameters in the multi-physics field calculation model according to the structural constraint parameters.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.