CN117236111A - Fastener parametric modeling method and device, terminal equipment and storage medium - Google Patents

Fastener parametric modeling method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117236111A
CN117236111A CN202311134876.0A CN202311134876A CN117236111A CN 117236111 A CN117236111 A CN 117236111A CN 202311134876 A CN202311134876 A CN 202311134876A CN 117236111 A CN117236111 A CN 117236111A
Authority
CN
China
Prior art keywords
feature data
fastener
grid
parameterized
modeling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311134876.0A
Other languages
Chinese (zh)
Inventor
李得民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202311134876.0A priority Critical patent/CN117236111A/en
Publication of CN117236111A publication Critical patent/CN117236111A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a parametric modeling method and device for a fastener, terminal equipment and a storage medium, wherein the method comprises the following steps: obtaining geometric feature data, material feature data and grid feature data of a target fastener; and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology. According to the scheme, the geometric feature data, the material feature data and the grid feature data are obtained to serve as input parameters and are input into ABAQUS secondary development software to conduct secondary development, and finally the target parameterized model is generated.

Description

Fastener parametric modeling method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of finite element modeling, in particular to a method and a device for parametric modeling of a fastener, terminal equipment and a storage medium.
Background
With the continuous progress and development of computer science, automated modeling is becoming a current key trend. Automated modeling techniques rapidly generate complex finite element models using parametric modeling, script programming, and rule-based methods. These techniques may improve modeling efficiency, reduce human error, and ensure consistency of the model.
In the current fastener parametric modeling method in the industry, a fine modeling method is generally adopted based on the requirement of simulation accuracy. Taking a screw as a modeling object as an example, the fine modeling method fully considers contact and friction factors by establishing a complete finite element model of a screw structure, and performs simulation analysis on a screw connection area, so that the method has high calculation accuracy.
However, the fine modeling method requires complete geometric model meshing of the screws, takes a lot of time for finite element modeling, and causes huge scale of the finite element model of the whole machine. In summary, the parametric modeling method of the fastener in the industry at present has long parametric modeling time, so that the parametric modeling efficiency is low.
Disclosure of Invention
The invention mainly aims to provide a parametric modeling method, device, terminal equipment and storage medium for a fastener, and aims to shorten the parametric modeling time of the fastener and improve the parametric modeling efficiency of the fastener.
In order to achieve the above object, the present invention provides a parametric modeling method for a fastener, the parametric modeling method for a fastener comprising the steps of:
obtaining geometric feature data, material feature data and grid feature data of a target fastener;
and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
Optionally, the step of obtaining geometric feature data of the target fastener includes:
obtaining geometric parameters of the target fastener;
and extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener.
Optionally, the step of acquiring material characteristic data of the target fastener includes:
acquiring material section attribute parameters and predefined mechanical property parameters of the target fastener;
and obtaining material characteristic data of the target fastener based on the material section attribute parameter and the mechanical property parameter.
Optionally, the step of acquiring the mesh feature data of the target fastener includes:
acquiring a preset grid cell type and grid density;
And obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density.
Optionally, the step of generating the target parametric model based on the geometric feature data, the material feature data, the mesh feature data, and finite element analysis software ABAQUS secondary development technique includes:
script generation is carried out based on the geometric feature data, the material feature data and the grid feature data, so that a kernel parameterized script is obtained;
associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog box;
and acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model.
Optionally, the step of generating a script based on the geometric feature data, the material feature data, and the grid feature data to obtain a kernel parameterized script includes:
generating a kernel execution file based on the geometric feature data, the material feature data and the grid feature data;
parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into a function to obtain a kernel parameterized script.
Optionally, the step of generating a kernel execution file based on the geometric feature data, the material feature data, and the mesh feature data includes:
generating an original modeling file based on the geometric feature data, wherein the original modeling file is used for establishing an original parameterized model;
generating a model attribute file based on the material characteristic data, wherein the model attribute file is used for giving material attributes to the original parameterized model;
generating a grid division file based on the grid characteristic data, wherein the grid division file is used for carrying out grid division on the original parameterized model;
and obtaining the kernel execution file based on the original modeling file, the model attribute file and the grid division file.
In addition, to achieve the above object, the present invention also provides a fastener parametric modeling apparatus, the apparatus comprising:
the data acquisition module is used for acquiring geometric feature data, material feature data and grid feature data of the target fastener;
and the parameterized modeling module is used for generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
Optionally, the data acquisition module is further configured to:
obtaining geometric parameters of the target fastener;
and extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener.
Optionally, the data acquisition module is further configured to:
acquiring material section attribute parameters and predefined mechanical property parameters of the target fastener;
and obtaining material characteristic data of the target fastener based on the material section attribute parameter and the mechanical property parameter.
Optionally, the data acquisition module is further configured to:
acquiring a preset grid cell type and grid density;
and obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density.
Optionally, the parameterized modeling module is further configured to:
script generation is carried out based on the geometric feature data, the material feature data and the grid feature data, so that a kernel parameterized script is obtained;
associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog box;
and acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model.
Optionally, the parameterized modeling module is further configured to:
generating a kernel execution file based on the geometric feature data, the material feature data and the grid feature data;
parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into a function to obtain a kernel parameterized script.
Optionally, the parameterized modeling module is further configured to:
generating an original modeling file based on the geometric feature data, wherein the original modeling file is used for establishing an original parameterized model;
generating a model attribute file based on the material characteristic data, wherein the model attribute file is used for giving material attributes to the original parameterized model;
generating a grid division file based on the grid characteristic data, wherein the grid division file is used for carrying out grid division on the original parameterized model;
and obtaining the kernel execution file based on the original modeling file, the model attribute file and the grid division file.
In addition, in order to achieve the above object, the present invention also provides a terminal device including a memory, a processor, and a fastener parametric modeling program stored on the memory and executable on the processor, which when executed by the processor, implements the fastener parametric modeling method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a fastener parametric modeling program which, when executed by a processor, implements the fastener parametric modeling method as described above.
The embodiment of the invention provides a parameterized modeling method, a parameterized modeling device, terminal equipment and a storage medium for a fastener, wherein geometrical characteristic data, material characteristic data and grid characteristic data of a target fastener are obtained; and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology. According to the scheme, the geometric feature data, the material feature data and the grid feature data are obtained to serve as input parameters and are input into ABAQUS secondary development software to conduct secondary development, and finally the target parameterized model is generated.
Drawings
FIG. 1 is a schematic diagram of functional modules of terminal equipment to which a parametric modeling device for fasteners of the present invention belongs;
FIG. 2 is a flow chart of a first exemplary embodiment of a method of parameterized modeling of fasteners of the present invention;
FIG. 3 is a schematic flow chart of parameterized modeling of screw components based on the ABAQUS secondary development technique in a first exemplary embodiment of the fastener parameterized modeling method of the present invention;
FIG. 4 is a flow chart of a second exemplary embodiment of a method of parameterized modeling of fasteners of the present invention;
FIG. 5 is a flow chart of a third exemplary embodiment of a method of parameterized modeling of fasteners of the present invention;
FIG. 6 is a flow chart of a fourth exemplary embodiment of a method of parameterized modeling of fasteners of the present invention;
FIG. 7 is a flow chart of a fifth exemplary embodiment of a method for parameterized modeling of fasteners of the present invention;
FIG. 8 is an interactive dialog corresponding to geometric feature data in a fifth exemplary embodiment of a method for parameterized modeling of fasteners in accordance with the present invention;
FIG. 9 is an interactive dialog corresponding to material characterization data in a fifth exemplary embodiment of a method for parameterized modeling of fasteners in accordance with the present invention;
FIG. 10 is an interactive dialog corresponding to grid characteristic data in a fifth exemplary embodiment of a method for parameterized modeling of fasteners in accordance with the present invention;
FIG. 11 is a schematic flow chart diagram of a fifth exemplary embodiment of a method for parameterized modeling of fasteners in accordance with the present application;
FIG. 12 is a flowchart of a sixth exemplary embodiment of a method for parameterized modeling of fasteners in accordance with the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The main solutions of the embodiments of the present application are: obtaining geometric feature data, material feature data and grid feature data of a target fastener; and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
In the embodiment of the application, a fine modeling method is generally adopted based on the requirement of simulation accuracy in the current industrial fastener parameterized modeling method. The fine modeling method needs to carry out complete geometric model meshing on the screw, occupies a great amount of time of finite element modeling, causes huge scale of the finite element model of the whole machine, and is not suitable for engineering analysis with complex structure. In summary, the parametric modeling method of the fastener in the industry at present has long parametric modeling time, so that the parametric modeling efficiency is low.
Based on the above, the embodiment of the application provides a solution, by acquiring the geometric feature data, the material feature data and the grid feature data as input parameters and inputting the input parameters into ABAQUS secondary development software for secondary development and finally generating a target parameterized model, the modeling can be completed by only three key data, namely the geometric feature data, the material feature data and the grid feature data, so that the time for parameterized modeling of the fastener is reduced, and the parameterized modeling efficiency of the fastener is improved.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the fastener parametric modeling device of the present application belongs. The fastener parametric modeling device may be a device independent of the terminal equipment capable of fastener parametric modeling, which may be carried on the terminal equipment in hardware or software. The terminal device can be an intelligent mobile terminal with a data processing function, a fixed terminal device or a server with a data processing function, and the like, and in addition, the fastener parametric modeling device can be borne in a fastener parametric modeling system.
In this embodiment, the terminal device to which the fastener parametric modeling apparatus belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 has stored therein an operating system and a fastener parameterized modeling program; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the fastener parameterized modeling program in memory 130 when executed by the processor performs the steps of:
obtaining geometric feature data, material feature data and grid feature data of a target fastener;
and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
obtaining geometric parameters of the target fastener;
and extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
Acquiring material section attribute parameters and predefined mechanical property parameters of the target fastener;
and obtaining material characteristic data of the target fastener based on the material section attribute parameter and the mechanical property parameter.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
acquiring a preset grid cell type and grid density;
and obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
script generation is carried out based on the geometric feature data, the material feature data and the grid feature data, so that a kernel parameterized script is obtained;
associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog box;
and acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
Generating a kernel execution file based on the geometric feature data, the material feature data and the grid feature data;
parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into a function to obtain a kernel parameterized script.
Further, the fastener parameterized modeling program in memory 130 when executed by the processor also performs the steps of:
generating an original modeling file based on the geometric feature data, wherein the original modeling file is used for establishing an original parameterized model;
generating a model attribute file based on the material characteristic data, wherein the model attribute file is used for giving material attributes to the original parameterized model;
generating a grid division file based on the grid characteristic data, wherein the grid division file is used for carrying out grid division on the original parameterized model;
and obtaining the kernel execution file based on the original modeling file, the model attribute file and the grid division file.
According to the scheme, the geometric characteristic data, the material characteristic data and the grid characteristic data of the target fastener are obtained; and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology. According to the scheme, the geometric feature data, the material feature data and the grid feature data are obtained to serve as input parameters and are input into ABAQUS secondary development software to conduct secondary development, and finally the target parameterized model is generated.
The method embodiment of the application is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
Referring to FIG. 2, FIG. 2 is a flow chart of a first exemplary embodiment of a method for parametric modeling fasteners of the present application. The parametric modeling method for the fastener comprises the following steps:
s10, obtaining geometric feature data, material feature data and grid feature data of a target fastener;
specifically, the embodiment uses ABAQUS secondary development technology to model a target fastener, where the target fastener may be a screw, a stud, a bolt, or a component with similar structural characteristics to the screw, and the embodiment models a cylindrical head screw as an example. The ABAQUS secondary development technology provided by the embodiment is realized based on ABAQUS software, and the ABAQUS software is finite element analysis software widely applied to the engineering field. ABAQUS provides powerful tools and functions for modeling and analyzing physical phenomena such as structures, materials, and fluids.
More specifically, ABAQUS can be based on finite element analysis techniques to numerically model and analyze complex structures. The finite element analysis technology is a numerical calculation method and can be used for simulating and analyzing the response and the behavior of a complex structure under different physical conditions. The method is to obtain the action of the whole structure by dispersing the actual structure into a plurality of small units (finite elements) and then calculating and solving the units by using a mathematical method. The basic principle of finite element analysis is to divide a continuous structure or object into a limited number of geometrically simple small units, such as triangles or quadrilaterals. Each cell has a set of equations and parameters describing its performance and behavior. This includes material properties, geometry, boundary conditions, and the like. Through finite element analysis, parameters such as stress distribution, deformation condition, displacement, heat conduction, hydrodynamics and the like of the structure under different conditions can be obtained. This helps engineers and designers evaluate the strength, stiffness, stability, and other performance metrics of the structure, optimizing the design to meet specific needs. However, at present, a fine modeling method is generally adopted in the industry for modeling the cylindrical head screw, and a complete geometric model network division is required for the screw head, so that the finite element analysis of the component is low in efficiency and high in cost.
Therefore, the application provides a parameterized modeling method for a fastener, and referring to fig. 3, fig. 3 is a schematic flow chart of parameterized modeling for screw components based on ABAQUS secondary development technology in the embodiment; as shown in fig. 3, the embodiment mainly acquires the geometric feature data, the material feature data and the grid feature data of the target fastener, and inputs the geometric feature data, the material feature data and the grid feature data as parameters, so that the ABAQUS software can recognize and execute the parameterized script, and finally, a target parameterized model is generated. In this embodiment, a cylindrical screw is taken as an example, so that the geometric feature data, the material feature data, and the mesh feature data of the cylindrical screw need to be acquired, that is, step S10 in this embodiment. The geometric characteristic data is used for representing the screw head diameter, the screw head height, the screw diameter and the screw height of the cylindrical head screw, the material characteristic data is used for representing the density, the elastic modulus and the poisson ratio of the cylindrical head screw, and the grid characteristic data is used for representing the grid cell type and the grid seed size.
And step S20, generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
Specifically, the embodiment mainly acquires the geometric feature data, the material feature data and the grid feature data of the target fastener, and inputs the geometric feature data, the material feature data and the grid feature data as parameters, so that the ABAQUS software can recognize and execute the parameterized script, and finally, a target parameterized model is generated. The secondary development technology can be used for ABAQUS, and the ABAQUS provides the packaged development technology and rich calling interfaces, so that users can perform custom expansion and customization based on own requirements. The ABAQUS secondary development technology can comprise Python script programming, user subroutine custom writing, special purpose element definition and integration and the like.
More specifically, as shown in fig. 3, the steps of parameterizing and modeling the cylindrical head screw based on the ABAQUS secondary development technology in this embodiment are as follows:
firstly, extracting cylindrical head screw parameters, and generating a data file based on the cylindrical head screw parameters to obtain geometric attributes, namely geometric feature data, of the cylindrical head screw, wherein the cylindrical head screw parameters comprise screw head diameter, screw head height, screw diameter and screw height;
secondly, obtaining the density, the elastic modulus and the Poisson ratio of the cylindrical head screw, so as to obtain the material property, namely the material characteristic data, of the cylindrical head screw;
Thirdly, the grid unit type and the grid seed size of the cylindrical head screw are obtained, so that grid attribute, namely grid characteristic data, of the cylindrical head screw when grid division is carried out is obtained;
generating a kernel parameterized script based on the geometric attributes, the material attributes and the grid attributes, generating an interactive interface through a RSG constructor (dialog constructor) and an ABAQUS GUI tool kit, and associating the kernel parameterized script with the GUI of the interactive interface through a Python interpreter to obtain an interactive system;
finally, the user inputs self-defined parameters on an interactive interface of the interactive system, so that parameterized modeling of the cylindrical head screw is realized.
According to the scheme, the geometric characteristic data, the material characteristic data and the grid characteristic data of the target fastener are obtained, wherein the characteristic data comprise the geometric characteristic data, the material characteristic data and the grid characteristic data; and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology. According to the scheme, the geometric feature data, the material feature data and the grid feature data are obtained to serve as input parameters and are input into ABAQUS secondary development software to conduct secondary development, and finally the target parameterized model is generated.
Referring to FIG. 4, FIG. 4 is a flow chart of a second exemplary embodiment of a method for parametric modeling fasteners of the present application.
Based on the first embodiment, a second embodiment of the present application is proposed, which differs from the first embodiment in that: in the embodiment, in step S10, the geometric feature data, the material feature data and the grid feature data of the target fastener are acquired and refined.
In this embodiment, step S10, obtaining geometric feature data, material feature data, and grid feature data of the target fastener includes:
step S1011, obtaining geometric parameters of the target fastener;
specifically, in the present embodiment, a cylindrical head screw is taken as an example, and a screw head diameter, a screw head height, a screw diameter, and a screw height of the cylindrical head screw are obtained. Because the geometric shape of the screw is complex, and the influence of the surface shape on the connection strength is small in the analysis process, the embodiment appropriately simplifies the screw model in the actual analysis process, such as removing the screw thread feature, trademark seal and partial chamfer feature, and is remarkable in that the simplified analysis method can also be applied to other parts with similar structures with the cylindrical head screw, only the diameter and the height are reserved as geometric input data of finite element analysis, thereby being beneficial to simplifying the analysis flow and improving the modeling efficiency.
And step S1012, extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener.
Specifically, in this embodiment, an original component model is first built, and then a parameter input port of the kernel parameterized script for building the original component model is opened for a user to perform custom modeling. Before feature extraction based on the geometric parameters, the embodiment firstly sets a working catalog of ABAQUS software for storing geometric feature data of the target fastener, and the working catalog is further used for storing the geometric feature data, the material feature data and the grid feature data of other original component models, such as material feature data and grid feature data.
According to the scheme, the geometric parameters of the target fastener are obtained; and extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener. By acquiring the geometric characteristic data of the target fastener, the ABAQUS software can accurately simulate and model the shape of the target fastener.
Referring to fig. 5, fig. 5 is a flow chart of a third exemplary embodiment of a method for parametric modeling fasteners of the present application.
Based on the first embodiment, a third embodiment of the present application is proposed, which differs from the first embodiment in that: in the embodiment, in step S10, the geometric feature data, the material feature data and the grid feature data of the target fastener are acquired and refined.
In this embodiment, step S10, obtaining the geometric feature data, the material feature data, and the grid feature data of the target fastener may further include:
s1021, acquiring material section attribute parameters and predefined mechanical property parameters of the target fastener;
specifically, this embodiment takes a cylindrical head screw as an example, and this step mainly acquires the material section attribute parameters of the target fastener, and in ABAQUS, correlates the material characteristics with the screw model by creating the material section attribute. Standard material cross-section types provided by ABAQUS can be used, as well as material cross-section properties can be customized. In creating the cross-sectional properties of the material, it is necessary to specify mechanical performance parameters such as density, elastic modulus, poisson's ratio, etc. of the material, that is, mechanical performance parameters predefined in this step.
And step S1022, obtaining material characteristic data of the target fastener based on the material section attribute parameters and the mechanical property parameters.
Specifically, in this embodiment, the material section attribute parameters and the predefined mechanical performance parameters are obtained in ABAQUS, so that the construction of the material characteristic data set of the target fastener is completed, and the material characteristic data is used for supplementing the working catalog in ABAQUS, that is, completing the material attribute assignment to the original component model in the above embodiment.
According to the scheme, the material section attribute parameters and the predefined mechanical property parameters of the target fastener are obtained; and obtaining material characteristic data of the target fastener based on the material section attribute parameter and the mechanical property parameter. By acquiring material characteristic data for the target fastener, the ABAQUS software can define the material properties of the target fastener to determine the composition of the target fastener to facilitate further analysis of the model by the user.
Referring to FIG. 6, FIG. 6 is a flow chart of a fourth exemplary embodiment of a method for parametric modeling fasteners of the present application.
Based on the first embodiment, a fourth embodiment of the present application is proposed, which differs from the first embodiment in that: in the embodiment, in step S10, the geometric feature data, the material feature data and the grid feature data of the target fastener are acquired and refined.
In this embodiment, step S10, obtaining the geometric feature data, the material feature data, and the grid feature data of the target fastener may further include:
step S1031, obtaining a preset grid cell type and grid density;
specifically, in finite element analysis, a grid cell is a basic cell in which a continuous structure is discretized into a finite number of small cells for numerical computation. Different types of grid cells are suitable for different application scenarios and geometries. Taking a cylindrical head screw as an example in this embodiment, the corresponding grid cell type of the cylindrical head screw may be selected to adopt a hexahedral grid cell type, for example, a C3D8R grid cell. The selection of the grid cell type needs to take into account the calculation accuracy, the number of grid divisions and the solving speed. In addition, in the embodiment, grid units and grid densities of other types of components can be preset, and if the target fastener has a simple structure, a linear triangle unit and a linear quadrilateral unit can be considered; if the structure of the target fastener is complex, such as a corner building model or pyramid model, tetrahedral units may be considered; if the target fastener structure is elongate, it is contemplated that the simulation may be performed using beam units that are one-dimensional elements having axial stiffness and bending stiffness. In this example, the grid density refers to the grid seed density, that is, the density or spacing of the grid seeds in the model that determines the distribution of the size and number of cells when the grid is generated, in finite element analysis.
Step S1032, obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density.
Specifically, the present embodiment obtains the mesh feature data of the target fastener based on the mesh unit type and the mesh density, and as described in step S1031, the mesh feature data is used to mesh the model, and more specifically, for a complex geometry or a target fastener with local details, the mesh seed density of the area may be increased to more accurately capture details and obtain more accurate results. For simpler regions or where the accuracy requirements of the results are relatively low, a larger grid seed density may be used to reduce computation time and increase efficiency.
According to the scheme, the grid characteristic data of the target fastener are obtained specifically based on the grid cell type and the grid density; and obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density. By acquiring the grid characteristic data of the target fastener, ABAQUS can control the grid density according to the user demand, so that the modeling analysis result is more accurate.
Referring to FIG. 7, FIG. 7 is a flow chart of a fifth exemplary embodiment of a method for parametric modeling fasteners of the present application.
Based on the first embodiment, a fifth embodiment of the present application is proposed, which differs from the first embodiment in that: in this embodiment, in step S20, a target parametric model is generated based on the geometric feature data, the material feature data, the mesh feature data, and the finite element analysis ABAQUS secondary development technique, and is refined.
In this embodiment, step S20, generating the target parametric model based on the geometric feature data, the material feature data, the mesh feature data, and the finite element analysis ABAQUS secondary development technique includes:
step S201, script generation is carried out based on the geometric feature data, the material feature data and the grid feature data, and a kernel parameterized script is obtained;
specifically, the process of generating the kernel parameterized script based on the geometric feature data, the material feature data, and the grid feature data in this embodiment may be implemented by Python language. The Python language is adopted in the embodiment, and has the advantages that the Python language is a language for interaction between the ABAQUS solving core and the graphical user interface, the generation of the kernel parameterized script is more convenient by using the Python language, and the Python language has various open source functions, so that the secondary development of the ABAQUS is facilitated.
Step S202, associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog;
specifically, the embodiment obtains an interactive dialog box by associating the kernel parameterized script with a pre-created GUI plug-in, so that a user can operate and control the finite element analysis through a graphical interface. The steps for implementing the above process may include:
first, GUI plug-ins are created in advance, wherein the GUI plug-ins can complete the construction of a dialog interface based on RSG (dialog builder) in ABAQUS and the GUI tool of ABAQUS. The RSG constructor is quick and efficient, and can basically meet the requirement of ABAQUS secondary development;
secondly, integrating the kernel parameterized script with a GUI plug-in, wherein the kernel parameterized script can be specifically realized by calling and executing the kernel parameterized script in the GUI plug-in;
finally, the GUI plug-in and the kernel parameterized script are subjected to data interaction verification, which comprises the steps of transferring data input by a user in the GUI to the kernel script, and carrying out necessary data format conversion and verification. At the same time, the results and output of the finite element analysis may also be displayed and updated in the GUI.
More specifically, the code flow for generating the interactive dialog is exemplified as follows:
firstly, creating an AFXDataDialog (text input) DIALOG box by an incoming parameter, wherein the DIALOG box comprises an OK (confirm) button, a CANCEL button, a dialogactionseperator (SEPARATOR line selection) option and a decor_resize (DIALOG size selection) option, and then obtaining the OK button from the DIALOG box and setting the text thereof as "OK", wherein when the dialogactionseperator is set as True, a SEPARATOR line is displayed in the interactive DIALOG box of ABAQUS, and if the dialogactionseperator is set as False, no SEPARATOR line is displayed;
then, FXGroupBox (container with title) is created, which may include other interface elements, such as text boxes, labels, buttons, etc. The container created based on FXGroupBox may include AFXTextField to input the geometric feature data, the material feature data, the grid feature data, and may also include interactive dialog framework appearance options;
finally, a complete path of the icon file is generated by using the file path and the file name concatenation, and then an icon object of the afxCreateNGIcon (icon object creation function) type is created by using the path, wherein the afxCreateNGIcon function is used for creating an image in PNG format, and in the embodiment, the icon object is a model schematic diagram of a cylindrical head screw.
And step S203, acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model.
Specifically, the present embodiment defines keywords for corresponding parameters in the RSG constructor using the Python language; the key words are given to input variables in a Python program to form a core function file of a Screw finite element model, and the core function file is named as a 'screen_function.py' file (Screw function programming file); importing a newly written "xscreen_function. Py" file into the RSG constructor, and storing the setting of the RSG constructor to form a GUI registration file "xscreen_plug in. Py" and a graphic interface file "xscreen_plug in DB. Py" (Screw plug-in programming file), so as to finally form a Screw parameterization modeling plug-in; the final screw parameterized model plug-in is saved into the plug-in folder of the running directory ABAQUS of the ABAQUS software. After restarting the ABAQUS software, the socket head cap screw parameterized modeling Plug-in unit is automatically displayed under the Plug-ins (Plug-in unit) menu of the software window, and a user directly calls the Plug-in unit and inputs a plurality of defined characteristic parameters of the screw, so that various parameterized models of the socket head cap screw can be automatically and quickly created.
Referring to fig. 8, fig. 8 is an interactive dialog box corresponding to geometric feature data in the present embodiment; as shown in fig. 8, the part to be molded is exemplified by a cylindrical head screw, and a user needs to input the screw head diameter, the screw head height, the screw diameter and the screw length of the cylindrical head screw;
referring to fig. 9, fig. 9 is an interactive dialog box corresponding to the material characteristic data in the present embodiment; as shown in fig. 9, the component to be molded is exemplified by a cylindrical head screw, and a user needs to input the density, the elastic modulus and the poisson ratio of the cylindrical head screw;
referring to fig. 10, fig. 10 is an interactive dialog box corresponding to the grid feature data in the present embodiment; as shown in fig. 10, the to-be-molded component is exemplified by a cylindrical head screw, and a user needs to determine a grid type unit and a grid (seed) density to determine a grid division mode;
referring to fig. 11, fig. 11 is a schematic diagram of a target parameterized model corresponding to a cylindrical head screw in the present embodiment; as shown in FIG. 11, after the automatic modeling of ABAQUS, a cylindrical head screw model is generated, and through a visual interface, a user can intuitively analyze the parameterized model of the cylindrical head screw.
According to the scheme, script generation is performed based on the geometric feature data, the material feature data and the grid feature data, and a kernel parameterized script is obtained; associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog box; and acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model. According to the embodiment, the kernel parameterized script is associated with the GUI plug-in of the graphical user interface, which is created in advance, so that a simple and efficient man-machine interaction interface is provided, geometric modeling time of the component can be greatly reduced, and a function of generating a component structure model in one-key mode in ABAQUS software can be realized.
Referring to FIG. 12, FIG. 12 is a flowchart of a sixth exemplary embodiment of a method for parametric modeling fasteners of the present application.
Based on the fifth embodiment, a sixth embodiment of the present application is proposed, which differs from the fifth embodiment in that: in the step S201, script generation is performed based on the geometric feature data, the material feature data, and the grid feature data, so as to obtain a kernel parameterized script for refinement.
In this embodiment, step S201, the step of generating a script based on the geometric feature data, the material feature data, and the grid feature data to obtain a kernel parameterized script includes:
step S2011, generating a kernel execution file based on the geometric feature data, the material feature data and the grid feature data;
specifically, the embodiment generates a kernel execution file based on the geometric feature data, the material feature data and the grid feature data, wherein the kernel execution file comprises an original modeling file, a model attribute file and a grid division file.
Step S2012, parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into functions to obtain a kernel parameterized script.
Specifically, the embodiment parameterizes and encapsulates the kernel execution file into functions through a Python programming language to generate a kernel parameterized script. Specifically, a script generating function can be defined to receive input parameters from a user, that is, the user can add various logic, functions and commands into a script template according to actual requirements, so as to set the behavior of the kernel and execute required operations. In the returned script, any number of input parameters may be added as desired. By calling this function and passing the corresponding parameters, a script will be generated that contains the kernel operations that the user needs. The function may be invoked multiple times according to specific requirements and different kernel parameterized scripts generated.
Further, the step of generating the kernel execution file is further refined in this embodiment. In this embodiment, step S2011, the step of generating a kernel execution file based on the geometric feature data, the material feature data, and the mesh feature data includes:
step A, generating an original modeling file based on the geometric feature data, wherein the original modeling file is used for establishing an original parameterized model;
Specifically, the embodiment obtains the original modeling file based on the geometric feature data. Taking a cylindrical head screw as an example, the original modeling file firstly defines input interfaces of screw diameter parameters, screw head height, screw length and screw diameter, and can be specifically realized by a horizontality dimension class (horizontal dimension class) and a vertical dimension class (vertical dimension class). In addition, the present embodiment also makes a determination as to whether there is a duplicate component model in ABAQUS, and if there is already a duplicate component model in ABAQUS, the duplicate component is deleted and replaced with a newly defined component model.
Step B, generating a model attribute file based on the material characteristic data, wherein the model attribute file is used for giving material attributes to the original parameterized model;
specifically, the embodiment creates screw material parameters based on the material characteristic data through a Python program, and generates the model attribute file, wherein the screw material parameters include names of materials, densities of the materials, elastic modulus of the materials and poisson ratio of the materials, and after the screw material parameters are created, section attributes can be created through the Python program and distributed to screws. The process of generating the model attribute file may specifically include:
First, a material object named "Materialname" is created;
secondly, defining a Density attribute in a material object named "Materialname", and assigning a given Density to the material;
again, elastic properties are defined in a material object named "Materialname", including elastic modulus and poisson ratio;
then, defining plastic properties in a material object named "Materialname", including YieldStrength, tensiltrength, break extension;
finally, a homogeneous solid section is created and a material object named "Materialname" is applied to the interface.
Step C, generating a grid division file based on the grid characteristic data, wherein the grid division file is used for carrying out grid division on the original parameterized model;
specifically, its associated program may generate a seed class through seed definition. In ABAQUS, the seed is used to generate the parameter settings of the finite element mesh. By selecting the appropriate seed parameters, the density and distribution of the generated grid cells can be controlled. In this embodiment, the step of generating the mesh division file may include:
Firstly, a user-defined target fastener is "p" (taken from a part English part, abbreviated as p), seeds for grid division are set on the part named as "p", the size of an initial "seed" is set through a size function, and a deviational factor parameter and a minSizefactor parameter (minimum size factor) can be selected to finely control the degree of grid refinement;
next, a part named "screen" is assigned to the variable "p";
then, generating a finite element network of the target fastener, and carrying out grid division based on parameters in the configured seed;
finally, defining a unit type, designating a code of the unit type by an elemCode parameter (unit type designation), designating a grid stability control method of a material by an elemclibrary parameter (unit library type parameter), performing grid division by a kinemic Split parameter (motion Split parameter) based on a strain average amount or a strain increment, and designating a grid stability control method of the material by a hourscontrol parameter (hourglass control parameter).
And D, obtaining the kernel execution file based on the original modeling file, the model attribute file and the grid division file.
Specifically, the embodiment is based on the execution results of the steps, and based on the original modeling file, the model attribute file and the grid division file, the kernel execution file is obtained comprehensively.
According to the scheme, the kernel execution file is generated based on the geometric characteristic data, the material characteristic data and the grid characteristic data; parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into a function to obtain a kernel parameterized script. According to the embodiment, the kernel parameterized script is obtained based on the Python language, and is automatically generated according to the given geometric feature data, the material feature data and the grid feature data, so that the script and the data can be ensured to be consistent, accurate and reusable. Meanwhile, personalized scripts aiming at different structures can be generated rapidly, and the working efficiency and the flexibility are improved, so that the parameterized modeling efficiency of the fastener is improved.
It should be noted that, the foregoing embodiments may be implemented in a reasonable combination according to actual situations, which is not described in detail in this embodiment.
In addition, the embodiment of the application also provides a fastener parameterized modeling device, which comprises:
the data acquisition module is used for acquiring geometric feature data, material feature data and grid feature data of the target fastener;
And the parameterized modeling module is used for generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
The principle and implementation process of the parametric modeling of the fastener are realized in this embodiment, please refer to the above embodiments, and the description thereof is omitted here.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a fastener parameterized modeling program stored on the memory and capable of running on the processor, wherein the fastener parameterized modeling program realizes the steps of the fastener parameterized modeling method when being executed by the processor.
Because the parametric modeling program of the fastener is executed by the processor and adopts all the technical schemes of all the embodiments, the parametric modeling program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein the fastener parametric modeling readable storage medium is stored with a fastener parametric modeling program, and the fastener parametric modeling program realizes the steps of the fastener parametric modeling method when being executed by a processor.
Because the parametric modeling program of the fastener is executed by the processor and adopts all the technical schemes of all the embodiments, the parametric modeling program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above ordering of embodiments of the invention is merely for illustration, and does not represent the advantages or disadvantages of the embodiments.
From the description of the above embodiments, it will be apparent to those skilled in the art that the above embodiment methods may be implemented by means of software plus necessary general hardware platforms. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method for parametric modeling of fasteners, the method comprising the steps of:
obtaining geometric feature data, material feature data and grid feature data of a target fastener;
and generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
2. The method of parametric modeling a fastener of claim 1, wherein the step of obtaining geometric feature data of the target fastener comprises:
obtaining geometric parameters of the target fastener;
and extracting the characteristics based on the geometric parameters to obtain the geometric characteristic data of the target fastener.
3. The method of parametric modeling a fastener of claim 1, wherein the step of obtaining material characteristic data of the target fastener comprises:
Acquiring material section attribute parameters and predefined mechanical property parameters of the target fastener;
and obtaining material characteristic data of the target fastener based on the material section attribute parameter and the mechanical property parameter.
4. The method of parametric modeling fasteners as defined in claim 1, wherein the step of obtaining mesh characteristic data of the target fastener comprises:
acquiring a preset grid cell type and grid density;
and obtaining grid characteristic data of the target fastener based on the grid cell type and the grid density.
5. The method of parametric modeling fasteners of claim 1, wherein the step of generating a target parametric model based on the geometric feature data, the material feature data, the mesh feature data, and a finite element analysis software ABAQUS quadratic development technique comprises:
script generation is carried out based on the geometric feature data, the material feature data and the grid feature data, so that a kernel parameterized script is obtained;
associating the kernel parameterized script with a Graphical User Interface (GUI) plug-in which is created in advance to obtain an interactive dialog box;
and acquiring input parameters through the interactive dialog box, and transmitting the input parameters to the kernel parameterized script to drive ABAQUS to perform automatic modeling so as to obtain the target parameterized model.
6. The method of parametric modeling fasteners as defined in claim 5, wherein the step of generating a script based on the geometric feature data, the material feature data, and the grid feature data, the step of obtaining a kernel parametric script comprising:
generating a kernel execution file based on the geometric feature data, the material feature data and the grid feature data;
parameterizing the kernel execution file through a programming language Python, and packaging the parameterized kernel execution file into a function to obtain a kernel parameterized script.
7. The fastener parameterized modeling method of claim 6, wherein the step of generating a kernel execution file based on the geometric feature data, the material feature data, and the mesh feature data comprises:
generating an original modeling file based on the geometric feature data, wherein the original modeling file is used for establishing an original parameterized model;
generating a model attribute file based on the material characteristic data, wherein the model attribute file is used for giving material attributes to the original parameterized model;
generating a grid division file based on the grid characteristic data, wherein the grid division file is used for carrying out grid division on the original parameterized model;
And obtaining the kernel execution file based on the original modeling file, the model attribute file and the grid division file.
8. A fastener parametric modeling apparatus, the fastener parametric modeling apparatus comprising:
the data acquisition module is used for acquiring geometric feature data, material feature data and grid feature data of the target fastener;
and the parameterized modeling module is used for generating a target parameterized model based on the geometric feature data, the material feature data, the grid feature data and a finite element analysis software ABAQUS secondary development technology.
9. A terminal device comprising a memory, a processor, and a fastener parametric modeling program stored on the memory and executable on the processor, the fastener parametric modeling program when executed by the processor implementing the fastener parametric modeling method of any of claims 1-7.
10. A computer readable storage medium, wherein a fastener parametric modeling program is stored on the computer readable storage medium, which when executed by a processor implements the fastener parametric modeling method of any of claims 1-7.
CN202311134876.0A 2023-09-04 2023-09-04 Fastener parametric modeling method and device, terminal equipment and storage medium Pending CN117236111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311134876.0A CN117236111A (en) 2023-09-04 2023-09-04 Fastener parametric modeling method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311134876.0A CN117236111A (en) 2023-09-04 2023-09-04 Fastener parametric modeling method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117236111A true CN117236111A (en) 2023-12-15

