Cantilever beam — Modal analysis — 1D Beam elements
Free-vibration analysis of a cantilever beam (fixed at x=0, free at x=L).
Analytical (Euler-Bernoulli): f_n = beta_n^2 / (2piL^2) * sqrt(EI / (rhoA))
beta_1 = 1.8751, beta_2 = 4.6941, beta_3 = 7.8548The rectangular section (w=50mm, h=100mm) has two bending axes: I_strong = wh^3/12 = 4.1667e-6 m^4 (bending in x-z plane) I_weak = hw^3/12 = 1.0417e-6 m^4 (bending in x-y plane)
Modes appear in frequency order, interleaving both axes.

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, 3 of 6 checks pass.
| Quantity / reference from | xfea | Reference | Deviation | Tolerance | |
|---|---|---|---|---|---|
| weak-axis mode 1 (beta=1.8751) analytical | 41.986 | 41.776 | 0.50 % | 2 % | |
| strong-axis mode 1 (beta=1.8751) analytical | 83.255 | 83.551 | 0.35 % | 2 % | |
| weak-axis mode 2 (beta=4.6941) analytical | 260.48 | 261.81 | 0.51 % | 2 % | |
| strong-axis mode 2 (beta=4.6941) analytical | 501.54 | 523.61 | 4.22 % | 2 % | |
| weak-axis mode 3 (beta=7.8548) analytical | 718.13 | 733.07 | 2.04 % | 2 % | |
| strong-axis mode 3 (beta=7.8548) analytical | 637.51 | 1466.1 | 56.52 % | 2 % |
The script
Section titled “The script”examples/scripts/04_reference_cases/benchmarks/cantilever_modal_1d.py. Run it from the repository with uv run python examples/scripts/04_reference_cases/benchmarks/cantilever_modal_1d.py, or, with xfea-examples installed, xfea-examples run 04_reference_cases/benchmarks/cantilever_modal_1d.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_1d, match_and_compare_frequencies, out_dir,)
# ── Model ─────────────────────────────────────────────────────────────────model, part, fixed_nodes, tip_nodes, material, section, length = cantilever_beam_1d( name="bench_cantilever_modal_1d",)
# ── Problem ───────────────────────────────────────────────────────────────problem = model.add_problem(Problem(name="cantilever_modal_1d"))modal = ModalAnalysis(modes=6)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 — 1D Beam Elements")print("=" * 65)print()
match_and_compare_frequencies(fea_freqs, ref, tol_pct=2.0)© 2026 Francesco Ranaudo · Text and pictures CC BY 4.0 · Code Elastic License 2.0 · how to reuse them