CN112307589B - Unit working condition creation method and device, electronic equipment and storage medium - Google Patents

Unit working condition creation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112307589B
CN112307589B CN201910703255.7A CN201910703255A CN112307589B CN 112307589 B CN112307589 B CN 112307589B CN 201910703255 A CN201910703255 A CN 201910703255A CN 112307589 B CN112307589 B CN 112307589B
Authority
CN
China
Prior art keywords
node
working condition
loading
unit
initial
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.)
Active
Application number
CN201910703255.7A
Other languages
Chinese (zh)
Other versions
CN112307589A (en
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910703255.7A priority Critical patent/CN112307589B/en
Publication of CN112307589A publication Critical patent/CN112307589A/en
Application granted granted Critical
Publication of CN112307589B publication Critical patent/CN112307589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a unit working condition creation method, a unit working condition creation device, electronic equipment and a storage medium, wherein the method comprises the steps of reading loading information in a loading data table; creating an initial node on an initial model of a working condition to be created according to the loading information; according to a pre-generated load set, adding load information on each initial node to obtain a target model; and creating unit working conditions according to the target model. The invention can automatically create unit working conditions, avoid errors caused by manually creating the unit working conditions, effectively reduce labor cost, improve the unit working condition creation efficiency, improve the creation effect and improve the analysis simulation precision and efficiency of CAE.

Description

Unit working condition creation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a method and apparatus for creating a unit working condition, an electronic device, and a storage medium.
Background
When the computer aided engineering (Computer Aided Engineering, CAE) finite element analysis modeling is carried out, for example, the CAE modeling analysis is adopted to simulate parameters such as structural strength, fatigue damage, structural optimization and the like of the whole vehicle and parts thereof, and when the modeling analysis is carried out, the stress magnitude and distribution of a structural model of the vehicle are generally calculated by creating unit working conditions and distributing corresponding loads, so that the problem of driving of the vehicle caused by unreasonable design can be avoided.
In the related art, unit working conditions are manually created by manpower, corresponding loads are distributed, and CAE modeling analysis is performed.
In this way, the method for manually creating the unit working condition needs tedious and repeated operation, has large workload, is easy to cause problems of error and leakage and the like, and affects CAE analysis results.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent.
Therefore, the invention aims to provide a unit working condition creation method, a device, electronic equipment and a storage medium, which can automatically create unit working conditions, avoid errors caused by manually creating the unit working conditions, effectively reduce labor cost, improve the unit working condition creation efficiency, improve the creation effect, and improve the analysis simulation precision and efficiency of CAE.
In order to achieve the above object, a method for creating a unit working condition according to an embodiment of the first aspect of the present invention includes: reading loading information in a loading data table; creating an initial node on an initial model of a working condition to be created according to the loading information; according to a pre-generated load set, adding load information on each initial node to obtain a target model; and creating unit working conditions according to the target model.
According to the unit working condition creation method provided by the embodiment of the first aspect of the invention, the initial nodes are created on the initial model of the working condition to be created according to the loading information by reading the loading information in the loading data table, the load information is added on each initial node according to the pre-generated load set to obtain the target model, and the unit working condition is created according to the target model, so that the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the unit working condition creation efficiency is improved, the creation effect is improved, and the analysis simulation precision and efficiency of CAE are improved.
In order to achieve the above object, a unit operating condition creating device according to a second aspect of the present invention includes: the reading module is used for reading the loading information in the loading data table; the first creating module is used for creating an initial node on an initial model of a working condition to be created according to the loading information; the first adding module is used for adding load information to each initial node according to a pre-generated load set to obtain a target model; and the second creating module is used for creating unit working conditions according to the target model.
According to the unit working condition creating device provided by the embodiment of the second aspect of the invention, the initial nodes are created on the initial model of the working condition to be created according to the loading information by reading the loading information in the loading data table, the load information is added on each initial node according to the pre-generated load set to obtain the target model, and the unit working condition is created according to the target model, so that the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the unit working condition creating efficiency is improved, the creating effect is improved, and the analysis simulation precision and efficiency of CAE are improved.
To achieve the above object, an electronic device according to an embodiment of the third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for creating unit operating conditions as described above when executing the program.
According to the electronic equipment provided by the embodiment of the third aspect of the invention, the initial nodes are created on the initial model of the working condition to be created according to the loading information by reading the loading information in the loading data table, the load information is added on each initial node according to the pre-generated load set to obtain the target model, and the unit working condition is created according to the target model, so that the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the unit working condition creation efficiency is improved, the creation effect is improved, and the analysis simulation precision and efficiency of CAE are improved.
To achieve the above object, a computer-readable storage medium according to a fourth aspect of the present invention has stored thereon a computer program, wherein the program when executed by a processor realizes: the embodiment of the first aspect of the invention provides a unit working condition creation method.
According to the computer readable storage medium provided by the embodiment of the fourth aspect of the invention, by reading the loading information in the loading data table, creating the initial nodes on the initial model of the working condition to be created according to the loading information, adding the loading information on each initial node according to the pre-generated load set to obtain the target model, and creating the unit working condition according to the target model, the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the creation efficiency of the unit working condition is improved, the creation effect is improved, and the analysis simulation precision and efficiency of CAE are improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for creating unit working conditions according to an embodiment of the present invention;
FIG. 2 is a flow chart of a unit condition creation method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a unit operation condition creating device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a unit operation condition creating device according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention. On the contrary, the embodiments of the invention include all alternatives, modifications and equivalents as may be included within the spirit and scope of the appended claims.
In order to solve the technical problems that in the related art, the method for manually creating the unit working condition needs tedious and repeated operation, has large workload, is easy to cause error and leakage and the like, and affects the CAE analysis result, the embodiment of the invention provides the unit working condition creation method.
FIG. 1 is a flow chart of a method for creating unit working conditions according to an embodiment of the invention.
The present embodiment is exemplified with the unit condition creation method configured as the unit condition creation device.
The unit condition creating method in the embodiment may be configured in a unit condition creating device, and the unit condition creating device may be provided in a server, or may also be provided in an electronic device, which is not limited in the embodiment of the present invention.
The unit working condition creating device in the embodiment is applied to CAE analysis, and specifically can be applied to a hypersmesh application program for preprocessing the CAE analysis.
Referring to fig. 1, the method includes:
s101: and reading the loading information in the loading data table.
The loading data table may be preconfigured, and the loading data table may include some loading information required for creating a unit working condition, where the loading information is, for example, loading point coordinates and label information, for example, a CAE modeling analyst may configure the loading point coordinates and label information according to an actual analysis requirement, and generate the loading data table according to the configured loading point coordinates and label information.
As an example, the loading information in the loading data table may be loading point coordinates and label information, where the loading point coordinates and label information are in one-to-one correspondence, and the number of loading point coordinates and label information is the same, where the loading point coordinates may be used to describe coordinate values of all parts in the whole vehicle or the vehicle in a world coordinate system, and the label information may be used to describe information associated with each loading point, and the label information is, for example, information such as names of corresponding parts of the vehicle, which is not limited.
In a specific execution process, the loading information is stored in a loading data table, the format of the loading data table can be CSV format, excel format, txt format or the like, and after the CAE model with the unit working condition to be created is imported into the CAE preprocessing application program HyperMesh, the application program HyperMesh can automatically read the loading information in the loading data table, namely the loading coordinate point and the corresponding label information.
When the embodiment of the invention reads the loading information in the loading data table, a preset application programming interface can be called to execute the corresponding script file so as to automatically read the loading information in the loading data table.
In the embodiment of the invention, the loading point coordinates and the loading information are written into the loading data table in advance, so that the HyperMesh of the application program can be triggered to automatically read the loading data table to acquire the corresponding loading information during specific execution, and the execution efficiency of unit working condition creation can be ensured.
S102: and creating an initial node on the initial model of the working condition to be created according to the loading information.
The initial model is an initial CAE model without adding any initial nodes, and the CAE model may be specifically a CAE grid model.
Wherein, in the initial stage, the node created on the initial model according to the loading point coordinates may be referred to as an initial node.
In the embodiment of the invention, before the loading information in the loading data table is read, the initial model of the working condition to be created can be imported into the CAE preprocessing application program Hypermesh, then the loading information in the loading data table is read, and the initial node is created on the initial model of the working condition to be created according to the loading information.
Optionally, in the embodiment of the present invention, the coordinates of the loading points correspond to the world coordinate system, that is, the coordinates of the actual spatial positions of the loading points on the vehicle may be used in the embodiment of the present invention, where the coordinates of each loading point in the initial CAE model corresponding to the vehicle are described by using the coordinates in the world coordinate system, the world coordinate system is the reference coordinate system of the system, and the coordinates of the loading points are described by using the coordinates in the world coordinate system, so that the obtained coordinates of the loading points are absolute values, which can ensure stability of data and ensure execution efficiency of unit working condition creation.
Therefore, when the initial node is created on the initial model of the working condition to be created according to the loading information, a plurality of loading point coordinates can be determined according to the loading information, the initial model of the working condition to be created is mapped into the world coordinate system, the loading point coordinates are adopted, loading points corresponding to the loading point coordinates are determined on the initial model, and the determined loading points are used as the initial node, so that the method is not limited.
S103: and adding load information on each initial node according to the pre-generated load set to obtain a target model.
It can be understood that in the process of creating the actual unit working condition, corresponding loads are generally allocated to calculate the stress magnitude and distribution of the structural model of the vehicle, that is, corresponding loads are allocated to each initial node in the initial CAE model.
In the embodiment of the invention, the load information can be automatically added to each initial node according to the pre-generated load set, and the initial CAE model added with the load information is taken as the target model.
In the embodiment of the invention, since the initial nodes are created corresponding to the world coordinate system, load information corresponding to different coordinate directions in the world coordinate system can be added for each initial node, and the load information in the different coordinate directions can be written in the corresponding load set in advance.
The load sets may be preconfigured, for example, different load sets may be pre-created by CAE modeling analysts according to actual analysis requirements, so that the different load sets correspond to different coordinate directions in the world coordinate system, and each load set includes load information in the same coordinate direction.
The load information may include, for example: the unit load and the unit moment are not limited thereto.
Because the load information in the load concentration is the collection of the load information obtained by analyzing the external force applied to the structure or the components of the vehicle and the parts thereof in the actual vehicle production and summarizing and analyzing other factors, when the unit working condition is automatically created, the corresponding script file is directly executed to call and read the load information from the storage, the CAE model can be quickly generated, the load information can be multiplexed, the load information does not need to be manually added to each initial node, and the model generation efficiency is improved.
S104: and creating unit working conditions according to the target model.
In the specific execution process, a preset application programming interface is called, a corresponding script file is executed, so that a unit working condition is created according to the target model, and then the unit working condition can be used for CAE modeling analysis.
In some embodiments, when the unit working condition is created according to the target model, a corresponding unit working condition may be created for each initial node, so that the corresponding unit working condition can simulate the performance of the vehicle under the load information of the corresponding initial node.
In the specific execution process, the first unit working condition can be created according to the load information of the plurality of initial nodes of the target model in the first coordinate direction, the first unit working condition corresponds to the first coordinate direction, the first coordinate direction is any one of the plurality of coordinate directions, the corresponding unit working condition can be automatically generated according to the load information corresponding to different directions on each coordinate point, errors caused by manually adding the load information are avoided, labor cost is effectively reduced, and unit working condition creation efficiency is improved.
In this embodiment, by reading the loading information in the loading data table, creating initial nodes on the initial model of the working condition to be created according to the loading information, adding load information on each initial node according to the pre-generated load set to obtain the target model, and creating the unit working condition according to the target model, the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the creation efficiency of the unit working condition is improved, the creation effect is improved, and the analysis simulation precision and efficiency of the CAE are improved.
FIG. 2 is a flow chart of a unit condition creation method according to another embodiment of the present invention.
Referring to fig. 2, the method includes:
s201: starting the Hypermesh application program, importing an initial model of the working condition to be created, and configuring corresponding counting variables.
In a specific execution process, when a unit working condition needs to be created, an application program HyperMesh is started, an initial model of the unit working condition needs to be created is imported, the initial model is a CAE initial model, the unit working condition can be added in the CAE initial model, the CAE initial model is used for analyzing the stress condition and the wear resistance of a vehicle and parts thereof, and then corresponding counting variables are configured.
S202: and reading one loading point coordinate in the loading data table, writing the times of reading the loading point coordinate into the counting variable, and updating the counting variable by the times of reading other loading point coordinates when the other loading point coordinates are read later.
In the embodiment, by configuring the counting variable and counting each read loading point coordinate, the number of loading point coordinates added to the initial model can be effectively obtained, the number of loading points added to the initial model is clearly presented, and the accuracy of unit working condition creation is improved.
S203: and creating a corresponding initial node in the initial model of the working condition to be created according to the loading point coordinates, and adding the label information to the corresponding initial node.
In the specific execution process, the initial node is a node to which load information is to be added, the coordinates of the initial node correspond to the coordinates of the loading point, after the application program HyperMesh is started and the CAE initial model is created, the application program can be controlled to automatically read the loading information in the loading data table, and the loading information can comprise: and adding a plurality of initial nodes at corresponding coordinate positions in the CAE initial model according to the plurality of loading point coordinates and the label information.
Further, information such as names of various parts of the vehicle is added to the corresponding initial node. The loading point coordinates and the label information are in one-to-one correspondence, the initial node positions are determined by the loading point coordinates, the label information is added to the corresponding initial nodes, the loading information is modified, the loading point coordinates are modified when the loading point coordinates are wrong, the corresponding label information is modified when the corresponding label information is wrong, the flexible modification of the loading information on the initial nodes is facilitated, and the accuracy and the flexibility of the initial node creation are improved.
S204: and adding load information in the corresponding coordinate direction on each initial node according to each load set.
S205: and creating a first unit working condition according to the load information in the first coordinate direction of a plurality of initial nodes of the target model, wherein the first unit working condition corresponds to the first coordinate direction, and the first coordinate direction is any one of the plurality of coordinate directions.
In a specific implementation process, corresponding load information is added to the directions of x, y and z on the initial node, the moment around the x axis, the moment around the y axis and the moment around the z axis, and the load information can be the property and the magnitude of the force in the direction, so that the method is not limited.
Each of the plurality of initial nodes can be correspondingly provided with load information in six directions, a pre-generated load set is added before program execution, data in the load set is automatically called when the load information is added, the load information is added to the initial nodes, the load information can be automatically added to the initial nodes, errors caused by manually adding the load information are reduced, the efficiency of adding the load information to the initial nodes is improved, and the efficiency of creating unit working conditions is further improved.
S206: and associating the load set in the first coordinate direction with a first unit working condition corresponding to the first direction.
In this embodiment, load information is added in a plurality of coordinate directions of a plurality of initial nodes, the load information is associated with a unit working condition, the unit working condition in the direction is obtained, the plurality of unit working conditions are analyzed, information such as structural strength, fatigue damage and the like of a vehicle and parts thereof is obtained, the position of a risk possibly existing in the vehicle can be determined efficiently, the risk of the vehicle caused by unreasonable design is avoided, and the reliability and stability of the vehicle are improved.
S207: and searching other nodes in the space covered by the sphere by taking the coordinate position of each initial node as the center point of the sphere and taking the distance threshold as the radius of the sphere, determining the number of the other nodes searched, adjusting the node identification in the node list according to the number, and determining that the creation of the unit working condition is completed when the node identification is not contained in the adjusted node list.
Specifically, the coordinates of the initial nodes are used as sphere centers, corresponding nodes are searched in the CAE network model in a sphere space range with a certain threshold value as a radius, when the number of the searched nodes is 1, the established initial nodes are judged to be matched with the nodes in the searched CAE network model, establishment accuracy of the initial nodes is determined, establishment errors are reduced, when the number of the searched nodes in the CAE network model is not 1, identifications of other searched nodes can be added to a node list, and related verification operation can be adopted for verifying the established initial nodes, so that establishment accuracy can be effectively guaranteed, and the established initial nodes are matched with the nodes in the CAE network model.
In this embodiment, in order to determine whether the creation of the unit working condition is completed, an output condition is set for the program, the mutual distance between the initial nodes in the target model is used as a determination basis, and when only one initial node exists in a certain three-dimensional area with the initial node as the center in the three-dimensional coordinate system, the completion of the creation of the unit working condition can be determined, and the determination accuracy is improved, the determination time is reduced, and the determination efficiency is improved by automatically determining the distance between the initial nodes.
As an example, the application program is provided with a number adjustment node list, detects the above-mentioned certain three-dimensional area centered on the initial node, determines the number of nodes existing in the area, if the number of nodes is 1, does not add the node identification of the searched node to the node list, determines the searched node to be the initial node serving as the center point of the sphere, if the number of nodes is not 1, adds the node identification of the searched node to the node list, and clearly presents whether the initial node satisfies the condition of creating the unit working condition by determining the content in the node list.
As one example, a specific method of unit operating mode creation is as follows, and the program is created based on the Tcl/Tk language, without limitation.
1. Preparing a loading data table;
2. opening a CAE analysis preprocessing application program Hypermesh, and importing a CAE model needing to create unit working conditions;
3. setting a variable node_id_list and setting an initial value thereof to be null;
4. extracting the coordinates of the loading points and the label information in the loading data table, and counting the number n of the coordinates and the label information;
5. when the cyclic variable i=1, creating a temporary node according to the 1 st loading point coordinate;
6. when the cyclic variable j=1, creating a load set named force_x_1, adding a unit load to the X direction of the temporary node, storing the unit load in the force_x_1 load set, creating a working condition named loadstep_x_1, and associating the working condition with the force_x_1 load set;
7. when the cyclic variable j=2, creating a load set named force_y_1, adding a unit load in the Y direction of the temporary node, storing the unit load in the force_y_1 load set, creating a working condition named loadstep_y_1, and associating the working condition with the force_y_1 load set;
8. when the cyclic variable j=3, creating a load set named force_z_1, adding a unit load in the Z direction of the temporary node, storing the unit load in the force_z_1 load set, creating a working condition named loadstep_z_1, and associating the working condition with the force_z_1 load set;
9. When the cyclic variable j=4, creating a load set named as movement_x_1, adding a unit Moment to the X direction of the temporary node, storing the unit Moment in the movement_x_1 load set, creating a working condition named as loadstep_mx_1, and associating the working condition with the movement_x_1 load set;
10. when the cyclic variable j=5, creating a load set named as movement_y_1, adding a unit Moment in the Y direction of the temporary node, storing the unit Moment in the movement_y_1 load set, creating a working condition named as loadstep_my_1, and associating the working condition with the movement_y_1 load set;
11. when the cyclic variable j=6, creating a load set named as movement_z_1, adding a unit Moment in the Z direction of the temporary node, storing the unit Moment in the movement_z_1 load set, creating a working condition named as loadstep_mz_1, and associating the working condition with the movement_z_1 load set;
12. adding the 1 st tag information to the temporary node;
13. searching nodes around the temporary node by taking the temporary node as a sphere center and taking 1.5 as a sphere radius, merging the temporary node with the searched nodes if the number of the searched nodes is 1, and adding the ID of the temporary node to a variable node_id_list if the number of the searched nodes is 0 or more;
14. When the cyclic variable i=2, creating a temporary node according to the 2 nd loading point coordinate;
15. when the cyclic variable j=1, creating a load set named force_x_2, adding a unit load to the X direction of the temporary node, storing the unit load in the force_x_2 load set, creating a working condition named loadstep_x_2, and associating the working condition with the force_x_2 load set;
16. when the cyclic variable j=2, creating a load set named force_y_2, adding a unit load in the Y direction of the temporary node, storing the unit load in the force_y_2 load set, creating a working condition named loadstep_y_2, and associating the working condition with the force_y_2 load set;
17. when the cyclic variable j=3, creating a load set named force_z_2, adding a unit load in the Z direction of the temporary node, storing the unit load in the force_z_2 load set, creating a working condition named loadstep_z_2, and associating the working condition with the force_z_2 load set;
18. when the cyclic variable j=4, creating a load set named as movement_x_2, adding a unit Moment to the X direction of the temporary node, storing the unit Moment in the movement_x_2 load set, creating a working condition named as loadstep_mx_2, and associating the working condition with the movement_x_2 load set;
19. when the cyclic variable j=5, creating a load set named as movement_y_2, adding a unit Moment in the Y direction of the temporary node, storing the unit Moment in the movement_y_2 load set, creating a working condition named as loadstep_my_2, and associating the working condition with the movement_y_2 load set;
20. When the cyclic variable j=6, creating a load set named as movement_z_2, adding a unit Moment in the Z direction of the temporary node, storing the unit Moment in the movement_z_2 load set, creating a working condition named as loadstep_mz_2, and associating the working condition with the movement_z_2 load set;
21. adding the 2 nd tag information to the temporary node;
22. searching nodes around the temporary node by taking the temporary node as a sphere center and taking 1.5 as a sphere radius, merging the temporary node with the searched nodes if the number of the searched nodes is 1, and adding the ID of the temporary node to a variable node_id_list if the number of the searched nodes is 0 or more;
23. similarly, when the cyclic variable i=n, a temporary node is created according to the nth loading point coordinate;
24. when the cyclic variable j=1, creating a load set named force_x_n, adding a unit load to the X direction of the temporary node, storing the unit load in the force_x_n load set, creating a working condition named loadstep_x_n, and associating the working condition with the force_x_n load set;
25. when the cyclic variable j=2, creating a load set named force_y_n, adding a unit load in the Y direction of the temporary node, storing the unit load in the force_y_n load set, creating a working condition named loadstep_y_n, and associating the working condition with the force_y_n load set;
26. When the cyclic variable j=3, creating a load set named force_z_n, adding a unit load in the Z direction of the temporary node, storing the unit load in the force_z_n load set, creating a working condition named loadstep_z_n, and associating the working condition with the force_z_n load set;
27. when the cyclic variable j=4, creating a load set named as movement_x_n, adding a unit Moment to the X direction of the temporary node, storing the unit Moment in the movement_x_n load set, creating a working condition named as loadstep_mx_n, and associating the working condition with the movement_x_n load set;
28. when the cyclic variable j=5, creating a load set named as movement_y_n, adding a unit Moment in the Y direction of the temporary node, storing the unit Moment in the movement_y_n load set, creating a working condition named as loadstep_my_n, and associating the working condition with the movement_y_n load set;
29. when the cyclic variable j=6, creating a load set named as movement_z_n, adding a unit Moment in the Z direction of the temporary node, storing the unit Moment in the movement_z_n load set, creating a working condition named as loadstep_mz_n, and associating the working condition with the movement_z_n load set;
30. adding the nth tag information to the temporary node;
31. searching nodes around the temporary node by taking the temporary node as a sphere center and taking 1.5 as a sphere radius, merging the temporary node with the searched nodes if the number of the searched nodes is 1, and adding the ID of the temporary node to a variable node_id_list if the number of the searched nodes is 0 or more;
32. And judging whether the variable node_id_list is empty or not, if so, prompting the user to complete the creation of unit working conditions, otherwise, prompting the user that the node needing to be manually processed is the value in the variable node_id_list.
By starting the Hypermesh application program, importing an initial model of a working condition to be created, configuring a corresponding counting variable, reading one loading point coordinate in a loading data table, writing the times of reading the loading point coordinate into the counting variable, and updating the counting variable by reading the times of reading other loading point coordinates when other loading point coordinates are read later, the number of the loading point coordinates added into the initial model can be effectively known, the number of the loading point coordinates added into the initial model is clearly presented, and the accuracy of unit working condition creation is improved. By creating the corresponding initial node in the initial model of the working condition to be created according to the loading point coordinates and adding the label information to the corresponding initial node, the loading information is favorably modified, the loading point coordinates are modified when the loading point coordinates are wrong, and the corresponding label information is modified when the corresponding label information is wrong, so that the flexible modification of the loading information on the initial node is facilitated, and the accuracy and the flexibility of the creation of the initial node are improved. According to the load sets, load information in the corresponding coordinate directions is added to the initial nodes, a first unit working condition is created according to the load information in the first coordinate directions of the initial nodes of the target model, the first unit working condition corresponds to the first coordinate directions, the first coordinate directions are any one of the coordinate directions, the load information can be automatically added to the initial nodes, errors caused by manually adding the load information are reduced, the efficiency of adding the load information to the initial nodes is improved, and the efficiency of creating the unit working conditions is further improved. Through associating the load set in the first coordinate direction with the first unit working condition corresponding to the first direction, the position of the possible risk in the vehicle can be determined efficiently, the risk of the vehicle caused by unreasonable design is avoided, and the reliability and stability of the vehicle are improved. The coordinate position of each initial node is taken as the center point of the sphere, the distance threshold is taken as the radius of the sphere, other nodes are searched in the space covered by the sphere, the number of the other nodes which are searched is determined, the node identification in the node list is adjusted according to the number, and when the node identification is not contained in the adjusted node list, the establishment of the unit working condition is determined to be finished, so that the distance between the initial nodes can be automatically judged, the judging accuracy is improved, the judging time is shortened, and the judging efficiency is improved.
Fig. 3 is a schematic structural diagram of a unit operating mode creating device according to an embodiment of the present invention.
Referring to fig. 3, an apparatus 300 includes:
a reading module 301, configured to read loading information in a loading data table;
the first creating module 302 is configured to create an initial node on an initial model of a working condition to be created according to the loading information;
a first adding module 303, configured to add load information to each initial node according to a pre-generated load set, so as to obtain a target model;
the second creating module 304 is configured to create a unit working condition according to the target model.
Optionally, in some embodiments, referring to fig. 4, fig. 4 is a schematic structural diagram of a unit working condition creating device according to another embodiment of the present invention, and loading information includes: the first creating module 302 is specifically configured to:
and creating a corresponding initial node on the initial model of the working condition to be created according to the coordinates of each loading point.
The unit operating condition creating device 300 further includes:
a second adding module 305, configured to add the tag information to a corresponding initial node in the target model.
Optionally, in some embodiments, unit operating mode device 300 further includes:
A starting module 306, configured to start the HyperMesh application;
an importing module 307, configured to import an initial model of a working condition to be created into the HyperMesh application program, and configure a corresponding count variable;
the reading module 301 is specifically configured to:
reading a loading point coordinate in a loading data table;
and writing the times of reading the coordinates of the loading points into the counting variable, and updating the counting variable according to the times of reading the coordinates of other loading points when the coordinates of other loading points are read later.
Optionally, in some embodiments, the load sets include a plurality of load sets, each load set corresponds to load information in a different coordinate direction, and the first adding module 303 is specifically configured to:
according to each load set, load information in the corresponding coordinate direction is added to each initial node;
the second creation module 304 is specifically configured to:
and creating a first unit working condition according to the initial node of the target model and the load information in the first coordinate direction, wherein the first unit working condition corresponds to the first coordinate direction, and the first coordinate direction is any one of a plurality of coordinate directions.
Optionally, in some embodiments, the apparatus 300 further comprises:
the association module 308 is configured to associate the load set in the first coordinate direction with a first unit working condition corresponding to the first direction.
Optionally, in some embodiments, the apparatus 300 further comprises:
the searching module 309 is configured to search for other nodes in a space covered by the sphere with the coordinate position of each initial node as a center point of the sphere and the distance threshold as a radius of the sphere, and determine the number of other nodes searched;
an adjustment module 310, configured to adjust node identifiers in the node list according to the number;
the determining module 311 is configured to determine that the creation of the unit working condition is completed when the adjusted node list does not include the node identifier.
Optionally, in some embodiments, the adjusting module 310 is specifically configured to:
judging whether the number is 1;
if the number is 1, not adding the node identification of the searched node into the node list, and determining the searched node as an initial node serving as a sphere center point;
if the number is not 1, adding the node identification of the searched node to the node list.
Optionally, in some embodiments, the loading point coordinates correspond to coordinates of an actual spatial location of the loading point on the vehicle in a world coordinate system.
It should be noted that, the explanation of the embodiment of the unit condition creating method in the foregoing embodiments of fig. 1-2 is also applicable to the unit condition creating device 300 of this embodiment, and the implementation principle is similar, which is not repeated herein.
In this embodiment, by reading the loading information in the loading data table, creating initial nodes on the initial model of the working condition to be created according to the loading information, adding load information on each initial node according to the pre-generated load set to obtain the target model, and creating the unit working condition according to the target model, the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the creation efficiency of the unit working condition is improved, the creation effect is improved, and the analysis simulation precision and efficiency of the CAE are improved.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic device 50 includes: memory 501, processor 502, and a computer program stored on memory 501 and executable on processor 502. The processor 502 implements the unit condition creation method in the above embodiment when executing the program.
In one possible implementation, the electronic device further includes a communication interface 503 for communication between the memory 501 and the processor 502.
In this embodiment, by reading the loading information in the loading data table, creating initial nodes on the initial model of the working condition to be created according to the loading information, adding load information on each initial node according to the pre-generated load set to obtain the target model, and creating the unit working condition according to the target model, the unit working condition can be automatically created, errors caused by manually creating the unit working condition are avoided, the labor cost is effectively reduced, the creation efficiency of the unit working condition is improved, the creation effect is improved, and the analysis simulation precision and efficiency of the CAE are improved.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the unit condition creation method as above.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (15)

1. A method for creating a unit condition, comprising:
reading loading information in a loading data table;
creating an initial node on an initial model of a working condition to be created according to the loading information;
according to a pre-generated load set, adding load information on each initial node to obtain a target model;
establishing a unit working condition according to the target model;
the loading information includes: a plurality of the coordinates of the loading point,
and creating an initial node on an initial model of a working condition to be created according to the loading information, wherein the method comprises the following steps:
creating corresponding initial nodes on an initial model of a working condition to be created according to the loading point coordinates;
adding load information to each initial node according to a pre-generated load set to obtain a target model;
before reading the loading information in the loading data table, the method comprises the following steps:
Starting a Hypermesh application program;
importing the initial model of the working condition to be created into the HyperMesh application program, and configuring corresponding counting variables;
the reading the loading information in the loading data table comprises the following steps:
reading a loading point coordinate in the loading data table;
and writing the times of reading the coordinates of the loading points into the counting variable, and updating the counting variable according to the times of reading the coordinates of other loading points when the coordinates of other loading points are read later.
2. The unit condition creation method according to claim 1, wherein the loading information further includes: tag information corresponding to each of the loading point coordinates,
after obtaining the target model, the method further comprises the following steps:
and adding the label information to the corresponding initial node in the target model.
3. The unit operating condition creation method according to claim 1, wherein the load set includes a plurality of load sets, each of the load sets corresponding to load information in different coordinate directions, and the adding load information on each of the initial nodes according to the load set generated in advance includes:
according to each load set, load information in the corresponding coordinate direction is added to each initial node;
The creating a unit working condition according to the target model comprises the following steps:
and creating a first unit working condition according to the load information in a first coordinate direction of a plurality of initial nodes of the target model, wherein the first unit working condition corresponds to the first coordinate direction, and the first coordinate direction is any one of the plurality of coordinate directions.
4. The unit condition creation method according to claim 3, characterized by further comprising:
and associating the load set in the first coordinate direction with a first unit working condition corresponding to the first coordinate direction.
5. The unit condition creation method according to claim 3, characterized by further comprising:
taking the coordinate position of each initial node as the center point of the sphere, taking a distance threshold value as the radius of the sphere, searching other nodes in the space range covered by the sphere, and determining the number of the other nodes searched;
according to the number, adjusting node identifiers in a node list;
and when the adjusted node list does not contain the node identification, determining that the creation of the unit working condition is completed.
6. The unit condition creation method according to claim 5, wherein said adjusting the node identification in the node list according to the number includes:
Judging whether the number is 1;
if the number is 1, not adding the node identification of the searched node into the node list, and determining the searched node as an initial node serving as a sphere center point;
and if the number is not 1, adding the node identification of the searched node into the node list.
7. A unit operating condition creation device, characterized by comprising:
the reading module is used for reading the loading information in the loading data table;
the first creating module is used for creating an initial node on an initial model of a working condition to be created according to the loading information;
the first adding module is used for adding load information to each initial node according to a pre-generated load set to obtain a target model;
the second creating module is used for creating unit working conditions according to the target model;
the loading information includes: a plurality of loading point coordinates;
the first creation module is specifically configured to:
creating corresponding initial nodes on an initial model of a working condition to be created according to the loading point coordinates;
the unit working condition device further comprises:
the starting module is used for starting the Hypermesh application program;
The importing module is used for importing the initial model of the working condition to be created into the HyperMesh application program and configuring corresponding counting variables;
the reading module is specifically configured to:
reading a loading point coordinate in the loading data table;
and writing the times of reading the coordinates of the loading points into the counting variable, and updating the counting variable according to the times of reading the coordinates of other loading points when the coordinates of other loading points are read later.
8. The unit condition creation device according to claim 7, wherein the loading information further includes: tag information corresponding to each of the loading point coordinates;
the unit working condition creating device further comprises:
and the second adding module is used for adding the label information to the corresponding initial node in the target model.
9. The unit working condition creation device according to claim 7, wherein the load sets include a plurality of load sets, each load set corresponds to load information in a different coordinate direction, and the first adding module is specifically configured to:
according to each load set, load information in the corresponding coordinate direction is added to each initial node;
The second creation module is specifically configured to:
and creating a first unit working condition according to the initial node of the target model and load information in a first coordinate direction, wherein the first unit working condition corresponds to the first coordinate direction, and the first coordinate direction is any one of a plurality of coordinate directions.
10. The unit condition creation device according to claim 9, further comprising:
and the association module is used for associating the load set in the first coordinate direction with a first unit working condition corresponding to the first coordinate direction.
11. The unit condition creation device according to claim 9, further comprising:
the searching module is used for searching other nodes in the space range covered by the sphere by taking the coordinate position of each initial node as the center point of the sphere and taking the distance threshold as the radius of the sphere, and determining the number of the other nodes searched;
the adjusting module is used for adjusting the node identifiers in the node list according to the number;
and the determining module is used for determining that the creation of the unit working condition is completed when the node identifier is not contained in the adjusted node list.
12. The unit condition creation device of claim 11, wherein the adjustment module is specifically configured to:
judging whether the number is 1;
if the number is 1, not adding the node identification of the searched node into the node list, and determining the searched node as an initial node serving as a sphere center point;
and if the number is not 1, adding the node identification of the searched node into the node list.
13. The unit operation creation device according to claim 7, wherein the loading point coordinates correspond to coordinates of an actual spatial position of the loading point on the vehicle in a world coordinate system.
14. An electronic device, comprising:
a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the unit condition creation method according to any of claims 1-6 when the program is executed.
15. A computer-readable storage medium having stored thereon a computer program, wherein execution of the program by a processor implements the unit condition creation method according to any one of claims 1 to 6.
CN201910703255.7A 2019-07-31 2019-07-31 Unit working condition creation method and device, electronic equipment and storage medium Active CN112307589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703255.7A CN112307589B (en) 2019-07-31 2019-07-31 Unit working condition creation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703255.7A CN112307589B (en) 2019-07-31 2019-07-31 Unit working condition creation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112307589A CN112307589A (en) 2021-02-02
CN112307589B true CN112307589B (en) 2023-11-14

Family

ID=74486306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703255.7A Active CN112307589B (en) 2019-07-31 2019-07-31 Unit working condition creation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112307589B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6510357B1 (en) * 2000-02-25 2003-01-21 Daimlerchrysler Corporation Automated welding program for full body-in-white finite element assembly
CN103870623A (en) * 2012-12-18 2014-06-18 南车青岛四方机车车辆股份有限公司 Preprocessing template for vehicle model
CN104615890A (en) * 2015-02-10 2015-05-13 北京汽车股份有限公司 Load extraction method and device under limiting working conditions
CN104933210A (en) * 2014-03-18 2015-09-23 广州汽车集团股份有限公司 Method for processing body-in-white rigidity optimization result file
CN105701305A (en) * 2016-01-18 2016-06-22 东风柳州汽车有限公司 CAE load-step automatic setting method
CN107301287A (en) * 2017-06-19 2017-10-27 武汉理工大学 The method for automatically extracting vehicle body attachment point dynamic stiffness
CN109063295A (en) * 2018-07-20 2018-12-21 北京长城华冠汽车技术开发有限公司 Nodal information optimized treatment method and device based on CAE model
CN109376378A (en) * 2018-09-10 2019-02-22 重庆长安汽车股份有限公司 A kind of Pre-and Post-processing of rapidly extracting white body installation point rigidity result

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6510357B1 (en) * 2000-02-25 2003-01-21 Daimlerchrysler Corporation Automated welding program for full body-in-white finite element assembly
CN103870623A (en) * 2012-12-18 2014-06-18 南车青岛四方机车车辆股份有限公司 Preprocessing template for vehicle model
CN104933210A (en) * 2014-03-18 2015-09-23 广州汽车集团股份有限公司 Method for processing body-in-white rigidity optimization result file
CN104615890A (en) * 2015-02-10 2015-05-13 北京汽车股份有限公司 Load extraction method and device under limiting working conditions
CN105701305A (en) * 2016-01-18 2016-06-22 东风柳州汽车有限公司 CAE load-step automatic setting method
CN107301287A (en) * 2017-06-19 2017-10-27 武汉理工大学 The method for automatically extracting vehicle body attachment point dynamic stiffness
CN109063295A (en) * 2018-07-20 2018-12-21 北京长城华冠汽车技术开发有限公司 Nodal information optimized treatment method and device based on CAE model
CN109376378A (en) * 2018-09-10 2019-02-22 重庆长安汽车股份有限公司 A kind of Pre-and Post-processing of rapidly extracting white body installation point rigidity result

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
动刚度分析流程自动化助力汽车底盘研发方法;邢如飞 等;《沈阳航空航天大学学报》;第31-36页 *
基于HyperWorks的流程自动化系统开发与应用;孙静 等;《铁路计算机应用》;第21卷(第12期);第36-39页 *
基于Tcl/Tk的HyperMesh CAE流程自动化系统的研究与开发;范超;《中国优秀硕士学位论文全文数据库》;第1-94页 *

Also Published As

Publication number Publication date
CN112307589A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US10797967B2 (en) Managing service deployment
CN106446412B (en) Model-based test method for avionics system
US20190068454A1 (en) Device model to thing model mapping
KR20210149045A (en) artificial intelligence chip verification
WO2007001108A1 (en) System for providing feature-oriented software product line engineering environment
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
US20150169295A1 (en) Design Assistance Device for Control Software
CN108228965B (en) Simulation verification method, device and equipment for memory cell
CN112307589B (en) Unit working condition creation method and device, electronic equipment and storage medium
US11750471B2 (en) Method and apparatus for determining resource configuration of cloud service system
CN110968339B (en) Method and device for front-end building tool and electronic equipment
CN112732237A (en) Method and system for constructing code-free development technology model
CN104536745A (en) Task modification method and device
CN117112400A (en) Automatic test case generation platform
CN102270126B (en) Method and equipment for quickly determining interface code and test script parameter value
WO2016082474A1 (en) Human-machine command script updating method and apparatus, and computer storage medium
CN103970925A (en) Contact Surface Definition Creation Involving Low Order And Quadratic Finite Elements In A Numerical Simulation Of An Impact Event
CN112395779A (en) Rigid connection creating method and device, electronic equipment and storage medium
CN113010489A (en) Data migration method and system
KR20150117926A (en) Method and Apparatus for Component Modeling and Simulation System
CN115250231B (en) Application configuration method and device
CN105302425A (en) Application object processing method and electronic device
CN114448851B (en) Automatic data testing method and system
CN112395682A (en) Cell inheritance method and device of grid model, electronic equipment and storage medium
CN105354374A (en) Stiffness simulation method and apparatus for connection point

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
GR01 Patent grant
GR01 Patent grant