--- title: Beam Analysis Calculator colorFrom: gray colorTo: blue sdk: gradio sdk_version: "4.31.5" app_file: app.py pinned: false --- # Beam Analysis Calculator with Natural Language Explanations This Space implements a deterministic engineering calculator for a simply-supported beam with a central point load. It shows (i) numerical results and (ii) a natural-language explanation grounded in the computed values. ## Scope and assumptions - Simply-supported beam, central point load - Square cross-section, linear elastic material - Strength check against yield; serviceability check against L/360 deflection ## Inputs and ranges - Beam length L: 0.5–10.0 m - Square side a: 0.01–0.5 m - Load P: 0.1–100 kN - Elastic modulus E: 50–300 GPa - Yield strength Sy: 100–1000 MPa ## Outputs - Max stress, max deflection, allowable deflection - Factors of safety (yield, deflection) - Pass/fail checks and overall verdict ## Explanation pipeline A compact language model (SmolLM2-135M-Instruct) consumes the structured record from the calculator and produces a concise explanation. The prompt enforces grounding and avoids introducing numbers beyond what was computed. ## Notes This tool is for educational purposes only. For safety-critical design, consult a licensed professional engineer.