Skip to main content
Version: 0.4.0

Euler–Bernoulli beam

Verification of eulerBernoulliBeam against closed-form solutions. All results are from FEAScript-core 0.4.0.

Cantilever beam​

A cantilever of length L=4L = 4, EI=105EI = 10^5, with a tip load P=−1000P = -1000, on a single element.

Cantilever beam of length 4 on one element, clamped at node 1, with a tip load at node 2

The exact tip deflection and rotation are

w(L)=PL33EI,θ(L)=PL22EI,w(L) = \frac{P L^3}{3 EI}, \qquad \theta(L) = \frac{P L^2}{2 EI},

which the cubic Hermite element reproduces.

QuantityExactFEAScriptAbsolute errorRelative error
Tip deflection w(L)−16/75-16/75 (−0.213333…)−0.21333333333333346.9e-173.2e-16
Tip rotation θ(L)−2/25-2/25 (−0.08)−0.080000000000000044.3e-175.4e-16
Clamped end w(0)000–
Clamped end θ(0)000–

The FEAScript values are printed in full, as the shortest decimals that identify each double precision number. The errors are measured against the exact fractions. The relative errors are 3 and 5 times the unit round-off of double precision, the number format of JavaScript, u=2−53≈1.1×10−16u = 2^{-53} \approx 1.1 \times 10^{-16}: the element is exact, and only the arithmetic rounds. The clamped values are exactly 0 because they are prescribed.

The test requires each value to match within 1e-9.

Element stiffness matrix​

The test also compares the assembled stiffness matrix of a single element, entry by entry, with the textbook Hermite beam matrix, whose entries scale with EI/LEI / L, EI/L2EI / L^2 and EI/L3EI / L^3. It does this for two combinations of EIEI and LL, so that both scalings are checked.

EIEILLLargest entry (4EI/L4EI/L)Largest differenceRelative to largest entry
2×1062 \times 10^651.6×1061.6 \times 10^62.3e-101.5e-16
7.5×1047.5 \times 10^42.51.2×1051.2 \times 10^52.9e-112.4e-16

The test requires every entry to match within 1e-6: eulerBernoulliBeam1DCantilever.