Skip to content

Simple Beam โ€‹

Two textbook beams under a uniform load, and a cantilever left to vibrate, solved by Alpaca4d and set against the closed-form answers. Every Alpaca4d value on this page was produced by running the Grasshopper definitions you can download below โ€” nothing typed in by hand.

The model โ€‹

SpanL = 5 m
Line loadq = 6 kN/m, downwards
Section300 ร— 300 mm rectangle: A = 0.09 mยฒ, I = 6.75ยท10โธ mmโด (6.75ยท10โปโด mโด), shear area ฮบA = 5/6 A
MaterialE = 2.07ยท10โต N/mmยฒ, ฮฝ = 0.3, G = E / 2(1 + ฮฝ) = 7.96ยท10โด N/mmยฒ
Elements10 Force Beam Columns, five integration points each
Analysislinear static, one step

Built from Alpaca4d components only โ€” Uniaxial, RectangleCS, ForceBeamColumn, Support, Linear Load, Load Pattern, Assemble Model, Analysis Settings, Run Analysis, Beam Forces and Nodal Displacements โ€” with Grasshopper's own Line, Divide Curve and Shatter for the geometry and Bounds to read off the extremes.

Note

Why the deflections differ from the textbook by under 1%. The textbook formulas are Euler-Bernoulli: they ignore the shear strain in the beam. Alpaca4d's elastic sections do not โ€” a rectangle carries a shear area of 5/6 of its area โ€” so the beam is a Timoshenko beam and deflects a little more. Adding the shear term to the textbook formula gives Alpaca4d's numbers to six figures, which is the check that matters: the difference is physics the model includes, not error.

1. Simply supported beam โ€‹

Pinned at one end, on a roller at the other.

1.1 Bending moment โ€‹

Mmax=18ql2=18โ‹…6โ‹…52=18.75kNm

1.2 Shear force โ€‹

Vmax=12ql=12โ‹…6โ‹…5=15.0kN

1.3 Displacement at mid-span โ€‹

Bending only (Euler-Bernoulli):

ฮดb=5ql4384EI=5โ‹…6โ‹…54384โ‹…2.07โ‹…108โ‹…6.75โ‹…10โˆ’4=0.3495mm

The shear term (Timoshenko):

ฮดs=ql28GฮบA=6โ‹…528โ‹…7.96โ‹…107โ‹…0.075=0.0031mmฮด=ฮดb+ฮดs=0.3526mm

1.4 Benchmark โ€‹

Simply supportedBeam theoryAlpaca4dDifference
Shear force15.00 kN15.00 kN0.00%
Bending moment18.75 kNm18.75 kNm0.00%
Displacement, bending and shear0.3526 mm0.3526 mm0.00%
Displacement, bending only0.3495 mm0.3526 mm+0.90% โ€” the shear term

1.5 Download Grasshopper benchmark file โ€‹

GHAlpaca4d_Benchmark_SimplySupported.ghGrasshopper file ยท download

2. Cantilever beam โ€‹

Fixed at one end, free at the other. Same beam, same load.

2.1 Bending moment โ€‹

Mmax=12ql2=12โ‹…6โ‹…52=75.0kNm

2.2 Shear force โ€‹

Vmax=ql=6โ‹…5=30.0kN

2.3 Displacement at the tip โ€‹

Bending only (Euler-Bernoulli):

ฮดb=ql48EI=6โ‹…548โ‹…2.07โ‹…108โ‹…6.75โ‹…10โˆ’4=3.3548mm

The shear term (Timoshenko):

ฮดs=ql22GฮบA=6โ‹…522โ‹…7.96โ‹…107โ‹…0.075=0.0126mmฮด=ฮดb+ฮดs=3.3674mm

2.4 Benchmark โ€‹

CantileverBeam theoryAlpaca4dDifference
Shear force30.00 kN30.00 kN0.00%
Bending moment75.00 kNm75.00 kNm0.00%
Displacement, bending and shear3.3674 mm3.3674 mm0.00%
Displacement, bending only3.3548 mm3.3674 mm+0.37% โ€” the shear term

2.5 Download Grasshopper benchmark file โ€‹

GHAlpaca4d_Benchmark_Cantilever.ghGrasshopper file ยท download

3. Cantilever, natural vibration โ€‹

A slender steel bar, fixed at one end and free at the other: its first bending frequencies against Euler-Bernoulli.

SpanL = 5 m
Section100 ร— 100 mm square bar: I = 8.33ยท10โถ mmโด, mass per length ฯA = 78.5 kg/m
MaterialE = 2.1ยท10โต N/mmยฒ, ฮฝ = 0.3, ฯ = 7850 kg/mยณ
Elements20 Force Beam Columns
AnalysisNatural Vibration, 6 modes

The bar is square, so every frequency comes twice โ€” once bending about each axis โ€” and the six modes are the first three bending modes, each in two directions.

3.1 Frequencies โ€‹

fi=ฮปi22ฯ€L2EIฯAฮป1=1.8751,ฮป2=4.6941,ฮป3=7.8548

With EI = 1.75ยท10โถ Nmยฒ and ฯA = 78.5 kg/m:

f1=3.342Hzf2=20.944Hzf3=58.645Hz

3.2 Benchmark โ€‹

ModesEuler-BernoulliAlpaca4d, 20 elementsDifferenceAlpaca4d, 40 elementsDifference
1 and 23.342 Hz3.337 Hzโˆ’0.14%3.340 Hzโˆ’0.05%
3 and 420.944 Hz20.826 Hzโˆ’0.56%20.888 Hzโˆ’0.27%
5 and 658.645 Hz58.031 Hzโˆ’1.05%58.315 Hzโˆ’0.56%

Note

Why Alpaca4d is a little low, and closes in as the mesh is refined. Two things lower the frequencies. A small, fixed part โ€” 0.02%, 0.17% and 0.40% for the three modes โ€” is shear deformation, which Alpaca4d's beams include and Euler-Bernoulli leaves out. The rest is the mass: a Force Beam Column carries it at its two nodes, half each, with no rotary inertia, and lumped mass makes a beam vibrate slightly slower than the continuous bar. That part shrinks fourfold each time the elements are halved.

3.3 Download Grasshopper benchmark file โ€‹

GHAlpaca4d_Benchmark_CantileverVibration.ghGrasshopper file ยท download

๐Ÿ’ก Why the forces are exact โ€‹

A Force Beam Column is a force-based element: it takes the internal forces from equilibrium with the loads on it, the line load included, rather than from an assumed displacement field. So the shear and moment at its integration points are exact whatever the mesh โ€” one element would give the same 18.75 kNm โ€” and the nodal displacements are exact too. More elements only add places where the forces are reported.

The shear is the largest at the supports and the moment at mid-span (simply supported) or at the fixed end (cantilever); all of them are integration points, so the extremes are read exactly. The deflection is read at a node: with an odd number of elements the simply supported beam has none at mid-span, and its largest deflection falls between the nodes reported โ€” the moment there is still read, at the middle element's own middle integration point.

โš™๏ธ How the numbers were produced โ€‹

Solved on 5 October 2026 with Alpaca4d 0.11.0 and OpenSees 3.8.0, in Rhino 8.26. The definitions were built, solved and read by a script running inside Rhino, so the values in the tables are Alpaca4d's own output, to the digits shown. Open a static definition and the panels on the right show the range of the shear, the moment and the vertical displacement; open the vibration one and a panel lists the frequencies. The 40-element column comes from the same definition with 40 elements.