Natural grid finite element model checking method based on numerical calculation

By using a method based on numerical operations to establish inspection rules and cyclically check the node, element, material and attribute numbers in the finite element model, the problems of low efficiency and poor quality of traditional inspections are solved, and efficient and accurate finite element model inspection is achieved.

CN118395819BActive Publication Date: 2024-08-30AVIC CHENGFEI COMML AIRCRAFT COMPANY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410865559.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-08-30
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

The traditional natural mesh finite element model inspection method has low efficiency, poor quality results, and non-standard inspection, and cannot meet the project needs of efficient design, rapid iteration, and high-quality development.

Method used

A method based on numerical operations is used to establish inspection rules for finite element node numbers, unit numbers, material numbers, and attribute numbers. Through array storage and cyclic inspection, abnormal results are output to improve inspection efficiency and avoid false detections and missed detections.

Benefits of technology

It greatly improves the efficiency of finite element model inspection, saves labor and time costs, and ensures the accuracy and completeness of inspection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395819B
    Figure CN118395819B
Patent Text Reader

Abstract

The present invention mainly relates to the technical field of finite element analysis. In order to solve the problem that when checking a natural mesh finite element model, it is necessary to manually check and compare the model information in the BDF file and the inspection command provided by the modeling software, the comparison process has a large amount of data, low efficiency, poor quality and irregular inspection. The present invention provides a natural mesh finite element model inspection method based on numerical calculation, establishes inspection rules and a first array, a second array, a third array and a fourth array for each inspection item in the finite element node number, unit number, material number and attribute number; extracts the finite element node number, unit number, material number and attribute number in the BDF file, and writes them into the first established array, sets a loop condition, checks each inspection item stored in the array based on the inspection rules of each inspection item, and outputs the inspection abnormality result, thereby improving the efficiency of finite element model inspection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the technical field of finite element analysis, and in particular to a natural grid finite element model checking method based on numerical calculation. Background Art

[0002] The natural mesh finite element model is mainly used to calculate the overall displacement and unit internal force of the aircraft. It is also an important basis for the analysis of structural static strength, fatigue strength and damage tolerance. The traditional natural mesh finite element model inspection method requires designers and proofreaders to check and compare the model information in the BDF file and the inspection commands provided by the modeling software according to the model modeling specifications and project requirements. Due to the complexity of the model, large amount of data, many inspection clauses, frequent updates and iterations, and urgent task nodes, quality problems are prone to occur during the inspection process, and it takes up a lot of manpower and time, which cannot meet the project requirements of efficient design, rapid iteration, and high-quality development. Summary of the invention

[0003] Technical Problems to be Solved by the Invention

[0004] A natural mesh finite element model checking method based on numerical calculation is provided to solve the problems that when checking the natural mesh finite element model, it is necessary to manually check and compare the model information in the BDF file with the check commands provided by the modeling software. The comparison process has a large amount of data, low efficiency, poor quality of inspection results, and non-standard inspection.

[0005] The technical solution adopted by the present invention to solve the above technical problems

[0006] The natural mesh finite element model checking method based on numerical calculation includes:

[0007] Establish inspection rules for each inspection item in finite element node number, element number, material number and attribute number;

[0008] Establish a first array, a second array, a third array and a fourth array;

[0009] Extract the finite element node number, unit number, material number and attribute number in the BDF file, and write the finite element node number into the first array, the finite element unit number into the second array, the finite element material number into the third array, and the finite element attribute number into the fourth array;

[0010] Set the loop conditions, check each finite element node number, unit number, material number and attribute number stored in the array based on the inspection rules of each inspection item, and output the inspection abnormality results.

[0011] Furthermore, the inspection items in the finite element node numbering include: counting the number of times each node number appears in the first array, and checking whether there are duplications in the node numbering; counting the number of times all the node numbers in the first array are referenced by the unit, and checking whether there are hidden nodes and free nodes; judging whether the number of digits of all the node numbers in the first array is a preset value, and checking whether the number of digits of the node numbering is correct; calculating whether the distance between every two node coordinates in the first array is less than a preset value, and checking whether there are duplicate nodes; judging whether each node position in the first array is a preset position according to the set node numbering rules, and checking whether the node coordinate position is correct.

