CN115329635A - Rapid and automatic generation method for finite element grid of parallelepiped target plate - Google Patents

Rapid and automatic generation method for finite element grid of parallelepiped target plate Download PDF

Info

Publication number
CN115329635A
CN115329635A CN202210981136.XA CN202210981136A CN115329635A CN 115329635 A CN115329635 A CN 115329635A CN 202210981136 A CN202210981136 A CN 202210981136A CN 115329635 A CN115329635 A CN 115329635A
Authority
CN
China
Prior art keywords
matrix
target plate
node
hexahedron
arc
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
CN202210981136.XA
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.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
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 Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN202210981136.XA priority Critical patent/CN115329635A/en
Publication of CN115329635A publication Critical patent/CN115329635A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/22Design optimisation, verification or simulation using Petri net models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Abstract

The invention discloses a method for quickly and automatically generating finite element grids of a parallelepiped target plate, which comprises the steps of firstly determining geometric parameters of the parallelepiped target plate, including thickness, height, width, orientation, offset distance and inclination angle, dividing the parallelepiped target plate into hexahedrons with specific shapes, then determining the grid number of edges of each hexahedron with specific shapes and determining corresponding node coordinates, then carrying out mirror image supplement on the node coordinates, then expanding the node coordinates to the node coordinates of the parallelepiped target plate, outputting the node coordinates to structured finite element grids, finally sequencing and sorting the node coordinates of the structured grids, outputting the node coordinates to unstructured finite element grids, carrying out calculation and use such as penetration, loading, contact and the like, needing no existing finite element grid generation software, obviously reducing the workload of related technicians, and improving the calculation efficiency.

Description

Rapid and automatic generation method for finite element grid of parallelepiped target plate
Technical Field
The invention belongs to the technical field of finite element numerical simulation, and particularly relates to a method for quickly and automatically generating a finite element grid of a parallelepiped target plate.
Background
The parallelepiped target plate is a very common damage target for penetration, explosion and collision simulation calculation, and the finite element simulation calculation programs commonly used in the military industry are mainly AUTODYN and LS-DYNA, wherein the finite element simulation calculation programs are mainly calculated on the basis of a structured finite element grid, the finite element simulation calculation programs are calculated on the basis of an unstructured finite element grid, the node ordering of the structured finite element grid has a specific format, the connection between the nodes does not need to be additionally indicated, the node ordering of the unstructured finite element grid is random, and the nodes forming the grid and the sequence thereof need to be additionally indicated. For some academic research or engineering projects taking a parallelepiped target plate as a damaged target, working conditions based on calculating the parallelepiped target plate with different thicknesses, heights, widths, inclination angles, orientations and offset distances are often faced, under the conditions, finite element mesh generation software such as HYPERMESH, ICEM which draws meshes through a GUI needs to continuously draw different parallelepiped target plates, and through a series of steps such as modeling, importing, drawing, exporting and importing again, finite element mesh generation software such as truegarid which is a programmable modeling drawing mesh needs to continuously calculate a target plate normal vector generated due to the inclination angle, so that the working efficiency is low, time and labor are consumed, the workload of related technicians is increased, and in order to solve the problems, a method for quickly and automatically generating the finite element mesh of the parallelepiped target plate which can simultaneously generate a structured finite element mesh suitable for an AUTODYN program LS and an unstructured finite element mesh suitable for an DYNA program is provided.
Disclosure of Invention
The invention aims to solve the problems of repeated generation process, low calculation efficiency and large workload of the finite element grid of the parallelepiped target plate under the condition of numerous working conditions, and provides a rapid automatic generation method of the finite element grid of the parallelepiped target plate, which has simple and convenient flow and is easy to popularize to other structures.
The technical solution for realizing the purpose of the invention is as follows: a method for quickly and automatically generating a finite element grid of a parallelepiped target plate comprises the following steps:
step S1, determining geometric parameters of the parallelepiped target plate, including thickness, height, width, orientation, offset distance and inclination angle, dividing the parallelepiped target plate into 4 sub-target plates along a reference direction, sequentially including a first sub-target plate, a second sub-target plate, a third sub-target plate and a fourth sub-target plate, dividing the first sub-target plate into 6 hexahedrons with specific shapes along the reference direction, and turning to step S2.
And S2, determining the number of grids of a group of opposite sides on the front surfaces of the 6 hexahedrons with specific shapes, determining corresponding edge node coordinates, and turning to the step S3.
And S3, performing mirror image supplement on the edge node coordinates of a group of opposite sides on the front surfaces of the 6 hexahedrons with specific shapes to obtain the edge node coordinates of the front surface of the parallelepipedal target plate, and turning to the step S4.
And S4, expanding the edge node coordinates of the front surface of the target plate to the surface node coordinates of the front surface of the target plate, supplementing the edge node coordinates of the planar hexahedral target plate along the reference direction, and turning to the step S5.
And S5, setting a matrix sorting function, obtaining body node coordinates of the structured grid of the parallelepiped target plate according to the orientation of the parallelepiped target plate by using the face node coordinates of the front face of the parallelepiped target plate and the edge node coordinates of the planar hexahedron target plate along the reference direction, further obtaining the structured finite element grid of the parallelepiped target plate, and turning to the step S6.
And S6, obtaining an unstructured grid matrix by setting the three-dimensional sequence number matrix, and sequencing and sorting the body node coordinates of the structured finite element grids of the parallelepiped target plate to obtain the unstructured finite element grids of the parallelepiped target plate.
Compared with the prior art, the invention has the remarkable advantages that: the invention can generate the finite element mesh without using commercial modeling software and finite element mesh drawing software, and input the geometric parameters of the target plate, such as the height, the width, the thickness, the inclination angle, the orientation and the deviation position of the target plate, and determine the number of meshes of each side, and the internal mesh can be further adjusted by the geometric parameters of the hexahedron with a specific shape, thereby not only generating the structured finite element mesh suitable for the AUTODYN program, but also generating the unstructured finite element mesh suitable for the LS-DYNA program, and the nodes of the unstructured finite element mesh and the node combination source generating each mesh are directly based on the structured finite element mesh, thereby greatly improving the efficiency of simultaneously generating the two meshes, combining the advantages of matrix calculation, compared with the finite element mesh generating software of HYPERMESH, ICEM drawing meshes through GUI drawing meshes, the invention does not need to continuously draw different hexahedron target plates, and does not need to pass through a series of steps of modeling, drawing, exporting, reintroducing and the like, compared with the finite element mesh generating software of the programmable drawing meshes, the invention does not need to artificially calculate normal vector vectors of the target plate, and the time of generating millions of mesh, and only needs to be clear and the working efficiency is reduced, thereby the whole working difficulty of the personnel is reduced.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a block diagram of a target plate of the present invention.
FIG. 3 is a schematic view of each line segment of the target plate of the present invention.
FIG. 4 is a schematic view of the geometric parameters of the target plate of the present invention.
FIG. 5 is a schematic diagram of the parameters of the target plate grid of the present invention.
FIG. 6 is a diagram illustrating an embodiment of the present invention.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
With reference to fig. 1 to 6, a method for rapidly and automatically generating a finite element mesh of a parallelepiped target plate comprises the following steps:
step S1, determining geometric parameters of the parallelepiped target plate, including thickness, height, width, orientation, offset distance and inclination angle, dividing the parallelepiped target plate into 4 sub-target plates along a reference direction, sequentially including a first sub-target plate, a second sub-target plate, a third sub-target plate and a fourth sub-target plate, and dividing the first sub-target plate into 6 hexahedrons with specific shapes along the reference direction, wherein the specific parameters are as follows:
the direction of the projectile, the shock wave and other attacking objects is taken as a reference direction, the surface of the parallelepiped target plate, which bears the projectile, the shock wave and other attacking objects, is taken as the front surface of the target plate, the back surface of the parallelepiped target plate is taken as the back surface of the target plate, and the rest four surfaces are respectively the top surface of the target plate, the bottom surface of the target plate, the left side surface of the target plate and the right side surface of the target plate.
The distance between the front surface and the back surface of the target plate is the thickness L of the parallelepipedic target plate 4 . Distance 2*L between target plate top surface and target plate bottom surface 2 ,L 2 Half the height of the parallelepiped target plate. The distance between the left side surface of the target plate and the right side surface of the target plate is 2*L 3 ,L 3 Half the width of the parallelepiped target plate. The ratio of the height of the target plate to the width of the target plate is not less than 0.5 and not more than 2. The opposite direction of the reference direction is the orientation of the parallelepiped target plate. The translation length of the parallelepiped target plate along the reference direction is an offset distance L 5 . The line surface angle between the parallelepiped target plate and the reference direction is the inclination angle alpha of the parallelepiped target plate, and the inclination angle alpha is not less than 30 degrees and not more than 90 degrees.
All points with equal distance between the top surface of the target plate and the bottom surface of the target plate form a primary middle surface of the parallelepipedal target plate. All points with equal distance to the left side surface of the target plate and the right side surface of the target plate form a secondary middle surface of the parallelepiped target plate.
Divide into four sub-target boards by the secondary well face in the reference direction with the parallelepiped target board once, the sub-target board of synchronous contact target board top surface and target board right flank is a sub-target board, begins to define other sub-target boards as second sub-target board, third sub-target board and fourth sub-target board according to clockwise from a sub-target board along equivalent thickness direction.
And defining a projection surface of a surface of the first target plate, which is coincident with the front surface of the target plate, along the reference direction as a pre-division surface, and defining a projection surface of the front surface of the target plate along the reference direction as a projection front surface of the target plate. The pre-dividing surface is just the part surrounded by the primary middle surface, the secondary middle surface, the top surface of the target plate and the right side surface of the target plate in the front surface of the target plate.
With a pre-divided surface,Drawing a 1/4 circular arc with radius R in the pre-divided plane, called inner arc of plane, 0.1L, with the intersection point of the primary middle plane and the secondary middle plane as the center of circle 2 ≤R≤0.7L 2 And 0.1L 3 ≤R≤0.7L 3
The inner arc of the surface divides the pre-divided surface into an inner arc surface and an outer arc surface, the middle point of the inner arc of the surface divides the inner arc of the surface into two parts, the inner arc of the surface intersects with the primary middle surface to form an inner arc, the inner arc of the surface intersects with the secondary middle surface to form an inner arc, a center point of the surface is determined in the inner arc surface, the distance from the center point of the surface to the primary middle surface and the secondary middle surface is equal, and the distance from the center point of the surface to the center point of the circle is not less than 0.2 times of the radius R and not more than 0.75 times of the radius R.
Rotating an arc inner angle theta clockwise along a reference direction on the arc inner surface and a perpendicular line from the face center point to the primary middle surface to form a line segment, connecting the line segment from the face center point to the primary middle surface, wherein the angle segment is more than or equal to 0 degree and less than or equal to 32.5 degrees, and the distance L from the intersection point of the line segment and the primary middle surface to the center of the circle 1 ,0.1L 1 ≤R≤0.7L 1
Rotating an arc inner angle along a reference direction in a counterclockwise direction with a perpendicular line from a face center point to a secondary middle plane to form a line segment, connecting the line segment from the face center point to the secondary middle plane, namely two lines in the arc, wherein the distance from the intersection point of the two lines in the arc and the secondary middle plane to the circle center is equal to the distance L from the intersection point of the one line in the arc and the primary middle plane to the circle center 1 . The arc inner face is rotated counterclockwise along the reference direction by an inner angle equal to theta from the center point of the face to the perpendicular line of the secondary midplane.
The vertical line of the inner arc of the surface is made from the center point of the surface and intersects with the inner arc of the surface at the middle point of the arc, and the vertical line is the three lines in the arc.
Rotating the outer corner of the arc clockwise along the reference direction from the arc outer face and the perpendicular from the arc midpoint to the top surface of the parallelepiped target plate
Figure BDA0003800484980000041
A line segment is connected from the middle point of the arc to the top surface of the parallelepiped target plate and is a line outside the arc, wherein,
Figure BDA0003800484980000042
Figure BDA0003800484980000043
making a line segment along the reference direction on the outer surface of the arc along the arc outer surface counterclockwise rotation arc outer angle from the arc center point to the right side surface of the parallelepiped target plate, connecting the line segment to the right side surface of the parallelepiped target plate from the arc center point, being an outer arc line, along the reference direction on the outer surface of the arc along the reference direction counterclockwise rotation arc outer angle from the arc center point to the right side surface of the parallelepiped target plate equal to
Figure BDA0003800484980000044
A first horn target plate is divided into 6 hexahedrons with specific shapes along the reference direction by an inner arc of a surface, an inner line of an arc, an inner two line of the arc, an inner three line of the arc, an outer line of the arc and an outer two line of the arc.
The pre-divided surface is divided into 6 sub-surfaces by an inner arc, an inner arc line, a third arc line, an outer arc line and an outer arc line along a reference direction, wherein the sub-surfaces comprise a first sub-surface with the inner arc line and the inner arc line as edges, a second sub-surface with the inner arc line and the inner arc line as edges, a third sub-surface with the inner arc line and the inner arc line as edges, a fourth sub-surface with the inner arc line and the outer arc line as edges, a fifth sub-surface with the outer arc line and the outer arc line as edges, and a sixth sub-surface with the inner arc line and the outer arc line as edges.
The specific-shaped hexahedron coinciding with a horn face in the reference direction is a horn, and a horn face is the front face of the horn. The hexahedron with the specific shape coinciding with the second hexahedron along the reference direction is the second hexahedron, and the second hexahedron is the front face of the second hexahedron. The hexahedron with the specific shape coinciding with the third hexahedron along the reference direction is the third hexahedron, and the third hexahedron is the front face of the third hexahedron. The hexahedron of the specific shape coinciding with the fourth sub-surface in the reference direction is a fourth hexahedron, and the fourth sub-surface is the front surface of the fourth hexahedron. The specific-shaped hexahedron coinciding with the five-sided surface in the reference direction is a five-sided hexahedron, and the five-sided surface is the front surface of the five-sided hexahedron. The hexahedron of the specific shape coinciding with the six-size surface in the reference direction is the six-size hexahedron, and the six-size surface is the front surface of the six-size hexahedron.
S2, determining the number of grids of a group of opposite sides on the front faces of the 6 hexahedrons with the specific shapes and determining corresponding edge node coordinates, wherein the specific steps are as follows:
setting an edge node proportion matrix G (m, q), wherein m represents the number of grids set on a hexahedron edge with a specific shape, q represents the ratio of the distance between two adjacent nodes, q is a positive number, i represents a node serial number, and the ith element value G (m, q) i Comprises the following steps:
Figure BDA0003800484980000051
in the first plane, the length of the opposite side of a line in the arc is equal to L 1 The number of grids is determined as n 1 The coordinates of the upper edge nodes of the opposite edges of a line in the arc are represented by a node abscissa matrix x 1 And a node ordinate matrix y 1 The structure is as follows:
Figure BDA0003800484980000052
the coordinates of the upper nodes on the line in the arc are represented by a node abscissa matrix x 2 And a node ordinate matrix y 2 The structure is as follows:
Figure BDA0003800484980000053
wherein the content of the first and second substances,
Figure BDA0003800484980000054
denotes 1 (n) 1 + 1) of all 1 matrices.
In the second sub-plane, the node coordinates on the upper edge of the first arc in the plane are represented by a node abscissa matrix x 3 And a node ordinate matrix y 3 The structure is as follows:
Figure BDA0003800484980000061
in the third sub-surface, the length of the opposite side of the two lines in the arc is equal to L 1 The number of grids is determined as n 2 The coordinates of the nodes on the opposite sides and the upper sides of two lines in the arc are represented by a node abscissa matrix x 4 And a node ordinate matrix y 4 The structure is as follows:
Figure BDA0003800484980000062
wherein the content of the first and second substances,
Figure BDA0003800484980000063
denotes 1 (n) 2 + 1) of all 1 matrices.
The node coordinate on the two arcs in the plane is represented by a node abscissa matrix x 5 And a node ordinate matrix y 5 The structure is as follows:
Figure BDA0003800484980000064
in the fourth sub-surface, the node coordinates on the opposite sides and the upper sides of the two arcs in the surface are represented by a node abscissa matrix x 6 And a node ordinate matrix y 6 The structure is as follows:
Figure BDA0003800484980000065
in the fifth sub-plane, the number of grids on the first line outside the arc is determined as n 3 The coordinates of the upper node on the outer line of the arc are represented by a node abscissa matrix x 7 And a node ordinate matrix y 7 The structure is as follows:
Figure BDA0003800484980000066
wherein the content of the first and second substances,
Figure BDA0003800484980000067
denotes 1 (n) 3 + 1) of all 1 matrices.
The coordinates of the nodes on the opposite side and the upper side of one line outside the arc are represented by a node abscissa matrix x 8 And a node ordinate matrix y 8 The structure is as follows:
Figure BDA0003800484980000068
in the six sub-surfaces, the coordinates of the nodes on the opposite sides and the upper sides of an arc in the surface are represented by a node abscissa matrix x 9 And a node ordinate matrix y 9 The structure is as follows:
Figure BDA0003800484980000071
the grid number of each hexahedral edge with a specific shape and the corresponding edge node coordinates are determined.
S3, performing mirror image supplement on the edge node coordinates of a group of opposite sides on the front surfaces of the 6 hexahedrons with specific shapes to obtain the edge node coordinates of the front surface of the parallelepipedal target plate, wherein the mirror image supplement is specifically as follows:
each sub-surface has a set of opposite edges assigned with a node abscissa matrix and a node ordinate matrix, and any pair of opposite edges: the node abscissa matrix of any one edge is a primary abscissa matrix x s The node ordinate matrix is a primary ordinate matrix y s . The node abscissa matrix of the other edge is a quadratic abscissa matrix x t The node ordinate matrix is a quadratic ordinate matrix y t
The primary transverse matrix, the primary longitudinal matrix, the secondary transverse matrix and the secondary longitudinal matrix are spliced into a primary node matrix color with 4 rows and 4 columns as edge nodes from top to bottom in sequence (1)
coor (1) =[x s T y s T x t T y t T ] T (11)
Wherein, the superscript T is a matrix transposition symbol.
For the edge sections of 6 sub-surfacesPerforming mirror image supplement on the point coordinates to obtain mirror image supplement node coordinates of each sub-surface, taking the edge node coordinates of 6 sub-surfaces as a symmetrical surface by taking a primary middle surface as a symmetrical surface, and mirroring the primary node matrix to obtain a secondary node matrix color (2) . At a primary node matrix coor (1) Middle exchange x s And x t Position, and exchange y s And y t Position to obtain a new primary node matrix coor (1.5) Taking the edge node coordinates of the 6 sub-surfaces as a symmetry axis by taking the intersection line of the primary middle surface and the secondary middle surface, and mirroring the new primary node matrix to obtain a tertiary node matrix coor (3) . Taking the edge node coordinates of 6 sub-surfaces as a symmetry plane by taking the secondary middle surface as a mirror image of the new primary node matrix to obtain a quartic node matrix cor (4) . So far, the edge node coordinates of the front surface of the parallelepiped target plate are obtained.
S4, expanding the edge node coordinates of the front surface of the target plate to the surface node coordinates of the front surface of the target plate, and supplementing the edge node coordinates of the planar hexahedral target plate along the reference direction, wherein the method specifically comprises the following steps:
s4-1, calculating an abscissa matrix X 'of a surface node coordinate of the front surface of the parallelepiped target plate and an ordinate matrix Y' of the surface node coordinate from primary node matrixes of each sub-surface, mirror image supplementary node coordinates of the primary node matrixes and boundary point proportional matrixes, and obtaining the following formula:
Figure BDA0003800484980000072
for a number one sub-surface, the horizontal matrix subscript s =1, the vertical matrix subscript t =2, and the first grid variable n = n 2
For the sub-surface two, the horizontal matrix subscript s =2, the vertical matrix subscript t =3,n = n 4 ,n 4 The number of grids determined on the three lines in the arc.
For the three sub-planes, the horizontal matrix subscript s =4, the vertical matrix subscript t =5,n = n 4
For the four sub-planes, the horizontal matrix subscript s =5, the vertical matrix subscript t =6,n = n 5 ,n 5 The number of grids determined on the two lines outside the arc.
For the five sub-planes, the horizontal matrix subscript s =7, the vertical matrix subscript t =8, n = n 5
For the six sub-planes, the horizontal matrix subscript s =3, the vertical matrix subscript t =9,n = n 3 . Proceed to step S4-2.
S4-2, determining the number of grids to be n on the edge of the plane hexahedral target plate along the reference direction 6 Then, the node value matrix Z' of each node coordinate along the reference direction is:
Figure BDA0003800484980000081
wherein, the first and the second end of the pipe are connected with each other,
Figure BDA0003800484980000082
denotes 1 (n) 6 + 1) of all 1 matrices.
S5, by setting a matrix sorting function, obtaining body node coordinates of the structured grid of the parallelepiped target plate according to the orientation of the parallelepiped target plate by using the face node coordinates of the front face of the parallelepiped target plate and the edge node coordinates of the plane hexahedron target plate along the reference direction, and further obtaining the structured finite element grid of the parallelepiped target plate, wherein the matrix sorting function is specifically as follows:
s5-1, setting three matrix sorting functions:
the first matrix sorting function Re (a) represents a matrix with 1 column number formed by splicing elements with column ordinal numbers larger than 1 in the matrix a in an order from small to large in the column ordinal numbers below the elements in the first column.
The second matrix sorting function De (a, p) represents a matrix composed of repeating each element in the matrix a p times and sequentially placing under the elements.
The third matrix sorting function Dm (a, p) represents a matrix composed of the matrix a entirely repeated p times and sequentially disposed below the matrix a. And (5) transferring to a step 2.
S5-2, judging the orientation of the parallelepiped target plate in the X-Y-Z coordinate system, if the orientation is the positive direction of the X axis, then:
the overall body node coordinates (X ', Y ', Z ') of the first, second and sixth hexahedrons are in the matrix:
Figure BDA0003800484980000083
for a first hexahedron, the second grid variable b 1 =n 2
For hexahedron II, b 1 =n 4
For hexahedron of six size, b 1 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure BDA0003800484980000091
for a cube number three, the third grid variable b 2 =n 2 Fourth grid variable b 3 =n 4 . For hexahedron of four size, b 2 =n 2 ,b 3 =n 5
For a hexahedron of five size, b 2 =n 3 ,b 3 =n 5
If the positive direction of the Y axis is adopted, then:
the coordinate matrixes of all body nodes of the first hexahedron, the second hexahedron and the sixth hexahedron are as follows:
Figure BDA0003800484980000092
for a hexahedron of one, the fifth grid variable b 4 =n 2
For hexahedron II, b 4 =n 4
For hexahedron of six size, b 4 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure BDA0003800484980000093
for a hexahedron of three, the fifth grid variable b 5 =n 2 Sixth grid variable b 6 =n 4 . For hexahedron of four size, b 5 =n 2 ,b 6 =n 5
For a five-sided hexahedron, b 5 =n 3 ,b 6 =n 5
If the positive direction of the Z axis is adopted, then:
the coordinate matrixes of all body nodes of the first hexahedron, the second hexahedron and the sixth hexahedron are as follows:
Figure BDA0003800484980000101
for hexahedron I, seventh grid variable b 7 =n 2
For hexahedron II, b 7 =n 4
For hexahedron of six size, b 7 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure BDA0003800484980000102
for hexahedron III, eighth grid variable b 8 =n 2 Ninth grid variable b 9 =n 4
For a hexahedron of four, b 8 =n 2 ,b 9 =n 5
For a five-sided hexahedron, b 8 =n 3 ,b 9 =n 5 . And (5) turning to step S5-3.
S5-3, obtaining a structural grid node coordinate distribution matrix S:
S=[X″ Y″ Z″] (20)
and (5) turning to step S5-4.
And S5-4, respectively repeating the step S5-2 once according to the secondary node matrix, the tertiary node matrix and the quartic node matrix to correspondingly obtain a secondary structured grid node coordinate distribution matrix, a tertiary structured grid node coordinate distribution matrix and a quartic structured grid node coordinate distribution matrix, and turning to the step S5-5.
And S5-5, sequentially splicing the obtained structural grid node coordinate distribution matrix, the secondary structural grid node coordinate distribution matrix, the tertiary structural grid node coordinate distribution matrix and the quartic structural grid node coordinate distribution matrix from top to bottom to obtain the structural finite element grid of the parallelepiped target plate.
S6, obtaining an unstructured grid matrix by setting a three-dimensional sequence number matrix, and sorting the body node coordinates of the structured finite element grids of the parallelepiped target plate to obtain the unstructured finite element grids of the parallelepiped target plate, wherein the method specifically comprises the following steps:
and S6-1, the body node coordinates of all the structured finite element grids of the parallelepiped target plate are contained in the structured grid node coordinate distribution matrix, the secondary structured grid node coordinate distribution matrix, the tertiary structured grid node coordinate distribution matrix and the quartic structured grid node coordinate distribution matrix, and the four matrixes have the same row number and are the row number of the structured grid matrix.
Establishing a three-dimensional sequence number matrix B 0 With B 0 (u, v, w) represents a three-dimensional sequence number matrix B 0 Row (u) th, column (v) th, layer (w) th elements.
Judging the orientation of the parallelepiped target plate, if the orientation is the positive direction of the X axis, then:
B 0 (u,v,w)=u+f 2 (v-1)+f 2 f 1 (w-1)+h,u∈[1,f 2 ],v∈[1,f 1 ],w∈[1,f 3 ] (21)
the first and second dimensions of the three-dimensional sequence number matrix are then swapped.
If the positive direction of the Y axis is adopted, then:
B 0 (u,v,w)=u+f 1 (v-1)+f 1 f 3 (w-1)+h,u∈[1,f 1 ],v∈[1,f 3 ],w∈[1,f 2 ] (22)
the second and third dimensions of the three-dimensional sequence number matrix are then swapped.
If the positive direction of the Z axis is adopted, then:
B 0 (u,v,w)=u+f 3 (v-1)+f 2 f 3 (w-1)+h,u∈[1,f 3 ],v∈[1,f 2 ],w∈[1,f 1 ] (23)
the first and third dimensions of the three-dimensional sequence number matrix are then swapped.
Wherein h has a value of 0. For a hexahedron I, the first order f 1 =n 2 Second step quantity f 2 =n 1 Third order quantity f 3 =n 6
For hexahedron II, f 1 =n 4 ,f 2 =n 1 ,f 3 =n 6 . For hexahedron III, f 1 =n 2 ,f 2 =n 4 ,f 3 =n 6
For a hexahedron of four, f 1 =n 2 ,f 2 =n 5 ,f 3 =n 6 . For a pentagon, f 1 =n 3 ,f 2 =n 5 ,f 3 =n 6
For six hexahedron, f 1 =n 3 ,f 2 =n 1 ,f 3 =n 6 . Proceed to step S6-2.
S6-2, obtaining a three-dimensional sequence number processing matrix B 1 . Proceed to step S6-3.
Step S6-3, processing the matrix B by the three-dimensional sequence number 1 And removing all elements corresponding to the maximum row number, column number and layer number to obtain a three-dimensional serial number non-structural matrix B ', and arranging the three-dimensional serial number non-structural matrix B' into a single-row matrix from small to large according to the sequence of the serial numbers of the first row, the second row and the last layer to obtain a non-structural row matrix C. Go to stepAnd S6-4.
S6-4, obtaining an unstructured grid information matrix D through the unstructured row matrix C, wherein each piece of unstructured finite element grid information formed by structured finite element grid nodes is represented in the unstructured grid information matrix D, judging the orientation of the parallelepiped target plate, and if the orientation is the positive direction of the X axis, then:
Figure BDA0003800484980000121
if the positive direction of the Y axis is adopted, then:
Figure BDA0003800484980000122
if the positive direction of the Z axis is adopted, then:
Figure BDA0003800484980000123
proceed to step S6-5.
S6-5, constructing a row of elements on the left side of the unstructured grid information matrix D, wherein the numerical value of each element is the row sequence number of the row where the element is located, and the constructed new matrix is an unstructured finite element grid node coordinate distribution matrix E 2 The process proceeds to step S6-6.
S6-6, supplementing a row of elements on the left side of the structured grid node coordinate distribution matrix, and obtaining an unstructured finite element grid node coordinate distribution matrix E for the row sequence numbers in the matrix where the elements are located 1 Distributing matrix E of unstructured finite element grid 2 A node coordinate distribution matrix E arranged in the unstructured finite element grid 1 Next, an unstructured finite element mesh is obtained.
Changing the value of h into the number of rows of the structured grid matrix, repeating the step S6-1 to the step S6-4 once to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 4 Supplementing a row of elements on the left side of the secondary structured grid node coordinate distribution matrix, and obtaining the row sequence of the elements in the matrixAdding the number to the number of rows of the structured grid matrix to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 3 A quadratic unstructured finite element grid distribution matrix E 4 A node coordinate distribution matrix E distributed in a secondary unstructured finite element grid 3 Next, a quadratic unstructured finite element mesh is obtained.
The value of h is changed to be twice of the line number of the structured grid matrix, and the step S6-1 to the step S6-4 are repeated once to obtain a three-time unstructured finite element grid node coordinate distribution matrix E 6 Supplementing a row of elements on the left side of the cubic structured grid node coordinate distribution matrix, adding the row sequence number of the structured grid matrix row number to the row sequence number of the element in the matrix to obtain a cubic unstructured finite element grid node coordinate distribution matrix E 5 Distributing matrix E of cubic unstructured finite element grid 6 A distribution matrix E arranged in a cubic unstructured finite element grid node coordinate 5 Next, a cubic unstructured finite element mesh is obtained.
The value of h is changed to three times the number of rows of the structured grid matrix and steps S6-1 to S6-4 are repeated once. Obtaining a quartic unstructured finite element grid node coordinate distribution matrix E 8 Supplementing a row of elements on the left side of the quartic structured grid node coordinate distribution matrix, adding the row sequence number of the structured grid matrix row number to the row sequence number of the element in the matrix to obtain a quartic unstructured finite element grid node coordinate distribution matrix E 7 Distributing matrix E of quadruply unstructured finite element grids 8 A distribution matrix E arranged in the node coordinates of the quadric unstructured finite element grid 7 Next, the fourth unstructured finite element mesh is obtained, and the process goes to step S6-7.
And S6-7, sequentially placing the unstructured finite element grid, the secondary unstructured finite element grid, the tertiary unstructured finite element grid and the quartic unstructured finite element grid in a text file to obtain the unstructured finite element grid of the parallelepiped target plate.
According to the steps, the finite element meshes of the parallelepiped target plate can be rapidly and automatically generated.
Examples
With reference to fig. 1 to 6, a method for rapidly and automatically generating a finite element mesh of a parallelepiped target plate comprises the following steps:
first, an example was set, and a target plate having a thickness of 80mm, a height and a width of 800mm, an inclination angle of 45 °, a positive direction of the x-axis, and an offset distance of 300mm was drawn.
The target plate geometric parameter values are input as follows:
Figure BDA0003800484980000141
the target plate grid parameter values are input as follows:
n 1 n 2 n 3 n 4 n 5 n 6 q
20 20 40 30 40 30 1
step S1, taking the direction of the projectile, the shock wave and other incoming objects as a reference direction, taking the surface of the parallelepiped target plate, which bears the projectile, the shock wave and the other incoming objects, as the front surface of the target plate, taking the reverse surface of the parallelepiped target plate as the back surface of the target plate, and taking the other four surfaces as the top surface, the bottom surface, the left side surface and the right side surface of the target plate respectively.
The distance between the front surface and the back surface of the target plate is the thickness L of the parallelepipedic target plate 4 . Distance 2*L between target plate top surface and target plate bottom surface 2 ,L 2 Half the height of the parallelepiped target plate. The distance between the left side surface of the target plate and the right side surface of the target plate is 2*L 3 ,L 3 Half the width of the parallelepiped target plate. The opposite direction of the reference direction is the orientation of the parallelepiped target plate. The translation length of the parallelepiped target plate along the reference direction is an offset distance L 5 . The line surface angle between the parallelepiped target plate and the reference direction is the inclination angle α of the parallelepiped target plate.
All points with equal distance to the top surface of the target plate and the bottom surface of the target plate form a primary middle surface of the parallelepiped target plate. All points with equal distance between the left side surface of the target plate and the right side surface of the target plate form a secondary middle surface of the parallelepipedal target plate.
Divide into four sub-target boards by the secondary well face in the reference direction with the parallelepiped target board once, the sub-target board of synchronous contact target board top surface and target board right flank is a sub-target board, begins to define other sub-target boards as second sub-target board, third sub-target board and fourth sub-target board according to clockwise from a sub-target board along equivalent thickness direction.
And defining a projection surface of a surface of the first target plate, which is coincident with the front surface of the target plate, along the reference direction as a pre-division surface, and defining a projection surface of the front surface of the target plate along the reference direction as a projection front surface of the target plate. The pre-dividing surface is just the part surrounded by the primary middle surface, the secondary middle surface, the top surface of the target plate and the right side surface of the target plate in the front surface of the target plate.
And drawing a 1/4 circular arc with the radius of R in the pre-dividing surface by taking the intersection point of the pre-dividing surface, the primary middle surface and the secondary middle surface as the center of a circle, wherein the circular arc is called an in-plane arc.
The inner arc divides the pre-divided surface into an inner arc surface and an outer arc surface, the middle point of the inner arc divides the inner arc into two parts, the inner arc intersects with the primary middle surface to form an inner arc, the inner arc intersects with the secondary middle surface to form an inner arc, a center point of a surface is determined in the inner arc surface, and the distances from the center point of the surface to the primary middle surface and the secondary middle surface are equal.
Rotating an arc inner angle theta clockwise along a reference direction on the arc inner surface along a perpendicular line from the surface center point to the primary middle surface to form a line segment, connecting the arc inner angle theta to the primary middle surface from the surface center point to form a line in the arc, wherein the distance from the intersection point of the line in the arc and the primary middle surface to the circle center is L 1
Rotating an arc inner angle along a reference direction in a counterclockwise direction with a perpendicular line from a face center point to a secondary middle plane to form a line segment, connecting the line segment from the face center point to the secondary middle plane, namely two lines in the arc, wherein the distance from the intersection point of the two lines in the arc and the secondary middle plane to the circle center is equal to the distance L from the intersection point of the one line in the arc and the primary middle plane to the circle center 1 . The arc inner face is rotated counterclockwise along the reference direction by an inner angle equal to theta from the center point of the face to the perpendicular line of the secondary midplane.
The vertical line of the inner arc of the surface is made from the center point of the surface and intersects with the inner arc of the surface at the middle point of the arc, and the vertical line is the three lines in the arc.
Rotating the outer corner of the arc clockwise on the outer face of the arc along the reference direction from the center point of the arc to the perpendicular to the top surface of the parallelepiped target plate
Figure BDA0003800484980000151
A line segment is connected from the middle point of the arc to the top surface of the parallelepiped target plate and is a line outside the arc.
Making a line segment along the reference direction on the outer surface of the arc along the arc outer angle rotating counterclockwise from the arc center point to the vertical line of the right side surface of the parallelepiped target plate, connecting the line segment from the arc center point to the right side surface of the parallelepiped target plate, and making the line segment be an outer line of the arc, wherein the reference direction on the outer surface of the arc along the reference direction along the arc outer angle rotating counterclockwise from the arc center point to the vertical line of the right side surface of the parallelepiped target plate is equal to
Figure BDA0003800484980000152
The first horn target plate is divided into 6 hexahedrons with specific shapes along the reference direction by an inner arc surface, an inner arc line, a third arc line, an outer arc line and an outer arc line.
The pre-divided surface is divided into 6 sub-surfaces by an inner arc, an inner arc line, a third arc line, an outer arc line and an outer arc line along a reference direction, wherein the sub-surfaces comprise a first sub-surface with the inner arc line and the inner arc line as edges, a second sub-surface with the inner arc line and the inner arc line as edges, a third sub-surface with the inner arc line and the inner arc line as edges, a fourth sub-surface with the inner arc line and the outer arc line as edges, a fifth sub-surface with the outer arc line and the outer arc line as edges, and a sixth sub-surface with the inner arc line and the outer arc line as edges.
The specific-shaped hexahedron coinciding with a horn face in the reference direction is a horn, and a horn face is the front face of the horn. The hexahedron with the specific shape coinciding with the second hexahedron along the reference direction is the second hexahedron, and the second hexahedron is the front face of the second hexahedron. The hexahedron with the specific shape coinciding with the third hexahedron along the reference direction is the third hexahedron, and the third hexahedron is the front face of the third hexahedron. The hexahedron with the specific shape coinciding with the fourth hexahedron along the reference direction is the fourth hexahedron, and the fourth hexahedron is the front face of the fourth hexahedron. The specific-shaped hexahedron coinciding with the five-sided surface in the reference direction is a five-sided hexahedron, and the five-sided surface is the front surface of the five-sided hexahedron. The hexahedron of the specific shape coinciding with the six-size surface in the reference direction is the six-size hexahedron, and the six-size surface is the front surface of the six-size hexahedron.
S2, setting an edge node proportion matrix G (m, q), wherein m represents the number of grids set on a hexahedron edge with a specific shape, q represents the ratio of the distance between two adjacent nodes, q is a positive number, i represents a node serial number, and the ith element value G (m, q) i Comprises the following steps:
Figure BDA0003800484980000161
in the first plane, the length of the opposite side of a line in the arc is equal toL 1 The number of grids is determined as n 1 The node coordinates on the opposite sides and the upper sides of a line in the arc are defined by a node abscissa matrix x 1 And a node ordinate matrix y 1 The structure is as follows:
Figure BDA0003800484980000162
the coordinates of the upper nodes on the line in the arc are represented by a node abscissa matrix x 2 And a node ordinate matrix y 2 The structure is as follows:
Figure BDA0003800484980000163
wherein the content of the first and second substances,
Figure BDA0003800484980000164
denotes 1 (n) 1 + 1) of all 1 matrices.
In the second sub-surface, the node coordinates on the upper edge of the first arc in the surface are represented by a node abscissa matrix x 3 And a node ordinate matrix y 3 The structure is as follows:
Figure BDA0003800484980000165
in the third sub-surface, the length of the opposite side of the two lines in the arc is equal to L 1 The number of grids is determined as n 2 The coordinates of the nodes on the opposite sides and the upper sides of two lines in the arc are represented by a node abscissa matrix x 4 And a node ordinate matrix y 4 The structure is as follows:
Figure BDA0003800484980000166
wherein the content of the first and second substances,
Figure BDA0003800484980000167
denotes 1 (n) 2 + 1) of all 1 matrices.
In-planeThe coordinates of upper nodes of the two arcs are represented by a node abscissa matrix x 5 And a node ordinate matrix y 5 The structure is as follows:
Figure BDA0003800484980000168
in the fourth sub-surface, the node coordinates on the opposite sides and the upper sides of the two arcs in the surface are represented by a node abscissa matrix x 6 And a node ordinate matrix y 6 The structure is as follows:
Figure BDA0003800484980000171
in the fifth sub-surface, the number of grids on the first line outside the arc is determined as n 3 The coordinates of the upper nodes on the line outside the arc are represented by a node abscissa matrix x 7 And a node ordinate matrix y 7 The structure is as follows:
Figure BDA0003800484980000172
wherein the content of the first and second substances,
Figure BDA0003800484980000173
denotes 1 (n) 3 + 1) of all 1 matrices.
The node coordinates on the opposite side and the upper side of one line outside the arc are represented by a node abscissa matrix x 8 And a node ordinate matrix y 8 The structure is as follows:
Figure BDA0003800484980000174
in the six-sub-surface, the node coordinates on the opposite side and the upper side of an arc in the surface are represented by a node abscissa matrix x 9 And a node ordinate matrix y 9 The structure is as follows:
Figure BDA0003800484980000175
the grid number of each hexahedron edge with a specific shape and the corresponding edge node coordinates are determined.
Step S3, a group of opposite sides are endowed with a node abscissa matrix and a node ordinate matrix on each sub-surface, and any pair of opposite sides: the node abscissa matrix of any one edge is a primary abscissa matrix x s The node ordinate matrix is a primary ordinate matrix y s . The node abscissa matrix of the other edge is a quadratic abscissa matrix x t The node ordinate matrix is a quadratic ordinate matrix y t
The primary transverse matrix, the primary longitudinal matrix, the secondary transverse matrix and the secondary longitudinal matrix are spliced into a primary node matrix color with 4 rows and 4 columns as edge nodes from top to bottom in sequence (1)
coor (1) =[x s T y s T x t T y t T ] T (11)
Wherein, the superscript T is a matrix transposition symbol.
Mirror image supplement is carried out on the edge node coordinates of the 6 sub-surfaces to obtain mirror image supplement node coordinates of each sub-surface, the edge node coordinates of the 6 sub-surfaces take the primary middle surface as a symmetrical surface, and the primary node matrix is mirrored to obtain a secondary node matrix color (2) . At a primary node matrix coor (1) Middle exchange x s And x t Position, and exchange y s And y t Position to obtain a new primary node matrix coor (1.5) Taking the edge node coordinates of 6 sub-surfaces and the intersection line of the primary middle surface and the secondary middle surface as a symmetry axis, and mirroring the new primary node matrix to obtain a tertiary node matrix color (3) . Taking the edge node coordinates of 6 sub-surfaces as a symmetry plane by taking the secondary middle surface as a mirror image of the new primary node matrix to obtain a quartic node matrix cor (4) . So far, the edge node coordinates of the front surface of the parallelepiped target plate are all obtained.
S4, expanding the edge node coordinates of the front surface of the target plate to the surface node coordinates of the front surface of the target plate, and supplementing the edge node coordinates of the planar hexahedral target plate along the reference direction, wherein the method specifically comprises the following steps:
s4-1, calculating an abscissa matrix X 'of a surface node coordinate of the front surface of the parallelepiped target plate and an ordinate matrix Y' of the surface node coordinate from primary node matrixes of each sub-surface, mirror image supplementary node coordinates of the primary node matrixes and boundary point proportional matrixes, and obtaining the following formula:
Figure BDA0003800484980000181
for a sub-surface number one, the horizontal matrix subscript s =1, the vertical matrix subscript t =2, and the first grid variable n = n 2
For the sub-surface two, the horizontal matrix subscript s =2, the vertical matrix subscript t =3,n = n 4 ,n 4 The number of grids determined on the three lines in the arc.
For the three sub-planes, the horizontal matrix subscript s =4, the vertical matrix subscript t =5,n = n 4
For the four sub-planes, the horizontal matrix subscript s =5, the vertical matrix subscript t =6,n = n 5 ,n 5 The number of grids determined on the two lines outside the arc.
For the five sub-planes, the horizontal matrix subscript s =7, the vertical matrix subscript t =8, n = n 5
For the six sub-planes, the horizontal matrix subscript s =3, the vertical matrix subscript t =9,n = n 3 . Proceed to step S4-2.
S4-2, determining the number of grids to be n on the edge of the plane hexahedral target plate along the reference direction 6 Then, the node value matrix Z' of each node coordinate along the reference direction is:
Figure BDA0003800484980000182
wherein the content of the first and second substances,
Figure BDA0003800484980000183
denotes 1 (n) 6 + 1) of all 1 matrices.
S5, by setting a matrix sorting function, obtaining body node coordinates of the structured grid of the parallelepiped target plate according to the orientation of the parallelepiped target plate by using the face node coordinates of the front face of the parallelepiped target plate and the edge node coordinates of the plane hexahedron target plate along the reference direction, and further obtaining the structured finite element grid of the parallelepiped target plate, wherein the matrix sorting function is specifically as follows:
s5-1, setting three matrix sorting functions:
the first matrix sorting function Re (a) represents a matrix with 1 column number formed by splicing elements with column ordinal numbers larger than 1 in the matrix a in an order from small to large in the column ordinal numbers below the elements in the first column.
The second matrix sorting function De (a, p) represents a matrix composed of repeating each element in the matrix a p times and sequentially placing the elements thereunder.
The third matrix sorting function Dm (a, p) represents a matrix composed of the matrix a entirely repeated p times and sequentially disposed below the matrix a. And (5) transferring to a step 2.
S5-2, in the X-Y-Z coordinate system, the orientation of the parallelepiped target plate is the positive direction of the X axis, then:
the overall body node coordinates (X ', Y ', Z ') of the first, second and sixth hexahedrons are in the matrix:
Figure BDA0003800484980000191
for a first hexahedron, the second grid variable b 1 =n 2
For hexahedron II, b 1 =n 4
For six hexahedron, b 1 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure BDA0003800484980000192
for a cube three, the third grid becomesAmount b 2 =n 2 Fourth grid variable b 3 =n 4
For hexahedron of four size, b 2 =n 2 ,b 3 =n 5
For a five-sided hexahedron, b 2 =n 3 ,b 3 =n 5 . And (4) turning to step S5-3.
S5-3, obtaining a structural grid node coordinate distribution matrix S:
S=[X″ Y″ Z″] (20)
and (5) turning to step S5-4.
And S5-4, respectively repeating the step S5-2 once according to the secondary node matrix, the tertiary node matrix and the quartic node matrix, correspondingly obtaining a secondary structured grid node coordinate distribution matrix, a tertiary structured grid node coordinate distribution matrix and a quartic structured grid node coordinate distribution matrix, and turning to the step S5-5.
And S5-5, sequentially splicing the obtained structural grid node coordinate distribution matrix, the secondary structural grid node coordinate distribution matrix, the tertiary structural grid node coordinate distribution matrix and the quartic structural grid node coordinate distribution matrix from top to bottom to obtain the structural finite element grid of the parallelepiped target plate.
S6, obtaining an unstructured grid matrix by setting a three-dimensional sequence number matrix, and sorting the body node coordinates of the structured finite element grids of the parallelepiped target plate to obtain the unstructured finite element grids of the parallelepiped target plate, wherein the method specifically comprises the following steps:
and S6-1, the body node coordinates of all the structured finite element grids of the parallelepiped target plate are contained in the structured grid node coordinate distribution matrix, the secondary structured grid node coordinate distribution matrix, the tertiary structured grid node coordinate distribution matrix and the quartic structured grid node coordinate distribution matrix, and the four matrixes have the same row number and are the row number of the structured grid matrix.
Establishing a three-dimensional sequence number matrix B 0 With B 0 (u, v, w) represents a three-dimensional sequence number matrix B 0 Row (u) th and column (v)Elements of the w-th layer.
The orientation of the parallelepiped target plate is the positive direction of the X-axis, then:
B 0 (u,v,w)=u+f 2 (v-1)+f 2 f 1 (w-1)+h,u∈[1,f 2 ],v∈[1,f 1 ],w∈[1,f 3 ] (21)
the first and second dimensions of the three-dimensional sequence number matrix are then swapped.
Wherein h has a value of 0. For a hexahedron of one size, the first order quantity f 1 =n 2 Second order quantity f 2 =n 1 Third order quantity f 3 =n 6
For hexahedron II, f 1 =n 4 ,f 2 =n 1 ,f 3 =n 6 . For hexahedron III, f 1 =n 2 ,f 2 =n 4 ,f 3 =n 6
For a hexahedron of four size, f 1 =n 2 ,f 2 =n 5 ,f 3 =n 6 . For a hexahedron of five size f 1 =n 3 ,f 2 =n 5 ,f 3 =n 6
For six hexahedron, f 1 =n 3 ,f 2 =n 1 ,f 3 =n 6 . Proceed to step S6-2.
S6-2, obtaining a three-dimensional sequence number processing matrix B 1 . Proceed to step S6-3.
Step S6-3, processing the matrix B by the three-dimensional sequence number 1 And removing all elements corresponding to the maximum row number, column number and layer number to obtain a three-dimensional serial number non-structural matrix B ', and arranging the three-dimensional serial number non-structural matrix B' into a single-row matrix from small to large according to the sequence of the serial numbers of the first row, the second row and the last layer to obtain a non-structural row matrix C. Proceed to step S6-4.
S6-4, obtaining an unstructured grid information matrix D through the unstructured row matrix C, wherein each unstructured finite element grid information formed by structured finite element grid nodes is represented in the unstructured grid information matrix D, and the orientation of the parallelepiped target plate is the positive direction of the X axis, then:
Figure BDA0003800484980000211
and (6) turning to step S6-5.
S6-5, constructing a row of elements on the left side of the unstructured grid information matrix D, wherein the numerical value of each element is the row sequence number of the row where the element is located, and the constructed new matrix is an unstructured finite element grid node coordinate distribution matrix E 2 The process proceeds to step S6-6.
S6-6, supplementing a row of elements to the left side of the structured grid node coordinate distribution matrix, and obtaining an unstructured finite element grid node coordinate distribution matrix E for the row sequence number in the matrix where the elements are located 1 Distributing matrix E of unstructured finite element grid 2 A node coordinate distribution matrix E arranged in the unstructured finite element grid 1 Next, an unstructured finite element mesh is obtained.
Changing the value of h into the number of rows of the structured grid matrix, repeating the step S6-1 to the step S6-4 once to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 4 Supplementing a row of elements on the left side of the secondary structured grid node coordinate distribution matrix, adding the row sequence number of the structured grid matrix row number to the row sequence number of the element in the matrix to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 3 A quadratic unstructured finite element grid distribution matrix E 4 A distribution matrix E arranged on the node coordinates of the secondary unstructured finite element grid 3 Next, a quadratic unstructured finite element mesh is obtained.
The value of h is changed to be twice of the number of rows of the structured grid matrix, and the step S6-1 to the step S6-4 are repeated once to obtain a cubic unstructured finite element grid node coordinate distribution matrix E 6 Supplementing a row of elements on the left side of the three-time structured grid node coordinate distribution matrix, adding the row sequence number of the element in the matrix to the row number of the structured grid matrix to obtain a three-time unstructured finite element grid node coordinate distribution matrix E 5 Distributing cubic unstructured finite element gridsMatrix E 6 A distribution matrix E arranged in a cubic unstructured finite element grid node coordinate 5 Next, a cubic unstructured finite element mesh is obtained.
The value of h is changed to three times the number of rows of the structured grid matrix and steps S6-1 to S6-4 are repeated once. Obtaining a quartic unstructured finite element grid node coordinate distribution matrix E 8 Supplementing a row of elements on the left side of the quadric structured grid node coordinate distribution matrix, adding the row number of the structured grid matrix to the row sequence number of the element in the matrix to obtain a quadric unstructured finite element grid node coordinate distribution matrix E 7 Distributing matrix E of quadric unstructured finite element mesh 8 A distribution matrix E arranged in the node coordinates of the quadric unstructured finite element grid 7 Next, the fourth unstructured finite element mesh is obtained, and the process proceeds to step S6-7.
And S6-7, sequentially placing the unstructured finite element grid, the secondary unstructured finite element grid, the tertiary unstructured finite element grid and the quartic unstructured finite element grid in a text file to obtain the unstructured finite element grid of the parallelepiped target plate.
And finishing the structured finite element grids and the unstructured finite element grids of the parallelepipedal target plate, when a large number of working conditions are faced, modifying according to actual geometrical parameters and required grid parameters of the working conditions, and repeating the steps S1-S6 to realize the rapid and automatic generation of the parallelepipedal target plate finite element grids under each working condition.

Claims (7)

1. A method for quickly and automatically generating a finite element grid of a parallelepiped target plate is characterized by comprising the following specific steps:
step S1, determining geometric parameters of the parallelepiped target plate, including thickness, height, width, orientation, offset distance and inclination angle, dividing the parallelepiped target plate into 4 sub-target plates along a reference direction, sequentially including a first sub-target plate, a second sub-target plate, a third sub-target plate and a fourth sub-target plate, dividing the first sub-target plate into 6 hexahedrons with specific shapes along the reference direction, and turning to step S2;
s2, determining the number of grids of a group of opposite sides on the front surfaces of the 6 hexahedrons with the specific shapes, determining corresponding edge node coordinates, and turning to S3;
s3, mirror image supplement is carried out on edge node coordinates of a group of opposite sides on the front faces of the 6 hexahedrons with specific shapes, edge node coordinates of the front faces of the parallelepipedic target plates are obtained, and the step S4 is carried out;
s4, expanding the edge node coordinates of the front surface of the target plate to the surface node coordinates of the front surface of the target plate, supplementing the edge node coordinates of the planar hexahedral target plate along the reference direction, and turning to the step S5;
s5, setting a matrix sorting function, obtaining body node coordinates of the structured grid of the parallelepiped target plate according to the orientation of the parallelepiped target plate by using the face node coordinates of the front face of the parallelepiped target plate and the edge node coordinates of the planar hexahedron target plate along the reference direction, further obtaining the structured finite element grid of the parallelepiped target plate, and turning to the step S6;
and S6, obtaining an unstructured grid matrix by setting the three-dimensional sequence number matrix, and sequencing and sorting the body node coordinates of the structured finite element grids of the parallelepiped target plate to obtain the unstructured finite element grids of the parallelepiped target plate.
2. The method of claim 1, wherein the method comprises the steps of: in step S1, determining geometric parameters of the parallelepiped target plate, including thickness, height, width, orientation, offset distance, and inclination angle, dividing the parallelepiped target plate into 4 sub-target plates along the reference direction, sequentially including a first sub-target plate, a second sub-target plate, a third sub-target plate, and a fourth sub-target plate, and dividing the first sub-target plate into 6 hexahedrons of specific shapes along the reference direction, specifically as follows:
taking the directions of the shot, the shock wave and other attacking objects as reference directions, taking the surface of the parallelepiped target plate, which bears the shot, the shock wave and other attacking objects, as the front surface of the target plate, taking the back surface of the parallelepiped target plate as the back surface of the target plate, and respectively taking the rest four surfaces as the top surface of the target plate, the bottom surface of the target plate, the left side surface of the target plate and the right side surface of the target plate;
the distance between the front surface and the back surface of the target plate is the thickness L of the parallelepipedic target plate 4 (ii) a Distance 2*L between target plate top surface and target plate bottom surface 2 ,L 2 Is half of the height of the parallelepiped target plate; the distance between the left side surface of the target plate and the right side surface of the target plate is 2*L 3 ,L 3 Is half of the width of the parallelepipedal target plate; the ratio of the height of the target plate to the width of the target plate is not less than 0.5 and not more than 2; the direction opposite to the reference direction is the orientation of the parallelepiped target plate; the translation length of the parallelepiped target plate along the reference direction is an offset distance L 5 (ii) a The line surface angle between the parallelepiped target plate and the reference direction is the inclination angle alpha of the parallelepiped target plate, and the inclination angle alpha is not less than 30 degrees and not more than 90 degrees;
all points with equal distance to the top surface and the bottom surface of the target plate form a primary middle surface of the parallelepiped target plate; all points with equal distance between the left side surface of the target plate and the right side surface of the target plate form a secondary middle surface of the parallelepipedal target plate;
dividing the parallelepiped target plate into four sub-target plates by a primary middle surface and a secondary middle surface along a reference direction, wherein the sub-target plate synchronously contacting the top surface of the target plate and the right side surface of the target plate is a first sub-target plate, and the other sub-target plates are sequentially defined as a second sub-target plate, a third sub-target plate and a fourth sub-target plate from the first sub-target plate clockwise along the equivalent thickness direction;
defining a projection surface of a surface, which is superposed with the front surface of the target plate, of the first target plate along a reference direction as a pre-division surface, and defining a projection surface of the front surface of the target plate along the reference direction as a projection front surface of the target plate;
drawing a 1/4 circular arc with the radius of R in the pre-dividing surface by taking the intersection point of the pre-dividing surface, the primary middle surface and the secondary middle surface as the center of a circle, wherein the circular arc is called an in-plane arc and is 0.1L 2 ≤R≤0.7L 2 And 0.1L 3 ≤R≤0.7L 3
The inner arc divides the pre-divided surface into an inner arc surface and an outer arc surface, the middle point of the inner arc divides the inner arc into two parts, the inner arc intersects with the primary middle surface to form an inner arc, the inner arc intersects with the secondary middle surface to form an inner arc, a center point of a surface is determined in the inner arc surface, the distances from the center point of the surface to the primary middle surface and the secondary middle surface are equal, and the distance from the center point of the surface to the center point of the circle is not less than 0.2 time of the radius R and not more than 0.75 time of the radius R;
rotating an arc inner angle theta clockwise along a reference direction with a perpendicular line from a face center point to a primary middle plane on an arc inner surface, connecting a line segment from the face center point to the primary middle plane, wherein the line segment is a line in the arc, the theta is more than or equal to 0 degree and less than or equal to 32.5 degrees, and the distance from the intersection point of the line in the arc and the primary middle plane to the circle center is L 1 ,0.1L 1 ≤R≤0.7L 1
Rotating an arc inner angle along a reference direction in a counterclockwise direction with a perpendicular line from a face center point to a secondary middle plane to form a line segment, connecting the line segment from the face center point to the secondary middle plane, namely two lines in the arc, wherein the distance from the intersection point of the two lines in the arc and the secondary middle plane to the circle center is equal to the distance L from the intersection point of the one line in the arc and the primary middle plane to the circle center 1 (ii) a Rotating the arc inner surface along the reference direction counterclockwise with the perpendicular line from the center point of the surface to the secondary middle surface to form an arc inner angle equal to theta;
making a vertical line of the inner arc of the surface from the center point of the surface, and intersecting the inner arc of the surface with the middle point of the arc, wherein the vertical line is a three-line in the arc;
rotating the outer corner of the arc clockwise on the outer face of the arc along the reference direction from the center point of the arc to the perpendicular to the top surface of the parallelepiped target plate
Figure FDA0003800484970000021
A line segment is connected from the middle point of the arc to the top surface of the parallelepiped target plate and is a line outside the arc, wherein,
Figure FDA0003800484970000022
Figure FDA0003800484970000023
making a line segment along the reference direction on the outer surface of the arc along the arc outer surface counterclockwise rotation arc outer angle from the arc center point to the right side surface of the parallelepiped target plate, connecting the line segment to the right side surface of the parallelepiped target plate from the arc center point, being an outer arc line, along the reference direction on the outer surface of the arc along the reference direction counterclockwise rotation arc outer angle from the arc center point to the right side surface of the parallelepiped target plate equal to
Figure FDA0003800484970000031
Dividing a first-size target plate into 6 hexahedrons with specific shapes along a reference direction by an inner arc of a surface, an inner first line of an arc, an inner second line of the arc, an inner third line of the arc, an outer first line of the arc and an outer second line of the arc;
the pre-divided surface is divided into 6 sub-surfaces by an inner arc of the surface, an inner arc line, an outer arc line and an outer arc line along a reference direction, wherein the sub-surfaces comprise a first sub-surface with the inner arc line and the inner arc line as edges, a second sub-surface with the inner arc line and the inner arc line as edges, a third sub-surface with the inner arc line and the inner arc line as edges, a fourth sub-surface with the inner arc line and the outer arc line as edges, a fifth sub-surface with the outer arc line and the outer arc line as edges, and a sixth sub-surface with the inner arc line and the outer arc line as edges;
the hexahedron with the specific shape coinciding with the first hexahedron along the reference direction is the first hexahedron, and the first hexahedron is the front surface of the first hexahedron; the hexahedron with the specific shape coinciding with the second hexahedron along the reference direction is the second hexahedron, and the second hexahedron is the front surface of the second hexahedron; the hexahedron with the specific shape coinciding with the third hexahedron along the reference direction is the third hexahedron, and the third hexahedron is the front face of the third hexahedron; the hexahedron with the specific shape coinciding with the fourth hexahedron along the reference direction is the fourth hexahedron, and the fourth hexahedron is the front surface of the fourth hexahedron; the hexahedron with the specific shape coinciding with the fifth hexahedron along the reference direction is a fifth hexahedron, and the fifth hexahedron is the front surface of the fifth hexahedron; the hexahedron of the specific shape coinciding with the six-size surface in the reference direction is the six-size hexahedron, and the six-size surface is the front surface of the six-size hexahedron.
3. The method of claim 2, wherein the method comprises the steps of: in step S2, the number of meshes of a group of opposite sides on the front surfaces of the 6 specially-shaped hexahedrons is determined, and corresponding edge node coordinates are determined as follows:
setting an edge node proportion matrix G (m, q), wherein m represents a net set on the edges of a hexahedron with a specific shapeThe number of grids, q represents the ratio of the distances between two adjacent nodes, q is a positive number, i represents the node number, the ith element value G (m, q) i Comprises the following steps:
Figure FDA0003800484970000032
in the first plane, the length of the opposite side of a line in the arc is equal to L 1 The number of grids is determined as n 1 The node coordinates on the opposite sides and the upper sides of a line in the arc are defined by a node abscissa matrix x 1 And a node ordinate matrix y 1 The structure is as follows:
Figure FDA0003800484970000041
the coordinates of the upper nodes on the line in the arc are represented by a node abscissa matrix x 2 And a node ordinate matrix y 2 The structure is as follows:
Figure FDA0003800484970000042
wherein the content of the first and second substances,
Figure FDA0003800484970000043
denotes 1 (n) 1 + 1) full 1 matrix;
in the second sub-plane, the node coordinates on the upper edge of the first arc in the plane are represented by a node abscissa matrix x 3 And a node ordinate matrix y 3 The structure is as follows:
Figure FDA0003800484970000044
in the third sub-surface, the length of the opposite side of the two lines in the arc is equal to L 1 The number of grids is determined as n 2 The coordinates of the nodes on the opposite sides and the upper sides of two lines in the arc are represented by a node abscissa matrix x 4 And a node ordinate matrix y 4 The structure is as follows:
Figure FDA0003800484970000045
wherein the content of the first and second substances,
Figure FDA0003800484970000046
denotes 1 (n) 2 + 1) full 1 matrix;
the node coordinate on the two arcs in the plane is represented by a node abscissa matrix x 5 And a node ordinate matrix y 5 The structure is as follows:
Figure FDA0003800484970000047
in the fourth sub-surface, the node coordinates on the opposite sides and the upper sides of the two arcs in the surface are represented by a node abscissa matrix x 6 And a node ordinate matrix y 6 The structure is as follows:
Figure FDA0003800484970000048
in the fifth sub-plane, the number of grids on the first line outside the arc is determined as n 3 The coordinates of the upper node on the outer line of the arc are represented by a node abscissa matrix x 7 And a node ordinate matrix y 7 The structure is as follows:
Figure FDA0003800484970000051
wherein the content of the first and second substances,
Figure FDA0003800484970000052
denotes 1 (n) 3 + 1) full 1 matrix;
the node coordinates on the opposite side and the upper side of one line outside the arc are represented by a node abscissa matrix x 8 And a node ordinate matrix y 8 The structure is as follows:
Figure FDA0003800484970000053
in the six-sub-surface, the node coordinates on the opposite side and the upper side of an arc in the surface are represented by a node abscissa matrix x 9 And a node ordinate matrix y 9 The structure is as follows:
Figure FDA0003800484970000054
the grid number of each hexahedron edge with a specific shape and the corresponding edge node coordinates are determined.
4. The method of claim 3, wherein the method comprises the steps of: in step S3, mirror image supplementation is performed on edge node coordinates of a group of opposite sides on the front surfaces of the 6 hexahedrons with specific shapes to obtain edge node coordinates of the front surface of the parallelepiped target plate, which are specifically as follows:
each sub-surface has a set of opposite edges assigned with a node abscissa matrix and a node ordinate matrix, and any pair of opposite edges: the node abscissa matrix of any one edge is a primary abscissa matrix x s The node ordinate matrix is a primary ordinate matrix y s (ii) a The node abscissa matrix of the other edge is a quadratic abscissa matrix x t The node ordinate matrix is a quadratic ordinate matrix y t
The primary transverse matrix, the primary longitudinal matrix, the secondary transverse matrix and the secondary longitudinal matrix are spliced into a primary node matrix color with 4 rows and 4 columns as edge nodes from top to bottom in sequence (1)
coor (1) =[x s T y s T x t T y t T ] T (11)
Wherein, the superscript T is a matrix transposition symbol;
mirror image supplement is carried out on the edge node coordinates of the 6 sub-surfaces to obtain mirror image supplement node coordinates of each sub-surface, the edge node coordinates of the 6 sub-surfaces take the primary middle surface as a symmetrical surface, and the primary node matrix is mirrored to obtain a secondary node matrix color (2) (ii) a At a primary node matrix coor (1) Middle exchange x s And x t Position, and exchange y s And y t Position to obtain a new primary node matrix coor (1.5) Taking the edge node coordinates of the 6 sub-surfaces as a symmetry axis by taking the intersection line of the primary middle surface and the secondary middle surface, and mirroring the new primary node matrix to obtain a tertiary node matrix coor (3) (ii) a Taking the edge node coordinates of 6 sub-surfaces as a symmetry plane by taking the secondary middle surface as a mirror image of the new primary node matrix to obtain a quartic node matrix cor (4) (ii) a So far, the edge node coordinates of the front surface of the parallelepiped target plate are obtained.
5. The method of claim 4, wherein the method comprises the steps of: in step S4, the edge node coordinates of the front surface of the parallelepiped target plate are expanded to the surface node coordinates of the front surface of the parallelepiped target plate, and a node value matrix of the planar hexahedral target plate along the reference direction is supplemented, specifically as follows:
s4-1, calculating an abscissa matrix X 'of a surface node coordinate of the front surface of the parallelepiped target plate and an ordinate matrix Y' of the surface node coordinate from primary node matrixes of each sub-surface, mirror image supplementary node coordinates of the primary node matrixes and boundary point proportional matrixes, and obtaining the following formula:
Figure FDA0003800484970000061
for a sub-surface number one, the horizontal matrix subscript s =1, the vertical matrix subscript t =2, and the first grid variable n = n 2
For the sub-surface two, the horizontal matrix subscript s =2, the vertical matrix subscript t =3,n = n 4 ,n 4 The number of grids determined for three lines in the arc;
for the third sub-surface, under the horizontal matrixThe index s =4, the vertical matrix index t =5, n = n 4
For the four sub-planes, the horizontal matrix subscript s =5, the vertical matrix subscript t =6,n = n 5 ,n 5 The number of grids determined for the two lines outside the arc;
for the five sub-planes, the horizontal matrix subscript s =7, the vertical matrix subscript t =8, n = n 5
For the six sub-planes, the horizontal matrix subscript s =3, the vertical matrix subscript t =9,n = n 3 (ii) a Step S4-2 is carried out;
s4-2, determining the number of grids to be n on the edge of the plane hexahedral target plate along the reference direction 6 Then, the node value matrix Z' of each node coordinate along the reference direction is:
Figure FDA0003800484970000062
wherein, the first and the second end of the pipe are connected with each other,
Figure FDA0003800484970000063
denotes 1 (n) 6 + 1) of all 1 matrices.
6. The method of claim 5, wherein the method comprises the steps of: in step S5, by setting a matrix sorting function, the body node coordinates of the structured grid of the parallelepiped target plate are obtained from the face node coordinates of the front face of the parallelepiped target plate and the edge node coordinates of the planar hexahedron target plate along the reference direction according to the orientation of the parallelepiped target plate, and then the structured finite element grid of the parallelepiped target plate is obtained, which is specifically as follows:
s5-1, setting three matrix sorting functions:
the first matrix sorting function Re (A) represents a matrix with the column number of 1 formed by splicing elements with the column ordinal number larger than 1 in the matrix A into a first column of elements in sequence from small to large;
the second matrix sorting function De (a, p) represents a matrix formed by repeating each element in the matrix a p times and sequentially placing the elements below the element;
a third matrix sorting function Dm (a, p) represents a matrix composed of a matrix a which is entirely repeated p times and sequentially disposed below the matrix a; turning to the step 5-2;
s5-2, judging the orientation of the parallelepiped target plate in the X-Y-Z coordinate system, if the orientation is the positive direction of the X axis, then:
the overall body node coordinates (X ', Y ', Z ') of the first, second and sixth hexahedrons are in the matrix:
Figure FDA0003800484970000071
for a first hexahedron, the second grid variable b 1 =n 2
For hexahedron II, b 1 =n 4
For hexahedron of six size, b 1 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure FDA0003800484970000072
for a cube three, the third grid variable b 2 =n 2 Fourth grid variable b 3 =n 4
For a hexahedron of four, b 2 =n 2 ,b 3 =n 5
For a five-sided hexahedron, b 2 =n 3 ,b 3 =n 5
If the positive direction of the Y axis is adopted, then:
the coordinate matrixes of all body nodes of the first hexahedron, the second hexahedron and the sixth hexahedron are as follows:
Figure FDA0003800484970000081
for a hexahedron of one, the fifth grid variable b 4 =n 2
For hexahedron II, b 4 =n 4
For six hexahedron, b 4 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure FDA0003800484970000082
for a hexahedron III, the fifth grid variable b 5 =n 2 Sixth grid variable b 6 =n 4
For hexahedron of four size, b 5 =n 2 ,b 6 =n 5
For a hexahedron of five size, b 5 =n 3 ,b 6 =n 5
If the positive direction of the Z axis is formed, the following steps are carried out:
the coordinate matrixes of all body nodes of the first hexahedron, the second hexahedron and the sixth hexahedron are as follows:
Figure FDA0003800484970000083
for a hexahedron of one, the seventh grid variable b 7 =n 2
For hexahedron II, b 7 =n 4
For hexahedron of six size, b 7 =n 3
The coordinate matrixes of all body nodes of the third hexahedron, the fourth hexahedron and the fifth hexahedron are as follows:
Figure FDA0003800484970000084
for hexahedron III, eighth grid variable b 8 =n 2 Ninth grid variable b 9 =n 4
For hexahedron of four size, b 8 =n 2 ,b 9 =n 5
For a five-sided hexahedron, b 8 =n 3 ,b 9 =n 5 (ii) a Turning to step S5-3;
s5-3, obtaining a structural grid node coordinate distribution matrix S:
S=[X″ Y″ Z″] (20)
turning to the step S5-4;
s5-4, respectively repeating the step S5-2 once according to the secondary node matrix, the tertiary node matrix and the quartic node matrix, correspondingly obtaining a secondary structured grid node coordinate distribution matrix, a tertiary structured grid node coordinate distribution matrix and a quartic structured grid node coordinate distribution matrix, and turning to the step S5-5;
and S5-5, sequentially splicing the obtained structural grid node coordinate distribution matrix, the secondary structural grid node coordinate distribution matrix, the tertiary structural grid node coordinate distribution matrix and the quartic structural grid node coordinate distribution matrix from top to bottom to obtain the structural finite element grid of the parallelepiped target plate.
7. The method of claim 6, wherein the method comprises the steps of: in step S6, the body node coordinates of the structured finite element mesh of the parallelepiped target plate are sorted and sorted to obtain the unstructured mesh of the parallelepiped target plate, which is specifically as follows:
s6-1, including body node coordinates of all structured finite element grids of the parallelepiped target plate in a structured grid node coordinate distribution matrix, a secondary structured grid node coordinate distribution matrix, a tertiary structured grid node coordinate distribution matrix and a quartic structured grid node coordinate distribution matrix, wherein the four matrixes have the same row number and are the row number of the structured grid matrix;
establishing a three-dimensional sequence number matrix B 0 With B 0 (u, v, w) represents a three-dimensional sequence number matrix B 0 Element of w layer of w row and v column;
judging the orientation of the parallelepiped target plate, if the orientation is the positive direction of the X axis, then:
B 0 (u,v,w)=u+f 2 (v-1)+f 2 f 1 (w-1)+h,u∈[1,f 2 ],v∈[1,f 1 ],w∈[1,f 3 ] (21)
then exchanging the first dimension and the second dimension of the three-dimensional sequence number matrix;
if the positive direction of the Y axis is formed, then:
B 0 (u,v,w)=u+f 1 (v-1)+f 1 f 3 (w-1)+h,u∈[1,f 1 ],v∈[1,f 3 ],w∈[1,f 2 ] (22)
then exchanging the second dimension and the third dimension of the three-dimensional sequence number matrix;
if the positive direction of the Z axis is adopted, then:
B 0 (u,v,w)=u+f 3 (v-1)+f 2 f 3 (w-1)+h,u∈[1,f 3 ],v∈[1,f 2 ],w∈[1,f 1 ] (23)
then exchanging the first dimension and the third dimension of the three-dimensional sequence number matrix;
wherein h has a value of 0; for a hexahedron of one size, the first order quantity f 1 =n 2 Second step quantity f 2 =n 1 Third order quantity f 3 =n 6
For hexahedron II, f 1 =n 4 ,f 2 =n 1 ,f 3 =n 6 (ii) a For a cube number three, f 1 =n 2 ,f 2 =n 4 ,f 3 =n 6
For a hexahedron of four, f 1 =n 2 ,f 2 =n 5 ,f 3 =n 6 (ii) a For a pentagon, f 1 =n 3 ,f 2 =n 5 ,f 3 =n 6
For six hexahedron, f 1 =n 3 ,f 2 =n 1 ,f 3 =n 6 (ii) a Step S6-2 is carried out;
s6-2, obtaining a three-dimensional sequence number processing matrix B 1 (ii) a Step S6-3 is carried out;
step S6-3, processing the matrix B by the three-dimensional sequence number 1 Removing all elements corresponding to the maximum row number, column number and layer number to obtain a three-dimensional serial number non-structural matrix B ', and arranging the three-dimensional serial number non-structural matrix B' into a single-row matrix from small to large according to the sequence of the serial numbers of the first serial number, the second serial number and the last layer to obtain a non-structural row matrix C; turning to step S6-4;
s6-4, obtaining an unstructured grid information matrix D through the unstructured row matrix C, wherein each piece of unstructured finite element grid information formed by structured finite element grid nodes is represented in the unstructured grid information matrix D, judging the orientation of the parallelepiped target plate, and if the orientation is the positive direction of the X axis, then:
Figure FDA0003800484970000101
if the positive direction of the Y axis is adopted, then:
Figure FDA0003800484970000102
if the positive direction of the Z axis is adopted, then:
Figure FDA0003800484970000111
turning to the step S6-5;
s6-5, constructing a row of elements on the left side of the unstructured grid information matrix D, wherein the numerical value of each element is the row sequence number of the row where the element is located, and the constructed new matrix is an unstructured finite element grid node coordinate distribution matrix E 2 Step S6-6 is carried out;
s6-6, supplementing a row of elements to the left side of the structured grid node coordinate distribution matrix, and obtaining an unstructured finite element grid node coordinate distribution matrix E for the row sequence number in the matrix where the elements are located 1 Distributing matrix E of unstructured finite element grid 2 A node coordinate distribution matrix E arranged in the unstructured finite element grid 1 Then, obtaining an unstructured finite element mesh;
changing the value of h into the number of rows of the structured grid matrix, repeating the step S6-1 to the step S6-4 once to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 4 Supplementing a row of elements on the left side of the secondary structured grid node coordinate distribution matrix, adding the row sequence number of the structured grid matrix row number to the row sequence number of the element in the matrix to obtain a secondary unstructured finite element grid node coordinate distribution matrix E 3 A quadratic unstructured finite element grid distribution matrix E 4 A distribution matrix E arranged on the node coordinates of the secondary unstructured finite element grid 3 Then, obtaining a secondary unstructured finite element grid;
the value of h is changed to be twice of the line number of the structured grid matrix, and the step S6-1 to the step S6-4 are repeated once to obtain a three-time unstructured finite element grid node coordinate distribution matrix E 6 Supplementing a row of elements on the left side of the cubic structured grid node coordinate distribution matrix, adding the row sequence number of the structured grid matrix row number to the row sequence number of the element in the matrix to obtain a cubic unstructured finite element grid node coordinate distribution matrix E 5 Distributing matrix E of cubic unstructured finite element grid 6 Node coordinate distribution matrix E distributed in cubic unstructured finite element grid 5 Then, obtaining a cubic unstructured finite element grid;
changing the value of h to be three times of the row number of the structured grid matrix, and repeating the step S6-1 to the step S6-4 once; obtaining a quartic unstructured finite element grid node coordinate distribution matrix E 8 Supplementing a row of elements on the left side of the quadric structured grid node coordinate distribution matrix, adding the row number of the structured grid matrix to the row sequence number of the element in the matrix to obtain a quadric unstructured finite element grid node coordinate distribution matrix E 7 Will not be structured four timesFinite element mesh distribution matrix E 8 Node coordinate distribution matrix E distributed in four times of unstructured finite element grids 7 Then, obtaining a quartic unstructured finite element grid, and turning to the step S6-7;
and S6-7, sequentially placing the unstructured finite element grid, the secondary unstructured finite element grid, the tertiary unstructured finite element grid and the quartic unstructured finite element grid in a text file to obtain the unstructured finite element grid of the parallelepiped target plate.
CN202210981136.XA 2022-08-16 2022-08-16 Rapid and automatic generation method for finite element grid of parallelepiped target plate Pending CN115329635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210981136.XA CN115329635A (en) 2022-08-16 2022-08-16 Rapid and automatic generation method for finite element grid of parallelepiped target plate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210981136.XA CN115329635A (en) 2022-08-16 2022-08-16 Rapid and automatic generation method for finite element grid of parallelepiped target plate

Publications (1)

Publication Number Publication Date
CN115329635A true CN115329635A (en) 2022-11-11

Family

ID=83924318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210981136.XA Pending CN115329635A (en) 2022-08-16 2022-08-16 Rapid and automatic generation method for finite element grid of parallelepiped target plate

Country Status (1)

Country Link
CN (1) CN115329635A (en)

Similar Documents

Publication Publication Date Title
EP0228915B1 (en) Method and apparatus for simulating systems described by partial differential equations
CN110188423B (en) Linear engineering structure rapid BIM modeling method based on finite element meshing
Wang et al. Converting an unstructured quadrilateral/hexahedral mesh to a rational T-spline
Lyon et al. HexEx: Robust hexahedral mesh extraction
George et al. ‘Ultimate’robustness in meshing an arbitrary polyhedron
Parikh et al. A package for 3-D unstructured grid generation, finite-element flow solution and flow field visualization
CN115222806B (en) Polygon processing method, device, equipment and computer readable storage medium
Hanna et al. Intersection of parametric surfaces by means of look-up tables
US20040138853A1 (en) Numerical analysis system using hybrid grid adaptation method
EP0464214A1 (en) Free surface data preparation method
CN115329635A (en) Rapid and automatic generation method for finite element grid of parallelepiped target plate
JP2003281201A (en) Mesh generation method
Burstedde et al. Coarse mesh partitioning for tree-based amr
Bakker Lecture 7-Meshing Applied Computational Fluid Dynamics
CN115272379A (en) Projection-based three-dimensional grid model outline extraction method and system
CN106951683B (en) Efficient parallel scanning method for nuclear power plant workshop shielding calculation
CN115187617A (en) Point cloud map partitioning method
CN112685936A (en) Modeling method for shell mother-of-pearl microstructure finite element analysis
CN113175904A (en) Key slot characteristic tolerance modeling method and system based on rotation model
CN116597109B (en) Complex three-dimensional curved surface co-grid generation method
CN112307532A (en) Non-grid subdivision method of B spline function
CN115471635B (en) Multi-block structure grid singularity identification method based on Delaunay graph
Itoh et al. Automated Conversion of 2D Triangular Mesh into Quadrilateral Mesh with Directionality Control.
CN106980743A (en) A kind of three-dimensional structure static numerical simulation analogy method based on sparse storage form
Mei et al. An XBi-CFAO Method for the Optimization of Multi-Layered Variable Stiffness Composites Using Isogeometric Analysis.

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