Submitted:
07 November 2026
Posted:
24 November 2026
You are already at the latest version
Abstract
Mechanics knowledge should be incorporated into AI models in AI for computational mechanics. However, existing research mostly remains at shallow forms such as governing equation residuals, where mechanical knowledge only plays secondary roles such as guidance, correction, and soft constraints, and thus has not been fully exploited. This paper proposes a data-driven finite element method that applies two layers of deep mechanics priors to the analytical reconstruction of element stiffness matrices, simultaneously achieving the embedding of physical constraints and a great simplification of the prediction parameter scale. The first layer ensures the physical plausibility of the element stiffness matrix through three physical constraints: rigid-body zero-energy, constant-strain consistency, and energy stability. The second layer parameterizes the element stiffness matrix in modal space using parameters with clear physical interpretations, which are divided into fixed parameters completely determined by element geometry and material parameters, and independent parameters predicted by AI models. Based on these priors, a parameterized analytical expression of the element stiffness matrix is derived, so that the AI model only needs to predict a small number of physically meaningful independent parameters to reconstruct high-quality element stiffness matrices satisfying the required physical constraints, thereby realizing the data-driven finite element method. The derivation is not tied to a particular element type and is applicable to both basic elements and high-order elements, providing a universal and easily generalizable methodological paradigm for the prediction of element stiffness matrices. Numerical examples demonstrate that data-driven elements strictly satisfy the three types of physical constraints in rigid-body zero-energy mode tests and patch tests, and are physically plausible. Furthermore, in the MacNeal cantilever beam, Kirsch perforated plate, and Saint-Venant circular rod torsion examples, data-driven elements agree well with standard integration elements under bending, mesh distortion, stress concentration, and mesh refinement conditions, with convergence orders and errors consistent with conventional elements, fully retaining the numerical characteristics of finite element methods.
Keywords:
data-driven
; finite element method
; deep mechanics priors
; element stiffness matrix
; modal space
; physical constraints
1. Introduction
The wave of AI for Science (AI4S) is triggering profound transformations across various disciplines. In research areas such as AI for computational mechanics and AI for PDEs, a consensus is emerging (Wang et al., 2026a; Harandi et al., 2025): AI modeling needs to incorporate necessary physical and mechanical knowledge. Representative works such as PINN (Raissi et al., 2019) and PINO (Li et al., 2024) embody this consensus. However, in numerous AI for computational mechanics modeling studies, the utilization of mechanical knowledge remains merely at shallow forms such as governing equations (Raissi et al., 2019) and mechanical constraint equations. Mechanical knowledge typically plays secondary roles in AI modeling, such as guidance, correction, and soft constraints (Brodnik et al., 2023; Hu et al., 2024; Huang et al., 2025). For example, PINN introduces governing equation residuals into the loss function to guide model training. This study finds that by uncovering deep mechanics priors to fully decompose the original modeling problem from a mechanics perspective, the data-driven modeling task can be greatly simplified (Huo et al., 2025; Linden et al., 2023; Holthusen et al., 2025). This data-driven learning method incorporating deep mechanics priors demonstrates the universality, simplicity, and elegance of mechanics. It also allows neural networks to focus on their primary role as universal function approximators. This paper elaborates on this modeling idea using the finite element method as the object.
The finite element method is one of the most widely used numerical methods for solving partial differential equations (Zienkiewicz et al., 2014). Its convergence, accuracy, and reliability have been fully studied and verified (Babuška and Strouboulis, 2001). However, as problem scales increase and high-order formulations are introduced, the computational cost of finite element analysis in terms of memory consumption and computation time becomes increasingly prominent (Brown, 2010). To alleviate these computational bottlenecks, researchers have proposed various AI-based replacement and enhancement methods. Existing works can be generally divided into two paths: end-to-end replacement and sub-module enhancement (Nath et al., 2024; Vu-Quoc and Humer, 2023; Oishi and Yagawa, 2017). End-to-end replacement refers to directly replacing the traditional finite element analysis process with AI as the solver or surrogate model (Yang et al., 2021; Nie et al., 2020). Sub-module enhancement refers to applying AI to selected sub-modules within the finite element framework (Masi and Stefanou, 2023; Jiao et al., 2024). End-to-end replacement can significantly simplify the PDE solution process, with AI models completing the solution from problem setup to physical field output. However, limited by the generalization capability of AI models, such methods are usually only applicable to specific problem scenarios and are difficult to directly generalize to new structural configurations or boundary conditions (Nath et al., 2024; Sunil and Sills, 2026). In contrast, sub-module enhancement retains the main framework of the finite element method and only applies AI to selected sub-modules, thus offering greater generality (Huang et al., 2024; Wang et al., 2026b; Pantidis and Mobasher, 2023). The classical solution process of the finite element method is shown in Figure 1.
Along the path of sub-module enhancement, existing studies have introduced AI empowerment to the finite element solution process from multiple perspectives (Zhang et al., 2021; Guo et al., 2026). Capuano and Rimoli (2019) proposed a general framework independent of specific machine learning algorithms. Element internal forces were directly predicted from element state vectors, replacing the sub-module of constitutive integration and internal force calculation at the element level. Bishara and Li (2023) used machine learning to assist multiscale homogenization in crystal plasticity, replacing the microscopic RVE solving module. Shoghi and Hartmaier (2026) embedded a kernel learning constitutive model into nonlinear finite element cyclic plasticity analysis. PIML (Huang et al., 2022, 2024) performed sub-module replacement for the classical substructure method. Neural networks were trained offline to establish an implicit mapping from substructure material distribution parameters to condensed stiffness matrices and numerical shape functions. In the online phase, coarse mesh element stiffness matrices were directly constructed and assembled for solution. No labeled data were required throughout the process. The trained mapping was independent of the specific problem’s geometry, boundary conditions, and loads, and could be reused across problems. Ma et al. (2026) further provided a high-performance parallel implementation of this method for large-scale problems. PretrainFEM (Wang et al., 2026b) used governing equations as the information source to pretrain physics-informed neural operators. The predictions were used as initial solutions for classical iterative solvers, accelerating the finite element solution process as a whole.
In the path of sub-module enhancement, considering both the potential benefits of AI integration and model generality, this paper considers that replacing element stiffness matrix computation with AI models has significant potential. The element stiffness matrix is the “constitutive matrix” of an element in the finite element discretization format. In terms of its inputs, it is completely determined by the element’s geometry and physical parameters. It does not depend on load forms, boundary conditions, or design domain shapes. In terms of its outputs, as long as the data-driven element stiffness matrix is mechanically qualified, it can be directly incorporated into standard finite element formulations. The completeness, convergence, accuracy, and reliability of the finite element method can be fully retained. However, the element stiffness matrix is not an arbitrary symmetric matrix. It needs to satisfy various physical constraints. Therefore, how to ensure the physical plausibility of data-driven element stiffness matrices is a core challenge that needs to be solved.
To address this challenge, Jung et al. (2020, 2022) directly predicted the strain-displacement matrix using neural networks and reconstructed the element stiffness matrix. Physical plausibility relied on element-specific correction procedures after prediction and verification through patch tests and zero-energy mode tests. Physical constraints of elements were only approximately satisfied. Li et al. (2026) analytically expressed linear constraints such as rigid-body zero-energy and constant-strain consistency as algebraic relationships between matrix elements through symbolic operations. A few independent stiffness parameters were identified through symbolic Gaussian elimination. These parameters were predicted by the network, and the complete stiffness matrix was recovered through a deterministic reconstruction operator. Constraints were thus exactly satisfied. However, symbolic elimination needed to be performed separately for each element type. The workload increased sharply with the increase in degrees of freedom for high-order elements. Huo et al. (2025) first proposed using deep mechanics priors to deconstruct data-driven modeling problems. They performed eigen-decomposition on the element stiffness matrix. By associating eigenvalues and eigenvectors with rigid-body displacement conditions, the eigenvalues corresponding to rigid-body displacement modes and their eigenvectors were analytically prescribed. The network only needed to predict the remaining eigenvalues and eigenvectors. The reconstructed stiffness matrix strictly satisfied rigid-body displacement conditions. However, the prediction of remaining eigenvalues and eigenvectors was entirely left to the network without any constraints. The mechanical structure of the element stiffness matrix was not further deconstructed. In fact, the mechanical essence of the element stiffness matrix can be further explored, thereby further simplifying its prediction problem.
From the underlying mechanics, the element stiffness matrix is a collection of deformation modes and their modal stiffnesses (Hacker and Schreyer, 1989). Physical plausibility constraints are requirements on the modal structure. Early studies in finite element theory investigated modal structures in considerable depth. Biććanić and Hinton (1979) identified zero-energy modes and parasitic modes through eigen-analysis of two-dimensional isoparametric element stiffness matrices. They revealed the correspondence between matrix spectral structure and element mechanical behavior. Bergan (1980) proposed a construction method for designing elements with a small number of parameters. Energy-orthogonal free formulation was used to decompose element deformation into basic modes and higher-order modes. The stiffness matrix was correspondingly decomposed into basic and higher-order parts. The stiffness of each higher-order mode was characterized by a free parameter. Parameters were specified by the designer, and their values did not affect the passage of patch tests. Hacker and Schreyer (1989) further provided complete eigenpairs for rectangular four-node compatible and incompatible elements. Eigenvectors corresponded to deformation modes such as rigid-body, constant-strain, and bending. Eigenvalues were the stiffnesses of corresponding modes. Following this structural clue, this paper completely reconstructs the element stiffness matrix into analytical expressions of a small number of independent physical parameters based on two layers of deep mechanics priors. The first layer of deep mechanics priors dominates the guarantee of physical plausibility of element stiffness matrices. It is ensured by three types of physical constraints: rigid-body zero-energy, constant-strain consistency, and energy stability. The second layer of mechanical priors dominates the simplification of prediction model scale for element stiffness matrices. The element stiffness matrix has a parameter representation with clear physical meaning in modal space. Its parameters are divided into fixed parameters and independent parameters. Fixed parameters are completely determined by element geometry and material parameters. Independent parameters are predicted by AI models. Taking the plane stress Q4 element as an example, the prediction scale of its element stiffness matrix is only 3 parameters. Therefore, based on deep mechanics priors, this paper obtains a parameterized analytical expression of the element stiffness matrix. Only a small number of physically meaningful independent parameters need to be predicted by AI models. High-quality element stiffness matrices satisfying physical plausibility requirements can be reconstructed. The derivation of this method does not depend on specific element properties. Its computational complexity grows mildly with the increase in element degrees of freedom. It is applicable not only to basic elements such as Q4 and H8, but also to high-order elements. This provides a universal and easily generalizable methodological paradigm for stiffness matrix prediction.
The rest of this paper is organized as follows. Chapter 2 mainly introduces the two layers of deep mechanics priors. The parameterized expression of the Q4 element in modal space and its derivation process are given. The generalization of the method to Q4I, Q8, and H8 elements is finally discussed. Chapter 3 mainly introduces the data-driven finite element method proposed in this paper. This includes the construction of training samples, network architecture and training strategies, and the complete computational process consisting of offline training and online inference. Chapter 4 verifies the physical legitimacy of data-driven elements through rigid-body zero-energy displacement mode tests and patch tests. The MacNeal cantilever beam, Kirsch perforated plate, and Saint-Venant circular rod torsion examples are used to examine accuracy, convergence, and computational efficiency under mesh distortion, stress concentration, and mesh refinement. Chapter 5 summarizes the full paper and discusses future research directions.
2. Parameterization Method of Element Stiffness Matrix Based On Deep Mechanics Priors
2.1. Deep Mechanics Priors I: Three Types of Constraints Ensuring Physical Plausibility of Element Stiffness Matrices
This section considers the four-node element (Q4) in linear elastic plane stress problems. The described method is equally applicable to other types of elements. The element nodes are numbered sequentially from 1 to 4 in a counterclockwise direction, starting from the lower-left corner node. The coordinates of node i are denoted as . The element nodal displacement vector is arranged as , where and are the displacement components of node i along the x and y directions, respectively. The node numbering convention is shown in Figure 2. Since the element stiffness matrix is strictly linear with respect to Young’s modulus E, is taken below to normalize the elastic matrix . Under these conventions, the Q4 element has 8 nodal degrees of freedom. Its stiffness matrix is an symmetric matrix containing 36 independent matrix elements.
According to classical finite element theory (Zienkiewicz and Taylor, 2000), the element stiffness matrix must satisfy the following three types of physical hard constraints: rigid-body zero-energy constraint, constant-strain consistency constraint, and energy stability constraint (Li et al., 2026). These constraints ensure the convergence and numerical stability of finite element computations. The specific forms of these three constraints are as follows:
Constraint 1 (Rigid-body zero-energy constraint). Let be the average of the four node coordinates, i.e., the element centroid coordinates. The nodal displacement matrix of the three rigid-body modes is
where and are the rigid-body translational modes along the x and y directions, respectively. is the rigid-body rotational mode about the element centroid. These three rigid-body modes are linearly independent. Their specific forms are shown in Figure 3. When the element undergoes the above rigid-body motions, no strain energy is stored and no internal nodal forces are generated, i.e.,
Constraint 2 (Constant-strain consistency constraint). When element nodal displacements take any constant-strain (linear displacement) field, the element nodal forces calculated by the discrete equilibrium equation must equal the theoretical nodal forces obtained by consistent integration of the corresponding exact stress field . This constraint is usually tested using the patch test. The nodal displacement matrix of the three constant-strain modes is
where and are the pure tensile modes with and , respectively. is the pure shear mode with . These three constant-strain modes are also linearly independent. Their specific forms are shown in Figure 4. is the theoretical nodal force obtained by consistent integration of the constant stress field along the element boundary, then
Constraint 3 (Energy stability constraint). The strain energy stored in the element must be non-negative. Therefore, is positive semi-definite. Moreover, except for the above three rigid-body modes whose strain energy is zero, the strain energy of all other modes is greater than zero. That is, the null space of is exactly the rigid-body subspace:
Let n be the total number of element nodal degrees of freedom, and m be the number of linearly independent constraint modes. The element stiffness matrix ( is the space of n-th order symmetric matrices). is the nodal value matrix of constraint modes (full column rank). is the right-hand side nodal force matrix corresponding to constraints. When is a symmetric matrix, the linear system is consistent. Its solution constitutes an affine subspace in . The dimension of this subspace, i.e., the number of independent parameters in not subject to constraints, is given by:
(The proof is given in Appendix A.)
For the Q4 element, the constraint mode matrix (3 rigid-body modes and 3 constant-strain modes are linearly independent, full column rank) and . Substituting into Equation (6) gives
That is, among the 36 matrix elements of , 33 elements are eliminated by Constraint 1 (rigid-body zero-energy constraint) and Constraint 2 (constant-strain consistency constraint). Only 3 truly independent parameters remain. In addition, Constraint 3 (energy stability constraint) limits the value range of the 3 independent parameters satisfying the first two constraints, but does not change the number of independent parameters.
Equation (6) is also applicable to other element types. The obtained dimension only depends on the total number of degrees of freedom n and the number of constraint matrix columns m. The above constraints can only determine the number of independent parameters, but do not specify which of the 36 matrix elements these independent parameters are. In the element stiffness matrix, the 3 independent parameters are expressed as a linear combination of the 36 matrix elements. This combination is not unique. More essentially, these 3 independent parameters are only determined mathematically, lacking a mechanical derivation process. Therefore, the next section constructs the modal space and reconstructs the element stiffness matrix in the modal space. The 3 independent parameters are obtained through mechanical derivation.
2.2. Deep Mechanics Prior II: Modal Space Parameterization of Element Stiffness Matrix
This section first presents the final parameterized analytical expression of the element stiffness matrix in modal space, clarifying the derivation objective. The modal construction, orthonormalization, and the derivation process of this expression are then given sequentially. Based on the three types of physical constraints in Section 2.1, the analytical expression of the stiffness matrix of the Q4 element in modal space is
where is the orthonormalized deformation mode matrix. The columns of and are the orthonormalized constant-strain modes and hourglass modes, respectively. The first block matrix contains only the fixed parameter blocks and completely determined by element geometry and material parameters. The three scalar elements , , and in the second block matrix are independent parameters.
The parameterization process of the element stiffness matrix in modal space is shown in Figure 5. The modal construction and orthonormalization are given below sequentially, and formula (8) is derived.
The 8 nodal degrees of freedom of the Q4 element correspond to 8 modes. In addition to the three rigid-body displacement modes and three constant-strain modes in Section 2.1, there are two hourglass modes (Biććanić and Hinton, 1979; Hacker and Schreyer, 1989). Their mode matrix is
where and are the hourglass deformation modes in the x and y displacement directions, respectively. Their specific forms are shown in Figure 6.
This paper constructs the modal space of the Q4 element using the three rigid-body modes, three constant-strain modes, and two hourglass modes as basis vectors. The expression of the element stiffness matrix in modal space is reconstructed. For Q4 elements of general shapes, the above modes are not mutually orthogonal, and the norm of each mode is not equal to one. Orthonormalization processing is required first. According to the centroid convention in Section 2.1, the three rigid-body modes are pairwise orthogonal. Therefore, only normalization is needed
to obtain the orthonormal rigid-body mode matrix. Taking as the reference, let be the orthogonal projection operator onto ,
The constant-strain mode matrix is projected to strip out its rigid-body components. QR decomposition is then performed on the projection result to obtain the orthonormalized constant-strain mode matrix
The following QR decompositions all adopt the convention that the diagonal elements of the upper triangular factor are positive, to ensure the uniqueness of the decomposition result.
The three modes in are all constant-strain modes. They are essentially mixed from the pure tensile modes , and the shear mode after projection. The hourglass mode matrix is generated from in the same way. Let be the orthogonal projection operator onto ,
Then
The two modes in are both hourglass modes. They are essentially mixed from and after projection.
Combining the rigid-body modes, constant-strain modes, and hourglass modes, the complete mode matrix is obtained
Its column vectors constitute an orthonormal basis of . The specific forms are shown in Figure 7.
Separating the rigid-body modes from it, the deformation mode matrix is obtained
In the complete modal space, the modal strain energy matrix is
is the matrix of the strain energy bilinear form under the modal set. Its elements are
The diagonal elements are twice the strain energy stored when the corresponding mode deforms with unit amplitude. The off-diagonal elements are the coupling energy of two modes deforming jointly. Since is the normalized rigid-body mode, from Constraint 1 (rigid-body zero-energy constraint), . Therefore, the coupling blocks between rigid-body modes and between rigid-body modes and deformation modes are identically zero. They do not carry any element deformation information. The non-zero part is only the deformation block in the lower right corner, i.e., the deformation mode strain energy matrix.
Substituting into , we obtain
where is the strain energy block between constant-strain modes, is the coupling energy block between constant-strain modes and hourglass modes, and is the strain energy block between hourglass modes.
In the above equation, and are fixed parameter matrix blocks. Their numerical expressions are completely determined by element geometry and material parameters. They are derived from Constraint 2 (constant-strain consistency constraint). The specific derivation process is given in Section 2.3. is the independent parameter matrix block. Its numerical expression cannot be given. Both and are symmetric matrices. Therefore, the number of undetermined parameters in the second-order symmetric matrix is 3. From Constraint 3 (energy stability constraint), the strain energy matrix in the deformation mode space must be positive definite, i.e., . By the Schur complement criterion, is equivalent to
Therefore, the three undetermined parameters in are not completely independent. They must be constrained by Equation (20). Since the left-hand side of Equation (20) is a second-order positive definite symmetric matrix, Cholesky decomposition can be performed on it
where the three elements , , and of the lower triangular matrix only need positive diagonal elements. They are the independent parameters after satisfying the three types of physical constraints in Section 2.1. Substitution yields .
The modal strain energy matrix has been defined above. Since , it can be inversely solved as . Substituting the block form of and the expression of , the parameterized analytical expression of the element stiffness matrix in modal space is obtained
The particular solution is
The homogeneous solution is
where the particular solution is expanded from the fixed parameter matrix blocks and , containing only element geometry and material parameters. The homogeneous solution is given by the independent parameter part, containing only the 3 independent parameters in Equation (21). The division of fixed parameter part and independent parameter part in Equation (22) corresponds to the two block matrices in Equation (8). Thus, the parameterized analytical expression given at the beginning of this section is obtained.
In summary, the element stiffness matrix is reconstructed in modal space into two parts: the particular solution and the homogeneous solution . The particular solution is completely determined by element geometry and material parameters. The homogeneous solution is uniquely determined by the 3 independent parameters , , and in Equation (21). It is not subject to the rigid-body zero-energy constraint, constant-strain consistency constraint, and energy stability constraint.
2.3. Analytical Expressions of Fixed Parameter Matrix Blocks
This section starts from Constraint 2 (constant-strain consistency constraint) to derive the expressions of the two fixed parameter blocks and . Their explicit expressions are given, where the derivations of and are given in Appendices B.1 and B.2, respectively. In Constraint 2, , where each column of is the nodal force obtained by consistent integration of the constant stress field along the element boundary. According to the principle of virtual work, for any nodal displacement vector , multiplying both sides of this equation by on the left and using the virtual work expression of consistent nodal forces, we obtain
On the other hand, for the constant-strain mode matrix , the strain of its three modes is . The integrand on the right-hand side of Equation (25) can be simplified as
Substituting Equation (26) into Equation (25) and combining, we obtain
Equation (27) establishes the virtual work identity between constant-strain modes and arbitrary nodal displacements. It is the common starting point for deriving and .
From Equation (12), . Orthonormalization does not change the column space. Therefore, and span the same constant-strain subspace. The columns of can be linearly expressed by the columns of . That is, there exists a coefficient matrix such that
Taking the strain on both sides of Equation (28): the strain operator is a linear mapping for the displacement field. The coefficient matrix can be directly extracted. Since is the projection onto the orthogonal complement of the rigid-body subspace, the strain of rigid-body displacement is zero. Therefore, projection does not change the strain field, . Substitution gives
That is, is the strain amplitude matrix of the orthonormal constant-strain modes. is uniquely determined by the orthonormality of : substituting into the orthonormality condition , from Equation (11), has symmetry () and idempotency (), we obtain
Let be the Gram matrix of constant-strain modes after rigid-body projection. Then Equation (30) gives . Taking the inverse of both sides, we have , i.e.,
Therefore, under the convention that QR decomposition diagonal elements are positive, is the upper triangular Cholesky factor of . Following the node numbering and coordinate conventions in Section 2.1, let the element centroid and second-order central moments be
and let . Comparing element by element for , the upper triangular factor is obtained as
Its explicit derivation is given in Appendix B.1. For square elements (, ), degenerates to the diagonal matrix .
Finally, a projection property used twice later is given. Since is already orthogonal to the rigid-body modes, with the help of Constraint 1 (), the rigid-body projection operator can be eliminated in the quadratic form containing : from , we have
Taking the transpose of both sides of Equation (34), since and are both symmetric matrices, we obtain . Thus
Strain energy block of constant-strain modes : Substituting Equation (28) into and using Equation (35) to eliminate the projection operator, we obtain
In Equation (27), taking as the constant-strain mode matrix , since ,
where is the element area. Substituting Equation (37) into Equation (36), we obtain
Since has been explicitly given by nodal coordinates, is completely determined by nodal coordinates and material parameters.
Coupling strain energy block between constant-strain and hourglass modes : Substituting Equation (28) into and using from Equation (35) to eliminate the projection operator, we obtain
In Equation (27), taking as the hourglass mode matrix , its strain integral is , thus
where is the strain integral matrix of hourglass modes. Substituting Equation (40) into Equation (39), we obtain
From and the strain-displacement relationship , we have , where is the element integral of the strain-displacement matrix. It can be transformed into an explicit expression of nodal coordinates by the divergence theorem. Let the antisymmetric nodal coordinate combinations be
and , whose derivation is given in Appendix B.2.
Thus, the coupling block is completely determined by nodal coordinates and material parameters.
In summary, the calculation of fixed parameter blocks and only requires nodal coordinates and material parameters: the central moments are calculated by Equation (32) to obtain (Equation (33)); is calculated from nodal coordinates by Equation (42); substituting into Equations (38) and (41) gives and . The entire process only involves the element’s nodal coordinates and material parameters.
2.4. Generalization of the Method to Different Element Types
The previous derivation was carried out using the Q4 element as an example. The entire derivation only used the mathematical structure of physical constraints, the constructive definition of modal matrices, and the linearity of the strain operator. It did not involve specific element properties. Therefore, it is equally applicable to the two-dimensional incompatible element Q4I, the two-dimensional eight-node element Q8, and the three-dimensional eight-node element H8. All four types of elements satisfy the three types of physical constraints. The element stiffness matrix can be reconstructed and independent parameters can be obtained by constructing the corresponding modal space. The number of parameters varies with the element degrees of freedom. The specific numbers are shown in Table 1.
In the table, n is the element nodal degrees of freedom, m is the number of linearly independent constraint modes, including rigid-body modes and constant-strain modes (for two-dimensional problems ; for three-dimensional problems ). The number of remaining deformation modes is
From the block structure in Section 2.3, only the hourglass-hourglass block in the modal stiffness matrix contains independent parameters. The number of its independent elements is the number of truly free parameters among the independent elements of the element stiffness matrix . The remaining elements are analytically determined by the modal matrix and the fixed parameter blocks and . The derivation process of fixed parameter blocks is the same for all types of elements: the relationships of the form and are derived from Constraint 2 through the virtual work equation. The element stiffness matrix is then reconstructed through . The dimensions and modal contents of the quantities in the equations vary with element types, but the derivation steps and formula structure remain unchanged.
The differences among the four types of elements are reflected in the following aspects: Q4I is the form of Wilson incompatible element after internal degrees of freedom condensation. Its nodal degrees of freedom n, constraint mode number m, and deformation subspace dimension are the same as Q4 (both have 3 independent parameters). The difference only lies in that the incompatible element mechanism makes the values of independent parameters different from Q4. Q8 is an eight-node quadrilateral (second-order element) with and . In addition to the 2 bilinear hourglass modes of the same type as Q4, there are 8 higher-order (quadratic) modes in its deformation subspace. Their forms are shown in Figure 8. The total number of independent parameters is 55. H8 is a three-dimensional eight-node trilinear hexahedron with , , and . Its modal types (rigid-body, constant-strain, hourglass) are the same as two-dimensional elements. Only the number of each type of mode increases correspondingly due to the increase in spatial dimension. The total number of independent parameters is 78. In summary, the method in this paper is applicable to elements of different dimensions, different orders, and compatible/incompatible types under a unified framework. The differences among various types of elements are only characterized by the deformation subspace dimension , corresponding modes, and the number of independent parameters.
3. Data-Driven Finite Element Method
3.1. Overall Method
From the reconstruction results in Section 2.2, the element stiffness matrix can be expressed as two parts: the particular solution and the homogeneous solution:
where the particular solution is completely determined by the analytical formulas in Section 2.3 from element geometry and material parameters. is the lower triangular Cholesky factor defined in Equation (21). Thus, among the 36 independent elements of the Q4 element stiffness matrix, 33 are analytically determined by the modal matrix and fixed parameter blocks. Only the 3 independent parameters in remain to be determined. At the same time, the reconstruction structure of Equation (44) automatically satisfies the three types of physical constraints: the modal matrix is orthogonal to the rigid-body modes, so always holds; the particular solution satisfies the constant-strain consistency condition, and the homogeneous solution is orthogonal to the constant-strain modes (), so always holds; when the diagonal elements of are always positive, the Schur complement is positive definite. Combined with the positive definiteness of the fixed blocks, . Therefore, is positive semi-definite and its null space is exactly the rigid-body subspace. Thus, the learning object of the network is reduced from 36 stiffness matrix elements to 3 independent parameters. The prediction error of the network only affects the approximation accuracy of the stiffness matrix and will not produce results that violate physical laws.
However, although the three types of physical constraints do not limit the specific values of each element of , their values cannot be arbitrarily selected: for a given element, is uniquely determined by geometric shape and material properties. It is an implicit function of element geometric parameters and material parameters. Its value is implied in the numerical integration of the element stiffness matrix and cannot be given explicitly. Therefore, this paper adopts a data-driven method to approximate this functional relationship with neural networks.
In the traditional finite element computation process, the element-by-element numerical integration of element stiffness matrices is repeatedly performed with the number of elements. It is one of the main time-consuming steps in the overall computation. The method in this paper performs sub-module-level replacement of the finite element process: preprocessing, global stiffness matrix assembly, boundary condition application, and equation solving remain unchanged. Only the computation of element stiffness matrices is replaced by predicting independent parameters with neural networks and reconstructing according to analytical formulas. Thus, computational acceleration of this step is achieved without changing the overall finite element solution framework. Since the reconstruction only depends on the current element’s geometry and material parameters, the reconstructed stiffness matrix is still assembled according to the standard finite element process. Data-driven elements maintain the locality, reusability, and assemblability of traditional finite elements and can be directly applied to different finite element models.
Let the element geometric parameter and material parameter vector be (the specific form is given in Section 3.2), and the independent parameter vector be ℓ. The data-driven problem is reduced to learning the nonlinear mapping
where is the unknown mapping. This paper uses a multilayer perceptron with parameters to approximate this mapping. Furthermore, the analytical reconstruction process of Equation (44) is defined as the stiffness matrix reconstruction operator : it takes independent parameters and element parameters as input, calculates fixed parameter blocks by the formulas in Section 2.3, assembles the free block from independent parameters, and outputs the complete element stiffness matrix. Thus, the stiffness computation of data-driven elements is expressed as the composition of network mapping and analytical reconstruction
The reconstruction operator is a deterministic analytical mapping without trainable parameters. The learning task of the network is concentrated on the low-dimensional mapping . Physical constraints are guaranteed by the construction of .
The mapping does not need to learn the absolute position, orientation, and size of elements separately. The element stiffness matrix only undergoes orthogonal similarity transformation under rigid-body translation and rotation of nodal coordinates. The independent parameters remain unchanged. Its dependence on Young’s modulus E and thickness t is linearly homogeneous. Based on this property, any element configuration can be normalized to a unified canonical configuration: node 1 is fixed at the origin, the edge from node 1 to node 2 is along the x-axis direction with length 1, and . The specific definition of the canonical configuration is given in Section 3.2. Offline training only needs to sample in the parameter space of the canonical configuration. During online inference, the actual element is first mapped to the canonical configuration through orthogonal transformation and scaling. After prediction and reconstruction, it is transformed back to the stiffness matrix of the actual element through inverse transformation.
Based on the above ideas, the data-driven finite element method constructed in this paper includes two stages: offline training and online inference. The overall process is shown in Figure 9.
Offline training stage is completed on sample elements, including the following four steps:
- Parameter sampling. Randomly sample the material parameters and geometric parameters of elements within a given range. Degenerate and distorted elements are eliminated through geometric legitimacy testing. Parameter samples () are obtained;
- Reference stiffness matrix generation. For each parameter sample, the reference stiffness matrix is calculated by Gauss numerical integration according to the standard isoparametric finite element method;
- Independent parameter extraction. Construct the modal matrix according to the modal decomposition method in Chapter 2. Calculate the fixed parameter blocks and hourglass blocks from . Then extract the independent parameter labels through Cholesky decomposition in Equation (21);
- Network training. Using the parameter vector as input and the independent parameters as labels, the multilayer perceptron is trained by fitting.
Online inference stage is oriented to actual finite element computation, including the following five steps:
- Map the element to be solved to the canonical configuration through rigid-body translation, rotation (orthogonal transformation), and scaling. Normalize Young’s modulus and thickness. Construct the parameter vector from the nodal coordinates and material parameters of the canonical configuration;
- Input into the trained network to obtain the predicted independent parameters ;
- Calculate the fixed parameter blocks by the analytical formulas in Section 2.3, and assemble the free block from . Reconstruct the element stiffness matrix in the canonical configuration according to Equation (44);
- Scale the stiffness matrix according to Young’s modulus and thickness, and transform it back to the local coordinate system of the actual element through the inverse transformation of orthogonal transformation to obtain the actual element stiffness matrix;
- Assemble the reconstructed stiffness matrix into the global stiffness matrix according to the standard finite element process, apply boundary conditions, and solve the displacement field.
The above framework does not depend on the specific properties of Q4 elements. It can be directly extended to Q4I, Q8, H8 and other elements. The process remains unchanged. Only the dimensions of the parameter vector and independent parameters vary with element types (see Table 1 in Section 2.4). For convenience of description, the corresponding data-driven elements obtained by the method in this paper are denoted as DD-Q4, DD-Q4I, DD-Q8, and DD-H8, respectively, to distinguish them from the reference elements of the same name using standard isoparametric integration.
3.2. Training Sample Construction
The construction of training samples is the foundation of the offline stage. It includes four parts: element parameterization, parameter sampling and geometric quality control, reference stiffness matrix calculation, and independent parameter label extraction. As described in Section 3.1, using the rigid-body motion invariance of the element stiffness matrix and the linear homogeneity with respect to Young’s modulus and thickness, all samples can be constructed under a unified canonical configuration. The Q4 and Q8 elements in the canonical configuration are shown in Figure 10.
(1) Element canonical configuration and input parameters
In the canonical configuration, the coordinates and material parameters of nodes 1 and 2 are taken as
Thus, the shape of the Q4 element is completely determined by the coordinates and of nodes 3 and 4. Together with Poisson’s ratio , they form the input parameter vector
During online inference, for any actual element in the mesh, the input parameter vector is first constructed according to its nodal coordinates, Young’s modulus, and thickness. It is then mapped to the equivalent parameters in the canonical configuration. After the network predicts the independent parameters, the stiffness matrix of the actual element is restored according to the inverse coordinate transformation.
(2) Parameter sampling and geometric quality control
Latin hypercube sampling is used for each parameter within a given interval. The sampling intervals for Poisson’s ratio and nodal coordinates are
Quadrilaterals generated according to the above intervals may be degenerate or severely distorted. In finite element computation, the Jacobian matrix of such configurations is close to singular. The corresponding stiffness matrices do not have training value. Therefore, geometric quality control is applied to candidate configurations. Only samples that simultaneously satisfy the following conditions are retained:
- The quadrilateral is strictly convex and nodes are arranged counterclockwise, i.e., the cross products of adjacent edge vectors are all positive;
- All four interior angles are greater than ;
- The ratio of the longest edge to the shortest edge length does not exceed 4;
- The Jacobian determinant at each integration point of numerical integration satisfies .
Candidate configurations that do not satisfy the above conditions are directly eliminated. Supplementary sampling is performed in the same way until N legal samples are obtained. This strategy ensures that the training set covers various legal configurations from near-rectangular to significantly distorted, while excluding numerically unreliable degenerate samples.
(3) Calculation of reference stiffness matrix
For parameter samples that pass quality control, the reference stiffness matrix is calculated by Gauss numerical integration according to the standard isoparametric finite element method: Q4 uses bilinear shape functions and integration format. Q8 uses quadratic serendipity shape functions and integration format. The coordinates of the four edge mid-node required for reference stiffness calculation are directly given by the midpoints of corner node connections. The reference stiffness of Q4I is given by Wilson incompatible element. Incompatible internal modes are introduced in addition to the bilinear displacement field. Static condensation is performed on internal degrees of freedom to obtain the condensed stiffness matrix. The sampling method of Q4I and Q4 is the same. The difference only lies in that the reference stiffness includes the contribution of incompatible modes, so the values of independent parameters are different.
(4) Extraction of independent parameter labels
For each reference stiffness matrix, independent parameter labels are extracted based on the parameterization method in modal space: rigid-body modes, constant-strain modes, and hourglass modes are constructed from element nodal coordinates. After orthonormalization to obtain the modal matrix, is transformed to modal space. The fixed parameter blocks are given by the analytical formulas in Section 2.3. The Schur complement in the free block is uniquely determined by Cholesky decomposition in Equation (21). The elements of the lower triangular factor form the independent parameter labels
Since the Cholesky factor of a positive definite matrix is unique and the diagonal elements are always positive, the labels correspond one-to-one with the reference stiffness matrix. There is no sign ambiguity. It should be pointed out that the hourglass mode basis is generated from fixed initial vectors through orthogonal projection and orthonormalization. This construction method does not depend on the specific geometry of samples. It ensures that the modal bases of different samples change continuously with geometry and have consistent directions. Thus, the meanings of labels of each sample are unified and mutually comparable.
Through the above steps, parameter samples, reference stiffness matrices, and independent parameter labels correspond one-to-one, forming the training dataset
The sample construction idea of H8 elements is consistent with two-dimensional elements. The difference is that the configuration parameters are extended to three dimensions: the bottom quadrilateral is sampled according to the two-dimensional canonical configuration. Tangential offsets and thickness are applied to the top nodes relative to the corresponding bottom nodes, forming an 18-dimensional input parameter vector. The reference stiffness matrix is calculated by Gauss integration according to trilinear shape functions. After modal decomposition, 78 independent parameter labels are extracted.
3.3. Network Structure and Training
This paper uses a fully connected feedforward neural network to approximate the mapping . The network does not directly predict the complete element stiffness matrix. It only outputs the predicted independent parameters . The complete stiffness matrix is then analytically reconstructed by the reconstruction operator in Section 3.1. The overall network architecture is shown in Figure 11.
The l-th hidden layer of the network uses ReLU activation. Taking the Q4 element as an example, the network input is a 5-dimensional parameter vector , and the output is 3-dimensional independent parameters. There are two hidden layers with widths of 128 and 64, respectively. The input and output dimensions of Q4I are the same as Q4, and the same network structure is used. Q8 outputs 55 independent parameters. The input and output of H8 are 18-dimensional and 78-dimensional, respectively. Both have three hidden layers with widths of 256, 256, and 128.
For a training set containing N samples, the mean square error loss is defined in the independent parameter space
where is all trainable parameters of the network. The Adam optimizer is used for training. The learning rate is and the batch size is 256. Q4 and Q4I are trained for 300 epochs. Q8 and H8 are trained for 600 epochs. The training set and validation set are randomly divided in an 8:2 ratio. To ensure the energy stability of the reconstructed matrix, the network output layer applies softplus activation to the diagonal elements of the Cholesky factor. This constructively guarantees . Since the complete stiffness matrix is analytically given by the reconstruction operator, physical constraints are strictly satisfied by the construction method. There is no need to introduce additional penalty terms in the loss function. The training and validation loss convergence curves of the four types of elements are shown in Figure 12.
From Figure 12, it can be seen that the validation loss magnitude of the three-dimensional H8 element is significantly higher than the other three types of two-dimensional elements. This difference stems from the fact that the numerical magnitude of independent parameters to be predicted for H8 elements is larger than that of two-dimensional elements. The absolute error of network output is correspondingly amplified under the MSE metric. After 300 epochs of training for Q4 and Q4I and 600 epochs for Q8 and H8, the validation loss has stabilized. Subsequent numerical example tests show that all data-driven elements have achieved accuracy levels comparable to standard isoparametric integration elements. Therefore, the training epochs were not further extended until the loss completely converged.
4. Numerical Examples
4.1. Rigid-Body Zero-energy Mode Test
The rigid-body zero-energy mode test is used to verify whether the element stiffness matrix satisfies Constraint 1 (rigid-body zero-energy constraint) and Constraint 3 (energy stability constraint). The stiffness matrix of two-dimensional elements should have exactly 3 zero eigenvalues, corresponding to two translational modes and one in-plane rotational mode. Three-dimensional elements should have exactly 6 zero eigenvalues, corresponding to three translational modes and three rotational modes. All other eigenvalues should be positive. More zero eigenvalues than the theoretical number indicates the existence of spurious zero-energy modes. Fewer zero eigenvalues than the theoretical number indicates that rigid-body motion modes are incorrectly assigned stiffness. Two general-shaped two-dimensional quadrilateral configurations and two three-dimensional hexahedral configurations are selected as test geometries, as shown in Figure 13. The two-dimensional configurations are used for Q4, Q4I, and Q8 elements simultaneously: Q4 and Q4I take the four corner points of the quadrilateral, and Q8 also includes the mid-nodes of the four edges. The three-dimensional configuration is used for H8 elements. The figure labels the node numbers and complete coordinates of each node.
The test elements take Young’s modulus and Poisson’s ratio . For each type of element, independent parameters are predicted by the trained network. The complete element stiffness matrix is reconstructed in modal space. All eigenvalues are calculated and arranged in ascending order. is used as the relative criterion for near-zero eigenvalues. The number of near-zero eigenvalues is counted. The one with the largest absolute value and the first non-zero eigenvalue are recorded. The test results of each data-driven element are shown in Table 2. The theoretical zero-energy mode numbers of two-dimensional elements are all 3, and those of three-dimensional elements are 6.
The results show that the number of near-zero eigenvalues of all data-driven elements is consistent with the theoretical rigid-body mode numbers. Under the two shapes (a) and (b), DD-Q4, DD-Q4I, and DD-Q8 all have exactly 3 near-zero eigenvalues. Under the two shapes (c) and (d), DD-H8 has exactly 6 near-zero eigenvalues. The absolute values of the near-zero eigenvalues are in the order of . The first non-zero eigenvalue is not less than the order of . The two differ by about 14 orders of magnitude. The separation between rigid-body modes and deformation modes is clear. These near-zero eigenvalues can be attributed to the rounding error of floating-point operations. No additional spurious zero-energy modes appear. The above null space properties hold under irregular geometries such as two arbitrary quadrilaterals and arbitrary hexahedra. This shows that data-driven elements maintain good satisfaction of Constraint 1 (rigid-body zero-energy constraint) and Constraint 3 (energy stability constraint).
4.2. Patch Test
The patch test is used to verify whether the element stiffness matrix satisfies Constraint 2 (constant-strain consistency constraint). Its basic principle is as follows: a linear displacement field corresponds to a uniform constant-strain state within each element. If this linear displacement field is applied to all boundary nodes of a group of element patches, and the discrete response of each element in the patch to the constant-strain state is exact, then the displacements of all internal nodes should be consistent with the linear displacement field point by point.
The standard patch test configuration proposed by MacNeal and Harder (1985) is adopted, as shown in Figure 14. The outer boundary of the patch is a rectangle of . The internal 4 nodes are arranged at irregular positions specified by the standard. The patch is divided into 5 general quadrilaterals, including 4 peripheral elements and 1 central element. All elements are non-parallelograms. Some elements are significantly distorted. The minimum interior angle in the patch is about . The patch of Q4 and Q4I elements consists of 8 corner nodes, of which 4 are boundary nodes and 4 are internal nodes. Q8 elements use exactly the same corner node division. Midpoints are taken on each edge to supplement 12 edge mid-nodes, totaling 20 nodes.
In the test, the same linear displacement field is applied to both displacement directions of all boundary nodes
It corresponds to the constant-strain state with , , and . After solving the overall equilibrium equation of the patch, the displacement components of all internal nodes are compared point by point with the theoretical values in Equation (53). The relative error is calculated based on the absolute value of the theoretical displacement at that point. Since the boundary displacements are all given and the equilibrium equation is homogeneous with respect to material constants, the test result is independent of material constants. The standard given values and are used in the calculation.
The theoretical displacements of each node of the central element, the calculated displacements of data-driven elements, and the total displacement errors are listed in Table 3 and Table 4. The displacement components are all multiplied by . The node numbers are consistent with Figure 14. Nodes 1 to 4 are corner nodes, and nodes 5 to 8 are edge mid-nodes. The results show that even though some elements in the patch are significantly distorted with a minimum interior angle of about , the calculated displacements of each internal node still agree well with the theoretical values. The relative errors are in the order of . This shows that data-driven elements can pass the first-order plane stress patch test. They can accurately reproduce the given linear displacement field and strictly satisfy Constraint 2 (constant-strain consistency constraint).
The constant-strain patch test of three-dimensional H8 elements also adopts the standard solid patch configuration of MacNeal and Harder (1985). As shown in Figure 15, the outer domain is a unit cube. In addition to the 8 outer corner points, 8 internal nodes are arranged at positions specified by the standard. The domain is divided into 7 distorted hexahedra: 1 central element composed of all internal nodes, and peripheral elements respectively fitting the 6 outer surfaces of the cube.
A three-dimensional linear displacement field is applied to the 8 outer corner points of the cube
It corresponds to a uniform three-dimensional constant-strain state where all six engineering strain components , , , , , and are . The 8 internal nodes are unconstrained and solved by the overall equilibrium equation. The theoretical displacements of each node of the central element, the calculated displacements of DD-H8, and the total displacement errors are listed in Table 5. The displacement components are all multiplied by . The node numbers are consistent with Figure 15. The calculated values agree well with the theoretical values. The relative errors are in the order of . This shows that DD-H8 can pass the first-order three-dimensional solid patch test. It can accurately reproduce the given linear displacement field and also strictly satisfy Constraint 2 (constant-strain consistency constraint).
4.3. MacNeal Cantilever Beam
To investigate the sensitivity of data-driven elements to mesh distortion in bending-dominated problems, the straight cantilever beam standard example proposed by MacNeal and Harder (1985) is adopted. The beam length is , height is , and thickness is 1. Material parameters are and . The left end is fixed and the right end is free. The beam is divided into 6 elements along the length direction and only 1 element along the thickness direction. Three meshes are examined: regular rectangular mesh I, parallelogram mesh II, and trapezoidal mesh III. Two types of loads are applied at the free end: a downward concentrated force acting on the upper endpoint A, and a clockwise end moment . The latter is realized by a pair of opposite horizontal forces at the upper and lower nodes of the right end. The Euler–Bernoulli beam theory solution is used as reference. The vertical displacements at point A under concentrated force and end moment are and , respectively. Since this example is dominated by bending deformation, it is very sensitive to element bending performance and mesh distortion. The geometric shapes and load application methods of the three meshes are shown in Figure 16.
The vertical displacements at point A of the cantilever beam under two loads and three meshes are listed in Table 6. The displacement values are all multiplied by . The vertical displacement fields of each element under regular mesh I are shown in Figure 17 and Figure 18. The left side shows the standard isoparametric integration forms of Q4, Q4I, and Q8. The right column shows the corresponding data-driven elements.
The results show that the numerical characteristics of data-driven elements are consistent with those of the corresponding standard isoparametric integration elements. DD-Q4 exhibits overly stiff behavior. Under concentrated force, the displacement at point A of regular mesh I is 28.6% of the theoretical value. Mesh distortion further reduces it to 12.3% of the theoretical value. This result is the same as standard Q4, reflecting the typical shear locking performance when only one bilinear element is arranged in the thickness direction. After introducing incompatible internal modes, the bending performance of DD-Q4I is improved. On regular mesh I, the deviations of displacement at point A under concentrated force and end moment from the theoretical solution are 0.1% and 0.5%, respectively. On parallelogram mesh, it is 89.7% of the theoretical value. Under trapezoidal mesh, it is only 16.3% of the theoretical value. The results of DD-Q4I under various meshes are highly close to standard Q4I. The deviations of standard Q4I under two loads on regular mesh I are 0.4% and 0%, respectively. On parallelogram mesh, it is 88.9% of the theoretical value. Under trapezoidal mesh, it is 16.3%. This shows that DD-Q4I reproduces the mesh dependence of the classical Wilson incompatible element. That is, the improvement of bending performance by incompatible modes depends on mesh shape. The displacements at point A of DD-Q8 under three meshes are all close to the theoretical solution, consistent with the performance of standard Q8. In general, the results of all data-driven elements agree well with the corresponding standard isoparametric integration elements. They also reproduce the accuracy characteristics of standard isoparametric integration elements under different meshes. Physical constraints ensure the physical plausibility of elements. The numerical characteristics of elements under bending distortion conditions are inherited from the element stiffness matrices given by standard isoparametric integration in the training data. The displacement field distributions in Figure 17 and Figure 18 also show that data-driven elements give basically consistent deformation shapes with standard isoparametric integration elements under both loads.
4.4. Kirsch Perforated Plate
To verify the convergence of data-driven elements under mesh refinement, the Kirsch problem of an infinite plate with a circular hole under far-field uniaxial tension (Zienkiewicz and Taylor, 2000) is adopted in this section. Using symmetry, a quarter model of the first quadrant is taken. The hole radius is . The outer boundary is a rectangle with side length . Material parameters are elastic modulus and Poisson’s ratio . According to the plane stress assumption, the thickness is . Symmetric constraints and are applied to the left boundary and lower boundary , respectively. The hole edge is a free boundary. The surface force given by the Kirsch exact solution is applied to the right boundary and upper boundary of the rectangle. Both the displacement field and stress field of this problem have analytical solutions. The coordinates of point B at the top of the hole are . It is the stress concentration point. Its x-direction stress is the stress value corresponding to the stress concentration coefficient. The theoretical solution is , where is the far-field tensile stress. The stress concentration coefficient is . The geometric configuration and boundary conditions of the example are shown in Figure 19.
The mesh uses polar coordinate mapped meshes with elements. takes , , , and , corresponding to four different numbers of meshes. The convergence of data-driven elements is examined from three aspects: the stress concentration coefficient at point B, the relative error of displacement field, and the relative error of stress field. The integration points for displacement and stress errors are taken at the Gauss integration points of each element. The stress concentration coefficient is given by the area-weighted average stress at the hole top node, i.e., . Figure 20 shows the division of the mesh. Other meshes are refined according to the same topology.
Table 7 lists the stress concentration coefficients of each element under four different mesh numbers. The relative error of for DD-Q4 decreases from 47.4% for the mesh to 13.3% for the mesh. DD-Q4I decreases from 47.3% to 13.3%. DD-Q8 decreases from 48.1% to 13.6%. The stress concentration coefficient errors of all three data-driven elements decrease monotonically with mesh refinement. They are basically consistent with the error magnitude and convergence speed of the corresponding standard isoparametric integration elements.
Figure 21 shows the comparison of error convergence curves of the three elements. It can be seen that the curves of data-driven elements and the corresponding standard elements almost coincide.
Table 8 lists the relative errors of displacement and stress. In terms of displacement error, DD-Q4 and DD-Q4I decrease from 0.796% and 0.711% under the mesh to 0.037% and 0.024% under the mesh, respectively. The convergence order gradually increases from 1.0 to 1.8, showing a trend of transition from first-order to second-order. The displacement error of DD-Q8 decreases from 0.196% to 0.006%, with a convergence order of 1.7. Affected by the stress singularity at the hole edge, it is lower than the theoretical third-order convergence of displacement for quadratic elements. In terms of stress error, DD-Q4 and DD-Q4I decrease from 4.2% to 0.98%, with a convergence order of 0.7. DD-Q8 decreases from 2.04% to 0.28%, with a convergence order of 1.0. Affected by the stress singularity at the hole edge, the stress convergence orders of all elements are lower than their theoretical values. The maximum displacement deviation of the three data-driven elements relative to the corresponding standard isoparametric integration elements is less than 0.07%. The maximum stress deviation is less than 0.27%. This shows that data-driven elements maintain high consistency with standard isoparametric integration elements during the convergence process.
Figure 22 shows the convergence curves of relative errors of displacement and stress with mesh refinement. The curves of data-driven elements almost coincide with the corresponding standard isoparametric integration elements. The slopes are consistent. This shows that data-driven elements fully inherit the convergence orders and error magnitudes of the corresponding elements. The displacement and stress errors of Q8 elements are significantly lower than those of Q4 and Q4I. The stress convergence order is also higher. This reflects the advantage of quadratic elements in stress concentration problems. Compared with Q4, the displacement accuracy of Q4I is improved, while the stress accuracy of the two is equivalent. This shows that the improvement of stress accuracy by incompatible internal modes is limited.
Figure 23 shows the displacement and stress field contours of data-driven elements and the corresponding standard isoparametric integration elements under the finest mesh . The contours of each data-driven element are basically consistent with the corresponding standard isoparametric integration element. The distribution shapes and gradient characteristics in the stress concentration region at the hole top agree well. This further verifies the stress calculation accuracy of data-driven elements in stress concentration problems.
In summary, data-driven elements inherit the convergence characteristics of the corresponding standard isoparametric integration elements in this example, including convergence orders and error magnitudes. Whether in the stress concentration coefficient at the stress concentration point or in the prediction of displacement and stress, data-driven elements maintain high consistency with standard isoparametric integration elements. This verifies the reliability of the data-driven finite element method in stress concentration problems.
4.5. Saint-Venant Torsion Problem
This section uses the Saint-Venant circular rod torsion problem to verify the calculation accuracy of data-driven H8 elements in three-dimensional torsion problems. The cross-section radius of the circular rod is and the length is . Material parameters are elastic modulus and Poisson’s ratio . The end at is fully fixed, and a torque is applied at the end . The nodal forces at the end face are applied in a statically equivalent manner. The tangential force components are and , where x and y are the coordinates of nodes relative to the cross-section center. The coefficient c is determined by the resultant moment at the end face equal to the applied torque. No nodal force is applied in the w direction to allow free deformation of the end face. The exact solution of the torsion angle at the free end face is given by Saint-Venant torsion theory: , where the shear modulus is and the torsion constant of the circular cross-section is . Substituting the parameters gives rad. The geometric configuration and boundary conditions of the example are shown in Figure 24.
The example uses structured hexahedral meshes generated by Fischer mapping. This mapping transforms the parameter domain into a circular cross-section. Boundary nodes fall exactly on the circumference. The shapes of internal elements gradually distort from the center to the edge. Three different scales of meshes are set up. The cross-sections are discretized into , , and , respectively. The axial element numbers are taken as 40, 80, and 160 according to the principle that the element aspect ratio is close to 1. The mesh division is shown in Figure 25.
Table 9 lists the calculation results of the torsion angle at the free end face of the circular rod under three different mesh scales. The torsion angle of the standard isoparametric integration H8 element converges from 0.055875 rad for the mesh to 0.053326 rad for the mesh. The error relative to the exact solution decreases from 5.5% to 0.7%, converging to the exact solution with mesh refinement. The torsion angle calculation results of data-driven H8 elements under three meshes are also good. Under the mesh, the error of the data-driven element relative to the exact solution is 4.1%. It decreases to 1.4% under the mesh. Under the mesh, the error is only %. With mesh refinement, the error of data-driven elements decreases rapidly. They converge to the same exact solution as standard isoparametric integration elements. This shows that data-driven H8 elements have comparable calculation accuracy with standard isoparametric integration H8 elements.
Figure 26 shows the displacement contours of standard isoparametric integration H8 elements and data-driven H8 elements under two mesh scales.
In summary, data-driven H8 elements have comparable calculation accuracy with standard isoparametric integration elements in the Saint-Venant torsion problem. This verifies the effectiveness of the data-driven finite element method in three-dimensional problems.
4.6. Computational Efficiency Analysis
The method in this paper replaces the sub-module of element stiffness matrix calculation with a data-driven surrogate model. Therefore, the improvement ratio in computational efficiency depends on the length of time consumed by element stiffness matrix calculation in specific computational mechanics methods. The classical finite element method is the foundation of many related computational methods. Nonlinear FEM (NFEM), Finite Cell Method (FCM), Multiscale FEM (MsFEM), and FE2 all follow its basic framework of element construction, stiffness matrix assembly, and equation solving. Moreover, the physical constraints of the classical finite element method are clear and its numerical characteristics have been fully studied. Therefore, this paper uses the classical finite element method as an example to demonstrate the deconstruction idea of element stiffness matrices. However, it must be admitted that the time consumed by element stiffness matrix calculation in the classical finite element method is relatively short. The surrogate model has not yet achieved computational advantages in this sub-module.
First, the comparison of element time consumption under the two implementations is shown. To make the comparison unaffected by the program operation mode, both data-driven elements and standard isoparametric integration elements use element-oriented batch vectorized computation of element stiffness matrices. The computation time of this sub-module is counted, excluding the time of global stiffness matrix assembly and equation solving. The timing results under four meshes of the Kirsch example are listed in Table 10. Let the time consumption ratio be , where and are the element stiffness matrix calculation times of standard isoparametric integration elements and data-driven elements, respectively. indicates that the data-driven implementation is faster.
From Table 10, it can be seen that the time consumption ratios of all examples are greater than 1. This shows that the data-driven implementation is slower than the standard isoparametric integration implementation. The surrogate model does not yet have efficiency advantages in the classical finite element method. The reason is that the computational cost of element stiffness matrices is too small. When converted to a single element, it is only a few microseconds to tens of microseconds. The inherent inference overhead of prediction and reconstruction in the data-driven implementation is relatively higher. But at the same time, the time consumption ratio decreases with the increase of element analytical computation complexity. Taking the 64×64 mesh as an example, decreases from 3.50 for Q4 to 1.17 for Q8. This shows that the higher the computational cost of standard elements, the smaller the time consumption gap between the surrogate model and them. If the element computational cost is further increased, the time consumption ratio is expected to drop below 1.
However, in the above several types of finite element methods, the computational cost of element stiffness matrices is increased by several orders of magnitude compared with the classical finite element method. Moreover, the proportion of time consumed by this step in the analysis process is significantly increased. The data-driven surrogate model for element stiffness matrix calculation has considerable efficiency potential. Table 11 gives the cost sources, relative computational costs, and time consumption proportions of the element stiffness matrix calculation step of these methods.
As shown in the table above, the tangent stiffness of nonlinear finite element methods must be re-formed at each Newton iteration of each increment step. Moreover, the constitutive integration at each Gauss point must be completed through local iteration. Its element computational cost is cumulatively amplified with the number of increment steps and iterations (Bathe, 1996). In the finite cell method, the number of integration points of cut elements is increased by one to two orders of magnitude compared with standard elements (Garhuom and Düster, 2022). Its integration process constitutes the main computational overhead of assembly (Petö et al., 2023; Yang, 2011). The coarse element stiffness of multiscale finite element methods must be obtained by solving microscopic sub-problems on elements and condensing them equivalently. This step is the main time-consuming part of the method (Huo et al., 2025). Its cost is of the same order as the solution of representative volume elements in FE2 (Efendiev and Hou, 2009). The FE2 method completely solves a representative volume element sub-problem at each macroscopic integration point. The overall computational cost can reach a hundred times that of single-scale methods (Smit et al., 1998). The microscopic sub-problem solution constitutes the main body of its total time consumption. In summary, the time consumed by element stiffness matrix calculation in the classical finite element method is too short. The data-driven surrogate model does not yet have advantages. For finite element methods with high element computational costs such as nonlinear finite element methods, finite cell methods, multiscale finite element methods, and FE2, extending the method proposed in this paper to their element stiffness matrix prediction, the data-driven surrogate model will have very considerable efficiency potential.
5. Conclusions and Prospects
This paper takes the finite element method as the object. Based on two layers of deep mechanics priors, a parameterized analytical expression of the element stiffness matrix is obtained. Only a small number of completely independent physical parameters need to be predicted by AI models to reconstruct high-quality element stiffness matrices that meet physical plausibility requirements. Among them, the first layer of deep mechanics priors dominates the guarantee of physical plausibility of element stiffness matrices. It is ensured by three types of constraints: rigid-body zero-energy, constant-strain consistency, and energy stability. The second layer of deep mechanics priors dominates the simplification of prediction model scale for element stiffness matrices. The element stiffness matrix has a parameterized representation with clear mechanical meaning in the orthonormal modal space. The parameters in modal space are divided into two parts: fixed parameters and independent parameters. Fixed parameters are completely determined by the three types of physical constraints and are analytical expressions of element geometry and material parameters. Independent parameters are predicted by AI models. Therefore, the prediction parameters of element stiffness matrices are reduced to: 3 for Q4 and Q4I elements, 55 for Q8 elements, and 78 for H8 elements. The learning task of the network is simplified from predicting the complete element stiffness matrix to low-dimensional prediction of a few independent parameters. The element stiffness matrix satisfying physical plausibility is then reconstructed by the parameterized analytical expression. The derivation of this method does not depend on specific element properties. Its computational complexity grows mildly with the increase in element degrees of freedom. The method is applicable not only to basic elements such as Q4 and H8, but also to high-order elements. This provides a universal and easily generalizable methodological paradigm for stiffness matrix prediction.
Numerical examples demonstrate that data-driven elements strictly satisfy the three types of physical constraints in rigid-body zero-energy mode tests and patch tests. Their element stiffness matrices have physical plausibility. In the MacNeal cantilever beam, Kirsch perforated plate, and Saint-Venant circular rod torsion examples, data-driven elements fully inherit the numerical characteristics of the corresponding standard isoparametric integration elements under bending, mesh distortion, stress concentration, and mesh refinement conditions. The convergence orders and error magnitudes remain consistent with those of the corresponding conventional elements. They also maintain the locality, reusability, and assemblability of finite elements.
Using the classical finite element method as an example, this study demonstrates a strategy for decomposing and reconstructing element stiffness matrices. In the future, this method can be extended to finite element methods with high element computational costs such as nonlinear finite element methods, finite cell methods, multiscale finite element methods, and FE2. The corresponding deep mechanics priors can be further explored. In these methods, the evaluation of element stiffness matrices often accounts for a major share of the overall computational cost. Consequently, replacing conventional element stiffness matrix calculations with data-driven predictions is expected to yield greater speedups than in classical finite element analyses.
Author Contributions
Liangqi Zhong: conceptualization, methodology, software, investigation, formal analysis, writing – original draft, writing – review & editing; Senlin Huo: supervision, conceptualization, methodology, investigation, formal analysis, writing – review & editing; Yong Zhao: writing – review & editing, formal analysis; Yaqi Cao: writing – review & editing; Guorui Wang: writing – review & editing; Qingming Zhang: writing – review & editing.
Data Availability Statement
Data will be made available on request.
Acknowledgments
This study was funded by the National Natural Science Foundation of China (Grant No. 52675365) and the Youth Program of the Self-Innovation Science Fund (No. ZK26–51) from the National University of Defense Technology (NUDT).
Conflicts of Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Appendix A. Proof of Dimension Formula (6)
Consider the linear mapping , . Since is symmetric, the system of equations is consistent. Its solution set is an affine subspace parallel to , thus
where .
For any , from we obtain
That is, is a symmetric matrix. Conversely, if satisfies that is symmetric, since is full column rank, one can take such that is an orthogonal matrix. Let
Then is symmetric (since the symmetry of ensures the symmetry of the upper-left block, and the off-diagonal blocks are transposes of each other), and
Therefore
Consider the linear mapping , , where is the space of m-th order skew-symmetric matrices with dimension . It is easy to see that . For any skew-symmetric matrix , take , , then
Therefore, is surjective. By the rank-nullity theorem,
Substitution yields
Q.E.D.
Appendix B. Explicit Expressions of Q4 Element Parameter Blocks
Appendix B.1. Strain Amplitude Matrix Ξ
Multiplying both sides of Equation (28) by their own transpose on the left, using the orthonormality of the constant-strain modes satisfying and the symmetry and idempotency of the rigid-body projection operator , we obtain
where is the Gram matrix of the constant-strain mode matrix after rigid-body projection. Introducing the element centroid and second-order central moments
Substituting the definitions of and
Taking the inverse of Equation (A8) gives . Therefore, is the upper triangular Cholesky factor of . First, find . Let . Inverting in Equation (A10) by the adjugate matrix method, we obtain
Since is upper triangular and
The above equation is determined by element-by-element comparison of . For square elements (, ), the off-diagonal elements , and degenerates to the diagonal matrix .
Appendix B.2. Strain Integral Matrix M
From the strain-displacement relationship , the strain integral matrix of hourglass modes , where is the orthonormal hourglass mode matrix and is the element integral of the strain-displacement matrix. According to the divergence theorem, the element integral of shape function derivatives is
where the subscripts are taken cyclically as and . Substituting Equation (A13) into the definition of , we obtain
Let the element area be V. By the shoelace formula, we obtain
Directly multiplying Equation (A14) with Equations (9), (3), and (1), the following three key identities can be verified:
Their mechanical meanings are respectively: the element integral strain of the original hourglass modes is zero; the rigid-body modes do not produce strain; the constant-strain modes after integration are exactly the unit strain multiplied by the element area. Thus, , and further .
To express in terms of nodal coordinates, replace back to the hourglass mode matrix . From Equation (14), , where is the projection operator onto the orthogonal complement of the rigid-body and constant-strain subspace. Similarly to B.1, there exists a coefficient matrix such that . Thus
The following calculates and separately. Introduce the antisymmetric nodal coordinate combinations
Directly calculating , , and , and substituting into , we obtain
Substituting Equations (A11) and (A18) into and simplifying, we obtain
Next, find . The Gram matrix of hourglass modes after projection is
Calculating , and then substituting Equation (A19) into and simplifying, the cross terms exactly cancel out, we obtain
is a scalar multiple of the identity matrix. Its Cholesky factor is , so . Substituting Equation (A19) and into Equation (A17), we finally obtain
For parallelogram elements, and , so and . Substituting into Equation (A21) gives .
References
- Babuška, I., Strouboulis, T., 2001. The Finite Element Method and its Reliability. Oxford University Press.
- Bathe, K.J., 1996. Finite Element Procedures. Prentice Hall, Englewood Cliffs, NJ.
- Bergan, P.G., 1980. Finite elements based on energy orthogonal functions. International Journal for Numerical Methods in Engineering 15, 1541–1555.
- Biććanić, N., Hinton, E., 1979. Spurious modes in two-dimensional isoparametric elements. International Journal for Numerical Methods in Engineering 14, 1545–1557.
- Bishara, D., Li, S., 2023. A machine-learning aided multiscale homogenization model for crystal plasticity: application for face-centered cubic single crystals. Computational Mechanics 72, 77–93.
- Brodnik, N.R., Muir, C., Tulshibagwale, N., Rossin, J., Echlin, M.P., Hamel, C.M., Kramer, S.L.B., Pollock, T.M., Kiser, J.D., Smith, C., Daly, S.H., 2023. Perspective: Machine learning in experimental solid mechanics. Journal of the Mechanics and Physics of Solids 173, 105231.
- Brown, J., 2010. Efficient nonlinear solvers for nodal high-order finite elements in 3D. Journal of Scientific Computing 45, 48–63.
- Capuano, G., Rimoli, J.J., 2019. Smart finite elements: a novel machine learning application. Computer Methods in Applied Mechanics and Engineering 345, 363–381.
- Efendiev, Y., Hou, T.Y., 2009. Multiscale Finite Element Methods: Theory and Applications. Springer, New York.
- Garhuom, W., Düster, A., 2022. Non-negative moment fitting quadrature for cut finite elements and cells undergoing large deformations. Computational Mechanics 70, 1059–1081.
- Guo, Y., Du, Z., Liu, C., Zhang, W., Tang, S., Hao, W., Zhao, Z., Wu, C., Xu, Z., Bian, T., Dai, Z., Yang, Z., Huo, W., Shen, C., Guo, X., 2026. AI-enhanced and data-driven mechanical analysis and structural topology optimization. Science China Technological Sciences 69, 2010601. [CrossRef]
- Harandi, A., Danesh, H., Linka, K., Reese, S., Rezaei, S., 2025. SPiFOL: A Spectral-based physics-informed finite operator learning for prediction of mechanical behavior of microstructures. Journal of the Mechanics and Physics of Solids 203, 106219.
- Hacker, W.L., Schreyer, H.L., 1989. Eigenvalue analysis of compatible and incompatible rectangular four-node quadrilateral elements. International Journal for Numerical Methods in Engineering 28, 687–703.
- Hu, H., Qi, L., Chao, X., 2024. Physics-informed neural networks (PINN) for computational solid mechanics: Numerical frameworks and applications. Thin-Walled Structures 205, 112495.
- Huang, M., Du, Z., Liu, C., Zheng, Y., Cui, T., Mei, Y., Li, X., Zhang, X., Guo, X., 2022. Problem-independent machine learning (PIML)-based topology optimization—A universal approach. Extreme Mechanics Letters 56, 101887.
- Huang, M., Liu, C., Guo, Y., Zhang, L., Du, Z., Guo, X., 2024. A mechanics-based data-free Problem Independent Machine Learning (PIML) model for large-scale structural analysis and design optimization. Journal of the Mechanics and Physics of Solids 193, 105893.
- Huang, S., He, Z., Dirr, N., Zimmer, J., Reina, C., 2025. Statistical-Physics-Informed Neural Networks (Stat-PINNs): A machine learning strategy for coarse-graining dissipative dynamics. Journal of the Mechanics and Physics of Solids 194, 105908.
- Huo, S., Zhao, Y., Du, B., Zhang, Z., Cao, Y., Du, Y., 2025. Deep mechanics prior – for the multiscale finite element method. Computer Methods in Applied Mechanics and Engineering 443, 118073.
- Holthusen, H., Linka, K., Kuhl, E., Brepols, T., 2025. A generalized dual potential for inelastic Constitutive Artificial Neural Networks: A JAX implementation at finite strains. Journal of the Mechanics and Physics of Solids. [CrossRef]
- Jiao, Q., Chen, Y., Kim, J., Han, C.-F., Chang, C.-H., Vlassak, J., 2024. A machine learning perspective on the inverse indentation problem: uniqueness, surrogate modeling, and learning elasto-plastic properties from pile-up. Journal of the Mechanics and Physics of Solids, 105557.
- Jung, J., Yoon, K., Lee, P.S., 2020. Deep learned finite elements. Computer Methods in Applied Mechanics and Engineering 372, 113401.
- Jung, J., Jun, H., Lee, P.S., 2022. Self-updated four-node finite element using deep learning. Computational Mechanics 69, 23–44.
- Li, S., Zhou, H., Tang, S., Cheng, G., Liang, Y., 2026. Data-driven numerical method construction via physics-informed hard-constrained manifold learning: finite elements as a demonstration. Preprints, 2026090459. [CrossRef]
- Li, X.-J., Shang, Y., Cen, S., Li, C.-F., 2026. A deep learning-enhanced Trefftz finite element method for efficient analysis of thin plates. Applied Mathematical Modelling 161, 117290.
- Li, Z., Zheng, H., Kovachki, N., Jin, D., Chen, H., Liu, B., Azizzadenesheli, K., Anandkumar, A., 2024. Physics-informed neural operator for learning partial differential equations. ACM/IMS Journal of Data Science 1, 1–27.
- Linden, L., Klein, D.K., Kalina, K.A., Brummund, J., Weeger, O., Kästner, M., 2023. Neural networks meet hyperelasticity: A guide to enforcing physics. Journal of the Mechanics and Physics of Solids 179, 105363.
- Ma, X., Huang, M., Du, Z., Guo, Y., Liu, C., Mei, Y., Guo, X., 2026. A high-performance parallel algorithm based on problem independent machine learning (PIML) for large-scale topology optimization. Acta Mechanica Sinica 42, 425942.
- MacNeal, R.H., Harder, R.L., 1985. A proposed standard set of problems to test finite element accuracy. Finite Elements in Analysis and Design 1, 3–20.
- Masi, F., Stefanou, I., 2023. Evolution TANN and the identification of internal variables and evolution equations in solid mechanics. Journal of the Mechanics and Physics of Solids 174, 105245.
- Nath, D., Ankit, Neog, D.R., Gautam, S.S., 2024. Application of machine learning and deep learning in finite element analysis: A comprehensive review. Archives of Computational Methods in Engineering 31, 2945–2984.
- Nie, Z., Jiang, H., Kara, L.B., 2020. Stress field prediction in cantilevered structures using convolutional neural networks. Journal of Computing and Information Science in Engineering 20, 011002.
- Oishi, A., Yagawa, G., 2017. Computational mechanics enhanced by deep learning. Computer Methods in Applied Mechanics and Engineering 327, 327–351.
- Pantidis, P., Mobasher, M.E., 2023. Integrated Finite Element Neural Network (I-FENN) for non-local continuum damage mechanics. Computer Methods in Applied Mechanics and Engineering 404, 115766.
- Petö, M., Eisenträger, S., Duvigneau, F., Juhre, D., 2023. Boolean finite cell method for multi-material problems including local enrichment of the Ansatz space. Computational Mechanics 72, 743–764.
- Raissi, M., Perdikaris, P., Karniadakis, G.E., 2019. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378, 686–707.
- Smit, R.J.M., Brekelmans, W.A.M., Meijer, H.E.H., 1998. Prediction of the mechanical behavior of nonlinear heterogeneous systems by multi-level finite element modeling. Computer Methods in Applied Mechanics and Engineering 155, 181–192.
- Shoghi, R., Hartmaier, A., 2026. A machine learning-based constitutive model incorporating history-dependent features for cyclic plasticity. Computer Methods in Applied Mechanics and Engineering 448, 117879.
- Sunil, P., Sills, R.B., 2026. FE-PINNs: finite-element-based physics-informed neural networks for surrogate modeling. APL Machine Learning 4, 016106.
- Vu-Quoc, L., Humer, A., 2023. Deep learning applied to computational mechanics: A comprehensive review, state of the art, and the classics. Computer Modeling in Engineering & Sciences 137, 1069–1343.
- Wang, Y., Bai, J., Lin, Z., Wang, Q., Anitescu, C., Sun, J., Eshaghi, M.S., Gu, Y., Feng, X.-Q., Zhuang, X., Rabczuk, T., Liu, Y., 2026a. Artificial intelligence for partial differential equations in computational mechanics: A review. Applied Mechanics Reviews. [CrossRef]
- Wang, Y., Hao, Z., Eshaghi, M.S., Anitescu, C., Zhuang, X., Rabczuk, T., Liu, Y., 2026b. Pretrain finite element method: A pretraining and warm-start framework for PDEs via physics-informed neural operators. Journal of the Mechanics and Physics of Solids 214, 106682.
- Yang, Z., Yu, C.H., Buehler, M.J., 2021. Deep learning model to predict complex stress and strain fields in hierarchical composites. Science Advances 7, eabd7416.
- Yang, Z., 2011. The Finite Cell Method for Geometry-Based Structural Simulation. PhD Thesis, Technische Universität München, Munich.
- Zhang, L., Cheng, L., Li, H., Gao, J., Yu, C., Domel, R., Yang, Y., Tang, S., Liu, W.K., 2021. Hierarchical deep-learning neural networks: finite elements and beyond. Computational Mechanics 67, 207–230.
- Zienkiewicz, O.C., Taylor, R.L., 2000. The Finite Element Method, 5th ed., Vol. 1: The Basis. Butterworth-Heinemann, Oxford.
- Zienkiewicz, O.C., Taylor, R.L., Fox, D., 2014. The Finite Element Method for Solid and Structural Mechanics, 7th ed., Vol. 2. Butterworth-Heinemann, Oxford.
Figure 1.
Two approaches for data-driven finite element computation (Approach II has numerous sub-module options; only one is illustrated)
Figure 1.
Two approaches for data-driven finite element computation (Approach II has numerous sub-module options; only one is illustrated)

