File size: 1,308 Bytes
c6a8d7d
bddffd0
 
c6a8d7d
 
bddffd0
c6a8d7d
 
 
 
bddffd0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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.