[0012] Furthermore, the inspection items in the finite element unit numbering include: counting the number of times each unit number appears in the second array, and checking whether the unit number is repeated; judging whether the number of digits of all unit numbers in the second array is a preset value, and checking whether the number of digits of the unit number is correct; judging whether the type value of all unit numbers in the second array is a preset value, and checking whether the unit type is correct; judging whether the node numbers corresponding to every two unit numbers in the second array are the same, and checking whether there are duplicate units; judging whether the position of the midpoint coordinates of each unit conforms to the setting of the unit number, and checking whether the position of each unit in the second array is the preset position.

[0013] Furthermore, the inspection items in the finite element material number include: counting the number of times each material number appears in the third array, and checking whether the material number is repeated; judging whether the material number in the third array is consistent with the material number in the standard library, and checking whether the material number is correct; judging whether the material parameters in the material number in the third array are consistent with the material parameters in the material number in the standard library, and checking whether the material parameters are correct.

[0014] Furthermore, the inspection items in the finite element attribute number include: counting the number of times each attribute number appears in the fourth array, checking whether the attribute number is repeated; checking whether the unit number referenced by each attribute number in the fourth array is the minimum unit number; counting the number of times each attribute number in the fourth array is referenced, checking whether there are attribute numbers with empty attributes, determining whether the material number referenced by each attribute unit number in the fourth array exists, and checking the integrity of the attribute data.

[0015] Furthermore, the method also includes: changing the inspection rules of each inspection item in the finite element node number, unit number, material number and attribute number according to project requirements, and running the changed inspection rules of each inspection item in the established array.

[0016] Furthermore, the method also includes: saving the inspection rules of each inspection item in the finite element node number, unit number, material number and attribute number into an exe program in the form of python code.

[0017] Furthermore, the method also includes: when checking each finite element node number, unit number, material number and attribute number stored in the array based on the inspection rules of each inspection item, each inspection item in the finite element node number, unit number, material number and attribute number is run in parallel.

[0018] Beneficial Effects of the Invention

[0019] The present invention provides a natural grid finite element model inspection method based on numerical calculation. Firstly, the inspection rules of each inspection item in the finite element node number, unit number, material number and attribute number are respectively established, the finite element node number, unit number, material number and attribute number in the BDF file are extracted, and written into the first established array, and the loop condition is set. Based on the inspection rule of each inspection item, each inspection item stored in the array is inspected, and the inspection abnormality result is output, which greatly improves the efficiency of finite element model inspection, saves manpower and time costs, and helps to timely discover problems in the finite element model; and can effectively avoid quality problems such as wrong detection and missed detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flowchart for checking whether the node number is repeated;

[0021] Figure 2 A flowchart for checking whether the number of digits in a node number is a preset value;

[0022] Figure 3 Flowchart to check if there are hidden nodes;

[0023] Figure 4 Flowchart to check if there are heavy nodes;

[0024] Figure 5 Check the flow chart for node locations;

[0025] Figure 6 Check the flow graph for free nodes;

[0026] Figure 7 A flowchart for checking whether unit numbers are repeated;

[0027] Figure 8 Check the flow chart for the number of digits in the unit numbering;

[0028] Fig. 9 Check the flow chart for the unit type;

[0029] Fig.10 Check the flow chart for the heavy unit;

[0030] Fig.11 Check the flow chart for unit location;

[0031] Fig.12 Repeat the process flow chart for material numbers;

[0032] Fig.13 Check the flow chart for whether the material number is consistent with the standard library material number;

[0033] Fig.14 Flowchart for material parameter integrity check;

[0034] Fig.15 Repeat the check flow chart for the attribute number;

[0035] Fig.16 Check the flow chart for whether the attribute number is the smallest unit among the referenced unit numbers;