Figure 2.
Node numbering and degrees of freedom specification for Q4 element

Figure 3.
Three rigid-body modes of Q4 element (corresponding to , , respectively)

Figure 4.
Three constant-strain modes of Q4 element (corresponding to , , respectively)

Figure 5.
The parameterization process of the element stiffness matrix in modal space

Figure 6.
Two hourglass modes of Q4 element (corresponding to and respectively)

Figure 7.
Eight modes of Q4 element after orthonormalization (Figure (a) corresponds to ; Figure (b) corresponds to ; Figure (c) corresponds to )
Figure 7.
Eight modes of Q4 element after orthonormalization (Figure (a) corresponds to ; Figure (b) corresponds to ; Figure (c) corresponds to )

Figure 8.
Some higher-order modes of Q8 element (Figure (a) shows node and degree of freedom specification, Figure (b) shows 4 of the higher-order modes)
Figure 8.
Some higher-order modes of Q8 element (Figure (a) shows node and degree of freedom specification, Figure (b) shows 4 of the higher-order modes)

Figure 9.
Overall process of data-driven finite element method

Figure 10.
Typical sample configuration of Q4 in canonical configuration (consistent with Q8 element)
Figure 10.
Typical sample configuration of Q4 in canonical configuration (consistent with Q8 element)

