Skip to content

Cantilever beam — Modal analysis — 2D Shell elements

Free-vibration analysis of a cantilever beam modelled as a plate (L x b, t = h).

Analytical (Euler-Bernoulli beam-strip): I = b * h^3 / 12 f_n = beta_n^2 / (2piL^2) * sqrt(EI / (rhoA))

beta_1 = 1.8751, beta_2 = 4.6941, beta_3 = 7.8548

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

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

Open in 3D turn it, cut it, hide parts: in xfea's viewer, in your browser

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

Quantity / reference fromxfeaReferenceDeviationTolerance
bending mode (beta=1.8751)
analytical
87.27683.5514.46 %5 %
bending mode (beta=4.6941)
analytical
524.4523.610.15 %5 %
bending mode (beta=7.8548)
analytical
1427.91466.12.61 %5 %

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

from xfea.problem import ModalAnalysis, Problem
from _bench_utils import (
A_M2,
CANTILEVER_BETAS,
E_PA,
I_STRONG_M4,
L_CANT_M,
RHO_KGM3,
cantilever_beam_2d,
euler_bernoulli_frequency,
match_and_compare_frequencies,
out_dir,
)
# ── Model ─────────────────────────────────────────────────────────────────
model, part, fixed_nodes, tip_nodes, material, section, L, b, h = cantilever_beam_2d(
name="bench_cantilever_modal_2d",
)
# ── Problem ───────────────────────────────────────────────────────────────
problem = model.add_problem(Problem(name="cantilever_modal_2d"))
modal = ModalAnalysis(modes=10)
problem.add_step(modal)
problem.analyse_and_extract(path=out_dir(model.name), verbose=True)
# ── Analytical references (from raw SI constants, independent of library) ─
# Shell model only bends out-of-plane → strong-axis I only.
ref = [
(euler_bernoulli_frequency(beta, L_CANT_M, E_PA, I_STRONG_M4, RHO_KGM3, A_M2, mode="cantilever"),
f"bending mode (beta={beta})")
for beta in CANTILEVER_BETAS
]
# ── Comparison ────────────────────────────────────────────────────────────
fea_freqs = list(modal.frequencies)
print()
print("=" * 65)
print("Cantilever Beam — Modal Analysis — 2D Shell Elements")
print("=" * 65)
print()
match_and_compare_frequencies(fea_freqs, ref, tol_pct=5.0)

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