Perform real structural engineering calculations — beam deflection, stress analysis, buckling, safety factors. Uses numpy and scipy with built-in helper functions.
name structural-analysis description Perform real structural engineering calculations — beam deflection, stress analysis, buckling, safety factors. Uses numpy and scipy with built-in helper functions. metadata {"openclaw":{"emoji":"🔩","requires":{"anyBins":["python3"]}}} Structural Analysis Tool Run structural engineering calculations with real physics. Built-in Helper Functions beam_deflection_simply_supported(F, L, E, I, x) — Point load deflection beam_max_stress(M, c, I) — Maximum bending stress σ = Mc/I safety_factor(strength, stress) — Factor of safety euler_buckling(E, I, L, K) — Critical buckling load moment_of_inertia_rect(b, h) — I = bh³/12 moment_of_inertia_circle(d) — I = πd⁴/64 Usage python3 /workspace/bridge.py structural_analysis ' F = 5000 # 5kN load L = 1.5 # 1.5m span E = 200e9 # Steel b, h = 0.04, 0.08 # 40x80mm beam I = moment_of_inertia_rect(b, h) delta = beam_deflection_simply_supported(F, L, E, I) sigma = beam_max_stress(FL/4, h/2, I) sf = safety_factor(250e6, sigma) print(f"Deflection: {delta1000:.3f} mm") print(f"Max stress: {sigma/1e6:.1f} MPa") print(f"Safety factor: {sf:.2f}") ' Always use SI units: meters, Newtons, Pascals. Always compute and report safety factors.