Figure 11.
Neural network architecture of data-driven Q4 element

Figure 12.
Training and validation loss convergence curves of four types of elements (Figure (a) DD-Q4 (best val = ); Figure (b) DD-Q4I (best val = ); Figure (c) DD-Q8 (best val = ); Figure (d) DD-H8 (best val = )
Figure 12.
Training and validation loss convergence curves of four types of elements (Figure (a) DD-Q4 (best val = ); Figure (b) DD-Q4I (best val = ); Figure (c) DD-Q8 (best val = ); Figure (d) DD-H8 (best val = )

Figure 13.
Element configurations used in rigid-body zero-energy mode test: (a) Arbitrary quadrilateral I; (b) Arbitrary quadrilateral II; (c) Arbitrary hexahedron I; (d) Arbitrary hexahedron II
Figure 13.
Element configurations used in rigid-body zero-energy mode test: (a) Arbitrary quadrilateral I; (b) Arbitrary quadrilateral II; (c) Arbitrary hexahedron I; (d) Arbitrary hexahedron II

Figure 14.
Two-dimensional MacNeal-Harder standard patch test configuration

Figure 15.
Three-dimensional MacNeal-Harder standard solid patch test configuration

Figure 16.
Three meshes and loads of MacNeal cantilever beam.

Figure 17.
Vertical displacement field under concentrated force for mesh I.

Figure 18.
Vertical displacement field under moment for mesh I.

Figure 19.
Geometric configuration and boundary conditions of Kirsch perforated plate example

Figure 20.
Mesh division of for Kirsch perforated plate example

Figure 21.
Convergence curve of relative error of stress concentration coefficient for Kirsch perforated plate example.
Figure 21.
Convergence curve of relative error of stress concentration coefficient for Kirsch perforated plate example.

Figure 22.
Convergence curves of relative errors of displacement and stress for Kirsch perforated plate example
Figure 22.
Convergence curves of relative errors of displacement and stress for Kirsch perforated plate example

Figure 23.
Contours of total displacement magnitude (upper) and Mises equivalent stress (lower) of Q8 element and DD-Q8 element under mesh for Kirsch perforated plate example.
Figure 23.
Contours of total displacement magnitude (upper) and Mises equivalent stress (lower) of Q8 element and DD-Q8 element under mesh for Kirsch perforated plate example.

Figure 24.
Geometric configuration, boundary conditions, and load application of Saint-Venant circular rod torsion example.
Figure 24.
Geometric configuration, boundary conditions, and load application of Saint-Venant circular rod torsion example.

Figure 25.
Mesh division of for Saint-Venant circular rod torsion example

Figure 26.
Displacement contours of Saint-Venant circular rod torsion example

Table 1.
Parameter information of Q4, Q4I, Q8, and H8 elements
| Element | Dimension | Element order | Nodal DOF n |
Constraint modes |
Deformation modes |
S Order |
Fixed parameters |
Independent parameters |
|---|---|---|---|---|---|---|---|---|
| Q4 | 2D | 1st | 8 | 6 | 2 | 5 | 33 | 3 |
| Q4I | 2D | 1st | 8 | 6 | 2 | 5 | 33 | 3 |
| Q8 | 2D | 2nd | 16 | 6 | 10 | 13 | 81 | 55 |
| H8 | 3D | 1st | 24 | 12 | 12 | 18 | 222 | 78 |
Table 2.
Rigid-body zero-energy mode test results of data-driven elements
| Element type | Test config | Theory/Detected zero-energy modes |
Max absolute value of near-zero eigenvalues |
First non-zero eigenvalue |
|---|---|---|---|---|
| DD-Q4 | (a)/(b) | 3 / 3 | 9.915×10-12 | 9.160×103 |
| DD-Q4I | (a)/(b) | 3 / 3 | 5.504×10-12 | 5.301×103 |
| DD-Q8 | (a)/(b) | 3 / 3 | 2.002×10-11 | 1.771×103 |
| DD-H8 | (c)/(d) | 6 / 6 | 3.731×10-12 | 1.306×103 |
Table 3.
Patch test results of DD-Q4 and DD-Q4I elements
| Element type | Node No. | Theoretical displacement |
Calculated displacement |
Total displacement error |
|---|---|---|---|---|
| DD-Q4 | 1 | (0.500, 0.400) | (0.500, 0.400) | 8.466×10-16 |
| 2 | (1.950, 1.200) | (1.950, 1.200) | 1.184×10-16 | |
| 3 | (2.000, 1.600) | (2.000, 1.600) | 4.233×10-16 | |
| 4 | (1.200, 1.200) | (1.200, 1.200) | 7.986×10-16 | |
| DD-Q4I | 1 | (0.500, 0.400) | (0.500, 0.400) | 2.117×10-16 |
| 2 | (1.950, 1.200) | (1.950, 1.200) | 3.551×10-16 | |
| 3 | (2.000, 1.600) | (2.000, 1.600) | 4.233×10-16 | |
| 4 | (1.200, 1.200) | (1.200, 1.200) | 7.986×10-16 |
Table 4.
Patch test results of DD-Q8 element
| Element type | Node No. | Theoretical displacement |
Calculated displacement |
Total displacement error |
|---|---|---|---|---|
| DD-Q8 | 1 | (0.500, 0.400) | (0.500, 0.400) | 2.540×10-15 |
| 2 | (1.950, 1.200) | (1.950, 1.200) | 1.776×10-15 | |
| 3 | (2.000, 1.600) | (2.000, 1.600) | 8.466×10-16 | |
| 4 | (1.200, 1.200) | (1.200, 1.200) | 1.118×10-15 | |
| 5 | (1.225, 0.800) | (1.225, 0.800) | 1.853×10-15 | |
| 6 | (1.975, 1.400) | (1.975, 1.400) | 2.239×10-16 | |
| 7 | (1.600, 1.400) | (1.600, 1.400) | 7.650×10-16 | |
| 8 | (0.850, 0.800) | (0.850, 0.800) | 3.483×10-16 |
Table 5.
Patch test results of DD-H8 element.
| Element type | Node No. | Theoretical displacement |
Calculated displacement |
Total displacement error |
|---|---|---|---|---|
| DD-H8 | 1 | (5.160, 5.625, 4.875) | (5.160, 5.625, 4.875) | 4.788×10-16 |
| 2 | (11.140, 8.450, 8.450) | (11.140, 8.450, 8.450) | 2.655×10-16 | |
| 3 | (13.060, 12.055, 10.125) | (13.060, 12.055, 10.125) | 2.120×10-16 | |
| 4 | (7.630, 10.015, 7.415) | (7.630, 10.015, 7.415) | <10-16 | |
| 5 | (7.345, 6.675, 8.960) | (7.345, 6.675, 8.960) | 8.109×10-16 | |
| 6 | (11.710, 9.850, 11.740) | (11.710, 9.850, 11.740) | 1.124×10-16 | |
| 7 | (14.565, 14.090, 13.845) | (14.565, 14.090, 13.845) | 1.767×10-16 | |
| 8 | (8.885, 11.785, 11.570) | (8.885, 11.785, 11.570) | <10-16 |
Table 6.
Vertical displacement at point A of MacNeal cantilever beam, displacement values are all multiplied by .
Table 6.
Vertical displacement at point A of MacNeal cantilever beam, displacement values are all multiplied by .
| Element type | Concentrated force P |
End moment M |
||||
|---|---|---|---|---|---|---|
| Mesh I | Mesh II | Mesh III | Mesh I | Mesh II | Mesh III | |
| Q4 | -19.333 | -8.322 | -7.292 | -0.964 | -0.346 | -0.286 |
| DD-Q4 | -19.244 | -8.226 | -7.193 | -0.959 | -0.341 | -0.283 |
| Q4I | -67.228 | -60.021 | -10.996 | -3.375 | -3.128 | -0.428 |
| DD-Q4I | -67.567 | -60.517 | -11.000 | -3.392 | -3.153 | -0.428 |
| Q8 | -66.677 | -66.639 | -60.187 | -3.346 | -3.365 | -3.066 |
| DD-Q8 | -66.074 | -67.435 | -61.953 | -3.316 | -3.411 | -3.176 |
| Theory | -67.500 | -67.500 | -67.500 | -3.375 | -3.375 | -3.375 |
Table 7.
Stress concentration coefficients of each element for Kirsch perforated plate example (exact value 3.00).
Table 7.
Stress concentration coefficients of each element for Kirsch perforated plate example (exact value 3.00).
| Mesh | Q4 | DD-Q4 | Q4I | DD-Q4I | Q8 | DD-Q8 |
|---|---|---|---|---|---|---|
| 8×8 | 1.572 | 1.578 | 1.575 | 1.580 | 1.530 | 1.558 |
| 16×16 | 1.952 | 1.954 | 1.956 | 1.968 | 1.917 | 1.930 |
| 32×32 | 2.322 | 2.322 | 2.324 | 2.327 | 2.298 | 2.305 |
| 64×64 | 2.601 | 2.600 | 2.601 | 2.601 | 2.589 | 2.593 |
Table 8.
Relative errors of displacement and stress for Kirsch perforated plate example (unit: %)
| Mesh | Index | Q4 | DD-Q4 | Q4I | DD-Q4I | Q8 | DD-Q8 |
|---|---|---|---|---|---|---|---|
| 8×8 | 0.853 | 0.796 | 0.743 | 0.711 | 0.265 | 0.196 | |
| 4.149 | 4.167 | 4.513 | 4.568 | 1.821 | 2.039 | ||
| 16×16 | 0.410 | 0.386 | 0.354 | 0.297 | 0.056 | 0.058 | |
| 2.926 | 2.936 | 3.012 | 3.064 | 0.887 | 1.153 | ||
| 32×32 | 0.142 | 0.133 | 0.122 | 0.089 | 0.008 | 0.019 | |
| 1.798 | 1.802 | 1.812 | 1.833 | 0.313 | 0.579 | ||
| 64×64 | 0.040 | 0.037 | 0.034 | 0.024 | 0.001 | 0.006 | |
| 0.975 | 0.976 | 0.977 | 0.981 | 0.089 | 0.280 |
Table 9.
Torsion angle at end face of Saint-Venant circular rod torsion example
| Mesh density | H8 (rad) | H8 Error (%) | DD-H8 (rad) | DD-H8 Error (%) |
|---|---|---|---|---|
| 4×4×40 | 5.588×10-2 | 5.5 | 5.077×10-2 | 4.1 |
| 8×8×80 | 5.372×10-2 | 1.4 | 5.224×10-2 | 1.4 |
| 12×12×160 | 5.333×10-2 | 0.7 | 5.297×10-2 | 1.4×10-3 |
| Theory | 5.297×10-2 | |||
Table 10.
Comparison of element stiffness matrix computation time
| Mesh | Element number |
Element | Standard (ms) |
Sub-module proportion |
Data-driven (ms) |
Ratio |
|---|---|---|---|---|---|---|
| 8×8 | 64 | Q4 | 0.20 | 10.6% | 1.55 | 7.71 |
| Q4I | 0.50 | 26.1% | 1.49 | 3.00 | ||
| Q8 | 0.92 | 20.9% | 2.53 | 2.74 | ||
| 16×16 | 256 | Q4 | 1.19 | 23.2% | 3.69 | 3.11 |
| Q4I | 1.40 | 27.1% | 3.38 | 2.42 | ||
| Q8 | 3.59 | 18.5% | 5.83 | 1.62 | ||
| 32×32 | 1024 | Q4 | 2.42 | 13.4% | 10.02 | 4.15 |
| Q4I | 7.28 | 32.8% | 10.52 | 1.45 | ||
| Q8 | 17.90 | 17.1% | 26.92 | 1.50 | ||
| 64×64 | 4096 | Q4 | 12.36 | 10.5% | 43.21 | 3.50 |
| Q4I | 31.50 | 23.0% | 43.56 | 1.38 | ||
| Q8 | 101.92 | 10.9% | 118.87 | 1.17 |
Table 11.
Comparison of element stiffness matrix calculation in FEM methods
| Method | Cost source | Proportion of element stiffness time |
|---|---|---|
| NFEM | Tangent stiffness reformation and constitutive integration | Approximately >30% |
| FCM | High-order integration of cut elements | Approximately >40% |
| MsFEM | Microscopic sub-problem solving and condensation | Approximately >80% |
| FE2 | RVE solving at macroscopic integration points | Approximately >80% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.