CN111859539A - Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development - Google Patents
Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development Download PDFInfo
- Publication number
- CN111859539A CN111859539A CN202010640928.1A CN202010640928A CN111859539A CN 111859539 A CN111859539 A CN 111859539A CN 202010640928 A CN202010640928 A CN 202010640928A CN 111859539 A CN111859539 A CN 111859539A
- Authority
- CN
- China
- Prior art keywords
- component
- information
- name
- secondary development
- automatically
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/15—Vehicle, aircraft or watercraft design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/23—Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Automation & Control Theory (AREA)
- Aviation & Aerospace Engineering (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development, which comprises the following steps: establishing a three-dimensional model of the relevant assembly; reading the three-dimensional digital analog in a secondary development program, and automatically identifying the part number of the part; searching part numbers of parts in an external part database, acquiring part attributes and material information, and automatically renaming the parts one by adopting a uniform format: part number _ thickness _ material; and identifying information contained in the part name, automatically establishing attributes and materials, giving the attributes and the materials to the part, and outputting a CAE model file. The invention can avoid the repeated labor of renaming and attributing manual parts and materials, improve the working efficiency and reduce the error rate.
Description
The technical field is as follows:
the invention belongs to the technical field of automobile part simulation research, and particularly relates to a method for automatically assigning CAE parts according to attributes and materials.
Background art:
during finite element analysis, the properties and material parameters of the component are very critical simulation reference data in finite element simulation calculation, and are directly related to the effectiveness and accuracy of a simulation result, so that a successful simulation test cannot be used for accurately defining the properties of the component. The existing CAE preprocessing software of the latest version such as Hypermesh can only be manually operated one by one, and has low efficiency and high error rate.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
The invention content is as follows:
the invention aims to provide a finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development, thereby overcoming the defects in the prior art.
In order to achieve the purpose, the invention provides a finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development, which comprises the following steps:
establishing a three-dimensional model of the relevant assembly;
reading the three-dimensional digital analog in a secondary development program, and automatically identifying the part number of the part;
searching part numbers of parts in an external part database, acquiring part attributes and material information, and automatically renaming the parts one by adopting a uniform format: part number _ thickness _ material;
and identifying information contained in the part name, automatically establishing attributes and materials, giving the attributes and the materials to the part, and outputting a CAE model file.
In the above technical solution, the method specifically includes: a. after finite element software is imported, an assembly list and a component list in a CAE model are obtained, the component list is traversed, an assembly level corresponding to each component is found out, a part number in the assembly level is extracted and matched with a total database of the components to be named in a standardized way, and the number of the parts with the same part number which are successfully matched is recorded; b. searching corresponding material and thickness information of the successfully matched part by referring to a part total database, renaming the part according to the format of the part number thickness material, and adding a serial number at the tail of the name of the repeated part; c. according to the material and thickness information in the new name, establishing the attribute endowing component with the same name, searching a material database by the material information, establishing a corresponding material endowing component, and d, outputting a CAE model file.
A finite element automatic attribute and material parameter assigning method based on Tcl/Tk secondary development is characterized by specifically comprising the following steps: a. after finite element software is imported, an assembly list and a component list in a CAE model are obtained, the component list is traversed, an assembly level corresponding to each component is found out, a part number in the assembly level is extracted and matched with a component database to be named in a standardized way, and the number of successfully matched parts of the same part number is recorded;
b. searching corresponding material and thickness information of the successfully matched part by referring to a part database, renaming the part according to the format of the part number thickness material, and adding a serial number at the tail of the name of the repeated part;
c. establishing an attribute giving component with the same name according to the material and thickness information in the new name, searching a material database by the material information, and establishing a corresponding material giving component;
d. outputting a CAE model file, specifically, after a program is operated, matching components in the model with a component general table by using an instruction stringeequal, recording the number of repeated components, marking the components by successfully matched components, reading thickness and material information in the general table by using an instruction read, combining the instruction applied into a new name according to a format, and renaming by using a renamelector instruction; the instruction regexp scans the name of the part and extracts information, creates material and attributes with the same name, then gives the part, and simultaneously outputs prompt information for incorrect name formats and thickness formats of the part;
Repeating the steps in sequence to cycle all the successfully matched components; and the program is run once, namely the normalized naming is completed, and meanwhile, the attribute and the material are assigned automatically according to the name.
Compared with the prior art, the invention has the following beneficial effects:
the finite element automatic attribute and material parameter assigning method based on Tcl/Tk secondary development adopts a programming mode, only a part general table and a material general table to be subjected to standard naming are placed on a path of a program reading file, and then a model operation program is opened, so that automatic standard naming, attribute assigning and material can be realized. The method is particularly suitable for the cases of more materials and more parts. The problems of complicated manual operation and large workload in the prior art are solved, and the working efficiency is greatly improved. Before, renaming operation of a single component is completed once, 8 times of mouse operation and 2 times of keyboard operation are needed, material and thickness information is given to the component once, 30 times of mouse operation and 6 times of keyboard operation are needed, a panel is switched for 3 times, and the number of components is correspondingly doubled. With this method, one key is used to execute the program, and only a few minutes of time is needed.
Description of the drawings:
FIG. 1 is a flow chart of finite element automatic attribute and material parameter assigning method based on Tcl/Tk secondary development implemented by the invention
The specific implementation mode is as follows:
the following detailed description of specific embodiments of the invention is provided, but it should be understood that the scope of the invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
As shown in FIG. 1, the invention provides a finite element automatic attribute and material parameter assigning method based on Tcl/Tk secondary development.
It comprises the following steps: A. establishing a three-dimensional model of the relevant assembly; B. reading the three-dimensional digital analog in a secondary development program, and automatically identifying the part number of the part; C. searching part numbers of parts in an external part database, acquiring part attributes and material information, and automatically renaming the parts one by adopting a uniform format: part number _ thickness _ material; and D, identifying information contained in the part name, automatically establishing attributes and materials, giving the part with the attributes and materials, and outputting a CAE model file.
The method specifically comprises the following steps: a. after finite element software is imported, an assembly list and a component list in a CAE model are obtained, the component list is traversed, an assembly level corresponding to each component is found out, a part number in the assembly level is extracted and matched with a component database to be named in a standardized way, and the number of successfully matched parts of the same part number is recorded; b. searching corresponding material and thickness information of the successfully matched part by referring to a part database, renaming the part according to the format of the part number thickness material, and adding a serial number at the tail of the name of the repeated part; c. establishing an attribute giving component with the same name according to the material and thickness information in the new name, searching a material database by the material information, and establishing a corresponding material giving component; d. and outputting the CAE model file. Specifically, after a program is operated, matching is carried out on components in the model and a component general table by using an instruction string equal, the number of repeated components is recorded, the successfully matched components mark the repeated components, an instruction read reads thickness and material information in the general table, an instruction open is combined into a new name according to formats and renamed by using a renamelector instruction; the instruction regexp scans the name of the part and extracts information, creates material and attributes with the same name, then gives the part, and simultaneously outputs prompt information for incorrect name formats and thickness formats of the part; repeating the steps in sequence to cycle all the successfully matched components; and the program is run once, namely the normalized naming is completed, and meanwhile, the attribute and the material are assigned automatically according to the name.
In the embodiment, step A, geometric models are built in Pro/E, Catia and UG, and then CAE analysis preprocessing software is introduced for processing. Other steps are as in the above embodiment.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.
Claims (8)
1. A finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development is characterized by comprising the following steps:
establishing a three-dimensional model of the relevant assembly;
reading the three-dimensional model in a secondary development program, and automatically identifying the part number of the part;
searching part numbers of parts in an external part database, acquiring part attributes and material information, and automatically renaming the parts one by adopting a uniform format: part number _ thickness _ material;
And identifying information contained in the renamed name of the component, automatically establishing attributes and materials, giving the attributes and materials to the component, and outputting a CAE model file.
2. A method for finite element automatic attribute and material parameter assignment based on Tcl or Tk secondary development as claimed in claim 1, wherein reading three-dimensional figures and models in the secondary development program, automatically identifying part numbers of components, comprises: and after finite element software is introduced, obtaining an assembly list and a component list in the CAE model, traversing the component list, finding out an assembly level corresponding to each component, extracting part numbers in the assembly levels, and converting the part numbers into codes.
3. The method for automatically assigning attributes and material parameters of finite elements based on Tcl/Tk secondary development according to claim 1, wherein comparing the part number information in the database comprises: matching with a total database of parts to be named in a standardized way, and recording the number of successfully matched parts with the same part number; and extracting the successfully matched component information and converting the component information into codes.
4. A finite element automatic attribute and material parameter method based on Tcl or Tk secondary development according to claim 3, wherein the extracting matching successful component information comprises: part number of the part, part thickness, part material, and number of repetitions.
5. A finite element auto-attribution and material parameter method based on Tcl or Tk secondary development as claimed in claim 1, wherein automatically renaming the part comprises renaming the part according to part number thickness material format, and numbering is added at the end of the repeated part.
6. A finite element auto-attribute and material parameter method based on Tcl or Tk secondary development as claimed in claim 1, wherein identifying information contained in part name, auto-attribute and material and assigning part comprises: establishing a same-name attribute according to the material and thickness information in the part name; searching a material database by the material information, converting the material database into codes, and establishing corresponding materials; attributes and materials are automatically assigned to the corresponding component based on the component name information.
7. The method for automatically assigning attributes and material parameters of finite elements based on Tcl or Tk secondary development according to claim 1, wherein outputting a CAE model file comprises: and automatically generating a file with a corresponding format according to the type of the solver.
8. A finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development is characterized by specifically comprising the following steps: a. after finite element software is imported, an assembly list and a component list in a CAE model are obtained, the component list is traversed, an assembly level corresponding to each component is found out, a part number in the assembly level is extracted and matched with a component database to be named in a standardized way, and the number of successfully matched parts of the same part number is recorded;
b. Searching corresponding material and thickness information of the successfully matched part by referring to a part database, renaming the part according to the format of the part number thickness material, and adding a serial number at the tail of the name of the repeated part;
c. establishing an attribute giving component with the same name according to the material and thickness information in the new name, searching a material database by the material information, and establishing a corresponding material giving component;
d. outputting a CAE model file, specifically, after a program is operated, matching components in the model with a component general table by using an instruction stringeequal, recording the number of repeated components, marking the components by successfully matched components, reading thickness and material information in the general table by using an instruction read, combining the instruction applied into a new name according to a format, and renaming by using a renamelector instruction; the instruction regexp scans the name of the part and extracts information, creates material and attributes with the same name, then gives the part, and simultaneously outputs prompt information for incorrect name formats and thickness formats of the part;
repeating the steps in sequence to cycle all the successfully matched components; and the program is run once, namely the normalized naming is completed, and meanwhile, the attribute and the material are assigned automatically according to the name.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010640928.1A CN111859539A (en) | 2020-07-06 | 2020-07-06 | Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010640928.1A CN111859539A (en) | 2020-07-06 | 2020-07-06 | Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111859539A true CN111859539A (en) | 2020-10-30 |
Family
ID=73152272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010640928.1A Pending CN111859539A (en) | 2020-07-06 | 2020-07-06 | Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111859539A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113297690A (en) * | 2021-04-27 | 2021-08-24 | 成都飞机工业(集团)有限责任公司 | Method for quickly designing symmetrical part based on CATIA secondary development |
CN116775097A (en) * | 2023-08-21 | 2023-09-19 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
-
2020
- 2020-07-06 CN CN202010640928.1A patent/CN111859539A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113297690A (en) * | 2021-04-27 | 2021-08-24 | 成都飞机工业(集团)有限责任公司 | Method for quickly designing symmetrical part based on CATIA secondary development |
CN116775097A (en) * | 2023-08-21 | 2023-09-19 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
CN116775097B (en) * | 2023-08-21 | 2023-11-07 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739766B (en) | System and method for rapidly building FPGA digital simulation model | |
CN110008113B (en) | Test method and device and electronic equipment | |
CN108279885B (en) | Method and device for integrating software of multiple model codes | |
CN110378206B (en) | Intelligent image examination system and method | |
CN111859539A (en) | Finite element automatic attribute and material parameter assigning method based on Tcl or Tk secondary development | |
CN106570232A (en) | Inspection procedure automatic generation method | |
CN110399286B (en) | Independent path-based automatic test data generation method | |
CN111026433A (en) | Method, system and medium for automatically repairing software code quality problem based on code change history | |
CN107993636A (en) | Music score modeling and generation method based on recurrent neural network | |
CN111444718A (en) | Insurance product demand document processing method and device and electronic equipment | |
CN113191629A (en) | Intelligent contract generation method and device for quality acceptance of constructional engineering | |
CN113672520A (en) | Test case generation method and device, electronic equipment and storage medium | |
CN112631704A (en) | Interface element identification method and device, storage medium and electronic equipment | |
CN116776879A (en) | Method, system and equipment for excavating skill entity in recruitment field | |
CN109086985B (en) | Professional test information management system for spacecraft assembly | |
CN111104159A (en) | Annotation positioning method based on program analysis and neural network | |
CN110806977A (en) | Test case set generation method and device based on product requirements and electronic equipment | |
CN111240978A (en) | Data report generation and analysis method | |
CN112860242B (en) | Automatic mapping method for interactive data of turbine simulator | |
CN115828804A (en) | Method for modifying RTL source code file and electronic equipment | |
CN114186554A (en) | Script data processing method and device, computer equipment and storage medium | |
CN114153447A (en) | Method for automatically generating AI training code | |
CN113377962A (en) | Intelligent process simulation method based on image recognition and natural language processing | |
CN112306767A (en) | Automatic testing method for chip signal connection relation | |
JPH10254930A (en) | Device and method for verifying function of semiconductor device |
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 |