Unified method for rapidly removing rigid body displacement of vector type finite element unit
Through the least squares method and homogeneous coordinate transformation, combined with the particle control equation and the central difference method, the unified problem of unit rigid body displacement removal in vector finite elements is solved, achieving higher calculation accuracy and stability, reducing development difficulty and Calculation time.
Patent Information
- Application Number
- CN202410742018.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
Smart Images

Figure CN118536359A
Abstract
Description
Technical Field
[0001] The invention relates to the field of dynamics calculation, and in particular to a unified method for quickly removing rigid body displacement of vector finite element units. Background Art
[0002] The vector finite element method is a dynamic calculation method based on vector structural mechanics. The biggest difference between the vector finite element method and the traditional finite element method is that in the calculation of the vector finite element method, virtual reverse motion is required to remove the rigid body displacement of the unit, so as to obtain the pure deformation of the unit. Currently, the commonly used methods for removing the rigid body displacement of the unit include the point-line-surface alignment method, etc. However, each unit has an independent method, and there is no unified and universal method.
[0003] With the development of vector finite element, the types of vector finite element units are becoming more and more abundant, such as beam unit, 3-node membrane unit, 3-node shell unit, 4-node quadrihedron solid unit, 8-node hexahedron solid unit. With the increase of the types of vector finite element units, there are more and more methods for removing rigid body displacement of vector finite element units. Usually, each unit has a method for removing rigid body displacement suitable for it. There is still a lack of a unified method for removing rigid body displacement of units in vector finite elements that can be applied to multiple units, which also leads to the difficulty of developing new vector finite element units.
[0004] Therefore, technicians in this field are committed to developing a unified method for quickly removing the rigid body displacement of vector finite element units. Summary of the invention
[0005] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is the lack of a unified method for removing the rigid body displacement of the unit in the vector finite element that can be applied to various units, and the development of new vector finite element units is difficult.
[0006] To achieve the above object, the present invention provides a unified method for quickly removing the rigid body displacement of a vector finite element unit, characterized in that the method comprises the following steps:
[0007] S101: dividing the structure into a vector finite element model according to the geometry and material properties of the structure, wherein the vector finite element model is configured as a planar multi-node unit and / or a multi-node solid unit;
[0008] S103: uniformly distributing the mass of the unit and the force acting on the unit to the nodes of the unit, and solving the stiffness matrix of the unit;
[0009] S105: updating the external force of the node, determining the load of the node, solving the control equation of the particle using the central difference method, and obtaining the position vector, velocity vector and acceleration vector of the particle;
[0010] S107: using the least square method and homogeneous coordinate transformation, solving the rigid body displacement of the unit to obtain the pure deformation of the unit;
[0011] S109: Calculate the unit internal force based on the pure deformation of the unit, and superimpose it on the node after reverse rotation;
[0012] S111: Update the internal force of the node and determine whether the calculation time has been reached. If the calculation time has not been reached, repeat S105 to S109 to continue the cycle.
[0013] Furthermore, before S103, it also includes determining initial parameters, and the initial parameters include: the applied external load, the calculation time and the calculation time step, wherein:
[0014] The calculation time step should meet the following conditions:
[0015]
[0016] Where h is the calculation time step, l is the characteristic length of the element, ρ is the density of the element, and E is the stiffness of the structure.
[0017] Further, in S105, the control equation of the mass point is:
[0018]
[0019] In the formula, m represents the mass of the particle, x represents the position vector of the particle, represents the velocity of the particle, represents the acceleration of the particle, P represents the external load of the particle, including external force and equivalent external force, f represents the internal force of the particle, and f c represents the virtual damping force of the mass point, ζ is the coefficient;
[0020] I is the moment of inertia, including the moment of inertia of the mass point itself and the equivalent moment of inertia of the unit entity connected to it, θ represents the rotation angle of the mass point, represents the angular velocity of the particle, represents the angular acceleration of the particle, Q represents the external torque of the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle,
[0021] Furthermore, in S105, the central difference method is used to calculate the position vector and the rotation angle vector of the particle, wherein:
[0022] The position vector of the particle is calculated using the following formula:
[0023]
[0024] The rotation angle vector of the particle is calculated using the following formula:
[0025]
[0026] The moment of force on the particle is:
[0027] M=Q+q a +q c ,
[0028] The force on the particle is:
[0029] F=P+f+f c ,
[0030]
[0031] In the formula, x represents the position vector of the particle, θ represents the rotation angle of the particle, the superscript represents the number of steps in the calculation iteration, n is the number of calculation iterations, and x -1 represents the virtual position before the initial position, θ -1 Indicates the virtual rotation angle before the initial position, x 0 represents the position of the node at the intermediate moment, θ 0 represents the rotation angle of the node at the intermediate moment, x n-1 、x n 、x n+1 represents the displacement vector of the particle at the corresponding time, θ n-1 ,θ n ,θ n+1 Represents the rotation angle vector of the particle at the corresponding moment;
[0032] M is the moment of force on the particle, Q is the external moment of force on the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle,
[0033] F is the force on the particle, P represents the external load of the particle, f is the internal force of the particle, and f c represents the virtual damping force of the mass point, ζ is the coefficient.
[0034] Furthermore, the S105 includes the following sub-steps:
[0035] S1051: updating the external load P and the external moment Q acting on the node according to actual conditions;
[0036] S1052: Solve the central difference equation, and obtain the position of the particle at time t+h according to the velocity, mass and external force of the particle at time th and time t.
[0037] Furthermore, the S107 includes the following sub-steps:
[0038] S1071: using the homogeneous coordinate transformation, obtaining a relationship between an initial position of the unit and a final position of the unit after completely removing the rigid body displacement of the unit;
[0039] S1072: Calculate the translation and rotation of each of the nodes after the units are aligned in each calculation time step;
[0040] S1073: Accumulate the translation amount and the rotation amount of each node in the unit within the calculation time step to obtain the total translation amount and the total rotation amount of the unit;
[0041] S1074: Calculate the minimum value of the total translation amount by using the least square method to obtain the transformation matrix in the homogeneous coordinate transformation;
[0042] S1075: Calculate the final position of the unit after completely removing the rigid body displacement of the unit by using the transformation matrix;
[0043] S1076: Solve the pure deformation of the unit using the initial position of the unit and the final position of the unit.
[0044] Further, in S107, for a planar multi-node element, after the homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is:
[0045] (x j ,y j ,1) T =A j (x′ j ,y′ j ,1) T +(Δx j ,Δy j ,1) T ,
[0046] The deformation of each of the nodes after the units are aligned is:
[0047]
[0048] in:
[0049] A j =T j *R j ,
[0050]
[0051] In the formula, (x j ,y j ) is the initial position coordinate of unit j, (x j ′,y j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δy j is the deformation of unit j along the y-axis, (x ij ,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, Δx′ ij is the deformation of node i inside element j along the x-axis, Δy′ ij is the deformation of node i inside unit j along the y-axis;
[0052] θ j is the rotation angle of unit j, A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R j is the rotation matrix of the unit, a j and b j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0053] Further, in S107, for the planar multi-node unit, the least square method is set so that the square of the unit displacement has a minimum value, and the least square method adopts the following calculation formula:
[0054]
[0055] The square of the unit displacement has a minimum value that satisfies the following conditions:
[0056]
[0057] Where S is the square value of the unit displacement;
[0058] (x ij,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, θ j is the rotation angle of unit j;
[0059] a j and b j is the translation matrix T j Coefficient, j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0060] Further, in S107, for a multi-node solid element, after the homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is:
[0061] (x j ,y j ,z j ,1) T =A j (x′ j ,y′ j ,z′ j ,1) T +(Δx j ,Δy j ,Δz j ,1) T ,
[0062] The deformation of each of the nodes after the units are aligned is:
[0063]
[0064] in:
[0065] A j =T j *R xj *R yj *R zj ,
[0066]
[0067] In the formula, (x j ,y j ,z j ) is the initial position coordinate of unit j, (x j ′,y j ′,z j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δyj is the deformation of unit j along the y-axis, Δz j is the deformation of unit j along the z-axis, (x ij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θ zj is the rotation angle of unit j around the z axis;
[0068] A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R xj is the rotation matrix of the unit around the x-axis, R yj is the rotation matrix of the unit around the y-axis, R zj is the rotation matrix of the unit around the z axis, a j , b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0069] Further, in S107, for a multi-node solid unit, the least square method is set so that the square of the unit displacement has a minimum value, and the least square method adopts the following calculation formula:
[0070]
[0071] The square of the unit displacement has a minimum value that satisfies the following conditions:
[0072]
[0073] Where S is the square value of the unit displacement;
[0074] (x ij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θzj is the rotation angle of unit j around the z axis;
[0075] T j is the translation matrix of the unit, a j , b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0076] The pure deformation of the element (Δx j ,Δy j ,Δz j ,1) T It can be expressed as:
[0077] (Δx j ,Δy j ,Δz j ,1) T =(x j ,y j ,z j ,1) T -A j (x′ j ,y′ j ,z′ j ,1) T .
[0078] In a preferred embodiment of the present invention, compared with the prior art, the present invention has the following beneficial effects:
[0079] 1. The algorithm for uniformly removing the rigid body displacement of the unit proposed in the present invention is applicable to the vector finite element, and the least square method and homogeneous coordinate transformation are used to directly solve the rotation matrix, thereby reducing the difficulty of developing new units of the vector finite element;
[0080] 2. The present invention does not need to use fixed nodes or edges for rotation alignment, and can well measure the proportion of points with excessive displacement in the total displacement. The calculation accuracy of the present invention is higher;
[0081] 3. The unit rigid body displacement solved by the present invention is more accurate and more stable. Under the same calculation conditions, the scheme converges faster and can save calculation time.
[0082] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 1 is a schematic diagram of a calculation flow of a vector finite element method according to an embodiment of the present invention;
[0084] Figure 2 is a detailed calculation flow chart of the vector finite element method of an embodiment of the present invention;
[0085] Figure 3 Schematic diagram of the initial configuration of a planar 4-node unit according to an embodiment of the present invention;
[0086] Figure 4 Schematic diagram of the initial configuration of an 8-node hexahedral unit according to an embodiment of the present invention;
[0087] Figure 5 is a schematic diagram of the displacement of point A along the Z direction according to an embodiment of the present invention;
[0088] Figure 6 is a schematic diagram of displacement of point B along the Z direction in an embodiment of the present invention;
[0089] Figure 7 is a schematic diagram of the initial position of an N-node plane unit according to an embodiment of the present invention;
[0090] Figure 8 Schematic diagram of the position of an N-node plane unit after removing the unit rigid body displacement in an embodiment of the present invention;
[0091] Fig. 9 is a schematic diagram of the initial position of an N-node entity unit according to an embodiment of the present invention;
[0092] Fig.10 A schematic diagram of the position of an N-node solid unit after removing the unit rigid body displacement according to an embodiment of the present invention. DETAILED DESCRIPTION
[0093] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0094] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.
[0095] The vector finite element method is a dynamic calculation method based on vector structural mechanics. In the calculation of the vector finite element method, virtual reverse motion is required to remove the rigid body displacement of the unit to obtain the pure deformation of the unit. At present, there is a lack of a unified method that can be applied to a variety of units to remove the rigid body displacement of the unit in the vector finite element, which makes it difficult to develop new vector finite element units. In view of the above problems existing in the prior art, the present invention proposes a unified method for removing the rigid body displacement of the vector finite element unit. The method can be used to quickly develop new vector finite element units, and the calculation accuracy is also improved to a certain extent.
[0096] In the calculation of vector finite element, the model is first discretized into multiple mass points, which are connected by vector finite element units. The position of the unit is determined by the position of the mass point, and the internal force of the mass point is determined by the connected vector finite element unit. According to the material conditions and position conditions, the control equation of the mass point is constructed. Mass points refer to points with mass in the vector finite element model. They are used to discretize the entire model and divide the continuous structure into calculable discrete points. These mass points not only represent the mass distribution of the model, but also determine the position of the vector finite element unit. Node refers to a connection point of the vector finite element unit. Each unit is composed of multiple nodes, which are key points for defining the unit geometry and connection relationship. Nodes are used to calculate the relationship between units and transmit internal forces. Through the nodes, the deformation and internal force of the unit can be transmitted to the mass points, thereby affecting the response of the entire structure.
[0097] like Figure 1 As shown, an embodiment of the present invention provides a unified method for removing vector-based finite element unit rigid body displacement, comprising the following steps:
[0098] Step 1: Divide the structure into a vector finite element model according to its geometry and material properties.
[0099] According to the geometry and material properties of the structure and the problem being studied, the structure is discretized into multiple appropriate units. The unit type can be a planar multi-node unit and / or a multi-node solid unit, such as a beam unit, a quadrilateral unit, an eight-node hexahedral unit, etc., which is the same as the traditional finite element method.
[0100] Step 2: Distribute the mass of the unit and the force acting on the unit evenly to the nodes of the unit and solve the stiffness matrix of the unit.
[0101] The total mass of each unit in the structure can be calculated first, and then the total mass can be evenly distributed to each node. The force on the unit is the initial external load, including force and moment. The unit stiffness matrix is solved according to the initial coordinates of the unit and the properties of the material.
[0102] Step 3: Use the central difference method to solve the control equation of the particle and obtain the position vector, velocity vector and acceleration vector of the particle.
[0103] Before executing this step, it is necessary to determine the initial parameters, which mainly include: the applied external load, the calculation time T and the calculation time step h, where:
[0104] The calculation time step should meet the following conditions:
[0105]
[0106] Where h is the calculation time step, l is the characteristic length of the element, ρ is the density of the element, and E is the stiffness of the structure.
[0107] The central difference method refers to the central difference method in structural dynamics. It is based on replacing the derivative of displacement with respect to time with finite differences. The first-order derivative of displacement obtains velocity, and the second-order derivative of displacement obtains acceleration.
[0108] In this step, the governing equation of the mass point is:
[0109]
[0110] In the formula, m represents the mass of the particle, x represents the position vector of the particle, represents the velocity of the particle, represents the acceleration of the particle, P represents the external load of the particle, including external force and equivalent external force, f represents the internal force of the particle, and f c represents the virtual damping force of the mass point, ζ is the coefficient;
[0111] I is the moment of inertia, including the moment of inertia of the mass point itself and the equivalent moment of inertia of the unit entity connected to it, θ represents the rotation angle of the mass point, represents the angular velocity of the particle, represents the angular acceleration of the particle, Q represents the external torque of the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle,
[0112] In this step, the central difference method is used to calculate the position vector and rotation angle vector of the particle, where:
[0113] The position vector of the particle is calculated using the following formula:
[0114]
[0115] The rotation angle vector of the particle is calculated using the following formula:
[0116]
[0117] The moment on the particle is:
[0118] M=Q+q a +q c ,
[0119] The force on the particle is:
[0120] F=P+f+f c ,
[0121] Among them, parameters C1 and C2 are:
[0122]
[0123] In the formula, x represents the position vector of the particle, θ represents the rotation angle of the particle, the superscript represents the number of steps in the calculation iteration, n is the number of calculation iterations, and x -1 represents the virtual position before the initial position, θ -1 Indicates the virtual rotation angle before the initial position, x 0 represents the position of the node at the intermediate moment, θ 0 represents the rotation angle of the node at the intermediate moment, x n-1 、x n 、x n+1 represents the displacement vector of the particle at the corresponding time, θ n-1 ,θ n ,θ n+1 Represents the rotation angle vector of the particle at the corresponding moment;
[0124] M is the moment of force on the particle, Q is the external moment of force on the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle,
[0125] F is the force on the particle, P represents the external load of the particle, f is the internal force of the particle, and f c represents the virtual damping force of the mass point, is the coefficient.
[0126] This step includes the following sub-steps:
[0127] Step 3.1: Calculate the external loads P and Q on the mass point;
[0128] Step 3.2: Based on the velocity, mass and external force of the particle at time th and time t, obtain the position of the particle at time t+h.
[0129] Step 4: Use the least squares method and homogeneous coordinate transformation to solve the rigid body displacement of the unit.
[0130] This step uses homogeneous coordinate transformation to homogenize the coordinate transformation of the unit, and then solves the rotation matrix and translation matrix through the least squares method.
[0131] Homogeneous coordinate transformation is a mathematical tool commonly used in computer graphics, robotics, engineering and other fields to simplify the calculation process of geometric transformations (such as translation, rotation, scaling, etc.). The basic idea is to express geometric transformations as matrix multiplication by adding additional dimensions, so that multiple transformations can be combined by matrix multiplication. For example, in two-dimensional space, the homogeneous coordinates of a point (x, y) are expressed as (x, y, 1). In three-dimensional space, the homogeneous coordinates of a point (x, y, z) are expressed as (x, y, z, 1).
[0132] The least squares method is a mathematical optimization technique widely used in data fitting and regression analysis. It is used to find the best fitting parameters by minimizing the sum of squared errors. Its basic goal is to minimize the error between the model's predicted value and the actual observed value. For example, the three-dimensional coordinates of the unit before and after deformation can be expressed as (x, y, z), (x', y', z'), and the relationship between the unit before and after deformation through homogeneous coordinate transformation can be expressed as (x, y, z, 1) T =A(x′,y′,z′,1) T +(Δx,Δy,Δz,1), Δx, Δy, Δz are the pure deformations of the node along the x, y, z axes, and A is the transformation matrix, which can be obtained by using the least squares method.
[0133] In this embodiment, step 4 includes the following sub-steps:
[0134] Step 4.1: Using homogeneous coordinate transformation, obtain the relationship between the initial position of the unit and the final position of the unit after completely removing the rigid body displacement of the unit;
[0135] Step 4.2: Use the least squares method to calculate the minimum value of the total translation and obtain the transformation matrix in the homogeneous coordinate transformation;
[0136] Step 4.3: Use the transformation matrix to calculate the final position of the unit after completely removing the unit's rigid body displacement.
[0137] Step 4.4: Solve the pure deformation of the unit using the relationship between the initial position of the unit and the final position of the unit after completely removing the rigid body displacement of the unit.
[0138] For a planar multi-node element, after homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is:
[0139] (x j ,y j,1) T =A j (x′ j ,y′ j ,1) T +(Δx j ,Δy j ,1) T ,
[0140] The deformation of each node after unit alignment is:
[0141]
[0142] in:
[0143] A j =T j *R j ,
[0144]
[0145] In the formula, (x j ,y j ) is the initial position coordinate of unit j, (x j ′,y j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δy j is the deformation of unit j along the y-axis, (x ij ,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, Δx′ ij is the deformation of node i inside element j along the x-axis, Δy′ ij is the deformation of node i inside unit j along the y-axis;
[0146] θ j is the rotation angle of unit j, A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R j is the rotation matrix of the unit, a j and b j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0147] For planar multi-node elements, the least squares method is set to minimize the square of the element displacement. The least squares method uses the following calculation formula:
[0148]
[0149] Among them, the square of the unit displacement has a minimum value that satisfies the following conditions:
[0150]
[0151] Where S is the square value of the unit displacement;
[0152] (x ij ,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, θ j is the rotation angle of unit j;
[0153] a j and b j is the translation matrix T j Coefficient, j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0154] For multi-node solid elements, after homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is:
[0155] (x j ,y j ,z j ,1) T =A j (x′ j ,y′ j ,z′ j ,1) T +(Δx j ,Δy j ,Δz j ,1) T ,
[0156] The deformation of each node after unit alignment is:
[0157]
[0158] in:
[0159] A j =T j *R xj *R yj *R zj ,
[0160]
[0161]
[0162] In the formula, (x j ,y j ,z j ) is the initial position coordinate of unit j, (x j ′,y j ′,z j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δy j is the deformation of unit j along the y-axis, Δz j is the deformation of unit j along the z-axis, (x ij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θ zj is the rotation angle of unit j around the z axis;
[0163] A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R xj is the rotation matrix of the unit around the x-axis, R yj is the rotation matrix of the unit around the y-axis, R zj is the rotation matrix of the unit around the z axis, a j , b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0164] For multi-node solid elements, the least squares method is set to the square of the element displacement with the minimum value. The least squares method uses the following calculation formula:
[0165]
[0166] Among them, the square of the unit displacement has a minimum value that satisfies the following conditions:
[0167]
[0168] Where S is the square value of the unit displacement;
[0169] (xij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θ zj is the rotation angle of unit j around the z axis;
[0170] T j is the translation matrix of the unit, a j , b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
[0171] Step 5: Calculate the internal force of the unit and superimpose it on the node after reverse rotation.
[0172] The internal force of the unit can be obtained by ff = k * μ, ff is the required node internal force, k is the unit stiffness matrix, u is the combination of node displacement Δx, Δy, Δz, different units have different combinations. ff ′ = A -1 *f T , ff′ is the internal force after inverse coordinate transformation, A -1 is the inverse matrix of the unit transformation matrix A, and ff′ is the internal force obtained at that moment.
[0173] Step 6: Update the internal force of the node and determine whether the calculation time has been reached. If the calculation time has not been reached, repeat step S105 to continue the cycle.
[0174] ff′ is the node force f and node bending moment q mentioned above a The collection needs to be reasonably distributed to the node force f and node bending moment q a middle.
[0175] If the calculation time T is reached, the calculation is terminated; otherwise, step 3 is repeated to continue the cycle.
[0176] The method for uniformly and quickly removing the rigid body displacement of a vector-based finite element unit provided in the embodiment of the present invention has the following beneficial effects compared with the prior art:
[0177] 1. The algorithm for uniformly removing the rigid body displacement of the vector finite element proposed in the present invention adopts the least square method and homogeneous coordinate transformation to directly solve the rotation matrix. It can be used for multi-node vector finite element units and is generally applicable. This method greatly reduces the difficulty of developing new vector finite element units and also reduces the difficulty of learning the vector finite element method.
[0178] 2. The present invention does not need to use fixed nodes or edges for rotation alignment, and can well measure the proportion of points with excessive displacement in the total displacement. The calculation accuracy of the present invention is higher;
[0179] 3. The unit rigid body displacement solved by the present invention is more accurate and more stable. Under the same calculation conditions, the scheme converges faster and can save calculation time.
[0180] The present invention is described in detail below in conjunction with the preferred embodiments of the present invention.
[0181] Vector finite element is an emerging numerical calculation method, which is currently widely used in the calculation of large-span space structures. Vector finite element is different from traditional finite element. The biggest difference is that the stiffness matrix of the integrated unit is not required in the calculation of vector finite element. At the same time, in the calculation of vector finite element, it is necessary to remove the unit rigid body displacement in the entire unit motion to obtain the pure deformation of the unit. At present, with the development of vector finite element, the types of vector finite element units are becoming more and more abundant, such as: beam unit, 3-node membrane unit, 3-node shell unit, 4-node quadrihedron solid unit, 8-node hexahedron solid unit. With the increase in the types of vector finite element units, there are more and more methods for removing rigid body displacement of vector finite element units. Usually, each unit has a method for removing rigid body displacement suitable for the unit. The present invention provides a unified method for quickly removing rigid body displacement of vector finite element units.
[0182] The following is an example of a cantilever beam with a length, width and height of L = 250mm, B = 10mm, and H = 5mm, and a concentrated load at its end point. Figure 2 The calculation process of the vector finite element method shown in the figure is briefly introduced.
[0183] (1) Divide the structure into appropriate finite element models
[0184] According to the geometry and material properties of the structure and the problem being studied, the structure is discretized into multiple appropriate units, which is the same as the traditional finite element method. The units include beam units, quadrilateral units, eight-node hexahedron units, etc., including plane units and solid units with multiple nodes. In order to reflect the universality of the present invention, this embodiment uses plane four-node units and eight-node hexahedron units to divide the cantilever beam model, such as Figure 3and Figure 4 shown.
[0185] (2) Calculate the mass of the node, distribute the force acting on the unit to the nodes, and calculate the stiffness matrix of the unit.
[0186] The mass of each node is m. The algorithm for mass m can first calculate the total mass of the model and then evenly distribute the total mass to each node. The initial external load includes force F and moment Q. In the cantilever beam example, there is no external moment Q. There is only one moment Q at the end point A (such as Figure 3 , Figure 4 As shown), there is a load P=4N.
[0187] The stiffness matrix k of the unit is calculated based on the unit size and the material properties of the unit. The algorithm for calculating the stiffness matrix k is the same as the traditional finite element stiffness matrix algorithm. In this embodiment, the stiffness coefficient E of the unit is 2×10 11 , the Poisson's ratio of the model is μ=0.29.
[0188] (3) Determine the total calculation time T and the calculation step length h
[0189] Determine the calculation time T and the calculation time step h. The size of the calculation time step h should satisfy Where l is the characteristic length of the element, which in this embodiment is the shorter side of a four-node shell element, E is the stiffness of the structure, and ρ is the density of the element.
[0190] The entire analysis time is 0.05 s, and the calculation time step h is 1.5×10 -7 .
[0191] (4) Update external load
[0192] In this embodiment, the external load is applied as P=4N and remains unchanged. The external load can also be set to change with time, or adjusted according to the change of the external load of the model.
[0193] (5) Use the central difference method to solve the control equations to obtain the position, velocity, and acceleration vector of the particle.
[0194] The central difference method refers to the central difference method in structural dynamics. It is based on replacing the derivative of displacement with respect to time with finite differences. The first-order derivative of displacement obtains velocity, and the second-order derivative of displacement obtains acceleration.
[0195] The governing equation of the particle is:
[0196]
[0197] In the above equation, m represents the mass of the particle, x represents the position vector of the particle, represents the acceleration of the particle; P represents the external force and equivalent external force of the particle, f represents the internal force of the particle, and f c represents the virtual damping force f of the element c =-ζmx. For static problems, it is possible to consider increasing the damping force moderately to promote convergence. It represents the angular acceleration of the particle. Q represents the external torque of the particle, q a represents the internal moment of the particle, and Represents the damping torque of the particle; for dynamic problems, the damping force should reflect the actual damping of the structure, but it should be noted that ζ is always greater than 0.
[0198] Using the central difference scheme to calculate x and θ, and then substituting them into equations (1) and (2), we can obtain the following equations (3) and (4). Where x and θ represent the position vector and rotation angle of the node, respectively. The superscript represents the number of steps in the calculation iteration, x -1 and θ -1 They represent the virtual position and angle before the initial position, respectively. 0 and θ 0 represents the position and angular displacement of the node at the intermediate moment, and the corresponding x n-1 , x n , x n+1 ,θ n-1 ,θ n ,θ n+1 , represents the displacement vector and rotation vector of the node at the corresponding moment.
[0199] Torque acting on the node: M = Q + q a +q c ,
[0200] Torque and force acting on a node: F = P + f + f c ,
[0201]
[0202] The entire calculation process can be described as follows:
[0203] According to the velocity, mass and external force of the particle at time th and time t, the position of the particle at time t+h is obtained, and then the internal force of the unit is obtained from the position of the particle at time t+h, and the external force on the particle is further solved. f is the internal force, P is the external load, and f d is the damping force, Q is the external torque, q a is the internal torque, q c is the internal moment damping. Repeat the calculation until it is completed.
[0204] Where x is the position vector of the particle, and its superscript represents the number of computational iterations. -1 represents the initial position, x-1 The previous position is x 0 . F is the resultant force at the node, and C1 and C2 are given by:
[0205]
[0206] F=P+f+f d (6)
[0207] M=Q+q a +q c (7)
[0208] (6) Use the least squares method and homogeneous coordinate transformation to solve the rigid body displacement of the unit and then obtain the pure deformation of the unit
[0209] At present, the commonly used methods for solving the displacement of unit rigid body include alignment method, "point-line-surface" alignment method, etc. In general, there is no unified analysis method suitable for all units, and the current methods also have the problem of large errors in some cases. Therefore, the present invention proposes a method for removing the displacement of unit rigid body based on homogeneous coordinate transformation and least square method. The present invention adopts homogeneous coordinate transformation to homogenize the coordinate transformation of the unit, and then solves the rotation matrix by least square method.
[0210] Homogeneous coordinate transformation is a mathematical tool commonly used in computer graphics, robotics, engineering and other fields to simplify the calculation process of geometric transformations (such as translation, rotation, scaling, etc.). The basic idea is to express geometric transformations as matrix multiplication by adding additional dimensions, so that multiple transformations can be combined by matrix multiplication. For example, in two-dimensional space, the homogeneous coordinates of a point (x, y) are expressed as (x, y, 1). In three-dimensional space, the homogeneous coordinates of a point (x, y, z) are expressed as (x, y, z, 1).
[0211] The least squares method is a mathematical optimization technique widely used in data fitting and regression analysis to find the best fitting parameters by minimizing the sum of squared errors. Its basic goal is to minimize the error between the model's predicted value and the actual observed value. For example, the three-dimensional coordinates of the unit before and after deformation can be expressed as (x, y, z), (x', y', z'), and the relationship between the unit before and after deformation through homogeneous coordinate transformation can be expressed as (x, y, z, 1) T =A(x′,y′,z′,1) T +(Δx,Δy,Δz,1), Δx, Δy, Δz are the pure deformations of the node along the x, y, z axes, and A is the transformation matrix, which can be obtained by using the least squares method.
[0212] (7) After the internal force of the unit is obtained, it is superimposed on the node by reverse rotation.
[0213] The internal force of the unit can be obtained by ff=k*μ, where ff is the required node internal force, k is the stiffness matrix of the unit, and u is the combination of node displacements Δx, Δy, and Δz. Different units have different combinations.
[0214] ff′=A -1 *f T , ff′ is the internal force after inverse coordinate transformation, A -1 is the inverse matrix of matrix A, and ff′ is the internal force obtained at that moment.
[0215] (8) Update the internal forces acting on the node
[0216] ff′ is the node force f and node bending moment q mentioned above a The collection needs to be reasonably distributed to the node force f and node bending moment q a middle.
[0217] (9) Has the calculation time been reached?
[0218] If the calculation time is reached, the calculation is terminated. If the calculation time is not reached, steps (4) to (9) are repeated to continue the cycle.
[0219] Figure 5 and Figure 6 They are the displacements of point A and point B in the Z direction over time, and Table 1 is a detailed comparison of the calculation results.
[0220] Table 1. Comparison of model longitudinal displacement and error
[0221]
[0222] In Table 1, for the relevant content of Abaqus, please refer to "Wang Zhen. Theory and application of vector finite element thin shell unit [D]. Zhejiang University, 2014."; for the relevant content of HOU VFIFE, please refer to "Hou X, Fang Z. Solid structure analysis with large deformation of eight-node hexahedral element using vector form intrinsic finite element. Advances in Structural Engineering 2018; 21(6): 852–861.".
[0223] Figure 5 and Figure 6The relationship between the displacement of point A and point B along the Z direction and time under the above working conditions is shown. Table 1 lists the relative errors of the five methods. It can be seen that the method adopted by the present invention has certain improvements in accuracy and stability; the algorithm of the present invention requires less stabilization time. Compared with the HOU method, the relative error of the 8-node hexahedral element in this article is reduced by 0.0175% at point A and 0.0081% at point B. The relative errors of the four-node plane element at points A and B are reduced by 0.8700% and 0.5943%, respectively. From this example, it can be seen that the method proposed by the present invention can improve the calculation accuracy. It can be seen from the displacement time history curve that the method used by the present invention requires less time to stabilize the displacement of the model. The above examples show that the method used by the present invention is reliable in the static load calculation of the structure.
[0224] The element removal methods for multi-node planar elements and solid elements will be introduced below.
[0225] For a planar N-node element, first assume that the initial position of element j is (x, y) and the coordinates are (x i ,y i )(i=1-N). The coordinate after the movement is (x i ′,y i ′)(i=1-N), the rotation angles of the units are (θ xi ,θ yi )(i=1-N) and (θ xi ′,θ yi ′)(i=1-N), such as Figure 7 shown.
[0226] After the coordinates of the unit are transformed by the homogeneous coordinate transformation method, the relationship between the initial position of the jth unit and the position after completely removing the unit rigid body displacement is:
[0227] (x j ,y j ,1) T =A j (x′ j ,y′ j ,1) T +(Δx j ,Δy j ,1) T ,
[0228] A j =T j *R j ,
[0229] A j is the product of the rotation matrix and the translation matrix. The translation matrix Tj and the rotation matrix R j The expressions are as shown in formula (8) and formula (9).
[0230] (Δx j ,Δy j ,1) T is the deformation of the unit, Δx j ,Δy j are the deformations along the x-axis and y-axis, respectively, j , b j ,θ j are the coefficients of the translation matrix and rotation matrix to be determined.
[0231]
[0232] Because in the calculation of vector finite element, the time period before and after the unit moves is very short, the displacement and rotation angle of the unit are relatively small, and the rotation matrix can usually be simplified, sin(θ j )=θ j ,cos(θ j )=1. At the same time, the translation and rotation matrices of the unit in each time step can be solved, the unit's rotation angle and translation can be accumulated, and finally the total translation and rotation can be obtained, thereby obtaining the unit's translation matrix T j and the rotational moment R j The displacement of the unit can be expressed as formula (11). When the square of the unit displacement has the minimum value, the required rotation angle and displacement are the values to be solved. The least squares method can be used for calculation. The calculation formula of the least squares method is as shown in formula (12). Formulas (13) to (16) can be used to solve the translation matrix and rotation matrix required to remove the unit rigid body displacement, and then the coordinate transformation relationship before and after the unit deformation is:
[0233] (x j ,y j ,1) T =A j (T′ j ,y′ j ,1) T +(Δx j ,Δy j ,1) T ,
[0234] The position of the unit after alignment can be calculated, such as Figure 8 shown.
[0235]
[0236]
[0237] The method provided in this embodiment can be extended from plane units to solid units. Assume that the position of the unit at the initial moment is as follows Fig. 9 As shown, the coordinates of unit j are (x i ,y i ,z i ) and (x i ′,y i ′,z i ′), (i=1-N). The relationship between them can be expressed as:
[0238] (x i ,y i ,z i ,1) T =A(x′ i ,y′ i ,z′ i ,1) T +(Δx i ,Δy i ,Δz i ,1) T ,
[0239] A=T*Rx*Ry*Rz,
[0240] Among them, Rx, Ry, Rz represent the rotation matrix of the unit around the x, y, z axis respectively, T is the translation matrix, and A is the product of the rotation matrix and the transformation matrix. At the same time, in a very small time period, the unit rotation angle is small, and there is:
[0241] sin(θ)=θ,cos(θ)=1.
[0242]
[0243]
[0244] Rearranging formula (25) yields:
[0245] B*(θ xj ,θ yj ,θ zj ,a j ,b j ,c j ) T +C=0,
[0246] Among them, B and C are of the following form:
[0247]
[0248]
[0249] Next, by simplifying formula (28) and formula (29), we can get formula (30) and (31), and then get matrix A, where the values of a, b, and c are 0. After having matrix A, we can get
[0250] (x i ,y i ,z i ,1) T =A(x′ i ,y′ i ,z′ i ,1) T +(Δx i ,Δy i ,Δz i ,1) T ,
[0251] The position of the unit after removing the unit rigid body displacement can be calculated, such as Fig.10 shown.
[0252]
[0253]
[0254] The method provided in this embodiment is effective for both planar units and solid units of multiple nodes, and does not specify the need to align a certain node or edge in the calculation. It can well balance the impact of points with excessive displacement, thereby reducing calculation errors in actual calculations.
[0255] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A unified method for quickly removing rigid body displacement of vector finite element units, characterized in that: The method comprises the following steps: S101: dividing the structure into a vector finite element model according to the geometry and material properties of the structure, wherein the vector finite element model is configured as a planar multi-node unit and / or a multi-node solid unit; S103: uniformly distributing the mass of the unit and the force acting on the unit to the nodes of the unit, and solving the stiffness matrix of the unit; S105: updating the external force of the node, determining the load of the node, solving the control equation of the particle using the central difference method, and obtaining the position vector, velocity vector and acceleration vector of the particle; S107: using the least square method and homogeneous coordinate transformation, solving the rigid body displacement of the unit to obtain the pure deformation of the unit; S109: Calculate the unit internal force based on the pure deformation of the unit, and superimpose it on the node after reverse rotation; S111: Update the internal force of the node and determine whether the calculation time has been reached. If the calculation time has not been reached, repeat S105 to S109 to continue the cycle.
2. The method according to claim 1, characterized in that Before S103, the method further includes determining initial parameters, which include: the applied external load, the calculation duration and the calculation time step, wherein: The calculation time step should meet the following conditions: Where h is the calculation time step, l is the characteristic length of the element, ρ is the density of the element, and E is the stiffness of the structure.
3. The method according to claim 2, characterized in that In the S105, the control equation of the mass point is: In the formula, m represents the mass of the particle, x represents the position vector of the particle, represents the velocity of the particle, represents the acceleration of the particle, P represents the external load of the particle, including external force and equivalent external force, f represents the internal force of the particle, and f c represents the virtual damping force of the mass point, ζ is the coefficient; I is the moment of inertia, including the moment of inertia of the mass point itself and the equivalent moment of inertia of the unit entity connected to it, θ represents the rotation angle of the mass point, represents the angular velocity of the particle, represents the angular acceleration of the particle, Q represents the external torque of the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle, 4. The method according to claim 3, characterized in that In S105, the central difference method is used to calculate the position vector and rotation angle vector of the particle, where: The position vector of the particle is calculated using the following formula: The rotation angle vector of the particle is calculated using the following formula: The moment of force on the particle is: M=Q+q a +q c , The force on the particle is: F=P+f+f c , In the formula, x represents the position vector of the particle, θ represents the rotation angle of the particle, the superscript represents the number of steps in the calculation iteration, n is the number of calculation iterations, and x -1 represents the virtual position before the initial position, θ -1 Indicates the virtual rotation angle before the initial position, x 0 represents the position of the node at the intermediate moment, θ 0 represents the rotation angle of the node at the intermediate moment, x n-1 、x n 、x n+1 represents the displacement vector of the particle at the corresponding time, θ n-1 ,θ n ,θ n+1 Represents the rotation angle vector of the particle at the corresponding moment; M is the moment of force on the particle, Q is the external moment of force on the particle, q a represents the internal moment of the particle, q c represents the damping torque of the particle, F is the force on the particle, P represents the external load of the particle, f is the internal force of the particle, and f c represents the virtual damping force of the mass point, ζ is the coefficient.
5. The method according to claim 4, characterized in that The S105 includes the following sub-steps: S1051: updating the external load P and the external moment Q acting on the node according to actual conditions; S1052: Solve the central difference equation, and obtain the position of the particle at time t+h according to the velocity, mass and external force of the particle at time th and time t.
6. The method according to claim 5, characterized in that The S107 includes the following sub-steps: S1071: using the homogeneous coordinate transformation, obtaining a relationship between an initial position of the unit and a final position of the unit after completely removing the rigid body displacement of the unit; S1072: Calculate the translation and rotation of each of the nodes after the units are aligned in each calculation time step; S1073: Accumulate the translation amount and the rotation amount of each node in the unit within the calculation time step to obtain the total translation amount and the total rotation amount of the unit; S1074: Calculate the minimum value of the total translation amount by using the least square method to obtain the transformation matrix in the homogeneous coordinate transformation; S1075: Calculate the final position of the unit after completely removing the rigid body displacement of the unit by using the transformation matrix; S1076: Solve the pure deformation of the unit using the initial position of the unit and the final position of the unit.
7. The method according to claim 6, characterized in that In S107, for a planar multi-node element, after the homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is: (x j ,y j ,1) T =A j (x′ j ,y′ j ,1) T +(Δx j ,Δy j ,1) T , The deformation of each of the nodes after the units are aligned is: in: A j =T j *R j , In the formula, (x j ,y j ) is the initial position coordinate of unit j, (x j ′,y j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δy j is the deformation of unit j along the y-axis, (x ij ,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, Δx′ ij is the deformation of node i inside element j along the x-axis, Δy′ ij is the deformation of node i inside unit j along the y-axis; θ j is the rotation angle of unit j, A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R j is the rotation matrix of the unit, a j and b j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
8. The method according to claim 7, characterized in that In S107, for the planar multi-node unit, the least square method is set so that the square of the unit displacement has a minimum value, and the least square method adopts the following calculation formula: The square of the unit displacement has a minimum value that satisfies the following conditions: Where S is the square value of the unit displacement; (x ij ,y ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′) is the position coordinate of the internal node i after the unit j moves, θ j is the rotation angle of unit j; a j and b j is the translation matrix T j Coefficient, j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
9. The method according to claim 8, characterized in that In S107, for a multi-node solid element, after the homogeneous coordinate transformation, the relationship between the initial position of the element and the final position of the element after completely removing the rigid body displacement of the element is: (x j ,y j ,z j ,1) T =A j (x′ j ,y′ j ,z′ j ,1) T +(Δx j ,Δy j ,Δz j ,1) T , The deformation of each of the nodes after the units are aligned is: in: A j =T j *R xj *R yj *R zj , In the formula, (x j ,y j ,z j ) is the initial position coordinate of unit j, (x j ′,y j ′,z j ′) is the position coordinate of unit j after movement, Δx j is the deformation of unit j along the x-axis, Δy j is the deformation of unit j along the y-axis, Δz j is the deformation of unit j along the z-axis, (x ij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θ zj is the rotation angle of unit j around the z axis; A j is the transformation matrix of the unit, T j is the translation matrix of the unit, R xj is the rotation matrix of the unit around the x-axis, R yj is the rotation matrix of the unit around the y-axis, R zj is the rotation matrix of the unit around the z axis, a j 、b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
10. The method according to claim 9, characterized in that In S107, for a multi-node solid unit, the least square method is set so that the square of the unit displacement has a minimum value, and the least square method adopts the following calculation formula: The square of the unit displacement has a minimum value that satisfies the following conditions: Where S is the square value of the unit displacement; (x ij ,y ij ,z ij ) is the initial position coordinate of node i inside unit j, (x ij ′,y ij ′,z ij ′) is the position coordinate of the internal node i after the unit j moves, θ xj is the rotation angle of unit j around the x-axis, θ yj is the rotation angle of unit j around the y-axis, θ zj is the rotation angle of unit j around the z axis; T j is the translation matrix of the unit, a j 、b j 、c j is the translation matrix T j The coefficient of , j is the unit number, i is the node number inside unit j, i = 1, 2, …, N, N is the number of nodes inside unit j.
Citation Information
Cited By
Prestressed beam simulation method, system and equipment based on vector finite element
CN120163009A
