A free-form optimization method, device and equipment of a multiplex topology optimization framework
By setting upper and lower limits for the displacement components of design variable points and a spatial neighborhood weight matrix in shape optimization, the problems of limited design space and high computational cost in existing technologies are solved, realizing a unified framework for efficient shape optimization and topology optimization, and reducing software development and maintenance costs.
Patent Information
- Application Number
- CN202611676079.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing shape optimization methods suffer from problems in engineering applications, such as limited design space, high computational cost, drift of upper and lower bounds of design variables, optimization direction dependence on boundary normal, and disconnection from the topology optimization framework, resulting in high software development and maintenance costs.
By obtaining the boundary nodes of the initial mesh, determining the spatial neighborhood weight matrix and design variable points, setting the upper and lower limits of the displacement components of the design variable points in each direction, and using the spatial neighborhood weight matrix for sensitivity backpropagation and node updates, a consistent forward and reverse mapping is formed to achieve collaborative optimization between the main domain and subdomains.
It improves shape optimization efficiency, reduces computational costs, avoids optimization failures caused by normal anomalies, achieves simultaneous optimization of parameterless shapes and model parameters, and reduces software development and maintenance costs.
Smart Images

Figure CN123179841A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of shape optimization technology, and in particular to a free shape optimization method, apparatus and device that reuses a topology optimization framework. Background Technology
[0002] Shape optimization improves structural performance by moving material boundaries. It has a well-defined boundary description and offers irreplaceable advantages in stress concentration mitigation, fluid-structure interaction interface design, and direct-connection manufacturing processes. However, existing shape optimization methods still face several key technical challenges in practical engineering applications.
[0003] Traditional shape optimization methods are limited by the design space of preset parameters, making it impossible to directly optimize legacy designs that only have meshes and lack CAD (Computer-Aided Design) models. Furthermore, the consistency filtering method based on partial differential equations or energy functionals to achieve self-consistent sensitivity backpropagation is complex, leading to high computational costs in the shape optimization process. In addition, existing parametric shape optimization methods generally suffer from problems such as the upper and lower bounds of design variables drifting with iteration steps, the optimization direction depending on the boundary normal, the complexity of applying manufacturing constraints, and a disconnect from the topology optimization framework.
[0004] The aforementioned existing technologies mainly suffer from the following problems: Parametric methods that directly use node coordinates as design variables are prone to mesh entanglement; gradient smoothing methods provide inconsistent gradients and slow convergence because the smoothing operation is not incorporated into the optimization problem formulation; while consistency filtering methods based on partial differential equations or energy functionals can self-consistently transmit sensitivity, they are complex to implement, computationally expensive, and disconnected from the filtering and solution framework of topology optimization; furthermore, the design variables of existing free-shape optimization methods are mostly based on the current iteration step configuration, and their upper and lower bounds change with the iteration step, making it difficult to pre-set. The optimization direction is limited by the boundary normal, and creating constraints requires complex constraint functions or penalty functions. Shape optimization and topology optimization require the separate development and maintenance of two independent modules, resulting in high costs. Summary of the Invention
[0005] The main objective of this application is to provide a freeform optimization method, apparatus, and device that reuses the topology optimization framework, aiming to solve the technical problem that the existing freeform optimization methods and topology optimization frameworks are disconnected, resulting in high software development and maintenance costs.
[0006] To achieve the above objectives, this application proposes a free-form optimization method that reuses a topology optimization framework, the method comprising: Obtain the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes; The spatial neighborhood weight matrix and design variable points are determined based on the boundary nodes. The design variable points include at least main domain design variable points and subdomain design variable points. The directional components of the design variables of the design variable points have fixed upper and lower limits. The design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes. Calculate the shape sensitivity of the boundary nodes based on the current mesh configuration; The design variable points are updated based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points. The boundary nodes are updated based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes. The target shape is determined based on the updated boundary nodes.
[0007] In one embodiment, the step of updating the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points includes: Based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix, the sensitivity is backpropagated and superimposed to obtain the total sensitivity of the main domain design variable points. The design variable points are updated based on the total sensitivity to obtain the updated design variable points.
[0008] In one embodiment, the shape sensitivity of the boundary node includes at least the shape sensitivity of the main domain boundary node and the shape sensitivity of the subdomain boundary node; The step of backpropagating and superimposing the sensitivity based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the total sensitivity of the principal domain design variable points includes: Based on the transpose of the spatial neighborhood weight matrix, the shape sensitivity of the main domain boundary node is back-transferred to the main domain design variable point to obtain the shape sensitivity of the main domain design variable point. Based on the transpose of the spatial neighborhood weight matrix, the shape sensitivity of the subdomain boundary node is back-transferred to the subdomain design variable point to obtain the shape sensitivity of the subdomain design variable point. Based on the mapping relationship between the main domain design variable points and the subdomain design variable points, the shape sensitivity of the subdomain design variable points is superimposed with the shape sensitivity of the main domain design variable points to obtain the total sensitivity of the main domain design variable points.
[0009] In one embodiment, the updated design variable points include at least the updated primary domain design variable points and the updated subdomain design variable points; The step of updating the design variable points based on the total sensitivity to obtain the updated design variable points includes: The total sensitivity is input into a preset optimization solver to obtain the main domain design variables; The main domain design variable points are updated based on the main domain design variables to obtain the updated main domain design variable points; The updated primary domain design variable points are geometrically transformed to obtain the updated subdomain design variable points.
[0010] In one embodiment, the updated boundary node includes at least the updated primary domain boundary node and the updated subdomain boundary node; The step of updating the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes includes: The main domain design variable and the subdomain design variable are obtained based on the difference in displacement increment between the design variable point and the updated design variable point; Using the spatial neighborhood weight matrix, the main domain design variables and the subdomain design variables are mapped to the main domain boundary nodes and the subdomain boundary nodes, respectively, to obtain the updated main domain boundary nodes and the updated subdomain boundary nodes.
[0011] In one embodiment, the step of determining the target shape based on the updated boundary nodes includes: Using the updated boundary nodes as displacement boundary conditions, the internal mesh nodes are solved to obtain the target internal mesh nodes; An optimized mesh is generated based on the updated boundary nodes and the target internal mesh nodes; Obtain the current iteration number, and when the current iteration number meets the preset convergence condition, use the optimized mesh as the target mesh; The target shape is determined based on the target grid.
[0012] In one embodiment, the step of calculating the shape sensitivity of the boundary nodes based on the current mesh configuration includes: Finite element analysis is performed based on the current mesh configuration to obtain displacement, stress, objective function values, and constraint function values. The shape sensitivity of the boundary node is calculated based on the displacement, the stress, the objective function value, and the constraint function value.
[0013] In one embodiment, the step of determining the spatial neighborhood weight matrix based on the boundary nodes includes: Using the boundary node as the center of a sphere, search for neighboring nodes within a preset filtering radius to obtain the set of neighboring nodes corresponding to the boundary node; Calculate the spatial distance between each neighboring node and the boundary node based on the neighboring node set; The initial weight value is determined based on the spatial distance; The initial weight values are normalized to obtain normalized weight values; The spatial neighborhood weight matrix is determined based on the normalized weight values.
[0014] Furthermore, to achieve the above objectives, this application also proposes a free-form optimization apparatus that reuses a topology optimization framework, the apparatus comprising: An acquisition module is used to acquire the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes; The determination module is used to determine the spatial neighborhood weight matrix and design variable points based on the boundary nodes. The design variable points include at least main domain design variable points and subdomain design variable points. The directional components of the design variables of the design variable points have fixed upper and lower limits. The design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes. The determining module is also used to calculate the shape sensitivity of the boundary nodes based on the mesh configuration of the current mesh; The update module is used to update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points. The update module is further configured to update the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes. An optimization module is used to determine the target shape based on the updated boundary nodes.
[0015] Furthermore, to achieve the above objectives, this application also proposes a free-form optimization device that reuses a topology optimization framework. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the free-form optimization method that reuses a topology optimization framework as described above.
[0016] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the free-form optimization method of the reused topology optimization framework as described above.
[0017] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the free-form optimization method for the reused topology optimization framework as described above.
[0018] One or more technical solutions proposed in this application have at least the following technical effects: 1) By using the initial configuration as a fixed reference, the upper and lower bounds of the displacement components in each direction of the design variable points have clear physical meanings and remain unchanged throughout the process. This transforms the shape optimization problem into a bounded constraint optimization problem, allowing the parameterless shape to be optimized simultaneously with the geometric parameters, material parameters, and dimensional parameters of the model, thereby improving the efficiency of shape optimization.
[0019] 2) By setting upper and lower limits for the displacement components of the design variable points in each direction, and using the same spatial neighborhood weight matrix for sensitivity backpropagation and node update, the optimized target shape can be reliably obtained while reducing computational costs.
[0020] 3) The horizontal, vertical, and axial components of the design variables are independent of each other, eliminating the need to calculate and update the boundary normals, thus fundamentally avoiding optimization failures caused by non-unique or abnormal normals. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating the first embodiment of the free-shape optimization method that reuses the topology optimization framework in this application; Figure 2 A schematic diagram showing how the main domain design variable points are mapped to the subdomain design variable points through geometric transformation, as provided in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application. Figure 3A schematic diagram comparing the traditional method and the design variable movement direction in this solution with an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application; Figure 4 A schematic diagram showing a comparison between the conventional method and the present solution in terms of design variable reference datum, provided in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application. Figure 5 A schematic diagram comparing the topology optimization method provided in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application with the filtering method in this solution; Figure 6 This diagram illustrates optional boundary node coordinate smoothing filtering and reverse update (re-initialization) in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application. Figure 7 This is a schematic diagram of boundary cell distortion after updating boundary nodes (before smoothing the internal mesh) in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application. Figure 8 A schematic diagram of the boundary shape before and after smoothing processing provided in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application; Figure 9 A schematic diagram showing the shape comparison before and after optimization in an embodiment of the free-shape optimization method that reuses the topology optimization framework of this application; Figure 10 A flowchart illustrating Embodiment 2 of the free-shape optimization method that reuses the topology optimization framework of this application; Figure 11 A schematic diagram comparing the shape optimization process and topology optimization provided in an embodiment of the free shape optimization method that reuses the topology optimization framework of this application; Figure 12 This is a schematic diagram of the module structure of the free-form optimization device that reuses the topology optimization framework in the embodiments of this application; Figure 13 This is a schematic diagram of the device structure of the hardware operating environment involved in the free-shape optimization method that reuses the topology optimization framework in the embodiments of this application.
[0024] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0025] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0026] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0027] The main solution of this application embodiment is as follows: Obtain the boundary nodes of the initial mesh, wherein the boundary nodes include at least main domain boundary nodes and subdomain boundary nodes; determine the spatial neighborhood weight matrix and design variable points based on the boundary nodes, wherein the design variable points include at least main domain design variable points and subdomain design variable points, and the design variables of each design variable point have fixed upper and lower limits for each direction component, and the design variable is the total displacement increment vector of the design variable point relative to the initial position of the boundary node; calculate the shape sensitivity of the boundary nodes based on the mesh configuration of the current mesh; update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain updated design variable points; update the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain updated boundary nodes; determine the target shape based on the updated boundary nodes.
[0028] Traditional shape optimization methods, constrained by preset parameter forms, cannot directly optimize legacy designs with only meshes and no CAD models. Furthermore, the consistency filtering method based on partial differential equations or energy functionals for achieving self-consistent sensitivity backpropagation is complex, leading to high computational costs in the shape optimization process. In addition, existing parametric shape optimization methods generally suffer from problems such as design variable upper and lower bounds drifting with iteration steps, optimization direction depending on boundary normals, complex manufacturing constraint application, and disconnection from topology optimization frameworks.
[0029] This application provides a solution that utilizes a spatial neighborhood weight matrix construction method to determine the main domain boundary nodes and subdomain boundary nodes from the boundary nodes of the initial mesh, and accordingly determine the main domain design variable points and subdomain design variable points. Upper and lower bound constraints are applied to the displacement components of the design variable points in each direction, achieving a bounded representation of the parameterless free-form design space. The shape sensitivity of the boundary nodes is calculated based on the mesh configuration of the initial mesh, and the design variable points are updated based on this shape sensitivity and the spatial neighborhood weight matrix, resulting in updated design variable points. The boundary nodes are then updated based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix, resulting in updated boundary nodes. The target shape is then determined based on the updated boundary nodes, thus forming a consistent forward and reverse mapping closed loop where the boundary node sensitivity is backpropagated to the design variable points, and the design variable points are forward filtered to the boundary nodes. This achieves stable shape optimization of the main domain and subdomains collaboratively without relying on the boundary normal.
[0030] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device capable of performing the above functions, a free-form optimization device that reuses a topology optimization framework, etc. The following description uses a free-form optimization device that reuses a topology optimization framework as an example to illustrate this embodiment and the following embodiments. All actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection regulations of the country where the application is located and with authorization from the owner of the corresponding device.
[0031] Based on this, embodiments of this application provide a free-form optimization method that reuses a topology optimization framework, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the free-shape optimization method that reuses the topology optimization framework of this application.
[0032] In this embodiment, the free-form optimization method for the reused topology optimization framework includes steps S10 to S60: Step S10: Obtain the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes.
[0033] It should be noted that the initial mesh typically refers to the original mesh model obtained after discretizing the structure using the finite element method before shape optimization begins. It consists of a finite number of nodes and elements, defining the initial geometry, material distribution, and boundary conditions of the structure. Boundary nodes are typically located at the interface between the design domain and the non-design domain in the initial finite element mesh. Changes in the position of these nodes directly affect the boundary shape of the structure.
[0034] Furthermore, the free-form optimization method using the reused topology optimization framework in this scheme can be specifically applied to the field of parametric shape optimization, particularly suitable for scenarios where an initial mesh is available, but a CAD model is unavailable or the original CAD model cannot be directly used for shape optimization (due to excessive or missing parametric features). For example, an aerospace engineer needs to design a high-pressure compressor intermediate casing for a turbofan engine. This component connects the high-pressure compressor and the combustion chamber, needs to withstand the impact of high-temperature, high-pressure airflow, and also needs to support the bearings. Therefore, the objective is to reduce local stress concentration and improve fatigue life by optimizing the shape of the outer wall and inner support plate without increasing weight. This aerospace engineer has an initial finite element model with a tetrahedral mesh, but no CAD model, or the original CAD model cannot be directly used for shape optimization. In this case, the method of this scheme can be used for shape optimization to obtain the final target shape.
[0035] Step S20: Determine the spatial neighborhood weight matrix and design variable points based on the boundary nodes, wherein the design variable points include at least main domain design variable points and subdomain design variable points, and the directional components of the design variables of the design variable points have fixed upper and lower limits, and the design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes.
[0036] It should be noted that the spatial neighborhood weight matrix is a fixed two-dimensional array calculated once before optimization, based on the initial spatial positions of the grid boundary nodes. This matrix records the spatial distance weight relationship between each boundary node and its neighboring nodes. Rows correspond to target nodes, columns correspond to source nodes, and matrix element values represent the weight proportion of information obtained by the target node from the source node during filtering. The spatial neighborhood weight matrix only needs to be calculated once and remains unchanged, used for both forward and reverse filtering. Design variable points include main domain design variable points and subdomain design variable points. Main domain design variable points are typically located on the boundary nodes of the main control region, coinciding one-to-one with the boundary nodes. Subdomain design variable points are usually design variable points generated by mapping from the main domain design variable points through geometric transformations such as mirroring, translation, rotation, and scaling, and are decoupled from the subdomain grid nodes. Geometric transformation operations are important methods for implementing manufacturing process constraints such as symmetry and periodicity, enabling bounded results to satisfy specific manufacturing processes. Design variables are defined as the total displacement increment vector of a design variable point relative to the initial position of a boundary node. The fixed upper and lower bounds of the displacement components of a design variable point mean that the three independent components (X (horizontal axis), Y (vertical axis), and Z (vertical axis) of the total displacement increment vector (i.e., the design variable) of the design variable point relative to its initial position in the initial mesh have clear and fixed upper and lower bounds. For example, since the principal domain design variable points coincide with the boundary nodes, and the boundary nodes and principal domain design variable points are iteratively updated, the design variable of the principal domain design variable point is the total displacement increment vector of the current position of the boundary node (or the principal domain design variable point) relative to its initial position.
[0037] like Figure 2 As shown, Figure 2 A schematic diagram of subdomain design variable points obtained by mapping the main domain design variable points through geometric transformations is shown below. Figure 2 As shown on the left, the primary domain design variable points are defined. The primary domain design variable points are defined on one side boundary of a sector-shaped structure; this side represents the primary control region. Figure 2As shown on the right, subdomain design variable points are obtained through geometric transformation. Through mirror transformation about the plane of symmetry, the main domain design variable points are mapped to the other subdomain, generating subdomain design variable points. Furthermore, the subdomain design variable points and the main domain design variable points can be grouped into the same variable group and equal numerical constraints can be applied. During the numerical constraint optimization process, the shapes on both sides are automatically kept mirror symmetric (Note: the main domain design variable points coincide with the boundary nodes, while the subdomain design variable points do not need to coincide with the boundary nodes).
[0038] It should be understood that by taking the initial configuration of the mesh as a fixed reference, the upper and lower bounds of the variables have clear physical meanings and remain unchanged throughout the process. This transforms the shape optimization problem into a bounded constraint optimization problem, allowing the parameterless shape to be optimized simultaneously with the model's geometric parameters, material parameters, and dimensional parameters. All of these are bounded variables. In contrast, traditional parameterless shapes do not have definite boundaries, and each step requires movement along the normal of the current boundary. This necessitates staged optimization of the free shape and geometric and material parameters.
[0039] like Figure 3 As shown, Figure 3 This diagram illustrates a comparison between the traditional method and the design variable movement direction in this scheme. Figure 3 The comparison demonstrates the fundamental differences between traditional methods and this approach in terms of variable definition and optimization direction. For example... Figure 3 As shown in (a), traditional shape optimization methods restrict the movement direction of boundary nodes to the normal direction of the configuration in the previous iteration. Each iteration requires recalculating the normal vectors of all boundary nodes. In a 3D mesh model, boundary nodes are often located at the intersection of multiple boundary surfaces, each with different normals, making it difficult to determine the unique normal of the node. Furthermore, when the mesh deformation is large or the initial boundary has sharp corners or other unsmooth features, the calculated normal may exhibit singular directions or drastic changes, directly leading to optimization failure. In addition, moving only along the normal direction prevents boundary nodes from adjusting their tangential direction. As optimization iterations proceed, boundary nodes tend to become overly clustered in some areas and overly dispersed in others, continuously deteriorating the mesh quality. To address this problem, traditional methods must add complex tangential adjustment steps, further increasing the implementation difficulty. Unlike traditional methods, as... Figure 3As shown in (b), the design approach adopted in this scheme is to define the design variable as the total displacement increment vector of the boundary nodes relative to their initial positions. This vector contains three independent components: the horizontal axis component (X), the vertical axis component (Y), and the vertical axis component (Z). Each component can be used as an independent design variable, and the nodes can move freely in any direction. This eliminates the dependence on the boundary normal and eliminates the need to calculate and update the boundary normal, fundamentally avoiding the optimization failure caused by non-unique or abnormal normals. Unlike traditional methods that define the relative displacement increment based on the current iteration step configuration, this method uses a fixed initial mesh configuration as a reference. The upper and lower bounds of the design variables have clear physical meanings, can be pre-set, and remain unchanged throughout the optimization process.
[0040] Specifically, the initial finite element mesh model is read, the set of boundary nodes in the design region is identified, and a total displacement increment vector relative to its initial position is created for each boundary node as a design variable. This vector contains three independent components: X, Y, and Z. Initially, the total displacement increment vector is zero, and the boundary nodes are in their initial positions. Users can independently set upper and lower bound constraints for each component according to engineering requirements (the setting of upper and lower bound constraints has clear engineering physical meaning; the upper bound represents the maximum allowable positive displacement of the node in the corresponding direction from the initial position, and the lower bound represents the maximum allowable negative displacement). Since the reference datum is a fixed initial configuration, these constraint values will not change with optimization iterations, ensuring the stability of the optimization problem. For example, the displacement increment in the X direction of a certain boundary node can be set to a range of [-5mm, 5mm]. The upper and lower bounds in each direction can be set symmetrically or asymmetrically according to the actual working conditions. By setting upper and lower bound constraints for each component of the total displacement increment vector, the originally difficult-to-constrain parameterless shape optimization problem is transformed into a size optimization problem with fixed variable boundaries. Mature constraint optimization solvers such as the moving asymptote algorithm can be directly applied to solve this problem, which solves the problem of variable boundaries drifting with iteration steps in existing methods.
[0041] like Figure 4 As shown, Figure 4 This diagram illustrates a comparison between the traditional method and this proposed solution in terms of design variable reference standards. Figure 4 As shown in (a), the traditional method optimizes the relative displacement increment based on the position of the previous iteration (i.e., Figure 4 middle After each iteration, the mesh configuration changes, and the reference datum for the design variables drifts accordingly, causing the upper and lower bounds of each design variable to change with each iteration step and making it difficult to pre-define them reasonably. For example... Figure 4 As shown in (b), this scheme uses the initial position as a fixed reference to optimize the total displacement increment relative to the initial position. The upper and lower bounds of the design variables have clear physical meanings, can be preset, and remain unchanged throughout the optimization process.
[0042] In traditional parametric shape optimization, the design variables are nodal coordinates or relative displacements, and the range of these variables is difficult to determine in advance. This approach transforms the problem into a standard bounded optimization problem by introducing a fixed reference datum and clear variable boundaries. This makes the mathematical structure of the problem clear, allowing for the direct application of mature optimization theories and algorithms.
[0043] In one embodiment, the step of determining the spatial neighborhood weight matrix based on the boundary node includes: using the boundary node as the center of a sphere, searching for neighboring nodes within a preset filtering radius to obtain a set of neighboring nodes corresponding to the boundary node; calculating the spatial distance between each neighboring node and the boundary node based on the set of neighboring nodes; determining an initial weight value based on the spatial distance; normalizing the initial weight value to obtain a normalized weight value; and determining the spatial neighborhood weight matrix based on the normalized weight value.
[0044] Specifically, with each boundary node as the center, nodes in the initial mesh are searched within a preset filtering radius to obtain the set of neighboring nodes corresponding to that boundary node; this set may include the boundary node itself. The choice of the preset filtering radius has a significant impact on the optimization results: a larger filtering radius results in a stronger smoothing effect and a smoother boundary shape, but the design freedom is correspondingly reduced; a smaller filtering radius results in a higher design freedom, but the risk of mesh entanglement increases. In practical engineering applications, the filtering radius is usually taken as 2 to 5 times the mesh feature size to achieve a good balance between design smoothness and design freedom. For each neighboring node in the neighboring node set, calculate its spatial distance (usually Euclidean distance) to the current boundary node. Determine the initial weight value based on this spatial distance; for example, a Gaussian kernel function, inverse distance function, or compact support kernel function can be used, ensuring that closer nodes have higher weights and farther nodes have lower weights. Nodes exceeding the filtering radius have their weights reset to zero. Then, normalize the initial weight value corresponding to each boundary node so that the sum of the weights in each row is 1, thus ensuring that the overall magnitude of the physical quantity remains unchanged before and after filtering. Normalization ensures that the filtered value of each node is a convex combination of the values of its neighboring nodes, meaning the filtered value lies between the minimum and maximum values of the neighboring node values, preventing overshoot. Finally, with boundary nodes as rows and neighboring nodes or initial grid nodes as columns, fill the corresponding positions with the normalized weight values, setting non-neighboring positions to zero, obtaining the spatial neighborhood weight matrix. This matrix is constructed once based on the initial grid, with a fixed reference benchmark, and does not need to be recalculated as node positions change in subsequent optimization iterations.
[0045] like Figure 5 As shown, Figure 5 This is a diagram comparing topology optimization with the filtering method in this solution, as shown below. Figure 5 As shown in (a), Figure 5(a) in the diagram is a schematic diagram of the pseudo-density point filtering method in the topology optimization domain: there are multiple pseudo-density points inside the cell, and the design points in the neighborhood are filtered by weighted average with the filtering radius r as the range; Figure 5 As shown in (b) in the figure, Figure 5 (b) in the diagram is a schematic of the filtering method of this scheme: In the grid, the total displacement increment vector (i.e., design variable) carried by the boundary nodes in the neighborhood is filtered by weighted average within the range of the filtering radius r.
[0046] This scheme constructs a fixed, sparse, row-normalized spatial neighborhood weight matrix by using the boundary nodes as the center of the sphere, searching the neighborhood according to the filtering radius, and normalizing the distance weights. This transforms the spatial relationships between boundary nodes into deterministic filtering operators. Furthermore, only this spatial neighborhood weight matrix needs to be operated on during iterative optimization, thus improving numerical stability and computational efficiency.
[0047] Step S30: Calculate the shape sensitivity of the boundary nodes based on the current mesh configuration.
[0048] It should be noted that the current mesh refers to the finite element mesh actually used in the current iteration step during the shape optimization iteration process. The shape sensitivity of the boundary nodes usually refers to the derivative of the objective function and / or constraint function with respect to the boundary node coordinates, which is used to characterize the degree of change in the objective function value or constraint function value when the boundary node position changes slightly.
[0049] In one embodiment, the step of calculating the shape sensitivity of the boundary node based on the mesh configuration of the current mesh includes: performing finite element analysis based on the mesh configuration of the current mesh to obtain displacement, stress, objective function value and constraint function value; and calculating the shape sensitivity of the boundary node based on the displacement, stress, objective function value and constraint function value.
[0050] Specifically, the current mesh is the finite element mesh actually used in the current iteration step during the shape optimization iteration process: it is the initial mesh in the first iteration, and the mesh obtained after smoothing the internal mesh based on the updated boundary nodes in subsequent iterations. Discrete equilibrium equations are solved through finite element analysis to obtain structural responses such as displacement and stress, and the objective function and constraint function values are further calculated based on displacement and stress. Subsequently, based on displacement, stress, objective function values, and constraint function values, the shape sensitivity of the objective function and constraint function to the boundary node coordinates is calculated. Boundary nodes include at least principal domain boundary nodes and subdomain boundary nodes, and their shape sensitivity includes the sensitivity components of each boundary node in the X, Y, and Z directions. The calculation can use the adjoint method or direct differentiation method, establishing the derivative relationship between the objective / constraint and the boundary node coordinates through the chain rule, thereby obtaining the shape sensitivity of the boundary nodes. This shape sensitivity is the input for subsequent back-filtering, and is passed back to the design variable points via the transpose of the spatial neighborhood weight matrix, providing a gradient basis for updating the design variable points.
[0051] This embodiment is based on the current mesh finite element analysis and calculates the shape sensitivity of the boundary nodes, so that the gradient strictly corresponds to the current configuration and ensures accurate and consistent sensitivity; no boundary normal is required, avoiding normal anomalies, and providing a reliable gradient for consistent forward and reverse mapping and cooperative stable optimization of the main domain and subdomain.
[0052] Step S40: Update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points.
[0053] It is understandable that by using the transpose of the spatial neighborhood weight matrix and the chain rule, the sensitivity can be backpropagated (this is a reverse filtering using the consistency filtering formula) to obtain the total sensitivity of the main domain design variable points. Then, based on the total sensitivity of the main domain design variable points, the coordinate positions of the design variable points can be updated to obtain the updated design variable points.
[0054] By incorporating the filtering formula into the chain rule for derivation, it is a consistent filtering method that ensures the accuracy of sensitivity propagation to design variables through boundary nodes.
[0055] Step S50: Update the boundary nodes according to the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes.
[0056] It should be noted that the total displacement increment of the design variable points can be obtained based on the design variable points and the updated design variable points. This total displacement increment of the design variable points can then be used to synchronously update the boundary nodes, thereby obtaining the updated boundary nodes.
[0057] In one embodiment, the updated boundary nodes include at least updated main domain boundary nodes and updated subdomain boundary nodes; the step of updating the boundary nodes according to the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes includes: obtaining main domain design variables and subdomain design variables according to the difference in displacement increments between the design variable points and the updated design variable points; and mapping the main domain design variables and the subdomain design variables to the main domain boundary nodes and the subdomain boundary nodes respectively through the spatial neighborhood weight matrix to obtain the updated main domain boundary nodes and the updated subdomain boundary nodes.
[0058] Specifically, a consistency filtering formula (with a weight matrix for the same spatial neighborhood) is used to map the difference in displacement increments of the main domain design variable points (i.e., the main domain design variables) to the main domain boundary grid nodes, resulting in the new positions of the main domain boundary nodes. Similarly, the difference in displacement increments of the subdomain design variable points (i.e., the subdomain design variables) is mapped to the subdomain boundary grid nodes, resulting in the new positions of the subdomain boundary nodes. This yields updated main domain boundary nodes and updated subdomain boundary nodes. It is important to emphasize that the consistency filtering formula used in this scheme is isomorphic to the density filtering formula in topology optimization. This allows for direct reuse of the adjoint method sensitivity framework and moving asymptote solver in topology optimization, achieving a unified framework for shape optimization and topology optimization. Commercial software requires only minor adaptation to simultaneously support both topology optimization and shape optimization functions.
[0059] This scheme obtains the new position of the boundary node by forward filtering of the displacement increment of the design variable, and obtains the sensitivity of the design variable by reverse filtering of the boundary node sensitivity. The same spatial neighborhood weight matrix is used in both directions to ensure strict consistency.
[0060] Optionally, in one embodiment, after the step of updating the boundary nodes according to the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain updated boundary nodes, the method may further include: performing coordinate smoothing filtering on the updated boundary nodes according to the spatial neighborhood weight matrix every preset number of iterations to obtain smooth boundary nodes; assigning the total displacement increment of the smooth boundary nodes in reverse to the updated design variable points to obtain smooth design variable points; updating the updated boundary nodes to smooth boundary nodes; and updating the updated design variable points to smooth design variable points.
[0061] Specifically, as iterations proceed, the updated boundary nodes may become overly clustered in some regions and overly dispersed in others. To address this, coordinate smoothing filtering and reverse updating can be performed every preset number of iterations (e.g., every 5 iterations): coordinate smoothing filtering is performed at least once (e.g., 2 to 3 times) on the updated boundary node coordinates using the same spatial neighborhood weight matrix to obtain smooth boundary nodes; then, the total displacement increment of these smooth boundary nodes is reversed and assigned to the updated principal domain design variable points, and the subdomain design variable points are synchronized through geometric transformation to obtain smooth design variable points, allowing the design variable points to re-coincide with the boundary nodes. This step is similar to the re-initialization in the level set method, used only to restore the uniformity and smoothness of the boundary node distribution, and does not participate in the sensitivity backpropagation chain of step S40, thus not compromising the gradient accuracy of the aforementioned consistency filtering; the more times coordinate smoothing filtering is repeated, the more uniform and smooth the boundary distribution becomes.
[0062] like Figure 6 As shown, Figure 6 A schematic diagram of smooth filtering and reverse update (reinitialization) of optional boundary node coordinates. Figure 6 First, a schematic diagram is shown illustrating the relationship between the design variable points and boundary nodes before and after optimization and updating (e.g., ...). Figure 6 The figures corresponding to "Before Optimization: Overlapping" and "After Optimization: Overlapping" are shown in the image. However, because the updated boundary nodes are overly clustered in some areas and overly dispersed in others, coordinate smoothing filtering is performed on the updated boundary nodes at least once every preset number of iterations (e.g., every 5 iterations). Figure 6 The figure corresponding to "Filter Mesh Nodes: Non-Coincident" is shown in the middle), and the total displacement increment of the smooth boundary nodes is reversed and assigned to the design variable points, so that the design variable points and boundary nodes coincide again (as shown in the figure). Figure 6 The figure corresponding to "Reverse update design points: coincidence" is shown in the figure. This is to improve the uniformity of the distribution of boundary nodes and avoid excessive clustering or dispersion of design variable points. This operation is similar to the re-initialization in the level set method and does not participate in the sensitivity backpropagation chain.
[0063] This embodiment performs coordinate smoothing filtering on the updated boundary nodes every preset number of iterations and updates the design variable points in reverse (equivalent to re-initialization), which can ensure that the boundary nodes are evenly distributed and the boundaries are smooth, avoiding excessive clustering or dispersion of design variable points.
[0064] Step S60: Determine the target shape based on the updated boundary nodes.
[0065] It is understandable that the target shape is determined by the target mesh. Therefore, the target mesh (i.e. the optimized mesh) is first generated based on the updated boundary nodes, and then the target shape can be determined based on the final target mesh. The target shape is a structural shape with extremely smooth boundaries and excellent internal mesh quality.
[0066] In one embodiment, the step of determining the target shape based on the updated boundary nodes includes: solving for the internal mesh nodes using the updated boundary nodes as displacement boundary conditions to obtain the target internal mesh nodes; generating an optimized mesh based on the updated boundary nodes and the target internal mesh nodes; obtaining the current iteration number, and when the current iteration number satisfies a preset convergence condition, using the optimized mesh as the target mesh; and determining the target shape based on the target mesh.
[0067] It should be noted that after obtaining the updated boundary nodes, the boundary cells may be severely distorted, such as... Figure 7 As shown, Figure 7 This diagram illustrates the boundary element distortion after updating the boundary nodes (before internal mesh smoothing). The position coordinates of the optimized boundary nodes change, thus altering the boundary shape. Subsequently, using the updated boundary node coordinates as boundary conditions, the target internal mesh nodes are determined through an internal mesh smoothing method. This method can employ at least one of Laplace smoothing, Helmholtz filtering, or solving the virtual elastic body equations. This restores the severely distorted mesh elements near the unsmoothed boundary to a uniform distribution, improving mesh quality. Figure 8 As shown, Figure 8 A schematic diagram of the boundary shape before and after smoothing shows that the quality of the mesh is improved after smoothing. Based on the updated boundary nodes and target internal mesh nodes, the optimized mesh can be generated, which is the smooth structure mesh corresponding to the current iteration. When the current iteration number meets the preset convergence condition (i.e., when the current iteration number equals the preset iteration number), the current optimized mesh is used as the target mesh, and the target shape is determined based on the target mesh; otherwise, the iteration returns to step S30 to continue. In other possible implementations, the convergence condition may also include that the change in the objective function or the change in the design variable is less than a preset change threshold (indicating that the displacement increment of the design variable points in the current iteration is small compared to the previous iteration, indicating that the change in the design variable points has tended to stabilize).
[0068] This solution generates an optimized mesh through an internal mesh smoothing method and outputs the target mesh and target shape when the preset convergence conditions are met. This achieves coordinated control of design smoothness and mesh uniformity, avoids error accumulation, ensures mesh quality and optimization stability, and the resulting target shape has smooth boundaries, which can be directly used for verification and manufacturing without computer-aided design reconstruction.
[0069] like Figure 9 As shown, Figure 9 To optimize the before-and-after shape comparison diagram, Figure 9 This demonstrates intuitively that the proposed method can achieve free-form optimization of the main domain and subdomains of a 3D model without the need for boundary normals, resulting in an optimized structural shape with smooth boundaries and improved response distribution.
[0070] This embodiment provides a free-form optimization method using a reused topology optimization framework. It involves obtaining the boundary nodes of an initial mesh, where each boundary node includes at least a principal domain boundary node and a subdomain boundary node; determining a spatial neighborhood weight matrix and design variable points based on the boundary nodes, where each design variable point includes at least a principal domain design variable point and a subdomain design variable point, and the design variable points have fixed upper and lower limits for each directional component. The design variable is the total displacement increment vector of the design variable point relative to the initial position of the boundary node; calculating the shape sensitivity of the boundary nodes based on the current mesh configuration; and then applying the shape sensitivity of the boundary nodes... The design variable points are updated using the degree and the transpose of the spatial neighborhood weight matrix to obtain updated design variable points. The boundary nodes are updated based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain updated boundary nodes. The target shape is determined based on the updated boundary nodes. By setting upper and lower limits for the displacement components of the design variable points in each direction and using the same spatial neighborhood weight matrix for sensitivity backpropagation and node updates, the optimized target shape is reliably obtained while unifying the shape optimization method and the topology optimization framework, thereby reducing computational costs, software development costs, and maintenance costs.
[0071] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 10 Step S40 includes steps S401 to S402: Step S401: Based on the shape sensitivity of the boundary node and the transpose of the spatial neighborhood weight matrix, perform sensitivity backpropagation and superposition to obtain the total sensitivity of the main domain design variable points.
[0072] It should be noted that the shape sensitivity of the boundary node includes at least the shape sensitivity of the main domain boundary node and the shape sensitivity of the subdomain boundary node.
[0073] In one embodiment, the step of backpropagating and superimposing the sensitivity based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the total sensitivity of the main domain design variable points includes: backpropagating the shape sensitivity of the main domain boundary nodes to the main domain design variable points based on the transpose of the spatial neighborhood weight matrix to obtain the shape sensitivity of the main domain design variable points; backpropagating the shape sensitivity of the subdomain boundary nodes to the subdomain design variable points based on the transpose of the spatial neighborhood weight matrix to obtain the shape sensitivity of the subdomain design variable points; and superimposing the shape sensitivity of the subdomain design variable points with the shape sensitivity of the main domain design variable points according to the mapping relationship between the main domain design variable points and the subdomain design variable points to obtain the total sensitivity of the main domain design variable points.
[0074] Specifically, by transposing the spatial neighborhood weight matrix, the shape sensitivity of the main domain boundary nodes is back-transferred to the main domain design variable points using the chain rule, thus obtaining the shape sensitivity of the main domain design variable points. Similarly, by transposing the spatial neighborhood weight matrix, the shape sensitivity of the subdomain boundary nodes is back-transferred to the subdomain design variable points using the chain rule, thus obtaining the shape sensitivity of the subdomain design variable points. Finally, the sensitivities of each subdomain design variable point are superimposed onto the corresponding main domain design variable points according to the mapping relationship, thereby obtaining the total sensitivity of the main domain design variable points.
[0075] This embodiment achieves accurate back-transfer of the sensitivity of the boundary nodes of the main and subdomains by transposing the spatial neighborhood weight matrix, and superimposes the total sensitivity of the main domain according to the mapping relationship, ensuring the consistency of the chain rule. It can achieve stable optimization of the main and subdomains without the need for normals, thereby improving the reliability of shape optimization and the reusability of the framework.
[0076] Step S402: Update the design variable points according to the total sensitivity to obtain the updated design variable points.
[0077] It is understandable that the updated design variable points include at least the updated primary domain design variable points and the updated subdomain design variable points.
[0078] In one embodiment, the step of updating the design variable points based on the total sensitivity to obtain updated design variable points includes: inputting the total sensitivity into a preset optimization solver to obtain principal domain design variables; updating the principal domain design variable points based on the principal domain design variables to obtain updated principal domain design variable points; and performing a geometric transformation on the updated principal domain design variable points to obtain updated subdomain design variable points.
[0079] Specifically, the total sensitivity of the principal domain design variable points is input into a preset optimization solver. This preset solver can be an MMA (Method of Moving Asymptotes) multi-constraint optimization solver. Within the set upper and lower limits of displacement components in each direction, bounded space optimization is performed on the principal domain design variable points to obtain the principal domain design variables, i.e., the total displacement increment of the principal domain design variable points relative to their initial positions. The principal domain design variable points are then updated based on these variables, resulting in updated principal domain design variable points. Since there are geometric mapping relationships such as mirroring, translation, rotation, and scaling between the subdomain design variable points and the principal domain design variable points, the updated principal domain design variable points are transformed according to these geometric mapping relationships to synchronously obtain updated subdomain design variable points. This achieves collaborative optimization where only the principal domain design variable points are optimized, while the subdomain design variable points are updated synchronously with the principal domain. It should be understood that dividing the principal domain design variable points and subdomain design variable points into the same variable group for synchronous updating can achieve at least one manufacturing process constraint among planar symmetry, rotational symmetry, periodic repetition, or casting draft.
[0080] This scheme updates the main domain design variables in the bounded space by optimizing the solver, generates subdomain design variable points through geometric transformations, and applies manufacturing process constraints flexibly through the algebraic relationship of variable groups without the need to introduce penalty functions. This achieves collaborative optimization between the main domain and subdomains, ensures the consistency of bounded variables and the chain rule, and improves the stability and efficiency of shape optimization.
[0081] This embodiment performs sensitivity backpropagation and superposition based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the total sensitivity of the main domain design variable points. The design variable points are then updated according to the total sensitivity to obtain the updated design variable points. By backpropagating and superimposing the transpose of the spatial neighborhood weight matrix, the total sensitivity of the main domain is obtained, achieving a consistent mapping from boundary node sensitivity to design variables. This allows for bounded updates of design variables without the need for normals, ensuring stable collaborative optimization between the main domain and subdomains, and improving the reliability and efficiency of shape optimization.
[0082] The shape optimization process and topology optimization process of this scheme are similar in overall framework. The main difference lies in the design variables and filtering objects. For easier understanding, please refer to [link / reference]. Figure 11 , Figure 11 This is a schematic diagram comparing the shape optimization process and topology optimization. Figure 11 The topology optimization process on the left shows the steps of defining the design domain (element), filtering the design variables to obtain the element density, performing finite element analysis, calculating the element sensitivity, filtering the elements to obtain the design variable sensitivity, inputting the MMA multi-constraint optimizer to solve, and determining whether it has converged. If it has not converged, it returns to filtering the design variables to obtain the element density; if it has converged, it stops. Figure 11The shape optimization workflow on the right demonstrates defining the design domain (boundary nodes), filtering design variables to obtain boundary node coordinates, performing finite element analysis, calculating boundary node sensitivity, filtering boundary nodes again to obtain design variable sensitivity, inputting the solution into the MMA multi-constraint optimizer, and determining convergence. If convergence fails, it returns to the boundary node coordinates obtained from filtering design variables; if convergence occurs, it stops. The core difference and connection between the two lies in the fact that in topology optimization, the design variable is element density, the filtering object is element density, and the sensitivity is element sensitivity. In free shape optimization, the design variable is boundary node coordinates or total displacement increment, the filtering object is boundary node coordinates or displacement increment, and the sensitivity is boundary node sensitivity. However, both use the same filtering formula, adjoint method sensitivity framework, and MMA solver. This design allows the topology optimization filtering formula and optimization solver to be directly reused. Commercial software only needs minor adaptation to support both topology optimization and shape optimization functions simultaneously. That is, after developing topology optimization, only the sensitivity solution part needs to be modified, and shape optimization will naturally follow, achieving a unified framework.
[0083] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the free-shape optimization method of the topology optimization framework reused in this application. Any simple transformations based on this technical concept are within the protection scope of this application.
[0084] This application also provides a free-form optimization device that reuses a topology optimization framework; please refer to [reference needed]. Figure 12 The device includes: The acquisition module 10 is used to acquire the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes.
[0085] The determination module 20 is used to determine the spatial neighborhood weight matrix and design variable points based on the boundary nodes. The design variable points include at least main domain design variable points and subdomain design variable points. The directional components of the design variables of the design variable points have fixed upper and lower limits. The design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes.
[0086] The determining module 20 is also used to calculate the shape sensitivity of the boundary nodes based on the mesh configuration of the current mesh.
[0087] The update module 30 is used to update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points.
[0088] The update module 30 is further configured to update the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes.
[0089] The optimization module 40 is used to determine the target shape based on the updated boundary nodes.
[0090] The free-shape optimization apparatus for reusing the topology optimization framework provided in this application employs the free-shape optimization method for reusing the topology optimization framework in the above embodiments, which can solve the technical problem of high software development and maintenance costs caused by the separation between existing free-shape optimization methods and topology optimization frameworks. Compared with the prior art, the beneficial effects of the free-shape optimization apparatus for reusing the topology optimization framework provided in this application are the same as those of the free-shape optimization method for reusing the topology optimization framework provided in the above embodiments, and other technical features in the free-shape optimization apparatus for reusing the topology optimization framework are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0091] In one embodiment, the update module 30 is further configured to perform sensitivity backpropagation and superposition based on the shape sensitivity of the boundary node and the transpose of the spatial neighborhood weight matrix to obtain the total sensitivity of the main domain design variable points; and update the design variable points according to the total sensitivity to obtain the updated design variable points.
[0092] In one embodiment, the shape sensitivity of the boundary nodes includes at least the shape sensitivity of the main domain boundary nodes and the shape sensitivity of the subdomain boundary nodes; the update module 30 is further configured to, based on the transpose of the spatial neighborhood weight matrix, backfeed the shape sensitivity of the main domain boundary nodes to the main domain design variable points to obtain the shape sensitivity of the main domain design variable points; backfeed the shape sensitivity of the subdomain boundary nodes to the subdomain design variable points based on the transpose of the spatial neighborhood weight matrix to obtain the shape sensitivity of the subdomain design variable points; and, according to the mapping relationship between the main domain design variable points and the subdomain design variable points, superimpose the shape sensitivity of the subdomain design variable points with the shape sensitivity of the main domain design variable points to obtain the total sensitivity of the main domain design variable points.
[0093] In one embodiment, the updated design variable points include at least updated principal domain design variable points and updated subdomain design variable points; the update module 30 is further configured to input the total sensitivity into a preset optimization solver to obtain principal domain design variables; update the principal domain design variable points based on the principal domain design variables to obtain updated principal domain design variable points; and perform a geometric transformation on the updated principal domain design variable points to obtain updated subdomain design variable points.
[0094] In one embodiment, the updated boundary nodes include at least updated main domain boundary nodes and updated subdomain boundary nodes; the update module 30 is further configured to obtain main domain design variables and subdomain design variables based on the difference in displacement increments between the design variable points and the updated design variable points; and to map the main domain design variables and the subdomain design variables onto the main domain boundary nodes and the subdomain boundary nodes respectively through the spatial neighborhood weight matrix to obtain updated main domain boundary nodes and updated subdomain boundary nodes.
[0095] In one embodiment, the optimization module 40 is further configured to: determine the solution of internal mesh nodes using the updated boundary nodes as displacement boundary conditions to obtain target internal mesh nodes; generate an optimized mesh based on the updated boundary nodes and the target internal mesh nodes; obtain the current iteration number; when the current iteration number satisfies a preset convergence condition, use the optimized mesh as the target mesh; and determine the target shape based on the target mesh.
[0096] In one embodiment, the determining module 20 is further configured to perform finite element analysis based on the mesh configuration of the current mesh to obtain displacement, stress, objective function value and constraint function value; and calculate the shape sensitivity of the boundary node based on the displacement, stress, objective function value and constraint function value.
[0097] In one embodiment, the determining module 20 is further configured to: search for neighboring nodes within a preset filtering radius using the boundary node of the initial grid as the center of the sphere, to obtain a set of neighboring nodes corresponding to the boundary node; calculate the spatial distance between each neighboring node and the boundary node based on the set of neighboring nodes; determine an initial weight value based on the spatial distance; normalize the initial weight value to obtain a normalized weight value; and determine a spatial neighborhood weight matrix based on the normalized weight value.
[0098] This application provides a freeform optimization device that reuses a topology optimization framework. The freeform optimization device that reuses a topology optimization framework includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the freeform optimization method that reuses a topology optimization framework in the above embodiment 1.
[0099] The following is for reference. Figure 13 , Figure 13This is a schematic diagram of the device structure of the hardware operating environment involved in the free-form optimization method of the reused topology optimization framework in the embodiments of this application. The free-form optimization device of the reused topology optimization framework in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), tablets, PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 13 The freeform optimization device with a reused topology optimization framework shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0100] like Figure 13 As shown, the freeform optimization device using a multiplexed topology optimization framework may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the freeform optimization device using the multiplexed topology optimization framework. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, LCDs (Liquid Crystal Displays), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the freeform optimization device with a multiplexed topology optimization framework to communicate wirelessly or wiredly with other devices to exchange data. Although a freeform optimization device with a multiplexed topology optimization framework having various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0101] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0102] The free-shape optimization device for reusing the topology optimization framework provided in this application employs the free-shape optimization method for reusing the topology optimization framework in the above embodiments, which can solve the technical problem of high software development and maintenance costs caused by the separation between the existing free-shape optimization method for reusing the topology optimization framework and the topology optimization framework. Compared with the prior art, the beneficial effects of the free-shape optimization device for reusing the topology optimization framework provided in this application are the same as the beneficial effects of the free-shape optimization method for reusing the topology optimization framework provided in the above embodiments, and other technical features in the free-shape optimization device for reusing the topology optimization framework are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0103] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0104] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0105] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the free-shape optimization method of the reused topology optimization framework in the above embodiments.
[0106] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or Flash Memory), optical fibers, CD-ROM (CD-Read Only Memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0107] The aforementioned computer-readable storage medium may be included in a freeform optimization device that reuses the topology optimization framework; or it may exist independently and not be assembled into a freeform optimization device that reuses the topology optimization framework.
[0108] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a free-form optimization device using a reused topology optimization framework, cause the free-form optimization device to: acquire boundary nodes of an initial mesh, wherein the boundary nodes include at least principal domain boundary nodes and subdomain boundary nodes; determine a spatial neighborhood weight matrix and design variable points based on the boundary nodes, wherein the design variable points include at least principal domain design variable points and subdomain design variable points, the design variables of each design variable point having fixed upper and lower limits for each directional component, and the design variable being the total displacement increment vector of the design variable point relative to the initial position of the boundary node; calculate the shape sensitivity of the boundary nodes based on the mesh configuration of the current mesh; update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain updated design variable points; update the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain updated boundary nodes; and determine the target shape based on the updated boundary nodes.
[0109] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including LAN (Local Area Network) or WAN (Wide Area Network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0111] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0112] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the free-shape optimization method of the above-described reused topology optimization framework. This solves the technical problem of high software development and maintenance costs caused by the disconnect between the existing free-shape optimization method of the reused topology optimization framework and the topology optimization framework itself. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the free-shape optimization method of the reused topology optimization framework provided in the above embodiments, and will not be repeated here.
[0113] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the free-form optimization method for the reused topology optimization framework as described above.
[0114] The computer program product provided in this application can solve the technical problem of high software development and maintenance costs caused by the disconnect between the existing free-shape optimization method and the topology optimization framework. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the free-shape optimization method with the reused topology optimization framework provided in the above embodiments, and will not be repeated here.
[0115] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A free-form optimization method that reuses a topology optimization framework, characterized in that, The method includes: Obtain the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes; The spatial neighborhood weight matrix and design variable points are determined based on the boundary nodes. The design variable points include at least main domain design variable points and subdomain design variable points. The directional components of the design variables of the design variable points have fixed upper and lower limits. The design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes. Calculate the shape sensitivity of the boundary nodes based on the current mesh configuration; The design variable points are updated based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points. The boundary nodes are updated based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes. The target shape is determined based on the updated boundary nodes.
2. The method as described in claim 1, characterized in that, The step of updating the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points includes: Based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix, the sensitivity is backpropagated and superimposed to obtain the total sensitivity of the main domain design variable points. The design variable points are updated based on the total sensitivity to obtain the updated design variable points.
3. The method as described in claim 2, characterized in that, The shape sensitivity of the boundary node includes at least the shape sensitivity of the main domain boundary node and the shape sensitivity of the subdomain boundary node; The step of backpropagating and superimposing the sensitivity based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the total sensitivity of the principal domain design variable points includes: Based on the transpose of the spatial neighborhood weight matrix, the shape sensitivity of the main domain boundary node is back-transferred to the main domain design variable point to obtain the shape sensitivity of the main domain design variable point. Based on the transpose of the spatial neighborhood weight matrix, the shape sensitivity of the subdomain boundary node is back-transferred to the subdomain design variable point to obtain the shape sensitivity of the subdomain design variable point. Based on the mapping relationship between the main domain design variable points and the subdomain design variable points, the shape sensitivity of the subdomain design variable points is superimposed with the shape sensitivity of the main domain design variable points to obtain the total sensitivity of the main domain design variable points.
4. The method as described in claim 2, characterized in that, The updated design variable points include at least the updated primary domain design variable points and the updated subdomain design variable points; The step of updating the design variable points based on the total sensitivity to obtain the updated design variable points includes: The total sensitivity is input into a preset optimization solver to obtain the main domain design variables; The main domain design variable points are updated based on the main domain design variables to obtain the updated main domain design variable points; The updated primary domain design variable points are geometrically transformed to obtain the updated subdomain design variable points.
5. The method according to any one of claims 1 to 4, characterized in that, The updated boundary nodes include at least the updated main domain boundary nodes and the updated subdomain boundary nodes; The step of updating the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes includes: The main domain design variable and the subdomain design variable are obtained based on the difference in displacement increment between the design variable point and the updated design variable point; Using the spatial neighborhood weight matrix, the main domain design variables and the subdomain design variables are mapped to the main domain boundary nodes and the subdomain boundary nodes, respectively, to obtain the updated main domain boundary nodes and the updated subdomain boundary nodes.
6. The method according to any one of claims 1 to 4, characterized in that, The step of determining the target shape based on the updated boundary nodes includes: Using the updated boundary nodes as displacement boundary conditions, the internal mesh nodes are solved to obtain the target internal mesh nodes; An optimized mesh is generated based on the updated boundary nodes and the target internal mesh nodes; Obtain the current iteration number, and when the current iteration number meets the preset convergence condition, use the optimized mesh as the target mesh; The target shape is determined based on the target grid.
7. The method according to any one of claims 1 to 4, characterized in that, The step of calculating the shape sensitivity of the boundary nodes based on the current mesh configuration includes: Finite element analysis is performed based on the current mesh configuration to obtain displacement, stress, objective function values, and constraint function values. The shape sensitivity of the boundary node is calculated based on the displacement, the stress, the objective function value, and the constraint function value.
8. The method according to any one of claims 1 to 4, characterized in that, The steps for determining the spatial neighborhood weight matrix based on the boundary nodes include: Using the boundary node as the center of a sphere, search for neighboring nodes within a preset filtering radius to obtain the set of neighboring nodes corresponding to the boundary node; Calculate the spatial distance between each neighboring node and the boundary node based on the neighboring node set; The initial weight value is determined based on the spatial distance; The initial weight values are normalized to obtain normalized weight values; The spatial neighborhood weight matrix is determined based on the normalized weight values.
9. A free-form optimization device that reuses a topology optimization framework, characterized in that, The free-form optimization device of the reuse topology optimization framework includes: An acquisition module is used to acquire the boundary nodes of the initial mesh, wherein the boundary nodes include at least the main domain boundary nodes and the subdomain boundary nodes; The determination module is used to determine the spatial neighborhood weight matrix and design variable points based on the boundary nodes. The design variable points include at least main domain design variable points and subdomain design variable points. The directional components of the design variables of the design variable points have fixed upper and lower limits. The design variable is the total displacement increment vector of the design variable points relative to the initial position of the boundary nodes. The determining module is also used to calculate the shape sensitivity of the boundary nodes based on the mesh configuration of the current mesh; The update module is used to update the design variable points based on the shape sensitivity of the boundary nodes and the transpose of the spatial neighborhood weight matrix to obtain the updated design variable points. The update module is further configured to update the boundary nodes based on the design variable points, the updated design variable points, and the spatial neighborhood weight matrix to obtain the updated boundary nodes. An optimization module is used to determine the target shape based on the updated boundary nodes.
10. A free-form optimization device that reuses a topology optimization framework, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the free-form optimization method of the reused topology optimization framework as described in any one of claims 1 to 8.