Family

ID=89092216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311134876.0A Pending CN117236111A (en) 2023-09-04 2023-09-04 Fastener parametric modeling method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117236111A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725767A (en) * 2024-02-18 2024-03-19 粤港澳大湾区数字经济研究院(福田) Automatic generation method, plug-in, system, terminal and medium for parameterized component model
CN118520702A (en) * 2024-07-19 2024-08-20 西北工业大学 Efficient parametric modeling method for geometric irregular projectile

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725767A (en) * 2024-02-18 2024-03-19 粤港澳大湾区数字经济研究院(福田) Automatic generation method, plug-in, system, terminal and medium for parameterized component model
CN118520702A (en) * 2024-07-19 2024-08-20 西北工业大学 Efficient parametric modeling method for geometric irregular projectile

Similar Documents

Publication Publication Date Title
CN117236111A (en) Fastener parametric modeling method and device, terminal equipment and storage medium
CN111400899B (en) Processing method, system and storage medium for cable laying modeling
US9880922B1 (en) System and method for automatically generating a graphical model from a text-based program
CN107273543B (en) DGN data format conversion method
CN110781625A (en) ABAQUS software-based parametric modeling simulation analysis method
CN112861384A (en) CATIA-based electrostatic dust collector three-dimensional model construction method
CN111625226A (en) Prototype-based human-computer interaction design implementation method and system
CN109739490A (en) Quick electrical component model creating method based on QT graph framework
US20220180011A1 (en) Systems and methods for modifying cad files
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
US11409923B1 (en) Systems and methods for generating reduced order models
CN113705143A (en) Automatic simulation system and automatic simulation method
WO2006100712A1 (en) Design support device, design support method, and design support program
CN109840201B (en) UI test method, device, electronic equipment and computer readable storage medium
CN107729703B (en) Sketch Up workshop process design method based on Ruby language
CN103870624B (en) Simulation analysis template for hung crossbeam
CN115115787B (en) DirectVR-based two-dimensional drawing to 3D model method
WO2024045090A1 (en) Product model simulation method and device
CN110321596A (en) A kind of rolling stock structure simulation method based on finite element analysis
CN113392436B (en) CAE analysis software and office software integrated control method and platform
CN115495362A (en) Method, device, storage medium and computer equipment for generating test code
Bocevska et al. An example of application design using solidworks application programming interface
CN112181418B (en) Rapid construction method and system for nuclear reactor computing software graphical interface
Quammen Scientific Data Analysis and Visualization with Python, VTK, and ParaView.
CN115222221A (en) Method, device and equipment for constructing intelligent integrated platform and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination