elastica
The planar elastica, exact (no small-angle approximation): an inextensible straight beam, ends l = L - dl apart, right end pinned and turned (angle control), left end pinned or clamped.
Finite differences in the beam angle, Newton with a sparse Jacobian, pseudo-arclength continuation from the stable state through the moment limit to the fold where the beam snaps.
Per precompression: stable angle, moment limit, angle limit, the output's extreme, energies, axial force at rest (named as buckled_beam names them).
Files curves.csv, scene.glb (the exact shapes at the critical states, mm).
- Field
- Mechanics, CAD and finite elements
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 5 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001pinned-pinned Euler elastica, end slope 30° (exact, elliptic integrals): dl/L = 2 - 2E(k)/K(k), PL²/EI = (2K(k))², k = sin(slope/2)passed
critical.dl_13p5136mm.theta_stable_deg= 30, within 0.01 %reading not recorded on this pagecritical.dl_13p5136mm.p_stable= 10.216231, within 0.01 %reading not recorded on this pager0002pinned-pinned Euler elastica, end slope 60° (exact, elliptic integrals): dl/L = 2 - 2E(k)/K(k), PL²/EI = (2K(k))², k = sin(slope/2)passed
critical.dl_51p7961mm.theta_stable_deg= 60, within 0.01 %reading not recorded on this pagecritical.dl_51p7961mm.p_stable= 11.367017, within 0.01 %reading not recorded on this pager0003fixed-pinned, nearly straight: the axial force at rest is the Euler load 20.1907 EI/L² (tan kL = kL)passed
critical.dl_0p01mm.p_stable= 20.190729, within 0.02 %reading not recorded on this page
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
ends | pinned_pinned | ||
length_m | m | 0.2 | |
width_m | m | 0.025 | |
thickness_m | m | 0.00025 | |
E_Pa | Pa | 210000000000.0 | |
precompressions_m | m | [0.003, 0.005, 0.0075] | |
nodes | 800 | Grid nodes along the beam (error falls as 1/nodes²). |
Readings
| Name | Unit | Meaning |
|---|---|---|
critical | ||
curves.csv | ||
scene.glb | ||
EI_Nm2 | N m² |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.