CN115512078A - Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface - Google Patents

Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface Download PDF

Info

Publication number
CN115512078A
CN115512078A CN202211249205.4A CN202211249205A CN115512078A CN 115512078 A CN115512078 A CN 115512078A CN 202211249205 A CN202211249205 A CN 202211249205A CN 115512078 A CN115512078 A CN 115512078A
Authority
CN
China
Prior art keywords
finite element
unit
array
node
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211249205.4A
Other languages
Chinese (zh)
Inventor
殷黎
郑起
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AVIC First Aircraft Institute
Original Assignee
AVIC First Aircraft Institute
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 AVIC First Aircraft Institute filed Critical AVIC First Aircraft Institute
Priority to CN202211249205.4A priority Critical patent/CN115512078A/en
Publication of CN115512078A publication Critical patent/CN115512078A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for adjusting the in-plane direction of a finite element quadrilateral mesh unit with a complex surface comprises the following steps: reading node data of the complex surface finite element model original file [1], and corresponding node numbers to line numbers one by one to form a prepared file [2]; reading an original file [1] of the finite element model with the complex surface line by line, and finding out an invariant [3] corresponding to a character with a line head of 'CQUAD 4' in the file: unit number, attribute number, material number, and local coordinate number; numbering the nodes 1, 2, 3 and 4, and sequentially putting the numbers into a unit node array [4]; combining the prepared file [2], and sequentially putting the X coordinate value of each node in the unit node array [4] into the unit node coordinate array [5]; adjusting the element in the unit node array [4] corresponding to the minimum element in the unit node coordinate array [5] to be at the first position; traversing and reading each row of the complex surface finite element model original file [1], and combining the invariant [3] and the unit node array [4] to generate a complex surface finite element model output file [6].

Description

Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface
Technical Field
The application belongs to the technical field of adjustment of the in-plane direction of a finite element quadrilateral mesh unit with a complex surface, and particularly relates to a method for adjusting the in-plane direction of the finite element quadrilateral mesh unit with the complex surface.
Background
When the finite element refined 2D grid model is modeled, the finite element software is mostly adopted to automatically divide the grid, and when the complex surface is faced, the directions of the quadrilateral grid unit surfaces automatically divided by the finite element software are disordered, as shown in figure 1, so that the working stress of all the units in a certain specified direction cannot be extracted in batch in the subsequent strength checking process, and the workload of the subsequent strength checking is greatly increased.
In order to facilitate subsequent strength checking work, the directions of the finite element quadrilateral meshes with complex surfaces in the surface are required to be adjusted to be consistent, and currently, the directions of the finite element quadrilateral meshes in the surface of the complex surfaces are adjusted in the order of manually adjusting unit nodes.
The present application has been made in view of the above-mentioned technical drawbacks.
It should be noted that the above background disclosure is only for the purpose of assisting understanding of the inventive concept and technical solutions of the present invention, and does not necessarily belong to the prior art of the present patent application, and the above background disclosure should not be used for evaluating the novelty and inventive step of the present application without explicit evidence to suggest that the above content is already disclosed at the filing date of the present application.
Disclosure of Invention
The present application is directed to a method for adjusting an in-plane direction of a finite element quadrilateral mesh element with a complex shape surface, so as to overcome or alleviate at least one of the technical disadvantages of the known prior art.
The technical scheme of the application is as follows:
a method for adjusting the in-plane direction of a finite element quadrilateral mesh unit with a complex surface comprises the following steps:
reading node data of the complex surface finite element model original file [1], and corresponding node numbers to row numbers one by one to form a prepared file [2];
reading an original file [1] of the finite element model with the complex surface line by line, and finding out an invariant [3] corresponding to a character with a line head of 'CQUAD 4' in the file: unit number, attribute number, material number, local coordinate number; numbering the nodes 1, 2, 3 and 4, and sequentially putting the numbers into a unit node array [4];
combining the prepared file [2], and sequentially putting the X coordinate value of each node in the unit node array [4] into the unit node coordinate array [5];
adjusting the element in the unit node array [4] corresponding to the minimum element in the unit node coordinate array [5] to be at the first position;
and traversing and reading each row of the original file [1] of the complex surface finite element model, and combining the invariant [3] and the unit node array [4] to generate an output file [6] of the complex surface finite element model.
According to at least one embodiment of the present application, in the method for adjusting the in-plane direction of the unit of the complex surface finite element quadrilateral mesh, the invariant [3] and the unit node array [4] are combined to generate a complex surface finite element model output file [6], which specifically includes:
and according to a Nastran unit filling format, sequentially filling a unit number, an attribute number, a unit node array [4], a material number and a local coordinate number, and generating a complex surface finite element model output file [6].
According to at least one embodiment of the present application, the method for adjusting the in-plane direction of the complex surface finite element quadrilateral mesh unit further includes:
after the element corresponding to the minimum element in the unit node coordinate array [5] in the unit node array [4] is adjusted to be at the first position, if the cosine value of the included angle between the connecting lines of the nodes 1 and 2 and the X axis is larger or the cosine value of the included angle between the connecting lines of the nodes 2 and 3 and the X axis is smaller, the sequence of the elements in the node array [4] is extended backward by one position.
Drawings
FIG. 1 is a schematic diagram of the directions in the plane of a quadrilateral mesh cell automatically divided by finite element software;
FIG. 2 is a schematic diagram of an in-plane direction adjustment method for a finite element quadrilateral mesh element with complex surfaces according to an embodiment of the present application;
FIG. 3 is a schematic illustration of preparing a document provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an array of unit nodes provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a unit node coordinate array provided in an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an included angle between a connection line of nodes 1 and 2 and an X-axis, and an included angle between a connection line of nodes 2 and 3 and the X-axis, provided in an embodiment of the present application;
fig. 7 is a schematic diagram of the complex-surface finite element quadrilateral mesh provided in the embodiment of the present application after the in-plane direction adjustment.
For a better understanding of the present embodiments, certain elements of the drawings may be omitted, enlarged or reduced, and do not represent actual product dimensions, and the drawings are for illustrative purposes only and are not to be construed as limiting the present patent.
Detailed Description
In order to make the technical solutions and advantages of the present application clearer, the technical solutions of the present application will be further clearly and completely described in the following detailed description with reference to the accompanying drawings, and it should be understood that the specific embodiments described herein are only some of the embodiments of the present application, and are only used for explaining the present application, but not limiting the present application. It should be noted that, for convenience of description, only the parts related to the present application are shown in the drawings, other related parts may refer to general designs, and the embodiments and technical features in the embodiments in the present application may be combined with each other to obtain a new embodiment without conflict.
In addition, unless otherwise defined, technical or scientific terms used in the description of the present application shall have the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "upper", "lower", "left", "right", "center", "vertical", "horizontal", "inner", "outer", and the like used in the description of the present application, which indicate orientations, are used only to indicate relative directions or positional relationships, and do not imply that the devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and when the absolute position of the object to be described is changed, the relative positional relationships may be changed accordingly, and thus, should not be construed as limiting the present application. The use of "first," "second," "third," and the like in the description of the present application is for descriptive purposes only to distinguish between different components and is not to be construed as indicating or implying relative importance. The use of the terms "a," "an," or "the" and similar referents in the context of describing the application is not to be construed as an absolute limitation on the number, but rather as the presence of at least one. The word "comprising" or "comprises", and the like, when used in this description, is intended to specify the presence of stated elements or items, but not the exclusion of any other elements or items.
Further, it is noted that, unless expressly stated or limited otherwise, the terms "mounted," "connected," and the like are used in the description of the invention in a generic sense, e.g., connected as either a fixed connection or a removable connection or integrally connected; can be mechanically or electrically connected; they may be directly connected or indirectly connected through an intermediate medium, or they may be connected through the inside of two elements, and those skilled in the art can understand their specific meaning in this application according to the specific situation.
The present application is described in further detail below with reference to fig. 1 to 7.
A method for adjusting the in-plane direction of a finite element quadrilateral mesh unit with a complex shape surface is shown in FIG. 2, and comprises the following steps:
reading node data of the complex-surface finite element model original file [1], and corresponding node numbers to row numbers one by one to form a prepared file [2], as shown in FIG. 3;
reading an original file [1] of the finite element model with the complex surface line by line, and finding out an invariant [3] corresponding to a character with a line head of 'CQUAD 4' in the file: unit number, attribute number, material number, and local coordinate number; the node 1 number, the node 2 number, the node 3 number and the node 4 number are sequentially put into a unit node array [4], as shown in FIG. 4;
combining the prepared file [2], and sequentially putting the X coordinate value of each node in the unit node array [4] into the unit node coordinate array [5], as shown in FIG. 5;
adjusting the element in the unit node array [4] corresponding to the minimum element in the unit node coordinate array [5] to be at the first position;
and traversing and reading each row of the original file [1] of the complex surface finite element model, and combining the invariant [3] and the unit node array [4] to generate an output file [6] of the complex surface finite element model.
For the method for adjusting the in-plane direction of the quadrilateral mesh elements of the finite element with the complex shape surface disclosed in the above embodiment, it can be understood by those skilled in the art that the method can be implemented in a programming manner, on the basis of the original file [1] of the finite element model with the complex shape surface, the output file [6] of the finite element model with the complex shape surface is generated through simple operation, the adjustment of the in-plane direction of the quadrilateral mesh elements with the finite element model with the complex shape surface can be efficiently and accurately completed, and the output file [6] of the finite element model with the complex shape surface is input into the PATRAN, so that the finite element models with the complex shape surface with the uniform in-plane direction of the quadrilateral mesh elements can be obtained, as shown in fig. 7.
In some optional embodiments, in the method for adjusting the in-plane direction of the complex-surface finite element quadrilateral mesh, the invariant [3] and the unit node array [4] are combined to generate the complex-surface finite element model output file [6], which specifically includes:
and according to a Nastran unit filling format, sequentially filling a unit number, an attribute number, a unit node array [4], a material number and a local coordinate number, and generating a complex surface finite element model output file [6].
In some optional embodiments, the method for adjusting the in-plane direction of the complex surface finite element quadrilateral mesh unit further includes:
after the element corresponding to the minimum element in the unit node coordinate array [5] in the unit node array [4] is adjusted to be at the first position, if the cosine value of the included angle between the connecting line of the nodes 1 and 2 and the X axis is larger or the cosine value of the included angle between the connecting line of the nodes 2 and 3 and the X axis is smaller, the sequence of the elements in the node array [4] is extended backward by one position, as shown in FIG. 6, 1 is converted into 2,2 and is converted into 3, and so on.
For the method for adjusting the in-plane direction of the complex surface finite element quadrilateral mesh disclosed in the above embodiment, it can be understood by those skilled in the art that the unit coordinate can automatically define the direction of the complex surface finite element quadrilateral mesh from small to large according to the sequence of the nodes, and the node 1 points to the node 2 in the X direction. The numerical values of the coordinates in the X direction are actually compared in the sequence from large to small of the numbers, after the element corresponding to the minimum element in the unit node coordinate array [5] in the unit node array [4] is adjusted to be at the first position, the included angle cosine value between the connecting lines of the nodes 1 and 2 and the X axis is larger or the included angle cosine value between the connecting lines of the nodes 2 and 3 and the X axis is smaller, the sequence of the elements in the node array [4] is extended backward for one position, and the accuracy of consistent adjustment of the directions in the unit surfaces of the finite element quadrilateral meshes with complex surfaces can be ensured.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Having thus described the present application in connection with the preferred embodiments illustrated in the accompanying drawings, it will be understood by those skilled in the art that the scope of the present application is not limited to those specific embodiments, and that equivalent modifications or substitutions of related technical features may be made by those skilled in the art without departing from the principle of the present application, and those modifications or substitutions will fall within the scope of the present application.

Claims (3)

1. A method for adjusting the in-plane direction of a finite element quadrilateral mesh unit with a complex surface is characterized by comprising the following steps:
reading node data of the complex surface finite element model original file [1], and corresponding node numbers to row numbers one by one to form a prepared file [2];
reading an original file [1] of the finite element model with the complex surface line by line, and finding out an invariant [3] corresponding to a character with a line head of 'CQUAD 4' in the file: unit number, attribute number, material number, and local coordinate number; numbering the nodes 1, 2, 3 and 4, and sequentially putting the numbers into a unit node array [4];
combining the prepared file [2], and sequentially putting the X coordinate value of each node in the unit node array [4] into the unit node coordinate array [5];
adjusting the element in the unit node array [4] corresponding to the minimum element in the unit node coordinate array [5] to be at the first position;
and traversing and reading each row of the original file [1] of the complex surface finite element model, and combining the invariant [3] and the unit node array [4] to generate an output file [6] of the complex surface finite element model.
2. The method of adjusting in-plane directions of finite element quadrilateral mesh elements with complex shape faces according to claim 1,
combining the invariant [3] and the unit node array [4] to generate a complex surface finite element model output file [6], which specifically comprises:
and according to a Nastran unit filling format, sequentially filling a unit number, an attribute number, a unit node array [4], a material number and a local coordinate number, and generating a complex surface finite element model output file [6].
3. The method of adjusting in-plane directions of finite element quadrilateral mesh elements with complex shape faces according to claim 1,
further comprising:
after the element corresponding to the minimum element in the unit node coordinate array [5] in the unit node array [4] is adjusted to be at the first position, if the cosine value of the included angle between the connecting lines of the nodes 1 and 2 and the X axis is larger or the cosine value of the included angle between the connecting lines of the nodes 2 and 3 and the X axis is smaller, the sequence of the elements in the node array [4] is extended backward by one position.
CN202211249205.4A 2022-10-12 2022-10-12 Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface Pending CN115512078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211249205.4A CN115512078A (en) 2022-10-12 2022-10-12 Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211249205.4A CN115512078A (en) 2022-10-12 2022-10-12 Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface

Publications (1)

Publication Number Publication Date
CN115512078A true CN115512078A (en) 2022-12-23

Family

ID=84510027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211249205.4A Pending CN115512078A (en) 2022-10-12 2022-10-12 Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface

Country Status (1)

Country Link
CN (1) CN115512078A (en)

Similar Documents

Publication Publication Date Title
US10832475B2 (en) Method for constructing three-dimensional solid model with geometric error and computer-readable storage medium
US10339266B2 (en) Mechanisms for constructing spline surfaces to provide inter-surface continuity
JP6645681B2 (en) 3D data management device
CN110866342B (en) Cabinet modeling method and system and electronic equipment
CN110765523A (en) BIM technology-based rapid construction method for deep foundation pit support structure
CN108763827B (en) Transmission tower finite element model establishing method and device
KR101757451B1 (en) System for generating automatically of the urvature and curved data for manufacturig the ship plate
US20210097218A1 (en) Data processing system and method
CN104239603B (en) A kind of three-dimensional process model generating method combined based on positive sequence backward
CN105426590B (en) Machining process characteristic tree and construction method thereof
CN102332049B (en) Quick design method for lug of sheet metal process
US20190325098A1 (en) System, method, and computer program for part model generation and analysis and part production and validation
Zhang et al. A surface based approach to recognition of geometric features for quality freeform surface machining
US8477133B2 (en) Method and apparatus for generating three-dimensional finite element mesh
CN103106313B (en) Roll consequent order reconstructing method
CN115512078A (en) Method for adjusting direction in complex-surface finite element quadrilateral grid unit surface
JP2007272557A (en) Analysis model generation method and analysis model generation program
JP6397149B1 (en) Mold deflection model creation system and mold deflection model creation program
CN107644139B (en) Attribute mapping method from CAD model to CAE model
CN111177846A (en) Three-dimensional modeling method for quickly creating large honeycomb panel embedded frame
CN111914380A (en) Part model determination method and device, computer equipment and storage medium
JP2011145876A (en) Die production method and creation method for die machining data
CN110334459B (en) Rapid and refined modeling system and method for power transmission tower line system
CN115170734A (en) Three-dimensional revolution structure reconstruction method and system based on section slices
JP2010176573A (en) Mold design device and method therefor

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