[0036] Fig.17 Check flow chart for null properties;

[0037] Fig.18 Check the flow chart to see if the attribute is assigned a material. DETAILED DESCRIPTION

[0038] A natural mesh finite element model inspection method based on numerical calculations establishes inspection rules for each inspection item in the finite element node number, unit number, material number and attribute number, and saves the inspection rules for each inspection item in the form of python code into an exe program. The specific inspection rules for each inspection item in the finite element node number, unit number, material number and attribute number can be changed according to specific project requirements.

[0039] Create the first array, the second array, the third array and the fourth array; extract all finite element node numbers, unit numbers, material numbers and attribute numbers in the BDF file, and write the finite element node numbers into the first array, the finite element unit numbers into the second array, the finite element material numbers into the third array, and the finite element attribute numbers into the fourth array.

[0040] Set the loop conditions, run the exe program to check each finite element node number, unit number, material number and attribute number stored in each array, and output the abnormal results of the inspection. When checking each finite element node number, unit number, material number and attribute number stored in the array, you can read the BDF file separately and run each inspection item one by one, or you can run all inspection items in parallel at the same time.

[0041] Among them, the inspection items in the finite element node numbers include: counting the number of occurrences of each node number in the first array and checking whether there are duplicate node numbers; counting the number of times all the node numbers in the first array are referenced by elements and checking for hidden nodes and free nodes; determining whether the number of digits of all the node numbers in the first array is a preset value and checking whether the number of digits of the node numbers is correct; calculating whether the distance between every two node coordinates in the first array is less than the preset value and checking for overlapping nodes; and judging whether each node position in the first array is a preset position according to the set node numbering rule and checking whether the node coordinate positions are correct.

[0042] The steps for counting the number of occurrences of each node number in the first array and checking for duplicate node numbers are as Figure 1 shown and specifically include:

[0043] Step S1-1: Read the BDF file; Step S1-2: Store the characters representing the node numbers in the 8-16 bytes with the line header "GRID" in the first array, and let k = 1; Step S1-3: Establish a loop to count the number of occurrences of the kth (k = 1, 2, 3... x-1, x) node number in the first array in the first array, where x is the number of node numbers in the first array; Step S1-4: If the number of occurrences > 1, store the node number in the result array, otherwise go to Step S1-5; Step S1-5: If k < x, then k = k + 1, otherwise exit the loop; Step S1-6: Repeat Steps S1-3 to S1-5 until all the characters in the first array are counted; Step S1-7: Output all the node numbers in the result array.

[0044] The steps for determining whether the number of digits of all the node numbers in the first array is a preset value and checking whether the number of digits of the node numbers is correct are as Figure 2 shown and specifically include:

[0045] Step S2-1: Read the BDF file; Step S2-2: Store the characters representing the node numbers in the 8-16 bytes with the line header "GRID" in the first array, and let k = 1; Step S2-3: Establish a loop condition to count the byte length of the kth (k = 1, 2, 3... x-1, x) node number in the first array, where x is the number of node numbers in the first array; Step S2-4: If the byte length ≠ a, store the node number in the result array, otherwise go to Step S2-5, where a is the preset value determined according to the project technical requirements; Step S2-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S2-6: Repeat Steps S2-3 to S2-5 until all the characters in the first array are counted; Step S2-7: Output all the node numbers in the result array.

[0046] Steps for counting the number of times all node numbers in the first array are referenced by elements and checking for hidden nodes are as follows Figure 3 shown, specifically including:

[0047] Step S3-1: Read the BDF file; Step S3-2: Store the characters representing node numbers in the 8-16 bytes with the line header "GRID" in the first array, and set k = 1; Step S3-3: Establish a loop condition to count the number of times the k-th (k = 1, 2, 3... x-1, x) node number in the first array is used by elements, where x is the number of node numbers in the first array; Step S3-4: If the number of uses = 0, store the node number in the result array, otherwise go to Step S3-5; Step S3-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S3-6: Repeat Steps S3-3 to S3-5 until all characters in the first array are counted; Step S3-7: Output all node numbers in the result array.

