3. Virtual work and finite elements
How can a finite number of displacements represent a solid?
Section titled “How can a finite number of displacements represent a solid?”An elastic body has a displacement at every point. A finite-element calculation stores only a finite set of coefficients, then interpolates between them. The useful question is which form of equilibrium that interpolation should satisfy. We will derive it before talking about a matrix.
Recall the local balance and stress law:
Displacement is prescribed on ; traction is prescribed on the remaining boundary . In our square, the left edge is and the other three edges are .
Multiply, integrate, move one derivative
Section titled “Multiply, integrate, move one derivative”Choose an arbitrary small virtual displacement that vanishes on . It is a test of equilibrium, not a time step or an additional physical unknown. Multiply the balance by and integrate:
Because stress is symmetric, its contraction with the skew-symmetric part of vanishes. Because on , only the prescribed traction contributes on the boundary:
The left side is internal virtual work; the right side is external virtual work. This is the displacement weak form used in Bathe’s linear-analysis lecture 3. In two dimensions both sides have units of J/m for a test displacement in metres. In three dimensions they have units of J.
The word weak refers to how derivatives and equilibrium are interpreted. The equation requires first derivatives of displacement, whereas the strong equation differentiates stress once more. Adjacent finite elements can share continuous displacement while their displacement gradients jump.
The boundary split now has a concrete purpose. Fixed displacement restricts the allowable trial and test functions. Zero traction contributes zero boundary work; it does not fix a boundary displacement to zero. Revisit boundary conditions if those two physical constraints feel interchangeable.
Choose bilinear displacement on each rectangle
Section titled “Choose bilinear displacement on each rectangle”On a reference square , define four shape functions
Each is one at its own corner and zero at the other corners; together they sum to one. A Q1 displacement is
where each corner has two displacement coefficients. Neighboring elements use the same coefficients on their shared edge, making the assembled displacement continuous. A rectangular affine coordinate map supplies physical derivatives: for widths , and .
Q1 contains constant and linear functions, and the bilinear term . It cannot represent exactly inside an element. That limitation will explain the error in our square even when the nodal values agree with its exact answer.
The stiffness matrix follows from work
Section titled “The stiffness matrix follows from work”Use the engineering-strain vector . For a node , its contribution to the strain matrix is
Then , with made from the four blocks. The element stiffness is ; the body-load vector is the integral of the shape functions multiplied by . Assembly adds contributions that act on the same global displacement coefficient. Choosing each basis function in turn as the test function yields .
For affine rectangles and constant coefficients, two Gauss points per coordinate integrate these polynomial stiffness entries exactly. This is a statement about this integrand and map. Curved maps, variable material coefficients or a different element require their own quadrature analysis; see Bathe’s lecture 8.
The square’s maintained numerical path selects eqiora.fem.Q1().
Read its mesh and linear-solver settings.
The .eqi model retains the stress law and boundaries; the numerical realization
owns interpolation, assembly and the solve.
Supports remove zero-energy motion
Section titled “Supports remove zero-energy motion”Before supports are imposed, rigid translations and infinitesimal rotation produce zero strain and zero elastic energy. They are null directions of the stiffness matrix. Fixing the square’s entire left edge removes these motions. For this material, the reduced free-displacement matrix is symmetric positive definite, which explains the use of conjugate gradients in the example.
Write the full equations in free and constrained blocks. The free system is
After solving, the forces required at the constraints are . These algebraic reactions use the full force balance, including loads attached to constrained coefficients. They are different from sampling a stress gradient beside the boundary.
Connect work, energy and heat transfer
Section titled “Connect work, energy and heat transfer”For zero prescribed displacement, insert into the weak equation: , where . This is the continuum analogue of from the bar. It provides a second way to interpret a solution.
The heat-transfer path uses a similar mathematical step: a temperature test function moves one derivative from heat flux and exposes boundary heat input. Mechanics differs in its vector unknown and symmetric-gradient work pairing. The numerical-simulation path develops approximation and error estimates independently of the physical field.
Exercises
Section titled “Exercises”- Verify that the four sum to one and reproduce and .
- Show explicitly that has zero internal virtual work. Which part of the left-edge support excludes each motion?
- Show that using in the final entry of would double shear stress when the strain vector uses engineering shear.
- Derive the axial two-node bar matrix using linear interpolation.
- Why can a traction-free edge still have a nonzero displacement? Explain in both physical and weak-form language.
- Reducing integration to one point may leave deformation patterns with zero sampled strain energy. Explain why a faster assembly is not enough reason to make that change.
Reading
Section titled “Reading”- Klaus-Jürgen Bathe, Finite Element Procedures for Solids and Structures, MIT OpenCourseWare, Spring 2010, linear analysis: lecture 3, The Displacement-Based Finite Element Method and lecture 8, Numerical Integrations, Modeling Considerations.
- Bathe, Finite Element Procedures, 2nd edition, 2014, ISBN 9780979004957, the companion text listed on the course’s linear-analysis page.
Previous: Strain and stress · Path · Next: A square with mixed boundaries