The Chartership Forum

The Finite Element Method: First Principles / Energy and variational principles

Richer trial fields and energy error

Derive first and second variations for a conservative axial problem. Calculate a one- and two-parameter Ritz approximation.

Lesson review: expert verification remains open

This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.

Checks needed for project use

  • Independent FEM/continuum reviewer to check derivations, pedagogical completeness, constraint conventions and the limits of the recorded benchmarks. Actual 125%, 150% and 200% browser zoom remains unqualified.

These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.

Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.

Read the lesson register and outstanding review notes

What you should already know

Add a boundary-compatible bubble

Enrich the trial field to uₕ = ax + b x(L−x). The second term vanishes at both ends and allows curvature without changing the end displacement. Its coefficient b has units 1/m. The derivatives of the two basis functions are 1 and L−2x. Their stiffness cross-term is zero because ∫(L−2x) dx = 0. The new diagonal stiffness integral is EA L³/3 and its distributed-load term is q L³/6. The end force contributes nothing to that bubble equation.

Solving gives the same a as before and b=q/(2EA). Substitution reproduces the exact quadratic continuous solution for constant EA and q. This success follows from the exact field belonging to the enriched trial space. It is not a general guarantee that two parameters solve an arbitrary axial problem.

[EAL00EAL3/3][ab]=[PL+qL2/2qL3/6]\begin{bmatrix}EAL&0\\0&EAL^3/3\end{bmatrix}\begin{bmatrix}a\\b\end{bmatrix}=\begin{bmatrix}PL+qL^2/2\\qL^3/6\end{bmatrix}

What it calculates: Ritz equations in coordinates with different physical units; each row is work-conjugate to its own coefficient.

Worked example

Compare the two trial spaces

Given

  • L=2 m; EA=80 MN; P=20 kN; q=10 kN/m

Find

The midpoint displacement and energy improvement.

    Quantify the error

    Let u be the exact solution and uh a conforming Galerkin solution with homogeneous prescribed displacement. Orthogonality gives a(uh,u−uh)=0. Expanding a(u,u) then yields U−Uh = ½‖u−uh‖a². The same positive quantity equals Π(uh)−Π(u). This identity uses a symmetric bilinear form, the same exact load functional and admissible spaces. Inexact integration, nonconforming fields and altered loading require additional terms.

    For non-zero prescribed movement, an affine trial set remains valid, but work accounting must include the enforced movement and its reaction. Do not apply the homogeneous-load energy identity unchanged to a different boundary-work convention.

    Π(uh)−Π(u)=12∥u−uh∥a2=U−Uh\Pi(u_h)-\Pi(u)=\frac12\|u-u_h\|_a^2=U-U_h

    What it calculates: Energy error identity under the stated homogeneous conservative assumptions.

    Prescribe a displacement field and inspect its strain, stiffness and internal nodal forces. These displacements are inputs; the laboratory does not solve a loaded boundary-value problem.

    Displacement interpolation

    Vertical range ±0.75 mm. The horizontal coordinate is position along the undeformed element.

    0 mPosition x2 m
    Blue line: interpolated fieldPoints: prescribed nodal displacements
    Left-end strain
    500 με
    Right-end strain
    250 με
    Strain energy
    11.667 J
    Sum of internal nodal forces
    0 (within round-off) N
    Internal forces required to sustain this element field
    Nodex (m)u (mm)Force (kN)
    100-36.667
    210.437513.333
    320.7523.333
    Inspect element stiffness
    Stiffness K in MN/m, ordered from left to right
    RowColumn 1Column 2Column 3
    193.333-106.6713.333
    2-106.67213.33-106.67
    313.333-106.6793.333

    The straight element has constant E and A and uses small axial strain. Internal nodal forces are Kd. They exclude externally applied distributed loads and support-reaction recovery. Negative strain denotes compression; buckling is outside this model.

    References and further study

    Bathe, Finite Element Procedures (1996), §3.3.2, pp.110–111, was inspected for first variations and essential/natural conditions. The two-parameter axial example and its energy comparison are original derivations. The calculations and exercises here are original. The numerical checks cover the stated assumptions; independent specialist review remains open.