Structural design method, system, device and medium based on elastic deformation controllable output force
By using finite element analysis and mesh model adjustments, controllable output force can be generated at specific locations, solving the problem that existing structural designs cannot generate specified output force and enhancing the functionality and adaptability of the structure.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SOUTH CHINA UNIV OF TECH
- Filing Date
- 2022-07-19
- Publication Date
- 2026-04-21
AI Technical Summary
Existing structural design methods cannot generate a specified output force at a specific location, nor can they fully utilize the elastic deformation recovery force of the structure, resulting in complex and difficult connections.
By using a structural design method based on controllable output force through elastic deformation, and by employing finite element analysis and mesh model adjustment, the magnitude and location of the output force can be precisely controlled. Combined with computer equipment and storage media, the controllable output of the structure can be achieved.
It enables the generation of controllable output force at a specified location, enhancing the functionality and application range of the structure. It is suitable for both traditional and advanced structural designs and meets actual performance indicators.
Smart Images

Figure CN115358107B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of structural design technology, and in particular relates to a structural design method, system, computer equipment and storage medium based on controllable output force of elastic deformation. Background Technology
[0002] Currently, structural design work is primarily conducted within the framework of existing design codes. First, based on the principles and scheme, the usage requirements and constraints of the structure are determined, and a reasonable structural type and materials are selected. Then, in conjunction with the design codes, appropriate cross-sectional forms are selected based on the different stress states of each component, and the cross-sectional dimensions are determined. Finally, the overall structural design scheme is verified, and parameters such as strength, stiffness, and stability are checked to ensure that the structural design scheme meets actual needs.
[0003] However, structures designed using traditional methods cannot generate specified output forces at specific locations, and they do not fully utilize the restoring force generated by elastic deformation. Furthermore, since the individual structural components cannot generate output forces themselves, special connection devices or processing techniques are required to assemble them into a complete structure, increasing the complexity and difficulty of use. Summary of the Invention
[0004] To address the shortcomings of the prior art, this invention provides a structural design method, system, computer device, and storage medium based on controllable output force of elastic deformation. The structure designed based on this method can generate output force at a specific location and the magnitude of the output force can be precisely controlled, making full use of the elastic restoring force generated by the elastic deformation of the structure.
[0005] The first objective of this invention is to provide a structural design method based on controllable output force through elastic deformation.
[0006] The second objective of this invention is to provide a structural design system based on controllable output force through elastic deformation.
[0007] A third objective of this invention is to provide a computer device.
[0008] A fourth objective of this invention is to provide a storage medium.
[0009] The first objective of this invention can be achieved by adopting the following technical solution:
[0010] A structural design method based on controllable output force through elastic deformation, the method comprising:
[0011] Based on the target structure with a specified output force, determine the initial structural design and the expected output force; the expected output force includes the magnitude, direction, and location of application of the force.
[0012] A corresponding geometric model is established based on the initial structural design, and the geometric model is used as the initial model; the initial model is meshed, and material properties are added to the initial model according to the material properties of the target structure, and displacement boundary conditions are applied;
[0013] Determine the boundary conditions of the initial model force based on the expected output force;
[0014] Finite element analysis was performed on the initial model to obtain the deformation results of the initial model;
[0015] Based on the deformation results, a new mesh model is established;
[0016] The same material properties and displacement boundary conditions as the initial model are applied to the mesh model, and the reaction force of the expected output force is applied as the force boundary condition.
[0017] Finite element analysis was performed on the mesh model to obtain the deformation results of the mesh model;
[0018] If the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, then the mesh model is output and used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, the initial model is returned to be subjected to finite element analysis, and subsequent operations are continued.
[0019] Furthermore, determining the boundary conditions of the initial model force based on the expected output force includes:
[0020] Determine the overall deformation direction of the initial model based on the direction of the expected output force;
[0021] Based on the overall deformation direction and the expected output force, the direction and magnitude of the deformation driving force are set;
[0022] The deformation driving force is used as the boundary condition for the initial model force.
[0023] Furthermore, the boundary conditions for adjusting the initial model force are to adjust the magnitude and direction of the deformation driving force.
[0024] Furthermore, the initial model is divided into meshes to obtain mesh information; the mesh information includes the cell number, node number, and node coordinates of the mesh.
[0025] Furthermore, finite element analysis is performed on the initial model to obtain the deformation results of the initial model, including:
[0026] Write the data of the initial model into a text file in a format readable by the finite element analysis tool; wherein, the data includes the mesh information, material properties, displacement boundary conditions, and force boundary conditions of the initial model;
[0027] Based on the text file, the finite element analysis tool establishes the corresponding finite element model;
[0028] The finite element model is solved using the solver of the finite element analysis tool to obtain the solution result file;
[0029] The solution result file is the deformation result of the initial model.
[0030] Furthermore, establishing a new mesh model based on the deformation result includes:
[0031] Extract the displacement of each mesh node from the deformation results;
[0032] The new grid node coordinates are obtained by adding the displacement of each grid node to the coordinates of each grid node in the initial model, and the new grid node coordinates are used as the new node coordinates to build the grid model.
[0033] Furthermore, the target structure is a structural component suitable for use in engineering practice or daily life.
[0034] The second objective of this invention can be achieved by adopting the following technical solution:
[0035] A structural design system based on controllable output force through elastic deformation, the system comprising:
[0036] The determination module is used to determine the initial structural design and the expected output force based on the structure of the specified output force; the expected output force includes the magnitude, direction and location of the force.
[0037] The first model building module is used to build a corresponding geometric model based on the initial structural design, and use the geometric model as the initial model; to mesh the initial model, and to add material properties and apply displacement boundary conditions to the initial model according to the material properties of the target structure; and to determine the boundary conditions of the initial model force according to the expected output force.
[0038] The first deformation result generation module is used to perform finite element analysis on the initial model to obtain the deformation result of the initial model;
[0039] The second model building module is used to build a new mesh model based on the deformation results; apply the same material properties and displacement boundary conditions as the initial model to the mesh model, and apply the reaction force of the expected output force as the force boundary condition;
[0040] The second deformation result generation module is used to perform finite element analysis on the mesh model to obtain the deformation result of the mesh model;
[0041] The structural design output module is used to output the mesh model if the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, and the mesh model is used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, and the module returns to the first deformation result generation module to continue to perform subsequent operations.
[0042] The third objective of this invention can be achieved by adopting the following technical solution:
[0043] A computer device includes a processor and a memory for storing a processor-executable program, wherein the processor implements the above-described structural design method when executing the program stored in the memory.
[0044] The fourth objective of this invention can be achieved by adopting the following technical solution:
[0045] A storage medium storing a program, which, when executed by a processor, implements the above-described structural design method.
[0046] The present invention has the following advantages over the prior art:
[0047] The structure designed in this invention can output controllable force within a specified area, enhancing its functionality and broadening its application range. This design method has no special requirements for the initial structural design; structures designed using traditional methods or advanced methods such as topology optimization can be used as the initial design. The structure obtained using this method can be further tested for strength, stiffness, and stability to ensure it meets the performance indicators for specific applications, thus enabling its deployment in actual production. This demonstrates that this method can be well integrated with existing structural design methods and results, exhibiting excellent adaptability and scalability. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0049] Figure 1 This is a flowchart of a structural design method based on controllable output force by elastic deformation according to Embodiment 1 of the present invention.
[0050] Figure 2 This is a schematic diagram of the initial structural design of Embodiment 1 of the present invention.
[0051] Figure 3 This is a schematic diagram of the geometric model of the initial model in Embodiment 1 of the present invention.
[0052] Figure 4 A schematic diagram of adding a mesh model to the initial model of Embodiment 1 of the present invention.
[0053] Figure 5 This is a schematic diagram of applying displacement boundary conditions to the initial model in Embodiment 1 of the present invention.
[0054] Figure 6 This is a schematic diagram of the boundary conditions for applying forces to the initial model in Embodiment 1 of the present invention.
[0055] Figure 7 This is a schematic diagram of the deformation results of the initial model in Embodiment 1 of the present invention based on finite element analysis.
[0056] Figure 8 This is a schematic diagram of the mesh model of the new model in Embodiment 1 of the present invention.
[0057] Figure 9 This is a schematic diagram of the finite element analysis model of the new model in Embodiment 1 of the present invention.
[0058] Figure 10 This is a schematic diagram of the final output structure design of Embodiment 1 of the present invention.
[0059] Figure 11 This is a schematic diagram of the initial structural design domain of Embodiment 2 of the present invention.
[0060] Figure 12 This is a schematic diagram of the geometric model of the initial structural design domain in Embodiment 2 of the present invention.
[0061] Figure 13 This is a schematic diagram of the mesh model of the initial structural design domain in Embodiment 2 of the present invention.
[0062] Figure 14 A schematic diagram of adding displacement boundary conditions to the initial structural design model of Embodiment 2 of the present invention.
[0063] Figure 15 A schematic diagram showing the addition of force boundary conditions to the initial structural design model of Embodiment 2 of the present invention.
[0064] Figure 16 This is a schematic diagram of the optimization results of the initial structural design model in Embodiment 2 of the present invention.
[0065] Figure 17 This is a schematic diagram of the initial structural design of Embodiment 2 of the present invention.
[0066] Figure 18 A schematic diagram of adding displacement boundary conditions to the initial model of Embodiment 2 of the present invention.
[0067] Figure 19 A schematic diagram showing the addition of force boundary conditions to the initial model of Embodiment 2 of the present invention.
[0068] Figure 20 This is a schematic diagram of the deformation results of the initial model in Embodiment 2 of the present invention based on finite element analysis.
[0069] Figure 21 This is a schematic diagram of the mesh model of the new model in Embodiment 2 of the present invention.
[0070] Figure 22 This is a schematic diagram of the finite element analysis model of the new model in Embodiment 2 of the present invention.
[0071] Figure 23 This is a schematic diagram of the final output structure design of Embodiment 2 of the present invention.
[0072] Figure 24 This is a structural block diagram of the structural design system based on controllable output force of elastic deformation according to Embodiment 3 of the present invention.
[0073] Figure 25 This is a structural block diagram of the computer device according to Embodiment 4 of the present invention. Detailed Implementation
[0074] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. It should be understood that the specific embodiments described are merely used to explain this application and are not intended to limit this application.
[0075] The structural design method based on controllable output force due to elastic deformation provided by this invention is applicable to structural components used in engineering practice or daily life. The following embodiments use cantilever beams and clamps in engineering structures as examples to illustrate the method provided by this invention.
[0076] Example 1:
[0077] This embodiment uses the design and manufacture of a cantilever beam with a specified output force as an example, employing co-simulation design using ANSYS's classic interface Mechanical APDL and MATLAB. ANSYS is a globally renowned large-scale general-purpose finite element analysis software, widely used in simulation analysis fields such as structures, fluid dynamics, electromagnetics, and multiphysics coupling. Its classic interface Mechanical APDL provides powerful pre-processors, solvers, and post-processors. Furthermore, ANSYS provides the parametric design language APDL for users to write parametric programs to realize the entire finite element analysis process. MATLAB is currently a mainstream scientific computing software with efficient and powerful numerical calculation capabilities, and can interact with ANSYS by writing function files. This embodiment achieves structural design through interaction between ANSYS's classic interface Mechanical APDL and MATLAB, with the structure manufactured using a 3D printer.
[0078] The finite element method (FEM) is a numerical method for solving boundary value problems of partial differential equations, initially applied to the structural strength calculation of aircraft. With the development of computer technology, the FEM has become the most commonly used numerical analysis method in structural analysis and has been extended to almost all scientific and technological fields, becoming a practical, efficient, and widely applied numerical method. In this embodiment, the numerical analysis of the structural model will also employ the FEM under the linear elastic assumption.
[0079] like Figure 1 As shown, the structural design method based on controllable output force due to elastic deformation provided in this embodiment includes the following steps:
[0080] S1. Determine the initial structural design and expected output force.
[0081] The initial structural design of this embodiment is a cantilever beam with a length of 0.6 m, a width of 0.05 m, and a height of 0.3 m, fixed at the left end. Since this structure is analyzed using a plane stress problem model, only plane stress is considered. Figure 2 The model shown is a two-dimensional model with a length of 0.6 m and a height of 0.3 m. When importing it into ANSYS to generate a finite element model, you can input the element thickness (i.e., the dimension corresponding to the width, 0.05 m).
[0082] The basic idea behind designing a structure with controllable output force is to predetermine an output position. If a new model, built based on a certain deformation result of the initial model, can, under the action of the expected output force reaction, ensure that the coordinate difference between the corresponding point of the output force application position in the new model's deformation result and the corresponding point of the output force application position in the initial model is within an allowable range, then this new model can be used as the final design output. This is because when the point corresponding to the output force application position in the final design reaches the corresponding point in the initial model, it can generate an expected output force on other objects at that location.
[0083] Therefore, the key to designing a structure with controllable output force is to establish and analyze two finite element models. The first model is the initial model established based on the initial structural design, namely the models established in S1-S9; the second model is a new model established based on the deformation results of the finite element analysis of the initial model, namely the models established in S10-S12.
[0084] If, under the action of the expected output force reaction, the difference between the coordinates of the output force application location in the deformation results of the new model and the coordinates in the initial model is within the allowable error range, then the new model can be used as the final design output. In the final design's usage state, that is, when the point corresponding to the output force application location of the initial structure coincides within the error range, the expected output force will be generated at that location.
[0085] Therefore, it is necessary to first determine the magnitude and location of the expected output force of the structure. In this embodiment, the expected output force is 40 kN, directed vertically downwards along the negative y-axis, and located at the lower right corner of the cantilever beam.
[0086] S2. Establish a geometric model based on the initial structural design.
[0087] Based on the initial structural design, a corresponding geometric model is established. This geometric model is the initial model, used for subsequent analysis. In this embodiment, the classic ANSYS interface Mechanical APDL is used for geometric modeling.
[0088] The specific implementation method is as follows: Open the ANSYS classic interface Mechanical APDL and enter the preprocessing module. Based on the initial structural design, select geometric elements such as points, lines, and surfaces under the Modeling option in the Processor menu to perform geometric modeling. Save the geometric model after modeling is complete. The established geometric model is as follows: Figure 3 As shown.
[0089] S3. Initialize the mesh on the surface of the model.
[0090] First, a mesh model needs to be established for applying displacement and force boundary conditions to generate a complete finite element model. In this embodiment, mesh information (including element number, node number, and node coordinates), material properties, displacement boundary conditions, and force boundary conditions are all generated by writing function files in MATLAB, generating corresponding ANSYS-readable APDL command stream files, and then importing them into ANSYS to generate the corresponding finite element model.
[0091] The mesh model can be created by preprocessing the geometric model using the Mechanical APDL module, and then exporting the mesh information for subsequent calculations. For simple, regular geometric models, mesh information can also be generated directly using function files written in MATLAB. In this embodiment, a function file written in MATLAB is used to directly generate the mesh information of the geometric model. The element type is set to four-node rectangular elements. Finally, the geometric model created in S2 is meshed as follows: Figure 4 As shown, this is a mesh model with 60 elements in the x-direction and 30 elements in the y-direction.
[0092] The specific implementation method is as follows: write a function file in MATLAB to generate variables containing cell number, node number, and node coordinates.
[0093] S4. Add material properties to the initial model.
[0094] Add the corresponding material properties of the target structure to the initial model, including elastic modulus and Poisson's ratio. The types of material properties required for finite element analysis may differ depending on the structural design problem. This embodiment is a two-dimensional plane stress problem, therefore only the elastic modulus and Poisson's ratio of the material need to be considered. The material properties set in this embodiment are: elastic modulus... Poisson's ratio .
[0095] The specific implementation method is as follows: create material property variables and assign values in the MATLAB function file.
[0096] S5. Apply displacement boundary conditions to the initial model.
[0097] Establishing a complete finite element analysis model also requires applying displacement boundary conditions corresponding to the model's operating conditions. These displacement boundary conditions specifically include fixed constraints restricting all motions, displacement constraints restricting displacement in a specific direction, and rotational constraints restricting rotation in a specific direction. The displacement boundary conditions set in this embodiment are as follows: Figure 5 As shown. The edge represented by label A is a fixed boundary, indicating that the leftmost edge is a fixed edge, and the degrees of freedom in the x and y directions of the leftmost node are restricted.
[0098] The specific implementation method is as follows: create the degree of freedom variables of the mesh nodes in the MATLAB function file, and assign the degree of freedom of the nodes with displacement constraints to 0.
[0099] S6. Determine the overall deformation direction of the initial model based on the expected output force of the structure.
[0100] Building a new model requires first obtaining the deformation results of the initial model, thus necessitating the application of a deformation driving force to the initial model. To determine the magnitude and direction of this driving force, the overall deformation direction of the initial model needs to be pre-judged based on the expected output force. Determining a suitable initial overall deformation direction can effectively reduce the number of adjustments to the deformation driving force, thereby improving subsequent iteration speed and overall computational efficiency.
[0101] In this embodiment, the expected output force of the cantilever beam is vertically downward, so the initial model should deform entirely in the lower left corner. Thus, the new model built based on the deformation results of the initial model, under the action of the expected output force reaction force, will have coordinates close to the corresponding position in the initial model at the output force's location (i.e., the lower right corner). In subsequent steps, the deformation driving force is continuously adjusted to gradually reduce the coordinate error until it converges to an acceptable range. Therefore, the final determined overall deformation direction is lower left.
[0102] S7. Set the magnitude and direction of the deformation driving force according to the overall deformation direction.
[0103] Since the initial model's overall deformation direction, as determined by S6, is downward to the left, a deformation driving force should be applied to cause the initial model to deform downward to the left. The magnitude of the expected output force should also be considered to determine an appropriate deformation driving force to improve iterative computation efficiency. In subsequent iterations, the deformation driving force will be continuously adjusted to meet the output force requirements.
[0104] In this embodiment, at the location where the expected output force is applied, i.e., the lower right corner, a deformation driving force is applied in the direction of downward and leftward. Its x-direction component is -10 kN, and its y-direction component is -40 kN.
[0105] S8. Apply deformation driving force to the initial model as a boundary condition for the force.
[0106] The deformation driving force determined in S7 is applied as a boundary condition to the initial model, thereby establishing a complete finite element model for subsequent calculation and analysis.
[0107] The specific implementation method is as follows: An external force vector is created in the MATLAB function file, and the value of the deformation driving force vector at the corresponding position in the external force vector is assigned the value determined in S7. The final finite element model is as follows. Figure 6 As shown.
[0108] S9. Use the finite element analysis tool to perform finite element analysis on the initial model, so that the initial model deforms in the direction of the output force.
[0109] An initial finite element model is built and analyzed based on the previously generated model data. A function file is written in MATLAB to write the model data into a text file using an APDL command stream format readable by ANSYS. ANSYS reads this text file and builds the corresponding finite element model. After building the finite element model, the ANSYS solver is used to solve it. Once the solution is complete, ANSYS outputs the solution result file.
[0110] The specific implementation method is as follows: An APDL command stream file is written in the MATLAB function file, inputting the mesh information, material properties, displacement boundary conditions, and force boundary conditions of the initial model to establish the initial finite element model. Then, the ANSYS solver is called to solve the model. The deformation results of the initial model are as follows: Figure 7 As shown. After the solution is completed, the solution result file will be output in the specified file path.
[0111] S10. Use the deformation results of the initial model in S9 to create a new mesh model.
[0112] After performing finite element analysis on the initial model, the displacements of each node in the initial model can be obtained. Adding the displacements of each node to its coordinates in the initial model yields the coordinates of each node in the deformation results of the initial model. These coordinates are then used as the new node coordinates to build a new mesh model.
[0113] The specific steps are as follows: Extract the displacements of each node from the finite element analysis result file output from S10; write a function file in MATLAB to add the initial node coordinate vectors to the node displacement vectors to generate the node coordinate vectors of the new mesh model. The newly established mesh model is as follows: Figure 8 As shown.
[0114] S11. Apply the same material properties and displacement boundary conditions as the initial model to the new model.
[0115] In order to ensure that the designed structure meets the material and usage requirements of the initial structural design, the new mesh model needs to be subjected to the same material properties and displacement boundary conditions as the initial model.
[0116] The specific steps are as follows: Write a function file in MATLAB to create material property variables for the new model and assign them the same values as the initial model's material property variables; create degree-of-freedom variables for the mesh nodes of the new model, and assign the same constraint values to the nodal degrees of freedom corresponding to the constraint nodes of the initial model. In this example, all constraint values are 0.
[0117] S12, Apply the reaction force of the expected output force to the new model as the boundary condition of the force.
[0118] If the new model can generate the expected output force at a specified location, it is equivalent to the position of the output force in the deformation result of the new model coinciding with the position of the output force in the initial model within the error range under the action of the reaction force of the expected output force. Therefore, in order to determine whether the current new model meets the expected output force requirement, it is necessary to apply the reaction force of the expected output force as the boundary condition of the force to the new model, and construct a boundary condition such as... Figure 9 The new finite element analysis model is shown.
[0119] The specific steps are as follows: create an external force vector in the MATLAB function file, and assign the value of the position where the output force is applied to the corresponding position in the external force vector to the reaction force of the expected output force.
[0120] S13. Use finite element analysis tools to perform finite element analysis on the new model and obtain the deformation results of the new model.
[0121] Similar to the analysis process of the initial model, an initial finite element model is established and analyzed based on the model data of the previously generated new model to obtain the corresponding analysis results.
[0122] The specific implementation method is as follows: Write an APDL command stream file in the MATLAB function file, input the mesh information, material properties, displacement boundary conditions, and force boundary conditions of the new model to establish a new finite element analysis model, and then call the ANSYS solver to solve it. After the solution is completed, output the solution result file in the specified file path.
[0123] S14. Determine whether the current structural design meets the output requirements.
[0124] After obtaining the finite element analysis results of the new model, determine whether the coordinate difference between the output force application position in the deformation result of the new model and the output force application position in the initial model is within the allowable error range. If it is, output the mesh model in S10; otherwise, return to step S7 and adjust the magnitude of the deformation driving force in the x and y directions according to the coordinate difference in the x and y directions, respectively. Note that because the magnitudes of the component forces in both directions are changed simultaneously, the direction of the resultant force, i.e., the direction of the deformation driving force, may also change. After determining the magnitude and direction of the deformation driving force for the next iteration, execute steps S8 to S14 again.
[0125] The specific operation is as follows: Extract the displacement at the location of the output force from the finite element analysis result file output by S13. Write a function in MATLAB to add the displacement result to the coordinates of the output force location in the new model's deformation result, obtaining the coordinates of the output force location in the new model's deformation result. Determine whether the difference between this coordinate and the coordinates of the output force location in the initial model is within the allowable range. In this embodiment, the allowable range is set to 1×10⁻⁶. -5If the absolute value of the difference is within the allowable range, the mesh model in S10 is output as a data file for subsequent 3D printing; if it exceeds the range, the program returns to the S7 module for adjusting the deformation driving force, continuing iterative adjustment until the output result meets the error requirements. The final output result is as follows: Figure 10 As shown.
[0126] S15. Import the output results into the 3D printer for the production and manufacturing of structural components.
[0127] Import the output data file into Rhino for modeling. After snapping the model edges to form a surface, extrude a solid from the surface, setting the solid thickness to a predetermined value (0.05m for the width in this example). Output the solid model. Import the solid model into Ultimaker Cura slicing software to generate a bracket Gcode file. Finally, import the Gcode file into a 3D printer to complete the printing process. The manufactured components can then be used as needed.
[0128] Example 2:
[0129] This embodiment uses the design and manufacture of a fixture with a specified output force as an example. The structural design with controllable output force is achieved through interaction between the classic ANSYS interface Mechanical APDL and MATLAB. The fixture is manufactured using a 3D printer.
[0130] The structural design method based on controllable output force of elastic deformation provided in this embodiment specifically includes the following steps:
[0131] S1. Determine the initial structural design and expected output force.
[0132] The initial structure in this embodiment is designed using a topology optimization method. Topology optimization is a mathematical method that optimizes the material distribution within a given region based on given load conditions, constraints, and performance indicators. Structures designed using topology optimization can significantly reduce material usage while achieving the expected performance indicators. After decades of development, topology optimization has been widely used in conceptual design in fields such as structures, fluid dynamics, heat transfer, and acoustics. Mainstream commercial simulation software, such as ANSYS, ABAQUS, and COMSOL, have integrated topology optimization modules. Introducing the topology optimization method in this example is not mandatory; it is only used to demonstrate that this design method has no special requirements for the initial structure design and has a wide range of applications.
[0133] The initial design of this example will employ the parametric level set method for, for example... Figure 11 The design domain shown is optimized, still using the analysis mode of plane stress problem, and the thickness of the fixture is set to 0.05 m.
[0134] In this embodiment, the expected output force is applied at the right corner of the top edge of the fixture, with a magnitude of 10 KN and a direction of horizontally to the right along the positive x-axis.
[0135] The objective function for optimization is set as follows: maximizing the overall stiffness of the structure under the action of the expected output force and reaction force. The material volume fraction is set to 0.5, meaning the optimized material usage is half of the initial material usage. The specific process includes:
[0136] Use Mechanical APDL to create the geometric model of the initial design domain and perform mesh generation;
[0137] The output grid information is imported into MATLAB and stored as variables.
[0138] Add the same displacement boundary conditions and solid material properties as the initial model;
[0139] Set relevant optimization variables and parameters, and call a parameterized level set optimization algorithm written in MATLAB to optimize the structure. Different optimization design methods can be used for the initial design, including but not limited to the parameterized level set method;
[0140] After optimization, output the optimization result file.
[0141] Since the fixture in this embodiment has a symmetrical structure, only the left half of the structure needs to be modeled, and symmetrical boundary conditions need to be set at the axis of symmetry. (Optimized Design) Figure 17 and final design Figure 23 (All generated through symmetry operations)
[0142] In point 1, Mechanical APDL is used to establish the geometric model of the initial design domain and complete the mesh generation. Since the initial structural design domain is not a regular geometric shape, Boolean operations need to be performed on various geometric shapes, including circles and rectangles, and the Mechanical APDL mesh generation function needs to be used to create a mesh model.
[0143] The specific steps are as follows: Enter Mechanical APDL, and based on the initial structural design, create various geometric shapes in Modeling under the Processor option. Then click the Operate option under Modeling, expand the Booleans option, and use the Boolean operation function to modify the created geometric shapes, ultimately obtaining the following... Figure 12 The geometric model is shown below. After saving the geometric model, click on Meshing under the Processor option, and select MeshTool to mesh the geometric model, ultimately obtaining the following result: Figure 13 The mesh model shown.
[0144] In point 2, the mesh model generated by ANSYS is first output as a text file, and then a MATLAB function file is written to read the mesh information.
[0145] In point 3, the same solid material properties as the initial model are set: elastic modulus. Poisson's ratio The settings are the same as the initial model, such as... Figure 14 The displacement boundary conditions shown are as follows: the bottom edge marked by label A is a fixed edge, restricting the degrees of freedom of all directions of the nodes on this edge; the edge corresponding to the axis of symmetry marked by label B is a symmetry boundary condition, restricting the degrees of freedom of the nodes on this edge in the x direction.
[0146] In point 4, before invoking the optimization algorithm, the expected output force reaction is applied to the current initial design model as a boundary condition. The applied force is 10 kN in magnitude and horizontally to the left in the negative x-axis direction, as shown below. Figure 15 As shown.
[0147] In point 5, the output after optimization is as follows: Figure 16 The optimization results are shown below. The final output optimization results include the mesh information of the initial design domain and the level set function values of the nodes. The final initial design is as follows: Figure 17 As shown.
[0148] S2. Establish a geometric model based on the initial design.
[0149] Because the initial design of this embodiment adopts topology optimization design, the mesh information output by the initial design and the level set function values of each node can be used for subsequent iterative calculations without the need to build a geometric model again for mesh generation.
[0150] S3. Initialize the mesh on the surface of the model.
[0151] Similar to Example 1, in this example, the mesh information (including element number, node number, and node coordinates), material properties, displacement boundary conditions, and force boundary conditions are all generated by writing function files in MATLAB, producing corresponding ANSYS-readable APDL command stream files. Importing these command stream files into ANSYS will then generate the corresponding finite element model.
[0152] Because the initial design of this embodiment adopts topology optimization design, the mesh information of the initial design domain and the level set function values of each node can be used for subsequent iterative calculations without the need to re-grid.
[0153] S4. Add material properties to the initial model.
[0154] The initial model is supplemented with the solid material properties of the target structure for subsequent finite element analysis, including elastic modulus and Poisson's ratio. In this embodiment, the material property is set as: elastic modulus. Poisson's ratio This embodiment employs topology optimization design, thus the material properties of each element can be obtained by interpolation based on the solid material properties and the level set function values of each element node. The specific implementation method is the same as in Embodiment 1.
[0155] S5. Apply displacement boundary conditions to the initial model.
[0156] Displacement boundary conditions are applied to establish a complete finite element analysis model. The displacement boundary conditions of the initial model are the same as those used in the initial structural topology optimization design, such as... Figure 18 As shown. The specific implementation method is the same as in Example 1.
[0157] S6. Determine the overall deformation direction of the initial model based on the expected output force of the structure.
[0158] In this embodiment, the expected output force of the fixture is horizontal to the right, so the initial model should deform as a whole to the lower right.
[0159] S7. Set the magnitude and direction of the deformation driving force according to this direction.
[0160] Since the initial model's overall deformation direction, as determined by S6, is downward to the right, a deformation driving force should be applied to cause the initial model to deform downward to the right. In this embodiment, a force is applied at the location where the expected output force is expected. Figure 19 As shown, the direction is downward and to the right, representing the deformation driving force. Its x-axis component is 10 kN, and its y-axis component is -10 kN.
[0161] S8. Apply deformation driving force to the initial model as a boundary condition for the force.
[0162] The deformation driving force determined in S7 is used as the boundary condition of the initial model. The specific implementation method is the same as in Example 1.
[0163] S9. Use the finite element analysis tool to perform finite element analysis on the initial model, so that the initial model deforms in the direction of the output force.
[0164] A finite element model is built and analyzed using the pre-defined data, following the same operational method as in Example 1. The final result is as follows: Figure 20 The deformation results are shown.
[0165] S10. Use finite element software to establish a new mesh model from the deformation results of the initial model in S9.
[0166] After performing finite element analysis on the initial model, the displacements of each node in the initial model can be obtained. Adding the displacements to the coordinates of each node in the initial model yields the coordinates of each node in the deformed initial model. These coordinates are then used as the basis for establishing new node coordinate systems. Figure 21 The new mesh model is shown. The specific operation is the same as in Example 1.
[0167] S11. Apply the same material properties and displacement boundary conditions as the initial model to the new model.
[0168] Apply the same material properties and displacement boundary conditions as the initial model to the new mesh model. The specific operation is the same as in Example 1.
[0169] S12, Apply the reaction force of the expected output force to the new model as the boundary condition of the force.
[0170] Applying the reaction force of the expected output force as the boundary condition to the new model, constructing a system as follows: Figure 22 The new finite element analysis model is shown. The specific operation is the same as in Example 1.
[0171] S13. Use finite element analysis tools to perform finite element analysis on the new model and obtain the deformation results of the new model.
[0172] An initial finite element model is built from the model data of the previously generated new model and analyzed to obtain the corresponding analysis results. The specific operation is the same as in Example 1.
[0173] S14. Determine whether the current structural design meets the output requirements.
[0174] Determine if the coordinate difference between the output force application location in the new model deformation result and the output force application location in the initial model is within the allowable error range. If it is, output the mesh model in S10; otherwise, return to step S7, adjust the magnitude of the deformation driving force in the x and y directions according to the coordinate difference in the x and y directions respectively, and execute steps S8 to S14 again. The specific operation is the same as in Example 1. The final output result is as follows. Figure 23 As shown.
[0175] S15. Import the output results into the 3D printer for the production and manufacturing of structural components.
[0176] Import the output data file into Rhino for modeling. After snapping the model edges to form a surface, extrude a solid from the surface. Set the solid thickness to a predetermined value (0.05 μm in the thickness direction in this example). After completion, output the solid model. Import the solid model into Ultimaker Cura slicing software to generate a bracket Gcode file. Finally, import the Gcode file into a 3D printer to complete the printing process. The manufactured components can then be used as needed.
[0177] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware, and the corresponding program can be stored in a computer-readable storage medium.
[0178] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the order of execution of the described steps may be changed. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0179] Example 3:
[0180] like Figure 24 As shown, this embodiment provides a structural design system based on controllable output force of elastic deformation. The device includes a determination module 2401, a first model building module 2402, a first deformation result generation module 2403, a second model building module 2404, a second deformation result generation module 2405, and a structural design output module 2406, wherein:
[0181] The determining module 2401 is used to determine the initial structural design and the expected output force based on the structure of the specified output force; the expected output force includes the magnitude, direction and location of the force.
[0182] The first model building module 2402 is used to build a corresponding geometric model based on the initial structural design, and use the geometric model as the initial model; to mesh the initial model, and to add material properties and apply displacement boundary conditions to the initial model according to the material properties of the target structure; and to determine the boundary conditions of the initial model force according to the expected output force.
[0183] The first deformation result generation module 2403 is used to perform finite element analysis on the initial model to obtain the deformation result of the initial model;
[0184] The second model building module 2404 is used to build a new mesh model based on the deformation result; apply the same material properties and displacement boundary conditions as the initial model to the mesh model, and apply the reaction force of the expected output force as the force boundary condition;
[0185] The second deformation result generation module 2405 is used to perform finite element analysis on the mesh model to obtain the deformation result of the mesh model;
[0186] The structural design output module 2406 is used to output the mesh model if the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, and use the mesh model as the final structural design; otherwise, it adjusts the boundary conditions of the initial model force according to the coordinate difference, returns to the first deformation result generation module, and continues to perform subsequent operations.
[0187] The specific implementation of each module in this embodiment can be found in Embodiment 1 above, and will not be repeated here. It should be noted that the system provided in this embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure can be divided into different functional modules to complete all or part of the functions described above.
[0188] Example 4:
[0189] This embodiment provides a computer device, which can be a computer, such as... Figure 7 As shown, the processor 702, memory, input device 703, display 704, and network interface 705 are connected via system bus 701. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium 706 and internal memory 707. The non-volatile storage medium 706 stores the operating system, computer programs, and database. The internal memory 707 provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. When the processor 702 executes the computer programs stored in the memory, it implements the structural design method of Embodiment 1 described above, as follows:
[0190] Based on the target structure with a specified output force, determine the initial structural design and the expected output force; the expected output force includes the magnitude, direction, and location of application of the force.
[0191] A corresponding geometric model is established based on the initial structural design, and the geometric model is used as the initial model; the initial model is meshed, and material properties are added to the initial model according to the material properties of the target structure, and displacement boundary conditions are applied;
[0192] Determine the boundary conditions of the initial model force based on the expected output force;
[0193] Finite element analysis was performed on the initial model to obtain the deformation results of the initial model;
[0194] Based on the deformation results, a new mesh model is established;
[0195] The same material properties and displacement boundary conditions as the initial model are applied to the mesh model, and the reaction force of the expected output force is applied as the force boundary condition.
[0196] Finite element analysis was performed on the mesh model to obtain the deformation results of the mesh model;
[0197] If the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, then the mesh model is output and used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, the initial model is returned to be subjected to finite element analysis, and subsequent operations are continued.
[0198] Example 5:
[0199] This embodiment provides a storage medium, which is a computer-readable storage medium, storing a computer program. When the computer program is executed by a processor, it implements the structural design method of Embodiment 1 above, as follows:
[0200] Based on the target structure with a specified output force, determine the initial structural design and the expected output force; the expected output force includes the magnitude, direction, and location of application of the force.
[0201] A corresponding geometric model is established based on the initial structural design, and the geometric model is used as the initial model; the initial model is meshed, and material properties are added to the initial model according to the material properties of the target structure, and displacement boundary conditions are applied;
[0202] Determine the boundary conditions of the initial model force based on the expected output force;
[0203] Finite element analysis was performed on the initial model to obtain the deformation results of the initial model;
[0204] Based on the deformation results, a new mesh model is established;
[0205] The same material properties and displacement boundary conditions as the initial model are applied to the mesh model, and the reaction force of the expected output force is applied as the force boundary condition.
[0206] Finite element analysis was performed on the mesh model to obtain the deformation results of the mesh model;
[0207] If the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, then the mesh model is output and used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, the initial model is returned to be subjected to finite element analysis, and subsequent operations are continued.
[0208] It should be noted that the computer-readable storage medium in this embodiment can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0209] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope disclosed in the present invention, based on the technical solution and inventive concept of the present invention, shall fall within the scope of protection of the present invention.
Claims
1. A structural design method based on controllable output force due to elastic deformation, characterized in that, The method includes: Based on the target structure with a specified output force, determine the initial structural design and the expected output force; the expected output force includes the magnitude, direction, and location of application of the force. A corresponding geometric model is established based on the initial structural design, and the geometric model is used as the initial model; the initial model is meshed, and material properties are added to the initial model according to the material properties of the target structure, and displacement boundary conditions are applied; Based on the direction of the expected output force, determine the overall deformation direction of the initial model; based on the overall deformation direction and the magnitude of the expected output force, set the direction and magnitude of the deformation driving force; use the direction and magnitude of the deformation driving force as the boundary conditions of the initial model force. Finite element analysis was performed on the initial model to obtain the deformation results of the initial model; Based on the deformation results, a new mesh model is established; The same material properties and displacement boundary conditions as the initial model are applied to the mesh model, and the reaction force of the expected output force is applied as the force boundary condition. Finite element analysis was performed on the mesh model to obtain the deformation results of the mesh model; If the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, then the mesh model is output and used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, the initial model is returned to be subjected to finite element analysis, and subsequent operations are continued.
2. The structural design method according to claim 1, characterized in that, The initial model is divided into meshes to obtain mesh information, which includes the cell number, node number, and node coordinates of the mesh.
3. The structural design method according to claim 2, characterized in that, Finite element analysis was performed on the initial model to obtain the deformation results of the initial model, including: Write the data of the initial model into a text file in a format readable by the finite element analysis tool; wherein, the data includes the mesh information, material properties, displacement boundary conditions, and force boundary conditions of the initial model; Based on the text file, the finite element analysis tool establishes the corresponding finite element model; The finite element model is solved using the solver of the finite element analysis tool to obtain the solution result file; The solution result file is the deformation result of the initial model.
4. The structural design method according to claim 1, characterized in that, The step of establishing a new mesh model based on the deformation result includes: Extract the displacement of each mesh node from the deformation results; The new grid node coordinates are obtained by adding the displacement of each grid node to the coordinates of each grid node in the initial model, and the new grid node coordinates are used as the new node coordinates to build the grid model.
5. The structural design method according to any one of claims 1-4, characterized in that, The target structure is a structural component suitable for use in engineering practice or daily life.
6. A structural design system based on controllable output force due to elastic deformation, characterized in that, The system includes: The determination module is used to determine the initial structural design and the expected output force based on the structure of the specified output force; the expected output force includes the magnitude, direction and location of the force. The first model building module is used to build a corresponding geometric model based on the initial structural design, and use the geometric model as the initial model; to mesh the initial model, and to add material properties and apply displacement boundary conditions to the initial model according to the material properties of the target structure; to determine the overall deformation direction of the initial model according to the direction of the expected output force; to set the direction and magnitude of the deformation driving force according to the overall deformation direction and the magnitude of the expected output force; and to use the direction and magnitude of the deformation driving force as the boundary conditions of the initial model force. The first deformation result generation module is used to perform finite element analysis on the initial model to obtain the deformation result of the initial model; The second model building module is used to build a new mesh model based on the deformation results; apply the same material properties and displacement boundary conditions as the initial model to the mesh model, and apply the reaction force of the expected output force as the force boundary condition; The second deformation result generation module is used to perform finite element analysis on the mesh model to obtain the deformation result of the mesh model; The structural design output module is used to output the mesh model if the coordinate difference between the output force application position in the deformation result of the mesh model and the output force application position in the initial model is within a set error threshold, and the mesh model is used as the final structural design; otherwise, the boundary conditions of the initial model force are adjusted according to the coordinate difference, and the module returns to the first deformation result generation module to continue to perform subsequent operations.
7. A computer device comprising a processor and a memory for storing a processor-executable program, characterized in that, When the processor executes the program stored in the memory, it implements the structural design method according to any one of claims 1-5.
8. A storage medium storing a program, characterized in that, When the program is executed by the processor, it implements the structural design method according to any one of claims 1-5.
Citation Information
Patent Citations
Modeling and manufacturing method of structure
CN113076674A
Additive manufacturing optimization method and system
CN113239584A