[0048] Steps for calculating whether the distance between the coordinates of every two nodes in the first array is less than a preset value and checking for duplicate nodes are as follows Figure 4 shown, specifically including:

[0049] Step S4-1: Read the BDF file; Step S4-2: Store the characters representing node numbers in the 8-16 bytes with the line header "GRID" in the first array, and set k = 1; Step S4-3: Extract the coordinate values (x n , y n , z n ) corresponding to each node number; Step S4-4: Establish a loop condition to count the distance between two node numbers in the k-th (k = 1, 2, 3... x-1, x) group in the first array where x is the number of groups of node numbers in the first array combined in pairs (1 group contains 2 node numbers); Step S4-5: If the distance < preset value, store the two node numbers in the k-th group in the result array, otherwise go to Step S4-6; Step S4-6: If k < x, then k = k + 1, otherwise exit the loop condition; Step S4-7: Repeat Steps S4-4 to S4-6 until all combinations in the first array are counted; Step S4-8: Output the combinations of node numbers in the result array.

[0050] Steps for judging whether the position of each node in the first array is a preset position according to the set node number rule and checking whether the node coordinate position is correct are as follows Figure 5 shown, specifically including:

[0051] Step S5-1: Read the BDF file; Step S5-2: Store the 8-16 bytes with the line header "GRID" representing the node number in the first array, and let k = 1; Step S5-3: Extract the coordinate values (x n , y n , z n ) corresponding to each node number; Step S5-4: Establish a loop condition to determine whether the k-th (k = 1, 2, 3... x-1, x) node number in the first array is on the left or right side of the course according to the node number, where x is the number of node numbers in the first array. The left or right side of the node number is determined according to the node number rule required by the project. Taking a certain type of nose project as an example, the second digit of the node number on the frame being 1 means the node is on the left side of the course, and the second digit of the node number being 2 means the node is on the right side of the course; Step S5-5: If the node is on the left side of the course, determine whether the node coordinates are on the right side of the course. If so, store the node number in the result array, otherwise go to Step S5-6; Step S5-6: If the node is on the right side of the course, determine whether the node coordinates are on the left side of the course. If so, store the node number in the result array, otherwise go to Step S5-7; Step S5-7: If k < x, then k = k + 1, otherwise exit the loop condition; Step S5-8: Repeat Steps S5-4 to S5-7 until all the characters in the first array are completely counted; Step S5-9: Output all the node numbers in the result array.

[0052] Steps to count the number of times all the node numbers in the first array are referenced by elements and check for the existence of free nodes are as Figure 6 shown, specifically including:

[0053] Step S6-1: Read the BDF file; Step S6-2: Store the 8-16 bytes with the line header "GRID" representing the node number in the first array, and let k = 1; Step S6-3: Establish a loop condition to count the number of times the k-th (k = 1, 2, 3... x-1, x) node number in the first array is used by elements, where x is the number of node numbers in the first array; Step S6-4: If the number of uses = 1, store the node number in the result array, otherwise go to Step S6-5; Step S6-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S6-6: Repeat Steps S6-3 to S6-5 until all the characters in the first array are completely counted; Step S6-7: Output all the node numbers in the result array.

[0054] The inspection items in the finite element unit numbers include: counting the number of occurrences of each unit number in the second array to check whether the unit numbers are repeated; judging whether the number of digits of all unit numbers in the second array is a preset value to check whether the number of digits of the unit numbers is correct; judging whether the type values of all unit numbers in the second array are preset values to check whether the unit types are correct; judging whether the node numbers corresponding to every two unit numbers in the second array are the same to check whether there are duplicate units; judging whether the position of the midpoint coordinates of each unit conforms to the setting of the unit number to check whether the position of each unit in the second array is a preset position.

[0055] The steps for counting the number of occurrences of each unit number in the second array to check whether the unit numbers are repeated are as Figure 7 shown and specifically include:

