Theory contents

What is FEM?

On this page

What is the finite element method, and what makes a useful model?

The idea: divide and assemble

The finite element method (FEM) computes how a body deforms under load when the shape is too complex for a formula. It divides the body into many small, simple pieces called elements: triangles or quadrilaterals in two dimensions, tetrahedra or hexahedra in three. Neighbouring elements share corner points called nodes.

A smooth two-dimensional body divided into triangular elements. Black dots mark the nodes; red arrows load the upper-left edge; a pinned and a roller support hold the bottom; arrows u and v at two nodes show their degrees of freedom.
A body divided into triangular elements. The nodes carry the unknowns: each node can move in x and y, so it has two degrees of freedom (DOFs), u and v. Loads act on the boundary; supports prescribe the motion of some nodes.

The unknowns are the displacements of the nodes. Each independent displacement component is a degree of freedom (DOF): two per node in a plane, three per node in a solid. Inside each element, the displacement is interpolated from its nodes by simple polynomials called shape functions.

For each element, the material law and the shape functions give a small matrix that relates its nodal forces to its nodal displacements. Adding these element matrices at shared nodes gives one global system, the stiffness matrix K times the vector of all nodal displacements d equals the load vector f:

Kd=f.

Supports fix some entries of d; loads fill f. Solving the system gives the displacement of every node. Strain and stress then follow from the displacement inside each element. Smaller or higher-order elements follow the true displacement more closely, at the cost of more unknowns.

The rest of this guide develops each step: the material law, the equations of equilibrium, elements, assembly, the solve and the results.

From CAD geometry to a result

In practice the body comes from CAD. A mesher fills the geometry with elements; in three dimensions these are usually tetrahedra, because any solid shape can be filled with them. A quadratic tetrahedron has a node at each corner and one at the middle of each edge, so its edges can bend and its strain can vary linearly inside it.

Left: a plate with a hole as CAD geometry. Middle: the same plate covered by a triangulated surface mesh. Right: one quadratic tetrahedron with ten numbered nodes, four at its corners and six at its edge midpoints.
CAD geometry (left) is filled with tetrahedral elements (middle; the lines are the element faces on the surface). Each quadratic tetrahedron (right) has 10 nodes: 4 at its corners and 6 at its edge midpoints. Node 7 lies on the hidden edge.

KoFEM follows the same path in the browser: import a STEP file, mesh it, assign materials, supports and loads, solve, and inspect the displacement and stress. The result below is one of the public examples, a cantilever beam clamped at one end and loaded at the other. Drag to rotate it.

Cantilever beam: displacement magnitude on the solved model, coloured from blue (low) to red (high).
Displacement magnitude of the cantilever example, solved by KoFEM, on the deformed shape. The colour bar gives the range in mm. Displacements enlarged 50×. Cantilever beam example · Open in KoFEM

What a model describes

A model is a deliberately simplified description of a physical problem. It identifies the body and its geometry, the material behaviour, the loads, and the supports or prescribed motion. Its assumptions determine which questions the calculation can answer.

The physical model comes first; the finite element mesh only approximates it. Smaller elements improve the approximation to that model, but cannot repair an unsuitable material law or support condition.

Static, small-strain, linear elasticity is a common starting point: applied forces balance elastic resistance, deformation is small, and stress varies linearly with strain. Other models are needed for effects such as plasticity, large deformation or time-dependent motion.

Choose consistent units

Every dimensional input must belong to one consistent system. For example, lengths in mm and forces in N require stiffness and stress in N/mm2=MPa. A steel modulus of 210 GPa is therefore entered numerically as 210000 when the stress unit is MPa.

In SI with metres, kilograms and seconds, the default stress unit is Pa; the same modulus is 2.10×1011 Pa. Changing the unit system changes the stress unit as well as the numerical input values.

The choice is yours, but all quantities must agree. The consistent unit systems reference compares common SI, millimetre-based, CGS and US customary systems, including mass, time, energy and density.

A simple physical model

Consider a straight, prismatic bar held at one end and pulled along its axis. Assume uniform axial stress, small strain and a linear-elastic material. Force balance gives stress as force divided by area; Hooke’s law then gives strain as stress divided by Young’s modulus. Multiplying the strain by the original length gives the extension:

δ=PLEA.
δ
Extension of the loaded end.
P
Total tensile force along the bar axis; the axial magnitude of a force vector.
L
Undeformed bar length.
E
Young’s modulus.
A
Cross-sectional area.
A straight bar of length L, Young's modulus E and cross-sectional area A, clamped at its left end and pulled to the right by a force P. Its free end moves by the extension delta.
A one-dimensional idealisation of a bar in tension. The drawing describes the physical model, not a finite element discretisation.

For a generic example, take P=1000 N, L=1000 mm, E=210000 MPa and A=100 mm2. Substitution gives approximately 0.047619 mm:

δ=PLEA=1000 N×1000 mm210000 N/mm2×100 mm2=10621×106 mm≈0.047619 mm.

The axial-bar verification solves a three-dimensional version of this bar in KoFEM and compares the result with this formula.

Assumptions and limitations

This one-dimensional bar model permits free lateral contraction and represents only axial deformation. A three-dimensional clamp that prevents lateral contraction creates a different local stress state. Bending, changes in cross-section and load introduction can require a richer model.

Before refining a discretisation, check whether the geometry, material law, loading and supports capture the behaviour of interest. Then compare with an analytical reference, experiment or a suitable convergence study. A small numerical residual alone does not establish physical accuracy.

References

  1. Gere and Goodno, Mechanics of Materials, axially loaded members.
  2. Bathe, Finite Element Procedures, mathematical models and finite element discretisation.
  3. Zienkiewicz, Taylor and Zhu, The Finite Element Method: Its Basis and Fundamentals, the general idea of discretisation and assembly.
  4. Consistent unit systems: common choices and conversion examples.