Skip to content

Simply supported beam — Static linear elastic — 1D Beam elements

A simply-supported beam (pinned at x=0 and x=L) under uniform distributed load w (N/mm) applied as equivalent nodal forces.

Analytical (Euler-Bernoulli), all in mm / N / MPa: I = b * h^3 / 12 = 50 * 100^3 / 12 = 4,166,667 mm^4 delta_mid = -5 * w * L^4 / (384 * E * I) R_each = w * L / 2

NOTE on section axes: same caveat as cantilever_static_1d.py — the I used here is the strong-axis I for z-bending. If the FEA beam element maps a different section property, the deflection will differ by the ratio of the two I values (factor of 4 for 50x100 section).

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 displacement (magnitude [mm])

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

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

Quantity / reference fromxfeaReferenceDeviationTolerance
Mid-span deflection (z) [mm]
analytical
-2.3329-2.3812.02 %1 %
Reaction Rz at x=0 [N]
analytical
10000100000.00 %1 %
Reaction Rz at x=L [N]
analytical
10000100000.00 %1 %

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

from xfea.problem import Problem, StaticStep
from xfea.results import DisplacementFieldResults, ReactionFieldResults, SectionForcesFieldResults
from _bench_utils import (
simply_supported_beam_1d,
compare,
out_dir,
sum_reactions,
)
# ── Model ─────────────────────────────────────────────────────────────────
model, part, start_nodes, end_nodes, mid_nodes, material, section, length = simply_supported_beam_1d()
# ── Load ──────────────────────────────────────────────────────────────────
w = 10.0 # distributed load intensity
total_load = w * length
load_per_node = -total_load / max(1, len(part.nodes))
problem = model.add_problem(Problem(name="ss_static_1d"))
step = problem.add_step(StaticStep(name="service"))
step.add_uniform_forcefield(nodes=part.nodes, z=load_per_node, 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) ───────────
w_val = 10.0 # N/mm
L_mm = 2000.0 # mm
E_MPa = 210_000.0 # N/mm^2
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 = -5.0 * w_val * L_mm**4 / (384.0 * E_MPa * I_mm4)
R_ref_N = w_val * L_mm / 2.0 # 10,000 N per support
# ── Comparison ────────────────────────────────────────────────────────────
print()
print("=" * 65)
print("Simply Supported Beam — Static Linear Elastic — 1D Beam Elements")
print("=" * 65)
print()
delta_fea = disp.get_min_result("z").z
fea_mm = float(delta_fea)
compare("Mid-span deflection (z) [mm]", fea_mm, delta_ref_mm, tol_pct=1.0)
Rz_start = sum_reactions(react, start_nodes, "z")
fea_rz0 = float(Rz_start)
compare("Reaction Rz at x=0 [N]", fea_rz0, R_ref_N, tol_pct=1.0)
Rz_end = sum_reactions(react, end_nodes, "z")
fea_rzL = float(Rz_end)
compare("Reaction Rz at x=L [N]", fea_rzL, R_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