Skip to content

Simply supported steel IPE 300 beam — Static linear elastic — 1D Beam elements

Geometry: Span L = 3 000 mm, simply supported (pinned at x=0, roller at x=L)

Section — IPE 300 (EN 10365): h = 300 mm, b = 150 mm, tw = 7.1 mm, tf = 10.7 mm

Material — S235 structural steel: E = 210 000 MPa, v = 0.3, ρ = 7.85e-9 t/mm³

Loading: Uniform distributed load q = 10 kN/m = 10 N/mm (downward, −z) Applied as equivalent nodal forces.

Analytical references (Euler-Bernoulli): δ_mid = −5·q·L⁴ / (384·E·Ixx) ≈ −0.63 mm (strong-axis bending) M_mid = q·L² / 8 = 11.25 kNm R_each = q·L / 2 = 15 000 N

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

examples/scripts/01_getting_started/ipe_beam.py. Run it from the repository with uv run python examples/scripts/01_getting_started/ipe_beam.py, or, with xfea-examples installed, xfea-examples run 01_getting_started/ipe_beam.py.

from xfea.model import Node, BeamElement
from xfea.model import ElasticIsotropic, ISection, Model
from xfea.problem import Problem, StaticStep
from xfea.results import (
DisplacementFieldResults,
ReactionFieldResults,
SectionForcesFieldResults,
)
from xfea_examples import out_dir
from xfea_examples import show_viewer
# ── Units: mm / N / MPa ───────────────────────────────────────────────────
# ── Geometry ──────────────────────────────────────────────────────────────
L = 3_000.0 # span [mm]
n_elem = 20 # beam elements along the span
# ── Material — S235 steel ─────────────────────────────────────────────────
steel = ElasticIsotropic(
E = 210_000.0, # [MPa]
v = 0.3,
density = 7.85e-9, # [t/mm³]
name = "S235",
)
# ── Section — IPE 300 (EN 10365) ─────────────────────────────────────────
ipe300 = ISection(
w = 150.0, # flange width [mm]
h = 300.0, # total height [mm]
tw = 7.1, # web thickness [mm]
tbf = 10.7, # bottom flange thickness [mm]
ttf = 10.7, # top flange thickness [mm]
material = steel,
name = "IPE300",
)
# ── Mesh ──────────────────────────────────────────────────────────────────
model = Model(name="ipe300_simply_supported")
part = model.add_part()
dx = L / n_elem
nodes = [part.add_node(Node(xyz=[i * dx, 0.0, 0.0])) for i in range(n_elem + 1)]
for i in range(n_elem):
part.add_element(BeamElement(nodes=[nodes[i], nodes[i + 1]], section=ipe300, orientation=[0,1,0]))
start_node = nodes[0]
end_node = nodes[-1]
mid_node = nodes[n_elem // 2]
# ── Boundary conditions ───────────────────────────────────────────────────
# Pinned at x = 0 (fix x, y, z; free rotations)
model.add_pin_bc(nodes=[start_node])
# Roller at x = L (fix y, z; free x and rotations)
model.add_rollerY_bc(nodes=[end_node])
# ── Load — UDL q = 10 N/mm ───────────────────────────────────────────────
q = 10.0 # [N/mm]
dx = L / n_elem # element length [mm]
# Trapezoidal nodal loads: interior nodes carry q*dx, end nodes carry q*dx/2
end_load = -(q * dx / 2) # [N] at x=0 and x=L
interior_load = -(q * dx) # [N] at all interior nodes
problem = model.add_problem(Problem(name="ipe300_static"))
step = problem.add_step(StaticStep(name="UDL"))
step.add_uniform_forcefield(nodes=[nodes[0], nodes[-1]], z=end_load, load_case="UDL")
step.add_uniform_forcefield(nodes=nodes[1:-1], z=interior_load, load_case="UDL")
# ── Output requests ───────────────────────────────────────────────────────
disp = DisplacementFieldResults()
react = ReactionFieldResults()
sf = SectionForcesFieldResults()
step.add_field_outputs([disp, react, sf])
# ── Run ───────────────────────────────────────────────────────────────────
out_path = out_dir(model.name)
problem.analyse_and_extract(path=out_path, verbose=True)
# ── Analytical references ─────────────────────────────────────────────────
Iy_ref = ipe300.Ixx # strong-axis I: h is vertical with orientation [0, 1, 0]
delta_ref = -5.0 * q * L**4 / (384.0 * steel.E * Iy_ref)
M_mid_ref = q * L**2 / 8.0 # [N·mm]
R_ref = q * L / 2.0 # [N]
# ── Results summary ───────────────────────────────────────────────────────
print()
print("=" * 65)
print(" Simply Supported IPE 300 — 3 m span — UDL 10 kN/m")
print("=" * 65)
print(f"\n Section Ixx (strong axis) : {Iy_ref:>14,.0f} mm⁴")
delta_fea = float(disp.get_result_at(mid_node).z)
print(f"\n Mid-span deflection (FEA) : {delta_fea:>10.3f} mm")
print(f" Mid-span deflection (analytical) : {delta_ref:>10.3f} mm")
print(f" Error : {abs(delta_fea-delta_ref)/abs(delta_ref)*100:>9.2f} %")
# Reactions are what the supports give: the load applied at a support node is not in them.
R_fea_start = float(react.get_result_at(start_node).z)
R_fea_end = float(react.get_result_at(end_node).z)
print(f"\n Reaction at x=0 (FEA) : {R_fea_start:>10.1f} N")
print(f" Reaction at x=L (FEA) : {R_fea_end:>10.1f} N")
print(f" Analytical reaction (each) : {R_ref:>10.1f} N")
print(f"\n Mid-span moment (analytical) : {M_mid_ref/1e6:>10.3f} kNm")
print()
print("=" * 65)
# ── Viewer ────────────────────────────────────────────────────────────────
# The viewer opens with XFEA_EXAMPLES_SHOW_VIEWER=1 (or `xfea-examples config set-show-viewer on`).
show_viewer(model, results={disp: "z", react: "z"}, units="mm")

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