Skip to content

Cantilever beam — Static linear elastic — 2D Shell elements

A cantilever beam modelled as a wide plate (L x b) with shell thickness = h. Fixed at x=0, tip point load P at x=L distributed across tip edge nodes.

Analytical (beam-strip), all in mm / N / MPa: I = b * h^3 / 12 = 50 * 100^3 / 12 = 4,166,667 mm^4 delta_tip = P * L^3 / (3 * E * I) Rz = -P

The model before it is solved: parts, supports and loads

The model before it is solved: its parts, supports (red) and loads (blue).

The result: the deformed shape coloured by stress (vonMises [MPa])

The deformed shape, coloured by stress (vonMises [MPa]), in xfea’s 3D viewer.

Open in 3D turn it, cut it, pick any field: in xfea's viewer, in your browser

In the latest verification run, on 2026-11-21, through the conversion service as users solve, 0 of 1 checks pass.

Quantity / reference fromxfeaReferenceDeviationTolerance
Tip deflection (z) [mm]
analytical
-0.34699-0.380958.92 %3 %

examples/scripts/04_reference_cases/benchmarks/cantilever_static_2d.py. Run it from the repository with uv run python examples/scripts/04_reference_cases/benchmarks/cantilever_static_2d.py, or, with xfea-examples installed, xfea-examples run 04_reference_cases/benchmarks/cantilever_static_2d.py.

from xfea.problem import Problem, StaticStep
from xfea.results import DisplacementFieldResults, ReactionFieldResults, StressFieldResults
from _bench_utils import (
cantilever_beam_2d,
compare,
out_dir,
sum_reactions,
)
# ── Model ─────────────────────────────────────────────────────────────────
model, part, fixed_nodes, tip_nodes, material, section, L, b, h = cantilever_beam_2d()
# ── Problem ───────────────────────────────────────────────────────────────
P_total = -1000
load_per_node = P_total / max(1, len(tip_nodes))
problem = model.add_problem(Problem(name="cantilever_static_2d"))
step = problem.add_step(StaticStep(name="service"))
step.add_uniform_forcefield(nodes=tip_nodes, z=load_per_node, load_case="service")
disp = DisplacementFieldResults()
react = ReactionFieldResults()
stress = StressFieldResults()
step.add_field_outputs([disp, react, stress])
problem.analyse_and_extract(path=out_dir(model.name), verbose=True)
# ── Analytical references (raw numbers, independent of library) ───────────
P_val = -1000.0
L_mm = 1000.0
E_MPa = 210_000.0
b_mm = 50.0
h_mm = 100.0
I_mm4 = b_mm * h_mm**3 / 12.0 # 4,166,667 mm^4
delta_ref_mm = P_val * L_mm**3 / (3.0 * E_MPa * I_mm4)
Rz_ref_N = -P_val
# ── Comparison ────────────────────────────────────────────────────────────
print()
print("=" * 65)
print("Cantilever Beam — Static Linear Elastic — 2D Shell Elements")
print("=" * 65)
print()
delta_fea = disp.get_min_result("z").z
fea_mm = float(delta_fea)
compare("Tip deflection (z) [mm]", fea_mm, delta_ref_mm, tol_pct=3.0)

© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them