Cantilever beam — Modal analysis — 3D Solid elements
Free-vibration analysis of a cantilever beam modelled as a solid box (L x b x h).
The solid model captures both bending axes, so modes interleave: I_strong = bh^3/12 = 4.1667e-6 m^4 I_weak = hb^3/12 = 1.0417e-6 m^4
Analytical (Euler-Bernoulli): f_n = beta_n^2 / (2piL^2) * sqrt(EI / (rhoA))

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
Verification
Section titled “Verification”In the latest verification run, on 2026-11-21, through the conversion service as users solve, 6 of 6 checks pass.
| Quantity / reference from | xfea | Reference | Deviation | Tolerance | |
|---|---|---|---|---|---|
| weak-axis mode 1 (beta=1.8751) analytical | 41.923 | 41.776 | 0.35 % | 10 % | |
| strong-axis mode 1 (beta=1.8751) analytical | 83.206 | 83.551 | 0.41 % | 10 % | |
| weak-axis mode 2 (beta=4.6941) analytical | 259.82 | 261.81 | 0.76 % | 10 % | |
| strong-axis mode 2 (beta=4.6941) analytical | 499.09 | 523.61 | 4.68 % | 10 % | |
| weak-axis mode 3 (beta=7.8548) analytical | 715.31 | 733.07 | 2.42 % | 10 % | |
| strong-axis mode 3 (beta=7.8548) analytical | 1369.6 | 1466.1 | 6.59 % | 10 % |
The script
Section titled “The script”examples/scripts/04_reference_cases/benchmarks/cantilever_modal_3d.py. Run it from the repository with uv run python examples/scripts/04_reference_cases/benchmarks/cantilever_modal_3d.py, or, with xfea-examples installed, xfea-examples run 04_reference_cases/benchmarks/cantilever_modal_3d.py.
from xfea.problem import ModalAnalysis, Problem
from _bench_utils import ( A_M2, E_PA, I_STRONG_M4, I_WEAK_M4, L_CANT_M, RHO_KGM3, cantilever_analytical_frequencies, cantilever_beam_3d, match_and_compare_frequencies, out_dir,)
# ── Model ─────────────────────────────────────────────────────────────────model, part, fixed_nodes, tip_nodes, material, section, L, b, h = cantilever_beam_3d( name="bench_cantilever_modal_3d",)
# ── Problem ───────────────────────────────────────────────────────────────problem = model.add_problem(Problem(name="cantilever_modal_3d"))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) ─ref = cantilever_analytical_frequencies( L_CANT_M, E_PA, RHO_KGM3, A_M2, I_STRONG_M4, I_WEAK_M4, n_betas=3,)
# ── Comparison ────────────────────────────────────────────────────────────fea_freqs = list(modal.frequencies)
print()print("=" * 65)print("Cantilever Beam — Modal Analysis — 3D Solid Elements")print("=" * 65)print()
match_and_compare_frequencies(fea_freqs, ref, tol_pct=10.0)© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them