The Chartership Forum

The Finite Element Method: First Principles / Implementing a small FEM solver

Check your understanding

Use the module’s assumptions and units. Work through each question before opening its worked check.

  1. Check 1

    Double every E in the stepped-bar force-controlled example. Predict the changes in displacement, force and energy.

    Show worked check

    Double every E in the stepped-bar force-controlled example. Displacements and stored energy halve; stress and reaction remain unchanged.

  2. Check 2

    Impose a rigid 1 mm translation at both ends of an unloaded uniform bar. What should the solver return?

    Show worked check

    Impose a rigid 1 mm translation at both ends of an unloaded uniform bar. All nodes translate by 1 mm; stress, reactions and strain energy are zero within round-off.

  3. Check 3

    Remove all supports under a non-zero resultant load. How should the solver handle the system?

    Show worked check

    Remove all supports under a non-zero resultant load. No static equilibrium exists. Under a balanced load, a free translation is still undetermined, so the unconstrained stiffness remains singular.

  4. Check 4

    Write a sparse assembly replacement and compare its full matrix and solution on the same benchmarks before increasing model size.

    Show worked check

    The supplied implementation remains dense.

  5. Check 5

    Before adding a spatial frame or continuum element, which formulation and benchmark checks must you establish?

    Show worked check

    Add a spatial frame or continuum mesh only after deriving its coordinates, interpolation, loads and verification cases. The separate two-dimensional element routines provide element matrices and patch checks; they are not a complete general-purpose two-dimensional structural solver.

Sources and review limits

The solver and benchmark cases are original. Bathe (1996), §3.3.4 and §3.4.1, inspected in the earlier waves, provide weak-form and constraint context. The separate analytical references are recorded alongside executable tests; no numerical test is described as an independent professional sign-off. These examples and implementations are original teaching material. Independent FEM specialist review remains open; the numerical checks establish only the stated benchmark results.

Module summary
  • Trace validation, assembly, constraints, solution and recovery in an executable solver
  • Run independent benchmarks and intentional failure cases
  • Document what the implementation verifies and what it does not model