What is FEM?
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.

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 times the vector of all nodal displacements equals the load vector :
Supports fix some entries of ; loads fill . 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.

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.
Drag to rotate · scroll to zoom
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 . 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 . 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:
- Extension of the loaded end.
- Total tensile force along the bar axis; the axial magnitude of a force vector.
- Undeformed bar length.
- Young’s modulus.
- Cross-sectional area.

For a generic example, take , , and . Substitution gives approximately 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
- Gere and Goodno, Mechanics of Materials, axially loaded members.
- Bathe, Finite Element Procedures, mathematical models and finite element discretisation.
- Zienkiewicz, Taylor and Zhu, The Finite Element Method: Its Basis and Fundamentals, the general idea of discretisation and assembly.
- Consistent unit systems: common choices and conversion examples.