[0056] Step S7-1: Read the BDF file; Step S7-2: Store the characters representing the unit numbers, which are 8-16 bytes with the line header "C" (except COOR2D), in the second array, and let k = 1; Step S7-3: Establish a loop condition to count the number of occurrences of the kth (k = 1, 2, 3... x - 1, x) unit number in the second array in the second array, where x is the number of unit numbers in the second array; Step S7-4: If the number of occurrences > 1, store the node number in the result array, otherwise go to Step S7-5; Step S7-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S7-6: Repeat Steps S7-3 to S7-5 until all the characters in the second array are counted; Step S7-7: Output all the unit numbers in the result array.

[0057] The steps for judging whether the number of digits of all unit numbers in the second array is a preset value to check whether the number of digits of the unit numbers is correct are as Figure 8 shown and specifically include:

[0058] Step S8-1: Read the BDF file; Step S8-2: Store the characters representing the unit numbers, which are 8-16 bytes with the line header "C" (except COOR2D), in the second array, and let k = 1; Step S8-3: Establish a loop condition to count the byte length of the kth (k = 1, 2, 3... x - 1, x) unit number in the second array, where x is the number of unit numbers in the second array; Step S8-4: If the byte length ≠ b, store the node number in the result array, otherwise go to Step S8-5, where b is a preset value determined according to the project technical requirements; Step S8-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S8-6: Repeat Steps S8-3 to S8-5 until all the characters in the second array are counted; Step S8-7: Output all the node numbers in the result array.

[0059] To determine whether the type values of all cell numbers in the second array are preset values and check whether the cell types are correct, the steps are as Fig. 9 shown and specifically include:

[0060] Step S9-1: Read the BDF file; Step S9-2: Store the characters representing the cell numbers, which are 8-16 bytes with the line header "C" (except COOR2D), in the second array, and let k = 1; Step S9-3: Establish a loop condition to count the type values of the kth (k = 1, 2, 3... x-1, x) cell number in the second array, where x is the number of cell numbers in the second array. Taking a certain type of nose project as an example, the third digit of the cell number represents the cell type; Step S9-4: If the cell number type value ≠ c, store the node number in the result array, otherwise go to Step S9-5, where c is the cell number type value determined according to the project technical requirements. Taking a certain type of nose project as an example, the rod element is 1, the beam element is 2, the triangular plate element is 3, the quadrilateral plate element is 4, and the rigid element is 7; Step S9-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S9-6: Repeat Steps S9-3 to S9-5 until all the characters in the second array are counted; Step S9-7: Output all the node numbers in the result array.

[0061] To determine whether the node numbers corresponding to every two cell numbers in the second array are the same and check for duplicate cells, the steps are as Fig.10 shown and specifically include:

[0062] Step S10-1: Read the BDF file; Step S10-2: Store the 8-16 bytes starting with "C" (except COOR2D), which represent the element number, in the second array; Step S10-3: Classify the element numbers according to CBAR, CROD, CBAR and CROD, CTRIA3, CQUAD4, CTRIA3 and CQUAD, and combine the element numbers in pairs within each category. Let k = 1; Step S10-4: Establish a loop condition to count the node numbers corresponding to the two element numbers in the kth (k = 1, 2, 3... x-1, x) group, where x is the number of groups of element numbers combined in pairs in the second array (1 group contains 2 element numbers). CBAR and CROD have two node numbers, CTRIA3 has three node numbers, CQUAD4 has four node numbers, and the node numbers and their order corresponding to each element number in a BDF file are unique; Step S10-5: If the node numbers of two elements are the same (different orders of numbers are also considered the same), store the two element numbers in the kth group in the result array, otherwise go to Step S10-6; Step S10-6: If k < x, then k = k + 1, otherwise exit the loop condition; Step S10-7: Repeat Steps S10-4 to S10-6 until all combinations of element numbers are counted; Step S10-8: Output all combinations of element numbers in the result array.

[0063] The steps to determine whether the midpoint coordinates of each element meet the settings of the element number and check whether the position of each element in the second array is the preset position are as Fig.11 shown, specifically including:

[0064] Step S11-1: Read the BDF file; Step S11-2: Store the 8-16 bytes starting with "C" (except COOR2D), which represent the element number, in the second array. Let k = 1; Step S11-3: Extract the node number coordinate values (x n , y n , z n), and calculate the midpoint coordinates of each element ((x1 + x2) / 2, (y1 + y2) / 2, (z1 + z2) / 2). Among them, CBAR and CROD elements have 2 nodes, and the midpoint coordinates of the element are taken as the midpoint coordinates of node G1 and node G2. CQUAD3 has 3 nodes, and CQUAD4 elements have 4 nodes. The midpoint coordinates of the element are all taken as the midpoint coordinates of node G2 and node G3; Step S11-4: Establish a loop condition. According to the element number, judge whether the k-th (k = 1, 2, 3... x - 1, x) element number in the second array is on the left or right side of the course. x is the number of element numbers in the second array. Among them, whether the element number is on the left or right side of the course is judged according to the element number rule required by the project. Taking a certain type of nose project as an example, if the second digit of the element number of the frame is 3, it means that the node is on the left side of the course, and if the second digit of the node number is 4, it means that the node is on the right side of the course; Step S11-5: If the element is on the left side of the course, judge whether the midpoint coordinates of the element are on the right side of the course. If so, store the element number in the result array, otherwise go to Step S11-6; Step S11-6: If the element is on the right side of the course, judge whether the midpoint coordinates of the element are on the left side of the course. If so, store the element number in the result array, otherwise go to Step S11-7; Step S11-7: If k < x, then k = k + 1, otherwise exit the loop condition; Step S11-8: Repeat Steps S11-4 to S11-7 until all the characters in the second array are counted; Step S11-9: Output all the element numbers in the result array.

[0065] The inspection items in the finite element material number include: counting the number of times each material number appears in the third array and checking whether the material numbers are repeated; judging whether the material numbers in the third array conform to the standard library material numbers and checking whether the material numbers are correct; judging whether the material parameters in the material numbers in the third array conform to the material parameters in the standard library material numbers and checking whether the material parameters are correct.

[0066] The steps for counting the number of times each material number appears in the third array and checking whether the material numbers are repeated are as Fig.12 shown and specifically include:

[0067] Step S12-1: Read the BDF file; Step S12-2: Store the 8-16 bytes starting with "M" representing the material number in the third array, and let k = 1; Step S12-3: Establish a loop condition to count the number of times the k-th (k = 1, 2, 3... x-1, x) material number in the third array appears in the third array, where x is the number of material numbers in the third array; Step S12-4: If the number of occurrences > 1, store the material number in the result array, otherwise go to Step S12-5; Step S12-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S12-6: Repeat Steps S12-3 to S12-5 until all characters in the third array are counted; Step S12-7: Output all the material numbers in the result array.

[0068] Steps to determine whether the material numbers in the third array conform to the standard library material numbers and check whether the material numbers are correct are as Fig.13 shown and specifically include:

[0069] Step S13-1: Read the BDF file; Step S13-2: Store the 8-16 bytes starting with "M" representing the material number in the third array, and let k = 1; Step S13-3: Establish a loop condition. If the k-th (k = 1, 2, 3... x-1, x) material number ≠ the standard library material number, store the material number in the result array, otherwise go to Step S13-4, where x is the number of material numbers in the third array. Taking a certain type of nose project as an example, the material of the aluminum alloy sheet for the package is 2024-O-T42, and the standard library material number is 20241. The material of the plate is 7050-T7451, and the standard library material number is 70501; Step S13-4: If k < x, then k = k + 1, otherwise exit the loop condition; Step S13-5: Repeat Steps S13-3 to S13-4 until all characters in the third array are counted; Step S13-6: Output all the material numbers in the result array.

[0070] Steps to determine whether the material parameters in the material numbers in the third array conform to the material parameters in the standard library material numbers and check whether the material parameters are correct are as Fig.14 shown and specifically include:

[0071] Step S14-1: Read the BDF file; Step S14-2: Store the 8-16 bytes with the line header "M", representing the material number, in the third array, and let k = 1; Step S14-3: Establish a loop condition to read the material parameters corresponding to the k-th (k = 1, 2, 3... x-1, x) material number in the third array, where x is the number of material numbers in the third array, and the material parameters include elastic modulus, Poisson's ratio, coefficient of thermal expansion, density, etc.; Step S14-4: If the material parameters ≠ the standard library parameters, store the material number in the result array, otherwise go to Step S14-5; Step S14-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S14-6: Repeat Steps S14-3 to S14-5 until all the characters in the third array are counted; Step S14-7: Output all the material numbers in the result array.

[0072] The inspection items in the finite element attribute number include: counting the number of times each attribute number appears in the fourth array and checking whether the attribute numbers are repeated; checking whether the element number referenced by each attribute number in the fourth array is the smallest element number; counting the number of times each attribute number in the fourth array is referenced, checking whether there is an attribute number with an empty attribute, judging whether the material number referenced by each attribute unit number in the fourth array exists, and checking the integrity of the attribute data.

[0073] The steps for counting the number of times each attribute number appears in the fourth array and checking whether the attribute numbers are repeated are as Fig.15 shown, specifically including:

[0074] Step S15-1: Read the BDF file; Step S15-2: Store the 8-16 bytes with the line header "P", representing the attribute number, in the fourth array, and let k = 1; Step S15-3: Establish a loop condition to count the number of times the k-th (k = 1, 2, 3... x-1, x) attribute number in the fourth array appears in the fourth array, where x is the number of attribute numbers in the fourth array; Step S15-4: If the number of occurrences > 1, store the attribute number in the result array, otherwise go to Step S15-5; Step S15-5: If k < x, then k = k + 1, otherwise exit the loop condition; Step S15-6: Repeat Steps S12-3 to S12-5 until all the characters in the fourth array are counted; Step S15-7: Output all the attribute numbers in the result array.

[0075] The steps for checking the value of the attribute number and checking whether each attribute number in the fourth array is the smallest element number among the referenced element numbers are as Fig.16 shown, specifically including:

[0076] Step S16-1: Read the BDF file; Step S16-2: Store the 8-16 bytes starting with "P" in the BDF file, which represent the character of the attribute number, in the fourth array, and let k = 1; Step S16-3: Establish a loop condition to count the cell numbers where the k-th (k = 1, 2, 3... x-1, x) attribute number is referenced. If the attribute number ≠ the minimum cell number, store the attribute number in the result array, otherwise go to Step S16-4, where x is the number of attribute numbers in the fourth array. In the BDF file, the string after the cell number with the line header "C" (except COOR2D) is the attribute number. Based on this, the cell numbers and quantities included in an attribute can be counted; Step S16-4: If k < x, then k = k + 1, otherwise exit the loop condition; Step S16-5: Repeat Steps S13-3 to S13-4 until all the characters in the fourth array are counted; Step S16-6: Output all the attribute numbers in the result array.

[0077] The steps to count the number of times each attribute number in the fourth array is referenced and check for the attribute numbers of empty attributes are as Fig.17 shown and specifically include:

[0078] Step S17-1: Read the BDF file; Step S17-2: Store the 8-16-byte characters (attribute numbers) starting with "P" in the fourth array, and let k = 1; Step S17-3: Establish a loop condition to count the number of times the k-th (k = 1, 2, 3... x-1, x) attribute number is referenced. If the number of references = 0, store the attribute number in the result array, otherwise go to S17-4, where x is the number of attribute numbers in the fourth array; Step S17-4: If k < x, then k = k + 1, otherwise exit the loop condition; Step S17-5: Repeat Steps S13-3 to S13-4 until all the characters in the fourth array are counted; Step S17-6: Output all the attribute numbers in the result array.

[0079] The steps to determine whether the material numbers referenced by each attribute cell number in the fourth array exist and check the integrity of the attribute data are as Fig.18 shown and specifically include:

[0080] Step S18-1: Read the BDF file; Step S18-2: Store the 8-16 bytes with the header "P" and the characters representing the attribute number in the fourth array, and let k = 1; Step S18-3: Establish a loop condition, count the material number referenced by the kth (k = 1, 2, 3...x-1, x) attribute number, if the material number does not exist, store the attribute number in the result array, otherwise go to step S18-4, where x is the number of attribute numbers in the fourth array. In the BDF file, the character string after the attribute number with the header "P" is the material number, based on which the material number and quantity contained in an attribute can be counted; Step S18-4: If k

Claims

1. A natural grid finite element model checking method based on numerical calculation, characterized in that: include: Establish inspection rules for each inspection item in finite element node number, element number, material number and attribute number; Establish a first array, a second array, a third array and a fourth array; Extract the finite element node number, unit number, material number and attribute number in the BDF file, write the finite element node number into the first array, the finite element unit number into the second array, the finite element material number into the third array, and the finite element attribute number into the fourth array; Set loop conditions, check each finite element node number, unit number, material number and attribute number stored in the array based on the inspection rules of each inspection item, and output the inspection abnormality results; The inspection items in the finite element node numbering include: counting the number of times each node number appears in the first array, checking whether the node number is repeated; counting the number of times all node numbers in the first array are referenced by the unit, checking whether there are hidden nodes and free nodes; judging whether the number of digits of all node numbers in the first array is the preset value, checking whether the number of digits of the node numbering is correct; calculating whether the distance between every two node coordinates in the first array is less than the preset value, checking whether there are duplicate nodes; judging whether each node position in the first array is the preset position according to the set node numbering rules, and checking whether the node coordinate position is correct; The inspection items in the finite element unit number include: counting the number of times each unit number appears in the second array, checking whether the unit number is repeated; judging whether the number of digits of all unit numbers in the second array is a preset value, checking whether the number of digits of the unit number is correct; judging whether the type value of all unit numbers in the second array is a preset value, checking whether the unit type is correct; judging whether the node numbers corresponding to every two unit numbers in the second array are the same, checking whether there are duplicate units; judging whether the position of the midpoint coordinates of each unit meets the setting of the unit number, and checking whether the position of each unit in the second array is the preset position; The inspection items in the finite element material number include: counting the number of times each material number appears in the third array, checking whether the material number is repeated; judging whether the material number in the third array is consistent with the material number in the standard library, checking whether the material number is correct; judging whether the material parameters in the material number in the third array are consistent with the material parameters in the material number in the standard library, checking whether the material parameters are correct; The inspection items in the finite element attribute number include: counting the number of times each attribute number appears in the fourth array, checking whether there are duplications in the attribute number; checking whether the unit number referenced by each attribute number in the fourth array is the minimum unit number; counting the number of times each attribute number in the fourth array is referenced, checking whether there are attribute numbers with empty attributes; judging whether the material number referenced by each attribute number in the fourth array exists, and checking the integrity of the attribute data.

2. The natural grid finite element model checking method based on numerical calculation according to claim 1 is characterized in that: The method further comprises: modifying the inspection rules of each inspection item in the finite element node number, unit number, material number and attribute number according to the project requirements, and running the modified inspection rules of each inspection item in the established array.

3. The natural grid finite element model checking method based on numerical calculation according to claim 1 or 2, characterized in that: The method further comprises: saving the inspection rules of each inspection item in the finite element node number, unit number, material number and attribute number into an exe program in the form of python code.

4. The natural grid finite element model checking method based on numerical calculation according to claim 1 or 2, characterized in that: The method also includes: when checking each finite element node number, unit number, material number and attribute number stored in the array based on the inspection rules of each inspection item, each inspection item in the finite element node number, unit number, material number and attribute number is run in parallel.

Citation Information

Patent Citations

  • Three-dimensional finite element model cloud picture display method based on OpenGL

    CN110097640A

  • Method for improving rhombic modal frequency of railway vehicle body

    CN117332499A