Cantilever beam — Static linear elastic — 1D Beam elements
A cantilever beam (fixed at x=0) with a tip point load P at x=L.
Analytical (Euler-Bernoulli), all in mm / N / MPa: I_strong = b * h^3 / 12 (for z-bending: h is in z-direction) delta_tip = P * L^3 / (3 * E * I_strong) Rz = -P
NOTE on section axes: For RectangularSection(w=50, h=100) with orientation=[0,1,0]: - w (50 mm) spans the beam’s local y → global Y - h (100 mm) spans the beam’s local z → global Z The I for z-bending (about local y) is wh^3/12 (strong axis). If the FEA uses section.Iyy = hw^3/12 (weak axis) for z-bending, that indicates a section-property mapping issue in the library.

The model before it is solved: its parts, supports (red) and loads (blue).
![The result: the deformed shape coloured by displacement (magnitude [mm])](/examples/reference-cases/benchmarks/cantilever-static-1d-results.webp)
The deformed shape, coloured by displacement (magnitude [mm]), in xfea’s 3D viewer.
Open in 3D turn it, cut it, pick any field: in xfea's viewer, in your browser
Verification
Section titled “Verification”In the latest verification run, on 2026-11-21, through the conversion service as users solve, 2 of 2 checks pass.
| Quantity / reference from | xfea | Reference | Deviation | Tolerance | |
|---|---|---|---|---|---|
| Tip deflection (z) [mm] analytical | -0.38155 | -0.38095 | 0.16 % | 1 % | |
| Reaction force Rz [N] analytical | 1000 | 1000 | 0.00 % | 1 % |
The script
Section titled “The script”examples/scripts/04_reference_cases/benchmarks/cantilever_static_1d.py. Run it from the repository with uv run python examples/scripts/04_reference_cases/benchmarks/cantilever_static_1d.py, or, with xfea-examples installed, xfea-examples run 04_reference_cases/benchmarks/cantilever_static_1d.py.
from xfea.problem import Problem, StaticStepfrom xfea.results import DisplacementFieldResults, ReactionFieldResults, SectionForcesFieldResults
from _bench_utils import ( cantilever_beam_1d, compare, out_dir, sum_reactions,)
# ── Model ─────────────────────────────────────────────────────────────────model, part, fixed_nodes, tip_nodes, material, section, length = cantilever_beam_1d()
# ── Problem ───────────────────────────────────────────────────────────────P = -1000 # downward tip loadproblem = model.add_problem(Problem(name="cantilever_static_1d"))step = problem.add_step(StaticStep(name="service"))step.add_uniform_forcefield(nodes=tip_nodes, z=P, load_case="service")
disp = DisplacementFieldResults()react = ReactionFieldResults()sf = SectionForcesFieldResults()step.add_field_outputs([disp, react, sf])
problem.analyse_and_extract(path=out_dir(model.name), verbose=True)
# ── Analytical references (raw numbers, independent of library) ───────────# All in mm / N / MPa system:P_val = -1000.0 # NL_mm = 1000.0 # mmE_MPa = 210_000.0 # MPa = N/mm^2b_mm = 50.0 # mmh_mm = 100.0 # mmI_strong_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_strong_mm4)Rz_ref_N = -P_val # 1000 N upward
# ── Comparison ────────────────────────────────────────────────────────────print()print("=" * 65)print("Cantilever Beam — Static Linear Elastic — 1D Beam Elements")print("=" * 65)print()
delta_fea = disp.get_min_result("z").zfea_mm = float(delta_fea)compare("Tip deflection (z) [mm]", fea_mm, delta_ref_mm, tol_pct=1.0)
Rz_fea = sum_reactions(react, fixed_nodes, "z")fea_rz = float(Rz_fea)compare("Reaction force Rz [N]", fea_rz, Rz_ref_N, tol_pct=1.0)© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them