strip
A precompressed strip clamped at both ends at given angles (the exact planar elastica, inextensible), pushed sideways at a point under displacement control, followed by pseudo-arclength continuation along one branch, from a margin below the lowest resting state to a margin above the highest (it says where the branch ends: margin, force cap, nearly taut, or a fold). Finds every resting state (zero force): deflection, energy, push stiffness, and stability by the second variation of the energy (smallest eigenvalue of the constrained Hessian, ends clamped, end shortening held; stable when positive). The barrier along the pushed path (its energy peak is itself a resting state, refined exactly: the path saddle), kept apart from the energy of other stationary states. Shortcuts for end angles alpha +- beta: bidirectional (parallel ends, exterior alternate angles) and unidirectional (ends tilted to one side). Dimensionless (d/L, F L^2/EI, U L/EI, k L^3/EI); with E, thickness, width and length (or EI and length): the curve in m, N, J, stiffness in N/m, barriers in mJ, bending stress at rest and per mm of vibration, and length_m and EI_Nm2 as readings for a chained instrument; with a mass, natural frequencies. Files: curves.csv (precompression_pct, d_over_L, force, energy, case, deflection_m, force_N, energy_J), scene.glb. 0.3.0: the old energy_barrier_* readings now mean the path barrier; the S-shaped state's energy is other_state_energy_above_lower.
- Field
- Mechanics, CAD and finite elements
- Version
- 0.3.0
- Runs as
- Compiled (Rust)
- Typical run
- 10 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001nearly straight clamped strip (dl/L 1e-4): rests at d/L = (2/pi) sqrt(dl/L) under the Euler load 4 pi^2; the snap passes the first antisymmetric mode, load 80.763 (kL = 8.9868); stability (derived in NOTES.md): the constrained second variation of the Euler state has smallest eigenvalue k2^2 - 4 pi^2 = 41.2845 (k2 = 8.98682, tan(k/2) = k/2) and the S state the negative of that, with exactly one unstable directionpassed
cases.dl_0p01pct.upper_state_d_over_L{"value": 0.006366197723675814, "rel_tol": 0.002}cases.dl_0p01pct.states.2.axial_force{"value": 39.47841760435743, "rel_tol": 0.001}cases.dl_0p01pct.states.1.axial_force{"value": 80.76291422570655, "rel_tol": 0.001}cases.dl_0p01pct.stable_count= 2misseddifferscases.dl_0p01pct.states.0.stability_eigenvalue{"value": 41.28449, "rel_tol": 0.002}cases.dl_0p01pct.states.2.stability_eigenvalue{"value": 41.28449, "rel_tol": 0.002}cases.dl_0p01pct.states.1.stability_eigenvalue{"value": -41.28449, "rel_tol": 0.002}cases.dl_0p01pct.states.1.unstable_directions= 1misseddifferscases.dl_0p01pct.states.0.unstable_directions= 0misseddifferscases.dl_0p01pct.states.0.stable= truemisseddifferscases.dl_0p01pct.states.1.stable= falsemisseddiffersr0002clamped strip, exact elastica (k = sin 15 deg): dl/L = 2 - 2E(k)/K(k), rise kL/K(k), PL^2/EI = (4K(k))^2; the curve of a strip symmetric about its middle point is odd, F(-d) = -F(d) (tolerance 1e-3: linear interpolation between path points); its energy column is the integral of its force column, U = U0 + int F dd (virtual work, tolerance 5e-5 of the energy range: spline quadrature measures 5e-6 here, the trapezoid rule 3e-5 to 7e-4, so the limit fails a curve whose energy is off by more than quadrature error); both Euler states stablepassed
cases.dl_6p75678pct.upper_state_d_over_L{"value": 0.1619499673748609, "rel_tol": 0.001}cases.dl_6p75678pct.states.2.axial_force{"value": 40.864925742660446, "rel_tol": 0.001}cases.dl_6p75678pct.curve.oddness_mismatch{"max": 0.001}cases.dl_6p75678pct.curve.energy_vs_force_integral{"max": 5e-05}cases.dl_6p75678pct.curve.reaches_upper_state= truemisseddifferscases.dl_6p75678pct.states.0.stable= truemisseddifferscases.dl_6p75678pct.states.2.stable= truemisseddifferscases.dl_6p75678pct.min_stability_eigenvalue_of_stable_states{"min": 0}r0003nearly straight clamped strip: peak curvature 4 pi sqrt(dl/L)/L (the buckled cosine), bending stress E t/2 x that; EI = E w t^3/12 and the length come back as readingspassed
cases.dl_0p01pct.rest_stress_MPa{"value": 12.566370614359174, "rel_tol": 0.003}EI_Nm20.000166667 ± 1.7e-160.000166667locked0.033 % of the tolerance usedlength_m0.1 ± 1e-130.1lockedunder 0.01 % of the tolerance usedr0004nearly flat clamped strip (dl/L 1e-4, imperfection 1e-3 deg): the pushed path crosses the first antisymmetric (S) mode, a saddle with one unstable direction and axial load k2^2 = 80.763; the barrier along it is (k2^2 - 4 pi^2) dl/L = 41.2845e-4 (U = P dl/L for a buckled mode, derived in NOTES.md). The imperfection shifts it linearly (1.5 % at 0.01 deg, 0.16 % at 1e-3, 0.05 % at 3e-4): tolerance 0.5 %. The curve's own energy peak agrees; the curve is odd and its energy is the integral of its force; with margin 0.05 the path stops 5 % of the rest deflection (2/pi) sqrt(dl/L) = 6.3662e-3 past each state, 3.1831e-4 (tolerance 5 %: the last continuation step overshoots by under 1 %)passed
cases.dl_0p01pct.path_barrier_from_lower{"value": 0.004128449, "rel_tol": 0.005}cases.dl_0p01pct.path_barrier_from_upper{"value": 0.004128449, "rel_tol": 0.005}cases.dl_0p01pct.curve_energy_peak_above_lower{"value": 0.004128449, "rel_tol": 0.005}cases.dl_0p01pct.path_saddle.axial_force{"value": 80.76291422570655, "rel_tol": 0.005}cases.dl_0p01pct.path_saddle.unstable_directions= 1misseddifferscases.dl_0p01pct.path_saddle.stability_eigenvalue{"value": -41.28449, "rel_tol": 0.005}cases.dl_0p01pct.curve.oddness_mismatch{"max": 0.001}cases.dl_0p01pct.curve.energy_vs_force_integral{"max": 5e-05}cases.dl_0p01pct.curve.reaches_upper_state= truemisseddifferscases.dl_0p01pct.curve.reaches_margin_below= truemisseddifferscases.dl_0p01pct.curve.reaches_margin_above= truemisseddifferscases.dl_0p01pct.curve.beyond_lower_state_d_over_L{"value": 0.0003183098861837907, "rel_tol": 0.05}cases.dl_0p01pct.curve.beyond_upper_state_d_over_L{"value": 0.0003183098861837907, "rel_tol": 0.05}
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 |
|---|---|---|---|
config | bidirectional | bidirectional: left alpha+beta, right alpha-beta (parallel ends at beta 0). unidirectional: left alpha+beta, right -(alpha-beta). angles: theta_left_deg and theta_right_deg as given. | |
alpha_deg | deg | 5.0 | Starting angle. |
beta_deg | deg | 0.0 | Tuning angle. |
theta_left_deg | deg | ||
theta_right_deg | deg | ||
precompressions | 1 | [0.01] | End shortening dl/L, one case each. |
load_at | 1 | 0.5 | Where the strip is pushed, as a fraction of its length. |
margin | 0.5 | How far the force-deflection path runs past the lowest and the highest resting state, as a fraction of that state's deflection. The branch can end sooner (force cap, nearly taut, fold): see cases.*.curve. | |
margin_d_over_L | The margin as an absolute d/L instead (overrides margin). | ||
force_cap | Stop a branch when the push force passes this (F L^2/EI). Default: 5 x the rest stiffness x the margin, i.e. 5 times what a linear spring would need at the margin. | ||
imperfection_deg | deg | 0.01 | A tiny parallel tilt of both clamps, so the strip can take the asymmetric snap path a real strip takes (keeps parallel-end symmetry). |
nodes | 400 | ||
EI_Nm2 | N m^2 | ||
length_m | m | ||
mass_kg | kg | A mass at the pushed point: natural frequencies of the resting states. | |
E_Pa | Pa | Young's modulus: with thickness and width gives EI, and stresses. | |
thickness_m | m | ||
width_m | m |
Readings
| Name | Unit | Meaning |
|---|---|---|
cases | per precompression (key dl_<pct>pct): states (d_over_L, energy, stiffness = push stiffness, stable (by stability_eigenvalue > 0), stability_eigenvalue, unstable_directions, lowest_eigenvalues, push_stiffness_positive, stable_by_old_test, inflections, found_from, energy_above_lower, SI fields), stable_count, bistable, curve (from/to, end_below/end_above with reason, beyond_lower/upper_state, reaches_margin_*, energy_vs_force_integral, oddness_mismatch, SI), path_saddle (the resting state at the top of the pushed path: d, energy, axial force, eigenvalues, same_as_state), path_barrier_from_lower/upper (+_mJ), curve_energy_peak_above_lower (from the curve's own energy column), other_state_energy_above_lower (+_mJ: the highest other stationary state, e.g. the S-shaped one found from the antisymmetric guess), pushed_path_passes_s_state, energy_barrier_* (= path barrier since 0.3.0), push_up/down_snap_force, symmetry_mismatch, energy_difference, stiffness_ratio_upper_to_lower, natural_frequency_Hz, stable_stiffness_N_per_m, rest_stress_MPa, stress_per_mm_MPa, min_stability_eigenvalue_of_stable_states | |
EI_Nm2 | N m^2 | bending stiffness (given, or E w t^3/12) |
length_m | m | the strip's length as given (for a chained instrument: @run:length_m) |
mass_kg | kg | |
all_states | every resting state of every case, and each path saddle, in one list (for the window) | |
curves.csv | one continuous branch per case, single-valued in d (truncated at a fold), sorted by d; SI columns empty without sizes | |
scene.glb | ||
theta_left_deg | deg | |
theta_right_deg | deg | |
load_at | 1 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.