A fast method for solving linear elasticity problems based on intrinsic hybrid finite element method
Patent Information
- Application Number
- CN202410822784.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When solving linear elastic mechanics problems, the existing hybrid finite element method requires a large number of iterations and has a slow convergence speed, resulting in instability and reduced accuracy of the numerical solution.
Based on the intrinsic mixed finite element method, the linear algebraic equations are iteratively solved through the preconditioning algorithm. The intrinsic mixed finite element basis functions and preconditioning operators are used to improve the condition number of the matrix and improve the stability and efficiency of the iterative process.
It significantly reduces the number of iterations, improves the convergence speed, enhances the stability and accuracy of numerical solutions, and improves computational efficiency.
Smart Images

Figure CN118377992B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of structural mechanics, and in particular to a fast method for solving linear elastic mechanics problems based on an intrinsic mixed finite element method. Background Art
[0002] Linear elasticity mainly studies the stress, strain and displacement generated by linear elastic bodies under the influence of specific external factors, so as to solve problems such as stiffness, strength and stability in the design process of products or engineering structures. It has always been a key research direction for technicians in the fields of machinery, vehicles, civil engineering, aerospace, etc.
[0003] At present, the classical solution of linear elasticity problems has limitations. When solving complex geometric domains and complex boundaries, analytical solutions are often not obtained, so various numerical solutions have emerged. Among them, the mixed finite element method is an effective solution to linear elasticity problems, but this method generally involves multiple field variables in the actual solution process, and the number of degrees of freedom will increase significantly accordingly. Therefore, when solving such problems, iterative methods are usually used to solve the linear equations.
[0004] When facing large and complex engineering problems, the hybrid finite element method often requires the selection of an appropriate linear equations iteration algorithm to ensure good convergence and computational efficiency. At the same time, since the linear equations obtained by the hybrid finite element method may have a large condition number, it is difficult for the iteration process to converge, which significantly increases the number of iterations required for convergence. In addition, this method can also lead to instability of the numerical solution, reducing the accuracy and reliability of the final solution.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiment of the present application provides a fast method for solving linear elasticity problems based on the intrinsic hybrid finite element method, so as to at least solve the technical problem that the number of iterations is large and the convergence speed is slow when the related iterative method is used to solve the linear elasticity problem.
[0007] According to one aspect of an embodiment of the present application, a fast method for solving linear elasticity problems based on an intrinsic mixed finite element method is provided, comprising the following solving steps:
[0008] Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint;
[0009] Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector;
[0010] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ;
[0011] Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x;
[0012] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0013] Optionally, the above step S2 includes the following steps:
[0014] Step S21, determining the type of boundary conditions, and processing different types of boundary conditions according to a preset processing method to obtain an overall load vector b and a stress constraint equation group Gx=s;
[0015] Step S22, for each unit, obtain the unit area, multiple integration points and the integration weight of each integration point of the current unit, and calculate the value of the k-order Lagrangian element basis function at the integration point and the value of the k-1-order discontinuous Lagrangian element basis function at the integration point in combination with the unit data and material parameters obtained in step S21;
[0016] Step S23, obtaining the tensor basis of the two-dimensional symmetric matrix space of the current unit, and combining the value of the k-order Lagrangian basis function at the integration point obtained in step S22 to obtain the value of the intrinsic mixed finite element basis function at the integration point;
[0017] Step S24, determining the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit;
[0018] Step S25, calculating the unit energy matrix using the values of the intrinsic mixed finite element basis function at each integration point on the current unit, and constructing the coefficient matrix A in combination with step S24;
[0019] Step S26, calculating the derivative value of the k-th order Lagrangian basis function at the integration point, and multiplying it with the tensor basis obtained in step S23 to obtain the div value of the intrinsic mixed finite element basis function at the integration point;
[0020] Step S27, using the value of the k-1 order discontinuous Lagrangian basis function at the integration point obtained in step S22 and the div value of the intrinsic mixed finite element basis function at the integration point obtained in step S26 to calculate the unit divergence operator matrix, and append it to the coefficient matrix A;
[0021] Step S28, using the stress constraint equation group Gx=s, the coefficient matrix A obtained by looping steps S22 to S27 and the load vector b obtained in step S21 are processed to obtain a linear algebraic equation group Ax=b.
[0022] Optionally, the above step S4 includes the following steps:
[0023] Step S41, obtaining a preconditioning operator M, a restart number m, and an iteration termination error tol, where m is a positive integer;
[0024] Step S42, based on the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , and calculate the residual vector r by the following formula:
[0025]
[0026] Step S43, calling the preconditioner M, and updating the residual vector r by the following formula:
[0027]
[0028] Step S44, calculate the 2-norm of the updated residual vector r by the following formula: :
[0029]
[0030] And based on the residual vector r and its 2 norm , the first Krylov vector is defined by the following formula , and let j=1:
[0031]
[0032] Step S45, based on the preconditioner M and Krylov vector and coefficient matrix A, and calculate the first auxiliary vector w by the following formula:
[0033]
[0034] and in the i loop equals When , the Hessenberg matrix is calculated by the following formula No. The matrix element at position :
[0035]
[0036] Then update the first auxiliary vector w by the following formula:
[0037]
[0038] And calculated by the following formula and :
[0039]
[0040]
[0041] Step S46, determine whether j is less than the restart number m, if so, set j=j+1 and continue to execute step S45; otherwise, use the least squares method to calculate the second auxiliary vector by the following formula :
[0042]
[0043] in, Represents an m-dimensional vector whose first element is 1 and the rest are 0; and obtains the Krylov vector space , combined with the second auxiliary vector , initial solution vector , update the approximate solution by the following formula :
[0044]
[0045] Step S47, determine the approximate solution Whether the iteration termination condition is met, wherein the iteration termination condition includes at least one of the following: , ;
[0046] Step S48, in the approximate solution When the iteration termination condition is met, the approximate solution is directly as the solution vector x;
[0047] Step S49, in the approximate solution If the iteration termination condition is not met, , and continue to execute steps S42 to S47.
[0048] Optionally, the above step S43 includes the following steps:
[0049] Step S431, based on the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit obtained in step S24, the residual vector r is decomposed into a stress residual vector and the displacement residual vector , and decompose the coefficient matrix A into the energy matrix E determined by the stress degrees of freedom and the divergence operator matrix B determined by the stress degrees of freedom and the displacement degrees of freedom;
[0050] Step S432, determine the diagonal element matrix D of the energy matrix E, based on the diagonal element matrix D, the stress residual vector , and calculate the first solution vector by the following formula :
[0051]
[0052] Step S433, based on the divergence operator matrix B and the first solution vector , displacement residual vector , and update the displacement residual vector by the following formula :
[0053]
[0054] Step S434, based on the divergence operator matrix B and the diagonal element matrix D, the approximate Schur complement matrix is calculated by the following formula: :
[0055]
[0056] Step S435, based on the approximate Schur complement matrix , the updated displacement residual vector , and calculate the second solution vector by the following formula :
[0057]
[0058] Step S436, based on the second solution vector , divergence operator matrix B, diagonal element matrix D and the first solution vector , and the first solution vector obtained in step S432 is calculated by the following formula To update:
[0059]
[0060] And based on the second solution vector , and the second solution vector obtained in step S435 is calculated by the following formula To update:
[0061]
[0062] Step S437, based on the overall degrees of freedom of the intrinsic hybrid finite element basis function of the current unit obtained in step S24, the updated first solution vector obtained in step S436 is and the second solution vector Assemble and obtain the updated residual vector r.
[0063] Optionally, the above step S435 includes the following steps:
[0064] Step S4351, based on the approximate Schur complement matrix , the second solution vector and the displacement residual vector , and call the polishing algorithm R to solve the second solution vector by the following formula To update:
[0065]
[0066] Step S4352: determine the interpolation operator of the k-1th order discontinuous Lagrangian space to the linear displacement space of the current unit according to the unit data, and convert the interpolation operator into a matrix form to obtain an interpolation matrix , then based on the interpolation matrix Determine the extension matrix P of the linear displacement space to the k-1 order discontinuous Lagrangian space;
[0067] Step S4353, based on the extension matrix P and the approximate Schur complement matrix , and the approximate Schur complement matrix in the linear displacement space is calculated by the following formula The approximate matrix :
[0068]
[0069] Step S4354, calculate the approximate matrix The inverse matrix , based on the inverse matrix , the second solution vector , the continuation matrix P and the displacement residual vector , and the second solution vector obtained in step S4351 is calculated by the following formula To update:
[0070]
[0071] Step S4355, call the polishing algorithm R, and use the following formula to calculate the second solution vector obtained in step S4354 To update:
[0072]
[0073] According to another aspect of an embodiment of the present application, a computer program product is also provided, which includes a stored computer program, wherein when the computer program is executed by a processor, it implements the above-mentioned fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method.
[0074] According to another aspect of an embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method.
[0075] According to another aspect of an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein when the program is running, the above-mentioned fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method is executed.
[0076] In the embodiment of the present application, the corresponding initial solution vector is first obtained by solving the linear algebraic equation system Ax=b , then based on the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , calling the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b, and obtain the solution vector x, and then use the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b, so as to solve the technical problems of large number of iterations and slow convergence speed when the related iterative method is used to solve linear elastic mechanics problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0078] Figure 1 It is a hardware structure block diagram of a computer terminal for implementing a fast method for solving linear elastic mechanics problems based on an intrinsic hybrid finite element method according to an embodiment of the present application;
[0079] Figure 2 It is a flowchart of an optional fast method for solving linear elasticity problems based on the intrinsic mixed finite element method according to an embodiment of the present application;
[0080] Figure 3 is a flow chart of an optional step S2 according to an embodiment of the present application;
[0081] Figure 4 is a flow chart of an optional step S21 according to an embodiment of the present application;
[0082] Figure 5 is a flowchart of an optional step S232 according to an embodiment of the present application;
[0083] Figure 6 is a flowchart of an optional step S24 according to an embodiment of the present application;
[0084] Figure 7 is a schematic diagram of an optional working condition of a rectangular column cross section with a square through hole according to an embodiment of the present application;
[0085] Figure 8 It is a schematic diagram of the working condition of an optional 1 / 4 symmetrical model of a rectangular cylinder cross section with a square through hole according to an embodiment of the present application;
[0086] Figure 9a is a schematic diagram of an optional grid model 1 according to an embodiment of the present application;
[0087] Figure 9b is a schematic diagram of an optional grid model 2 according to an embodiment of the present application;
[0088] Fig.10 It is an optional result cloud diagram of solving the first-order Lagrangian element of the business software on the grid model 1 according to the embodiment of the present application;
[0089] Fig.11 It is an optional result cloud diagram of using intrinsic hybrid finite element modeling on the grid model 2 and solving it with the GMRES algorithm according to an embodiment of the present application;
[0090] Fig.12 It is an optional result cloud diagram of using intrinsic hybrid finite element modeling on the grid model 2 according to an embodiment of the present application and solving it using the fast algorithm of the embodiment of the present application;
[0091] Fig.13 A schematic structural diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0092] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0093] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0094] In addition, the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0095] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0096] Schur decomposition, also known as Schur triangular decomposition, is a matrix decomposition method in linear algebra that decomposes a given policy into the product of an upper triangular form and a unitary matrix (an orthogonal matrix in the real field). Specifically, for a The square matrix N can be decomposed into: or , where U or Q is a is a unitary matrix whose column vectors are the orthogonal (or unitary) column vectors obtained during the Schur triangulation of N, and T is an upper triangular matrix whose diagonal elements are the eigenvalues (or roots of the characteristic polynomial) of N.
[0097] The Schur complement matrix is a special technique for solving large linear problems, especially in the fields of structural analysis and fluid dynamics simulation, which uses Schur decomposition to construct matrices. Specifically, assuming a linear problem Ax=b, where A is a large sparse matrix, x represents an unknown vector, and b is a known vector, the matrix A can be decomposed into a block matrix as follows:
[0098]
[0099] in, is a submatrix, and are the corresponding row and column vectors, is the remaining matrix part. If is reversible, then the Schur complement matrix can be written as: The Schur complement matrix S is a subset of the matrix A that does not contain , but including and The relevant part is solved by get , then Substitute it into the Schur complement matrix S to solve the remaining unknowns .
[0100] The approximate Schur complement matrix is to estimate the Schur complement matrix S using an approximate technique, so that there is no need to accurately calculate the above submatrices .
[0101] An interpolation operator can usually be defined as a function from a function space V to its subspace The mapping of , where the subspace It is a space composed of functions that satisfy the interpolation conditions.
[0102] Krylov vector space is a concept closely related to iterative solution methods in linear algebra and numerical analysis. When solving linear problems Ax=b, Krylov vector space provides a constructive way to generate a series of vectors that are related to the matrix A and the initial residual vector In addition, most efficient iterative algorithms, such as the conjugate gradient method, the generalized minimum residual method, the biconjugate gradient method, etc., work by finding approximate solutions in the Krylov vector space. Therefore, the size and order of the Krylov vector space determine the computational complexity of the iterative method. As the order increases, the accuracy of the algorithm also increases, but the computational and storage costs also increase. Therefore, choosing the appropriate order of the Krylov vector space is the key to achieving efficient numerical solutions.
[0103] The Hessenberg matrix is a special matrix whose characteristic is that except for the elements on the main diagonal and above the main diagonal, all other elements are zero. Specifically, an m×m Hessenberg matrix H has the following form:
[0104]
[0105] in, is an element of the matrix, and For all All are established.
[0106] Example 1
[0107] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a fast method for solving linear elastic mechanics problems based on the intrinsic hybrid finite element method is shown. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0108] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0109] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the fast method for solving linear elastic mechanics problems based on the intrinsic hybrid finite element method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the fast method for solving linear elastic mechanics problems based on the intrinsic hybrid finite element method of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0110] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0111] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0112] The embodiment of the present application provides a fast method for solving linear elastic mechanics problems based on the intrinsic hybrid finite element method, which aims to achieve fast solution of linear elastic mechanics problems by calling the preconditioning algorithm, greatly improving the numerical stability and convergence in the iterative process, and improving the calculation efficiency. The above method provided by the present application can be widely used in the fields of machinery, vehicles, civil engineering, aerospace, ships, etc., and its specific application scenarios include but are not limited to: mechanical arm strength analysis, chassis frame stiffness analysis, tunnel deformation and damage analysis, rocket bracket lightweight analysis, helicopter hub deformation analysis, hull bending and torsional stiffness analysis, etc. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0113] Figure 2is a flow chart of an optional fast method for solving linear elasticity problems based on the intrinsic hybrid finite element method according to an embodiment of the present application, such as Figure 2 As shown, the method at least includes steps S1-S5, wherein:
[0114] Step S1, obtaining unit data, material parameters, and boundary conditions.
[0115] The unit data include: unit shape, node coordinates, unit quantity, unit dimension; the material coefficients include: Young's modulus, Poisson's ratio, density; the boundary conditions include: body force, stress constraint, displacement constraint.
[0116] Specifically, when simulating and analyzing two-dimensional structural mechanics, the mesh type, mesh density and mesh shape play a vital role in the accuracy of the simulation results. In order to simplify the structure to meet the accuracy requirements and quickly solve the simulation results, the mesh of a suitable shape can be selected according to the actual situation to divide the stress area of the elastic body to be analyzed. Among them, the mesh shape selected in the embodiment of the present application can be preferably a triangular mesh, and the number of units and the unit dimension obtained by the specific division can be determined according to the size and dimension of the divided mesh shape and the actual stress area. In addition, the material coefficient and boundary conditions can be determined according to the material coefficient and constraint conditions of the stress area of the actual elastic body to be analyzed.
[0117] Step S2, determining the linear algebraic equation group Ax=b based on the unit data, material parameters, and boundary conditions obtained in step S1.
[0118] As an optional implementation, Figure 3 is a flow chart of an optional step S2 according to an embodiment of the present application, such as Figure 3 As shown, step S2 specifically includes the following steps S21-S28:
[0119] Step S21, determine the type of boundary conditions, and process different types of boundary conditions according to a preset processing method to obtain the overall load vector b and the stress constraint equation group Gx=s.
[0120] Loop through each unit and execute the following steps S22-S27:
[0121] Step S22, obtain the unit area, multiple integration points and the integration weight of each integration point of the current unit, and calculate the value of the k-order Lagrangian basis function at the integration point and the value of the k-1-order discontinuous Lagrangian basis function at the integration point in combination with the unit data and material parameters obtained in step S21.
[0122] Specifically, the integration point (i.e., Lagrange interpolation point) of the current triangle unit K is recorded as , where for a given triangle unit K edge Points on (k is an integer greater than or equal to 3). According to the definition of Lagrange Basis Function, the k-order Lagrange Basis Function at the integral point can be calculated. The value at the point and the value of the k-1 order discontinuous Lagrangian basis function at the integration point, where the k-order Lagrangian basis function can be The value at , and the k-th Lagrangian basis function is at the integration point The value at satisfies the following conditions: At the point Take 1, and in the k-order Lagrange interpolation point set The other integral points in are set to 0. In addition, the integral weight and unit area obtained in step S22 can be used for the subsequent calculation of the unit energy matrix.
[0123] Step S23, obtaining the tensor basis of the two-dimensional symmetric matrix space of the current unit, and combining the value of the k-order Lagrangian basis function at the integration point obtained in step S22 to obtain the value of the intrinsic mixed finite element basis function at the integration point.
[0124] Among them, the above two-dimensional symmetric matrix space is a vector space composed of all two-dimensional symmetric matrices, so the tensor basis of the two-dimensional symmetric matrix space can be understood as a set composed of several linearly independent two-dimensional symmetric matrices, and these two-dimensional symmetric matrices can represent all two-dimensional symmetric matrices in the space. Any second-order symmetric matrix can be expressed as a linear combination of the following three specific symmetric matrices: , , .
[0125] Step S24, determining the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit, that is, the degrees of freedom of the intrinsic mixed finite element on the current unit.
[0126] Step S25, calculating the unit energy matrix using the values of the intrinsic mixed finite element basis functions at each integration point on the current unit, and constructing the coefficient matrix A in combination with step S24.
[0127] Specifically, Recorded as the integration point of the current triangle unit K, Denote as the integral weight of the corresponding integration point, S as the unit area of the triangular unit K, and use the value of the intrinsic mixed finite element basis function at each integration point on the current unit, the corresponding integral weight and unit area to calculate the unit energy matrix through the following formula:
[0128]
[0129] Among them, the above denote the stress variable basis functions, and the above The expression can be written as:
[0130]
[0131] Where E represents Young's modulus, represents Poisson's ratio, represents the identity matrix and tr represents the trace.
[0132] Furthermore, a global coefficient matrix (generally a zero matrix or a unit matrix) is first initialized according to the overall degrees of freedom determined in step S24, where the order of the coefficient matrix is the number of degrees of freedom; then, according to the mapping vector from the local degrees of freedom of each unit to the overall degrees of freedom (which specifies which row and column in the global coefficient matrix the local degrees of freedom of the unit corresponds to), the unit energy matrices of each unit are assembled into the global coefficient matrix, and finally the overall coefficient matrix is obtained.
[0133] Step S26, calculate the derivative value of the k-th order Lagrangian basis function at the integration point, and multiply it with the tensor basis obtained in step S23 to obtain the div value of the intrinsic mixed finite element basis function at the integration point.
[0134] Specifically, the value of the k-order Lagrangian basis function at the integration point obtained in step S22 is differentiated to obtain the derivative value of the k-order Lagrangian basis function at the integration point. Then, according to the type of Lagrangian interpolation point (element vertex, element internal point, point on element edge), the derivative value of the k-order Lagrangian basis function at the integration point is multiplied by the tensor basis (standard basis, first-order symmetric matrix, second-order symmetric matrix) corresponding to the integration point type to obtain the div value (i.e., divergence value) of the intrinsic mixed finite element basis function at the integration point.
[0135] Step S27, using the value of the k-1 order discontinuous Lagrangian basis function at the integration point obtained in step S22 and the div value of the intrinsic mixed finite element basis function at the integration point obtained in step S26 to calculate the unit divergence operator matrix, and append it to the coefficient matrix A.
[0136] Step S28, using the stress constraint equation group Gx=s, the coefficient matrix A obtained by looping steps S22 to S27 and the load vector b obtained in step S21 are processed to obtain a linear algebraic equation group Ax=b.
[0137] Specifically, the linear algebraic equation Ax=b may be solved by a direct solution method or an iterative solution method, and no specific limitation is imposed on the solution method.
[0138] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b .
[0139] Step S4, using the coefficient matrix A, the load vector b and the initial solution vector in the linear algebraic equation system Ax=b, calling the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x.
[0140] Specifically, when solving linear elastic mechanics problems with boundaries, relevant technical personnel usually use iterative methods, such as the generalized minimum residual (GMRES) algorithm, the conjugate gradient method (CG), the bi-conjugate gradient stabilized (Bi-CGSTAB), etc. for iterative solution. However, when solving certain complex problems, the algorithm may require a large number of iterations to achieve the expected convergence accuracy. Therefore, in order to speed up the convergence speed of the algorithm, a preconditioning algorithm can be used in an embodiment of the present application to accelerate the iterative solution of the linear algebraic equation system. .
[0141] The basic idea of the above preconditioning algorithm is to transform the original problem Ax=b into an equivalent problem that is easier to solve. Specifically, by constructing a new problem ,in, is the inverse of the preconditioner M, and the preconditioner M should satisfy the following conditions: it is easy to invert; it is close to the matrix A, because if M is close to A, then Close to the unit matrix, this means that the new coefficient matrix is closer to diagonal dominance, so the iterative solution will be faster. Therefore, the embodiment of the present application can improve the condition number of the matrix by selecting a suitable preconditioning operator, so that when solving the linear algebraic equation system Ax=b, accurate calculation results can be obtained with fewer iterations.
[0142] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0143] Based on the scheme defined in the above steps S1 to S5, it can be known that, in the embodiment, firstly, the initial solution vector of the linear algebraic equation system Ax=b is obtained. , then based on the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b, obtain the solution vector x, and then use the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b. This solves the technical problem of large number of iterations and slow convergence speed when solving linear elastic mechanics problems with related iterative methods.
[0144] Furthermore, the specific implementation method of each step in the above step S2 will be described in detail below.
[0145] Optionally, Figure 4 is a flow chart of an optional step S21 according to an embodiment of the present application, such as Figure 4 As shown, step S21 specifically includes the following steps S211-S214:
[0146] Step S211, determining the type of boundary conditions, wherein the boundary conditions include at least one of the following: body force, stress constraint, and displacement constraint.
[0147] Step S212, when the type of boundary condition is body force, call the displacement test function, and load the integral result of the displacement test function and the body force into the load vector b.
[0148] Specifically, when the boundary condition type is body force, for the current triangular element K, assuming the body force is f, the integral result of the displacement test function v and the body force f can be calculated by the following formula, and the integral result is added to the load vector b:
[0149]
[0150] Step S213, when the type of boundary condition is stress, the least square method is called to process the stress constraint to obtain the stress constraint equation group Gx=s.
[0151] Specifically, when the boundary condition type is stress, firstly, the stress is given for each edge of the triangular unit, and the stress constraint equation group can be constructed according to the Lagrange interpolation points on the edge, and its expression is:
[0152]
[0153] Then, the obtained stress constraint equations are processed using the least squares method, and the corresponding expression is as follows:
[0154]
[0155] Finally, based on the processed stress constraint equations corresponding to all the above edges, the above-obtained processing results are added to the stress constraint equations to obtain the following equations:
[0156]
[0157] Among them, represents the unknown quantity that needs to be solved, g represents the number of unknown quantities, and m represents the number of linearly independent constraint equations.
[0158] Step S214, when the type of boundary condition is displacement constraint, the stress test function is called, and the integral result of the stress test function and the displacement constraint is loaded into the load vector b.
[0159] Specifically, when the boundary condition type is displacement constraint on all edges, for the edge E that meets the conditions in the current triangle unit K, let the displacement constraint be u, then the stress test function is calculated by the following formula: Calculate the integral of the displacement constraint and add it to the load vector b:
[0160]
[0161] Where n represents the unit normal vector on edge E.
[0162] Therefore, by cyclically executing the above steps S211-S214, the load vector b and the stress constraint equation group Gx=s of the entire elastic body to be analyzed are obtained.
[0163] Optionally, the above step S23 may be further divided into the following steps S231-S233:
[0164] Step S231, determining the type of each Lagrangian interpolation point (ie, integration point) on the current unit, wherein the types of Lagrangian interpolation points include: unit vertex, unit internal point, edge internal point.
[0165] Step S232, determining the tensor basis of the two-dimensional symmetric matrix space according to the type of the Lagrangian interpolation point, wherein, when the type of the Lagrangian interpolation point is a unit vertex and a unit internal point, obtaining the standard basis of the second-order symmetric tensor space; when the type of the Lagrangian interpolation point is an edge internal point, obtaining a unit tangent vector and a unit normal vector for each of the three unit edges of the current unit, and using a unit tangent vector and a unit normal vector for each edge to calculate the edge basis of the unit edge.
[0166] Optionally, the above step S232 can also be performed as follows: Figure 5 The specific steps are as follows:
[0167] Step 1: Input the current triangle unit;
[0168] Step 2: Cycle through the Lagrange interpolation points on the current triangle unit in turn;
[0169] Step 3: Determine the type of the Lagrangian interpolation point. When the type of the Lagrangian interpolation point is a unit vertex or a unit internal point, execute step 4; when the type of the Lagrangian interpolation point is an edge internal point, execute step 5.
[0170] Step 4: Obtain the standard basis of the two-dimensional symmetric tensor space.
[0171] Among them, the above standard basis can be , and A linear combination of .
[0172] Step 5: Get the unit tangent vector and unit normal vector of the three edges of the current triangle unit;
[0173] Step 6: Calculate the edge basis of each unit edge using the unit tangent vector and unit normal vector of each edge.
[0174] Among them, the edge basis of the above-mentioned unit edge includes: a first-type symmetric matrix spanned by the unit tangent vector of the unit edge, a type of symmetric matrix spanned by the unit normal vector of the unit edge and a type of symmetric matrix spanned together by the unit normal vector and unit tangent vector of the unit edge as a second-type symmetric matrix.
[0175] Specifically, the unit edge For example, for this unit edge The process of determining the edge basis is described as follows:
[0176] First, define the unit edge The unit normal vector and unit tangent vector on are expressed as follows:
[0177]
[0178]
[0179] Then, through the unit tangent vector We can define a symmetric matrix of the first kind with rank 1 and write it as , which can be expressed as: At the same time, the unit normal vector A class of symmetric matrices formed by Zhang and composed of unit normal vectors and the unit tangent vector The symmetric matrix of the second kind is the same as the symmetric matrix of the first kind. is an orthogonal complement relationship, and belongs to the second-order symmetric matrix space. The second-order symmetric matrix can be recorded as , which can be expressed as:
[0180]
[0181]
[0182] Therefore, the first kind of symmetric matrix can be and the symmetric matrix of the second kind Together they form the edge basis of the two-dimensional symmetric matrix space. In the embodiment of the present application, in order to simplify the calculation, a set of the simplest trivial bases can be selected as the edge basis, and its expression is as follows:
[0183]
[0184]
[0185]
[0186] Step 7: Determine whether the loop reaches the last Lagrange interpolation point on the current triangle unit. If so, execute step 7, otherwise continue to execute step 3:
[0187] Step 8: Output the tensor basis of the two-dimensional symmetric matrix space corresponding to the type of each Lagrangian interpolation point on the current triangle unit.
[0188] Step S233, combining the tensor basis of the two-dimensional symmetric matrix space with the value of the k-order Lagrangian basis function at the integration point obtained in the above step S22, to obtain the value of the intrinsic mixed finite element basis function at the integration point.
[0189] Optionally, the above step S233 can also be divided into the following cases according to the type of Lagrange interpolation point:
[0190] When the type of Lagrange interpolation point is a unit vertex, the value of the intrinsic mixed finite element basis function at the integration point is obtained according to the product of the standard basis of the two-dimensional symmetric matrix space and the value of the k-order Lagrange element basis function corresponding to the current vertex at the integration point;
[0191] When the type of Lagrange interpolation point is an internal point of the unit, the value of the intrinsic mixed finite element basis function at the integration point is obtained according to the product of the standard basis of the two-dimensional symmetric matrix space and the value of the k-order Lagrange element basis function corresponding to the current internal point of the unit at the integration point;
[0192] When the type of Lagrange interpolation point is a point on the edge of the unit, the value of the intrinsic mixed finite element basis function at the integration point is obtained by multiplying the first-kind symmetric matrix of the two-dimensional symmetric matrix space with the value of the k-order Lagrange element basis function corresponding to the internal point of the current unit at the integration point;
[0193] When the type of Lagrangian interpolation point is a point on the edge of the unit, the value of the intrinsic mixed finite element basis function at the integration point is obtained based on the product of the second kind symmetric matrix of the two-dimensional symmetric matrix space and the value of the k-order Lagrangian basis function corresponding to the internal point of the current unit at the integration point.
[0194] Specifically, , and are respectively recorded as the two-dimensional force area of the thin plate The unit vertex set, the internal point set on the unit edge, and the internal point set of the unit are all the triangular units divided in the unit. is the value of the Lagrangian basis function at a certain integration point, where represents the k-th order Lagrangian element, then the value of the intrinsic mixed finite element basis function at the integration point can be determined according to the following rules:
[0195] For a given , then the value of the intrinsic mixed finite element basis function at the integration point can be written as:
[0196]
[0197] For a given , then the value of the intrinsic mixed finite element basis function at the integration point can be written as:
[0198]
[0199] For a given is an internal point on edge E, and E is a unit and unit The common edge of , then the value of the intrinsic mixed finite element basis function at the integration point can be written as:
[0200]
[0201] For a given , then the value of the intrinsic mixed finite element basis function at the integration point can be written as:
[0202]
[0203] Among them, the value of the above intrinsic mixed finite element basis function at the integration point is are continuous; To be discontinuous.
[0204] Optionally, Figure 6 is a flow chart of an optional step S24 according to an embodiment of the present application, such as Figure 6 As shown, step S24 specifically includes the following multiple sub-steps:
[0205] Step 1: Input multiple intrinsic mixed finite element basis functions;
[0206] Step 2: loop through each intrinsic mixed finite element basis function;
[0207] Step 3: Determine the type of the Lagrangian interpolation point corresponding to the intrinsic mixed finite element basis function, wherein when the type of the Lagrangian interpolation point is a point on the edge of the unit, execute the fourth step; when the type of the Lagrangian interpolation point is a unit vertex and a point inside the unit, execute the sixth step;
[0208] Step 4: Determine whether the intrinsic mixed finite element basis function is composed of pure tangential vectors. If so, execute step 5, otherwise execute step 6;
[0209] Step 5: Determine the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit according to the order of discontinuous degrees of freedom;
[0210] Step 6: Determine the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit according to the order of continuous degrees of freedom;
[0211] Step 7: Determine whether the loop reaches the last intrinsic mixed finite element basis function. If so, execute step 8, otherwise execute step 3;
[0212] Step 8: Integrate the overall degrees of freedom of the intrinsic hybrid finite element basis functions obtained by continuous degree of freedom sequence and discontinuous degree of freedom sequence.
[0213] Optionally, the specific implementation of step S28 includes the following steps:
[0214] Step 1: Simplify the stress constraint equation group Gx=s and obtain the equivalent constraint ,in, represents the m-dimensional constraint vector, represents an n-dimensional free vector, is a constant vector representing m dimensions, m and n represent the number of constraint variables and free variables respectively, and m+n=g. It should be noted that in the above step S102, Gaussian elimination method can be used to simplify the stress constraint equation group Gx=s;
[0215] Step 2: Adjust the order of x, and the adjusted x is:
[0216]
[0217] Step 3: Block processing is performed on the coefficient matrix A obtained by looping through the above steps S22 to S27 and the load vector b obtained in step S21, and the coefficient matrix A after block processing is obtained as follows:
[0218]
[0219] And the load vector b after block processing is:
[0220]
[0221] Step 4: Rearrange the coefficient matrix A after block processing to obtain the adjusted coefficient matrix A:
[0222]
[0223] The load vector b after block processing is rearranged to obtain the adjusted load vector b:
[0224]
[0225] Step 5: Solve the linear algebraic equation system Ax=b to obtain stress solutions and displacement solutions.
[0226] Further, in the technical solution provided by the above step S4, the method can be implemented by the following steps S41-S49, including:
[0227] Step S41, obtaining a preconditioning operator M, a restart number m, and an iteration termination error tol, where m is a positive integer;
[0228] Step S42, based on the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , and calculate the residual vector r by the following formula:
[0229]
[0230] Step S43, calling the preconditioner M, and updating the residual vector r by the following formula:
[0231]
[0232] Optionally, in the technical solution provided in the above step S43, it can be implemented through the following steps S431-S437:
[0233] Step S431, based on the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit obtained in step S24, the residual vector r is decomposed into a stress residual vector and the displacement residual vector , and decompose the coefficient matrix A into the energy matrix E determined by the stress degrees of freedom and the divergence operator matrix B determined by the stress degrees of freedom and the displacement degrees of freedom;
[0234] Step S432, determine the diagonal element matrix D of the energy matrix E, based on the diagonal element matrix D, the stress residual vector , and calculate the first solution vector by the following formula :
[0235]
[0236] Step S433, based on the divergence operator matrix B and the first solution vector , displacement residual vector , and update the displacement residual vector by the following formula :
[0237]
[0238] Step S434, based on the divergence operator matrix B and the diagonal element matrix D, the approximate Schur complement matrix is calculated by the following formula: :
[0239]
[0240] Step S435, based on the approximate Schur complement matrix , the updated displacement residual vector , and calculate the second solution vector x2 by the following formula:
[0241]
[0242] Step S436, based on the second solution vector , divergence operator matrix B, diagonal element matrix D and the first solution vector , and the first solution vector obtained in step S432 is calculated by the following formula To update:
[0243]
[0244] And based on the second solution vector , and the second solution vector obtained in step S435 is calculated by the following formula To update:
[0245]
[0246] Step S437, based on the overall degrees of freedom of the intrinsic hybrid finite element basis function of the current unit obtained in step S24, the updated first solution vector obtained in step S436 is and the second solution vector Assemble and obtain the updated residual vector r.
[0247] Furthermore, in the technical solution provided in the above step S435, it can be implemented by a multiplication method and in accordance with the following steps S4351-S4355:
[0248] Step S4351, based on the approximate Schur complement matrix , the second solution vector and the displacement residual vector , and call the polishing algorithm R to solve the second solution vector by the following formula To update:
[0249]
[0250] Among them, the above step S4351 can be understood as a pre-polishing process.
[0251] Step S4352: determine the interpolation operator of the k-1th order discontinuous Lagrangian space to the linear displacement space of the current unit according to the unit data, and convert the interpolation operator into a matrix form to obtain an interpolation matrix , then based on the interpolation matrix Determine the extension matrix P of the linear displacement space to the k-1 order discontinuous Lagrangian space.
[0252] The k-1 order discontinuous Lagrangian space is also called fine space, which can be denoted as V, and the linear displacement space is also called coarse space, which can be understood as the coarsening of the fine space, denoted as , whose expression is:
[0253]
[0254] At the same time, considering the rough space Satisfaction on the solution Satisfies the following relationship:
[0255]
[0256] After defining the coarse space and the fine space, we can first define the interpolation operator from the k-1th order discontinuous Lagrangian space of the current unit to the linear displacement space, denoted as , and the interpolation operator Convert to matrix form and get the interpolation matrix Similarly, define the extension operator of the linear displacement space of the current unit to the k-1 order discontinuous Lagrangian space, denoted as , and the extension operator Converted into matrix form, the continuation matrix P is obtained. The relationship between the above continuation operator and the interpolation operator can be expressed by the following relationship:
[0257]
[0258] Step S4353, based on the extension matrix P and the approximate Schur complement matrix , and the approximate Schur complement matrix in the linear displacement space is calculated by the following formula
[0259] The approximate matrix :
[0260]
[0261] Step S4354, calculate the approximate matrix The inverse matrix , based on the inverse matrix , the second solution vector , the continuation matrix P and the displacement residual vector , and the second solution vector obtained in step S4351 is calculated by the following formula To update:
[0262]
[0263] Among them, the above step S4354 can be understood as a coarse spatial correction process.
[0264] Step S4355, call the polishing algorithm R, and use the following formula to calculate the second solution vector obtained in step S4354 To update:
[0265]
[0266] Among them, the above step S4355 can be understood as a post-polishing process.
[0267] In addition, in the technical solution provided in the above step S435, it can also be implemented in an additive manner according to the following steps:
[0268] Step 1: Get the second solution vector to be updated :
[0269] Step 2: Based on the approximate Schur complement matrix , the second solution vector and the displacement residual vector , and define the residual vector according to the following formula :
[0270]
[0271] Step 3: Based on the second solution vector and the residual vector , and call the polishing algorithm R, and use the following formula to solve the second solution vector To update:
[0272]
[0273] Among them, the third step mentioned above can be understood as a fine space correction process.
[0274] Step 4: Based on the extension matrix P, approximate Schur complement matrix , and the approximate Schur complement matrix in the linear displacement space is calculated by the following formula
[0275] The approximate matrix :
[0276]
[0277] Step 5: Calculate the approximate matrix The inverse matrix , based on the inverse matrix , the second solution vector , the continuation matrix P and the residual vector , and the second solution vector in the first step is calculated by the following formula To update:
[0278]
[0279] Among them, the fifth step mentioned above can be understood as a coarse spatial correction process.
[0280] Step S44, calculate the 2-norm of the updated residual vector r by the following formula: :
[0281]
[0282] And based on the residual vector r and its 2 norm , and define the first Krylov vector by the following formula , and let j=1:
[0283]
[0284] Step S45, based on the preconditioner M and Krylov vector and coefficient matrix A, and calculate the first auxiliary vector w by the following formula:
[0285]
[0286] and in the i loop equals When , the Hessenberg matrix is calculated by the following formula No. The matrix element at position :
[0287]
[0288] Then update the first auxiliary vector w by the following formula:
[0289]
[0290] And calculated by the following formula and :
[0291]
[0292]
[0293] Step S46, determine whether j is less than the restart number m, if so, set j=j+1 and continue to execute step S45; otherwise, use the least squares method to calculate the second auxiliary vector by the following formula :
[0294]
[0295] in, Represents an m-dimensional vector whose first element is 1 and the rest are 0; and obtains the Krylov vector space , combined with the second auxiliary vector , initial solution vector , update the approximate solution by the following formula :
[0296]
[0297] Step S47, determine the approximate solution Whether the iteration termination condition is met, wherein the iteration termination condition includes at least one of the following:
[0298]
[0299]
[0300] Step S48, in the approximate solution When the iteration termination condition is met, the approximate solution is directly as the solution vector x;
[0301] Step S49, in the approximate solution If the iteration termination condition is not met, , and continue to execute steps S42 to S47.
[0302] The following will be Figure 7The rectangular cylinder with square through holes shown in the figure was subjected to strength analysis and compared with the results of commercial software to prove that the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method provided in the embodiment of the present application can greatly improve the numerical stability in the iterative process, increase convergence, and improve computational efficiency.
[0303] Figure 7 is a schematic diagram of an optional working condition of a rectangular column cross section with a square through hole according to an embodiment of the present application, such as Figure 7 As shown, the width of the cross section of the cylinder is 20 mm, there is a square through hole with a side length of 2 mm in the center of the cylinder, and the longitudinal length of the cylinder is much greater than its cross-sectional width. At the same time, the cylinder bears a uniformly distributed load of 100 MPa in the x direction. Among them, the material parameters of the cylinder are Young's modulus E=1000 MPa and Poisson's ratio v=0.3.
[0304] Considering that the longitudinal length of the column is much larger than its cross-sectional dimensions, and the external load acts parallel to the cross-sectional dimensions, and the external load and constraint do not change along the length direction, it can be regarded as a plane strain problem. At this time, a triangular mesh can be used to divide the two-dimensional force-bearing area of the simplified rectangular column, thereby minimizing the number of meshes. Based on the symmetry of the structure and the load, the embodiment of the present application only verifies the Figure 7 1 / 4 of the cross section of the rectangular cylinder shown is analyzed, as shown in Figure 8 shown.
[0305] Specifically, the verification ideas are as follows:
[0306] 1. In Figure 9a The first-order Lagrangian element of the commercial software is used to solve the mesh model 1 (the number of elements is 3051) shown in the figure, and the obtained stress and displacement results are regarded as the reference values;
[0307] 2. Figure 9b The intrinsic mixed finite element modeling is performed on the mesh model 2 (the number of elements is 276) shown in the figure, and the iteration termination accuracy and the number of restarts are the same (in this case, the iteration termination accuracy is set to , the number of restarts is set to 2000), and the fast method provided by this application and the common iterative algorithm (such as the GMRES algorithm) are used for calculation respectively. The number of iterations and calculation time of the above two methods are compared to prove the superiority of the fast algorithm.
[0308] in, Figure 10-12The result cloud diagrams (including total displacement U and stress component S11) calculated by using the first-order Lagrangian element on mesh model 1, the result cloud diagrams (including total displacement U and stress component S11) of using intrinsic hybrid finite element modeling on mesh model 2 and using the GMRES algorithm to solve the linear algebraic equations are shown respectively, and the result cloud diagrams (including total displacement U and stress component S11) of using intrinsic hybrid finite element modeling on mesh model 2 and using the fast algorithm of the embodiment of the present application to solve the linear algebraic equations are shown respectively. In addition, the above-mentioned benchmark values and the results solved by the ordinary iterative method and the fast method are summarized in a table to obtain the following Table 1.
[0309] Table 1
[0310]
[0311] Therefore, it can be seen from Table 1 that, for solving the mesh model 2, the fast algorithm provided in the embodiment of the present application only needs 19 iterations and only takes 0.227 seconds to complete the calculation. The solution speed is significantly faster than the GMRES algorithm. The accuracy of the displacement results and stress results finally calculated by the fast algorithm provided in the embodiment of the present application is also much higher than that of the GMRES algorithm.
[0312] Example 2
[0313] According to an embodiment of the present application, a computer program product is also provided, which includes a stored computer program, wherein when the computer program is executed by a processor, the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method in Example 1 is implemented.
[0314] Optionally, the computer program executes the following steps:
[0315] Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint;
[0316] Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector;
[0317] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ;
[0318] Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x;
[0319] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0320] Example 3
[0321] According to an embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method in Example 1.
[0322] Optionally, the device where the non-volatile storage medium is located implements the following steps by running the program:
[0323] Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint;
[0324] Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector;
[0325] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ;
[0326] Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x;
[0327] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0328] Example 4
[0329] According to an embodiment of the present application, a processor is also provided, which is used to run a program, wherein when the program is running, the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method in Example 1 is executed.
[0330] Optionally, the following steps are performed when the program is running:
[0331] Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint;
[0332] Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector;
[0333] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ;
[0334] Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x;
[0335] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0336] Example 5
[0337] According to an embodiment of the present application, an electronic device is also provided, wherein: Fig.13 is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application, such as Fig.13 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method in the above-mentioned embodiment 1 when running.
[0338] Optionally, the processor is configured to implement the following steps by executing a computer program:
[0339] Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint;
[0340] Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector;
[0341] Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ;
[0342] Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x;
[0343] Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b.
[0344] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0345] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0346] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0347] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0348] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0349] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0350] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A fast method for solving linear elasticity problems based on intrinsic hybrid finite element method, characterized in that: The method comprises the following steps: Step S1, obtaining unit data, material parameters, and boundary conditions, wherein the unit data includes: unit shape, node coordinates, unit quantity, and unit dimension; the material parameters include: plate thickness, Young's modulus, Poisson's ratio, and density; and the boundary conditions include: body force, stress constraint, and displacement constraint; Step S2, determining a linear algebraic equation system Ax=b according to the unit data, material parameters, and boundary conditions obtained in step S1, wherein A represents a coefficient matrix and b represents a load vector; Step S3, obtaining the initial solution vector of the linear algebraic equation system Ax=b ; Step S4, using the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , call the preconditioning algorithm to iteratively solve the linear algebraic equation system Ax=b to obtain the solution vector x; Step S5, using the solution vector x to determine the stress solution and displacement solution of the linear algebraic equation system Ax=b; Wherein, the step S4 comprises the following steps: Step S41, obtaining a preconditioning operator M, a restart number m, and an iteration termination error tol, where m is a positive integer; Step S42, based on the coefficient matrix A, load vector b and initial solution vector in the linear algebraic equation system Ax=b , and calculate the residual vector r by the following formula: ; Step S43, calling the preconditioner M, and updating the residual vector r by the following formula: ; Step S44, calculate the 2-norm of the updated residual vector r by the following formula: And based on the residual vector r and its 2 norm , the first Krylov vector is defined by the following formula , and let j=1: ; Step S45, based on the preconditioner M, the Krylov vector and the coefficient matrix A, the first auxiliary vector w is calculated by the following formula: , and in the i loop equals When , the Hessenberg matrix is calculated by the following formula No. The matrix element at position : Then update the first auxiliary vector w by the following formula: And calculated by the following formula and : , ; Step S46, determine whether j is less than the restart number m, if so, set j=j+1 and continue to execute step S45; otherwise, use the least squares method to calculate the second auxiliary vector by the following formula : ,in, Represents an m-dimensional vector whose first element is 1 and the rest are 0, and obtains the Krylov vector space , combined with the second auxiliary vector , initial solution vector , update the approximate solution by the following formula : ; Step S47, determining whether the approximate solution satisfies an iteration termination condition, wherein the iteration termination condition includes at least one of the following: , ; Step S48: When the approximate solution satisfies the iteration termination condition, the approximate solution is directly used as the solution. vector x; Step S49, in the approximate solution If the iteration termination condition is not met, , and continue to execute steps S42 to S47; Wherein, the step S43 includes the following steps: Step S431, based on the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit obtained in step S24, the residual vector r is decomposed into a stress residual vector and a displacement residual vector , and decompose the coefficient matrix A into the energy matrix E determined by the stress degrees of freedom and the divergence operator matrix B determined by the stress degrees of freedom and the displacement degrees of freedom; Step S432, determine the diagonal element matrix D of the energy matrix E, based on the diagonal element matrix D, the stress residual vector , and calculate the first solution vector by the following formula : ; Step S433, based on the divergence operator matrix B and the first solution vector , displacement residual vector , and update the displacement residual vector by the following formula : ; Step S434, based on the divergence operator matrix B and the diagonal element matrix D, the approximate Schur complement matrix is calculated by the following formula: : ; Step S435, based on the approximate Schur complement matrix , the updated displacement residual vector , and calculate the second solution vector by the following formula : ; Step S436, based on the second solution vector , the divergence operator matrix B, the diagonal element matrix D and the first solution vector x1, and the first solution vector x1 obtained in step S432 is updated by the following formula: , and based on the second solution vector , and the second solution vector obtained in step S435 is calculated by the following formula To update: ; 437, based on the overall degrees of freedom of the intrinsic hybrid finite element basis function of the current unit obtained in step S24, the updated first solution vector obtained in step S436 is and the second solution vector Assemble and obtain the updated residual vector r; Wherein, the step S435 may further include the following steps: Step S4351, based on the approximate Schur complement matrix , the second solution vector and the displacement residual vector , and call the polishing algorithm R to update the second solution vector using the following formula: ; Step S4352: determine the interpolation operator of the k-1th order discontinuous Lagrangian space to the linear displacement space of the current unit according to the unit data, and convert the interpolation operator into a matrix form to obtain an interpolation matrix , then based on the interpolation matrix Determine the extension matrix P of the linear displacement space to the k-1 order discontinuous Lagrangian space; Step S4353, based on the extension matrix P and the approximate Schur complement matrix , and the approximate matrix of the approximate Schur complement matrix in the linear displacement space is calculated by the following formula : ; Step S4354, calculate the approximate matrix The inverse matrix , based on the inverse matrix , the second solution vector , the continuation matrix P and the displacement residual vector , and the second solution vector obtained in step S4351 is calculated by the following formula To update: ; Step S4355, call the polishing algorithm R, and use the following formula to calculate the second solution vector obtained in step S4354 To update: .
2. The method according to claim 1, characterized in that: The step S2 comprises the following steps: Step S21, determining the type of boundary conditions, and processing different types of boundary conditions according to a preset processing method to obtain an overall load vector b and a stress constraint equation group Gx=s; Step S22, for each unit, obtain the unit area, multiple integration points and the integration weight of each integration point of the current unit, and calculate the value of the k-order Lagrangian element basis function at the integration point and the value of the k-1-order discontinuous Lagrangian element basis function at the integration point in combination with the unit data and material parameters obtained in step S1; Step S23, obtaining the tensor basis of the two-dimensional symmetric matrix space of the current unit, and combining the value of the k-order Lagrangian basis function at the integration point obtained in step S22 to obtain the value of the intrinsic mixed finite element basis function at the integration point; Step S24, determining the overall degrees of freedom of the intrinsic mixed finite element basis function of the current unit; Step S25, calculating the unit energy matrix using the values of the intrinsic mixed finite element basis function at each integration point on the current unit, and constructing the coefficient matrix A in combination with step S24; Step S26, calculating the derivative value of the k-th order Lagrangian basis function at the integration point, and multiplying it with the tensor basis obtained in step S23 to obtain the div value of the intrinsic mixed finite element basis function at the integration point; Step S27, using the value of the k-1 order discontinuous Lagrangian basis function at the integration point obtained in step S22 and the div value of the intrinsic mixed finite element basis function at the integration point obtained in step S26 to calculate the unit divergence operator matrix, and append it to the coefficient matrix A; Step S28, using the stress constraint equation group Gx=s, the coefficient matrix A obtained by looping steps S22 to S27 and the load vector b obtained in step S21 are processed to obtain a linear algebraic equation group Ax=b.
3. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, it implements the fast method for solving linear elasticity problems based on the intrinsic mixed finite element method as described in any one of claims 1 to 2.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the device where the computer-readable storage medium is located executes the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method as described in any one of claims 1 to 2 by running the computer program.
5. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein when the program is run, the fast method for solving linear elastic mechanics problems based on the intrinsic mixed finite element method as described in any one of claims 1 to 2 is executed.
