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 deg (exact, elliptic integrals): dl/L = 2 - 2E(k)/K(k), PL^2/EI = (2K(k))^2, k = sin(slope/2)passed
critical.dl_13p5136mm.theta_stable_deg{"value": 30.0, "rel_tol": 0.0001}critical.dl_13p5136mm.p_stable{"value": 10.216231435665112, "rel_tol": 0.0001}r0002pinned-pinned Euler elastica, end slope 60 deg (exact, elliptic integrals): dl/L = 2 - 2E(k)/K(k), PL^2/EI = (2K(k))^2, k = sin(slope/2)passed
critical.dl_51p7961mm.theta_stable_deg{"value": 60.0, "rel_tol": 0.0001}critical.dl_51p7961mm.p_stable{"value": 11.367017035003174, "rel_tol": 0.0001}r0003fixed-pinned, nearly straight: the axial force at rest is the Euler load 20.1907 EI/L^2 (tan kL = kL)passed
critical.dl_0p01mm.p_stable{"value": 20.19072855642663, "rel_tol": 0.0002}
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^2). |
Readings
| Name | Unit | Meaning |
|---|---|---|
critical | ||
curves.csv | ||
scene.glb | ||
EI_Nm2 | N m^2 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.