API & MCP

Everything a person can do on Truss & Frame Solver (Stiffness Method), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Truss & Frame Solver (Stiffness Method)

Describe a truss, a continuous beam, a 2-D frame or a 3-D space frame line by line — nodes, a steel or timber section, members with optional hinges, pin, roller and fixed supports, springs, point loads and distributed loads — and get the node displacements, the support reactions, the axial force, shear and bending moment of every member, the stress and a utilisation check against the yield strength, an Euler buckling check of the compression members and an equilibrium check. 3-D frames add torsion, bending about both axes with combined stresses for rectangle, tube and I-sections, member releases, self-weight and a buckling eigenvalue analysis of the whole frame. Diagrams show the member forces in colour, the deformed shape and the bending moments. Solved with the direct stiffness method and a sparse Cholesky solver; part of the Proofline math notebook. A checking and teaching model, not certified design.

Inputs of Truss & Frame Solver (Stiffness Method)
FieldTypeDefaultDescription
typeselect (frame2d, truss2d, truss3d, frame3d)"frame2d"Structure type
model (required)textarea—Structure (one statement per line). One statement per line, # starts a comment. node A 0 0 (x y in m; 3-D: x y z) · material steel E=210 fy=235 (GPa, MPa) · section S1 A=28.5 I=1943 W=194 (cm², cm⁴, cm³; I needed for beams and buckling checks, W for bending stress) · member M1 A B [section=S1] [material=steel] [hinge=start|end|both] [K=1] [truss] · support A pin | fixed | roller | roller-x | ux uy rz · spring B ky=5000 (kN/m; kr in kN·m/rad) · load B Fx=10 Fy=-20 M=5 (kN, kN·m) · udl M1 qy=-5 (kN/m per metre of member; qx, qn = normal to the member). 3-D frames: node A 0 0 0 · material steel (presets steel, s355, stainless, aluminium, timber, or E= G= fy= rho=) · section S1 shape=i b=100 h=200 tf=8.5 tw=5.6 (rect b h, circle d, tube d t, rhs b h t in mm) or A= Iy= Iz= J= Wy= Wz= Wt= · member M1 A B [ref=0,0,1] [roll=90] [hinge=end] [release=start:t+my+mz] [Ky=… Kz=…] [truss] · support A fixed | pin | ux uy uz rx ry rz · spring B kz=5000 krx=… · load B Fx Fy Fz Mx My Mz · udl M1 qz=-5 (global; add local for member axes) · selfweight.
deflectionLimitnumber250Deflection limit L/…. Beam spans that sag more than span/limit are flagged (250 is a common serviceability figure; check the code that applies).
bucklingbooleantrueBuckling analysis of the whole frame (3-D frames). Linear buckling eigenvalue analysis: the factor by which all loads can grow before the frame buckles elastically.
azimuthnumber-60View azimuth (3-D frames). Direction the drawings are seen from, measured about the vertical z axis from +x (−60° looks at the x–z face from the front right).
elevationnumber25View elevation (3-D frames). Height of the viewpoint above the x–y plane (90° = plan view from above).
diagramselect (auto, My, Mz, N, T, Vy, Vz)"auto"Diagram (3-D frames)

Example request

Simply supported steel beam with a uniform load (5wL⁴/384EI)

curl -X POST https://prooflinetrussframesolver.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"type":"frame2d","model":"# IPE 200, 6 m span, 5 kN/m\nnode A 0 0\nnode B 6 0\nmaterial steel E=210 fy=235\nsection IPE200 A=28.5 I=1943 W=194\nmember M1 A B\nsupport A pin\nsupport B roller\nudl M1 qy=-5"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "proofline-truss-frame-solver": { "type": "http", "url": "https://prooflinetrussframesolver.usefulweb.site/mcp" }
  }
}