Verification
On this page
Luma is verified against closed-form textbook solutions at three levels: the solver and mesh generator (Go), the design calculations that run in the browser (flexure, crack width, shear, punching), and the same benchmark models recreated inside the app. Every published number is reproduced by the commands below and asserted on every push.
Start with one model
Download the four-column model col-four-udl.geomodel.json, import it with Import from File and run the Verification load case. The column reactions should read 160 kN each and 640 kN total. The step-by-step route is in Run your first slab.
Reproduce
go run ./cmd/verify # solver + mesh benchmarks (section 1)
go test ./... # full Go suite
cd web && npm run verify:design # design checks (section 2)
cd web && npm test # full browser-module suite
1. Solver and mesh benchmarks
All cases are linear elastic with self weight excluded. Beam sections are 0.3 m wide (E = 30 GPa); the plates are 0.2 m thick (E = 30 GPa, ν = 0.3) on a 24 × 24 MITC4 mesh unless noted; the mats and caps are 8 m square on a 1 m mesh.
| 1 - Cantilever, L = 4 m, P = 100 kN at tip, w = 20 kN/m | 2 - Fixed-fixed beam, L = 10 m, w = 20 kN/m, P = 150 kN centre |
| 3 - Propped cantilever, L = 10 m, w = 20 kN/m | 4–5 - Simply supported plate, a = 10 m; q = 10 kPa / P = 100 kN centre |
| 6 - Clamped plate, a = 10 m, q = 10 kPa | 7 - Line-supported plate, 8 × 4 m, q = 10 kPa |
| 8 - Mat on Winkler soil, k = 30 MN/m³, q = 10 kPa | 9–10 - Four-column flat plate, q = 10 kPa / P = 200 kN centre |
| 11–12 - Four-pile cap, k = 50 MN/m / single pile, P = 100 kN | 13–14 - Shaft pile with tip spring / pile with two soil layers |
| 15 - Perimeter walls below slab, q = 10 kPa | 16 - Foundation wall, top line w = 50 kN/m only |
| 17 - Wall cantilever, lateral w = 10 kN/m | 18–19 - Layer stiffness totals / tall wall mean membrane |
| # | Example | Quantity | Analytical | Luma | Error |
|---|---|---|---|---|---|
| 1 | Cantilever, tip point load | Tip deflection | 22.76 mm | 22.76 mm | 0.00% |
| 1 | Cantilever, UDL | Tip deflection | 6.827 mm | 6.827 mm | 0.00% |
| 1 | Cantilever, tip point load | Base moment about Y | 400.00 kNm | 400.00 kNm | 0.00% |
| 2 | Fixed-fixed beam, UDL | Midspan deflection | 3.215 mm | 3.215 mm | 0.00% |
| 2 | Fixed-fixed beam, UDL | Support moment | 166.67 kNm | 166.67 kNm | 0.00% |
| 2 | Fixed-fixed beam, central point load | Midspan deflection | 4.823 mm | 4.823 mm | 0.00% |
| 3 | Propped cantilever, UDL | Prop reaction | 75.00 kN | 75.00 kN | 0.00% |
| 3 | Propped cantilever, UDL | Fixed-end moment | 250.00 kNm | 250.00 kNm | 0.00% |
| 4 | Simply supported plate, UDL | Centre deflection | 18.48 mm | 18.66 mm | 0.95% |
| 5 | Simply supported plate, central point load | Centre deflection | 5.278 mm | 5.344 mm | 1.25% |
| 6 | Clamped plate, UDL | Centre deflection | 5.733 mm | 5.795 mm | 1.09% |
| 7 | Rectangular plate, line supports, UDL | Centre deflection | 1.245 mm | 1.246 mm | 0.14% |
| 7 | Rectangular plate, line supports, UDL | Reaction total | 320.00 kN | 320.00 kN | 0.00% |
| 7 | Rectangular plate, line supports, UDL | Centre short-span moment My | 15.99 kNm/m | 15.69 kNm/m | 1.88% |
| 8 | Mat on Winkler soil, uniform load | Area-weighted settlement | 0.3333 mm | 0.3333 mm | 0.00% |
| 8 | Mat on Winkler soil, uniform load | Spring reaction total | 640.00 kN | 640.00 kN | 0.00% |
| 9 | Four-column slab, uniform load | Worst column reaction | 160.00 kN | 160.00 kN | 0.00% |
| 10 | Four-column slab, central point load | Worst column reaction | 50.00 kN | 50.00 kN | 0.00% |
| 11 | Single central column, top point load | Stub axial at slab | 100.00 kN | 100.00 kN | 0.00% |
| 12 | Four-pile cap, uniform load | Worst pile force | 160.00 kN | 160.00 kN | 0.00% |
| 12 | Four-pile cap, uniform load | Pile force total | 640.00 kN | 640.00 kN | 0.00% |
| 13 | Single pile, point load | Head settlement | 2.000 mm | 2.000 mm | 0.00% |
| 13 | Single pile, point load | Tip force | 100.00 kN | 100.00 kN | 0.00% |
| 13 | Single pile, point load | Tip bearing pressure | 353.68 kPa | 353.68 kPa | 0.00% |
| 14 | Shaft pile, point load, tip spring | Tip force | 100.00 kN | 100.00 kN | 0.00% |
| 14 | Shaft pile, point load, tip spring | Tip bearing pressure | 353.68 kPa | 353.68 kPa | 0.00% |
| 15 | Pile shaft springs, two layers | Total axial skin + tip stiffness | 59200 kN/m | 59200 kN/m | 0.00% |
| 15 | Pile shaft springs, two layers | Total lateral stiffness | 48000 kN/m | 48000 kN/m | 0.00% |
| 16 | Perimeter walls below slab, uniform load | Wall reaction total (each) | 360.00 kN | 360.00 kN | 0.00% |
| 17 | Foundation wall, top line load only | Base reaction total | 600.00 kN | 600.00 kN | 0.00% |
| 18 | Wall cantilever, lateral top line load | Tip deflection | 4.320 mm | 4.304 mm | 0.36% |
| 19 | Tall centre wall, uniform load | Mid-band mean membrane Ny | 60.00 kN/m | 61.72 kN/m | 2.86% |
Closed-form references
| # | Closed form |
|---|---|
| 1 | δ = PL³/3EI · δ = wL⁴/8EI · M = PL |
| 2 | δ = wL⁴/384EI · M = wL²/12 · δ = PL³/192EI |
| 3 | R = 3wL/8 · M = wL²/8 |
| 4–5 | Navier series, α = 0.00406 q a⁴/D (UDL) and α = 0.01160 P a²/D (point) |
| 6 | w = 0.00126 q a⁴/D, D = Et³/12(1−ν²) |
| 7 | Navier series for a simply supported rectangle (a/b = 2) · ΣR = qA · My from the same series (β = 0.09994) |
| 8 | w = q/k · ΣR = qA |
| 9–11 | Symmetry: R = qA/4 (UDL), R = P/4 (point), N = P (stub) |
| 12–14 | w = P/k · N = P · q = N/A · generated Σ k·overlap |
| 15–17 | Equilibrium: R = qA/2 per wall, ΣR = wL, tip δ = wH³/3D |
| 19 | Mean field ≈ qA/L (Saint-Venant, mid-height interior) |
Reactions and equilibrium
The Run analysis summary reports the applied load, the support reactions and the imbalance. Rows 1, 3, 8, 9, 10, 11, 12, 15, 16 and 17 above exercise that path - base moment, prop reaction, soil spring total, column and pile shares, wall totals - and close to machine precision for well-posed models. A large imbalance means an unstable or badly supported model: check the supports before reading results.
2. Design checks
The design functions that run in the browser are verified against independent
hand calculations on a 200 mm C32/40 slab (d = 169 mm, N12 bars, 25 mm cover).
Run with cd web && npm run verify:design.
| Check | Quantity | Hand | Luma | Error |
|---|---|---|---|---|
| EC2 flexure | Required steel, M = 50 kNm/m, d = 169 mm | 612.1 mm²/m | 612.1 mm²/m | 0.00% |
| EC2 flexure | Minimum steel, same section | 265.7 mm²/m | 265.7 mm²/m | 0.01% |
| EC2 flexure | Supplied steel, N12 @ 200 | 565.5 mm²/m | 565.5 mm²/m | 0.00% |
| EC2 crack width | Steel stress σs, Ms = 32.5 kNm/m | 266 MPa | 266 MPa | 0.00% |
| EC2 crack width | Crack width wk | 0.2 mm | 0.199 mm | 0.34% |
| EC2 crack width | Minimum steel for crack control | 241.9 mm²/m | 241.9 mm²/m | 0.00% |
| AS 3600 one-way shear | φVuc, d = 169 mm, fc = 32 MPa | 633.4 kN/m | 633.4 kN/m | 0.00% |
| ACI 318 one-way shear | φVc, d = 169 mm, fc = 32 MPa | 72.53 kN/m | 72.53 kN/m | 0.00% |
| EC2 one-way shear | vRd,c, d = 169 mm, fc = 32 MPa | 0.56 MPa | 0.56 MPa | 0.00% |
| EC2 punching | Control perimeter u1, 0.3 m square column | 3.32 m | 3.32 m | 0.05% |
| EC2 punching | Punching stress vEd, VEd = 100 kN | 0.178 MPa | 0.178 MPa | 0.05% |
| EC2 punching | Moment transfer factor β, no moment | 1 | 1 | 0.00% |
| Deflection limit | Allowable deflection, L = 6 m, EC2 | 0.024 m | 0.024 m | 0.00% |
The same module suite also carries golden-value checks for the AS 3600, ACI
318 and CSA A23.3 punching models, moment transfer (β), one-way shear size
effects, crack spacing, minimum-steel rules, deflection limits and long-term
factors - see web/js/tests/*.js.
3. Verification models
The app-reproducible benchmarks below ship as ready-to-run JSON projects in
web/projects/verification/. Import one with Import from File, run
Analysis, and compare with the expected value. Each table row names the
quantity and the view to read it in.
| Model | Run and read | Expect |
|---|---|---|
| Verify S1 - Line-supported two-way plate | Deflection plot (centre), My contour (centre), equilibrium | 1.245 mm · My 15.99 analytical / 15.69 Luma · ΣR = 320 kN |
| Verify S2 - Mat on Winkler soil | Deflection plot, bearing ⏚ view, equilibrium | w = 0.333 mm · bearing ≈ 10 kPa · ΣR = 640 kN |
| Verify S3 - Punching check | Punching summary (Σ) for C1 | u1 = 3.32 m · vEd = 0.178 MPa |
| Verify C1 - Four corner columns, UDL | Column reactions (R↓) | 160 kN each · ΣR = 640 kN |
| Verify C2 - Four columns, central point | Column reactions (R↓) | 50 kN each · ΣR = 200 kN |
| Verify C3 - Single column, concentric load | Column reactions (R↓) | Stub axial = base = 100 kN |
| Verify W1 - Perimeter walls, UDL | Wall reactions (W↓) | 360 kN per wall · ΣR = 720 kN |
| Verify W2 - Wall with top line load | Wall reactions (W↓) | R = 600 kN · q = 50 kN/m |
| Verify W3 - Tall wall, axial stress | Wall reactions (W↓); σy fringe mid-height | R = 720 kN · q = 60 kN/m · σ ≈ 300 kPa |
| Verify P1 - Four-pile cap | Column reactions (R↓) | 160 kN per pile · ΣR = 640 kN |
| Verify P2 - Single pile settlement | Deflection at the head; pile reaction | w = 2.00 mm · tip = 100 kN |
| Verify P3 - Shaft pile tip and bearing | Pile results (P⌀) | tip = 100 kN · q = 353.68 kPa |
| Verify P4 - Layered pile equilibrium | Pile results (P⌀); layer flags | head = 100 kN · ΣKz = 59 200 · ΣKx = 48 000 |
Project files
Every model above ships as a project file in web/projects/verification/
(named <key>.geomodel.json - e.g. slab-mat-soil.geomodel.json).
To run one yourself:
- In the app - Import from File in the project toolbar, pick the JSON, then run Analysis. Imported models load unsaved; give them a name with Save when you want them kept.
- From the terminal -
go test ./internal/verification -run Fixtures -vdecodes and solves all thirteen files and asserts the applied-load and ground-reaction balance of each. - After editing the builders -
cd web && npm run verify:exportregenerates the files;verification-fixtures.test.jsfails if they drift.
4. Coverage
| Area | What is checked | Where |
|---|---|---|
| Design and serviceability | Flexure, minimum steel, shear, punching, crack width, steel stress, long-term factors against hand-calculated golden values | web/js/tests/*.js |
| Solver features | Sparse solve, load combinations, cracked iteration, stiffness cache, beam diagrams | internal/solver/*_test.go |
| Mesh and floor model | Adjacent slabs, bands, drop panels, walls, piles, soil springs, mesh budgets | internal/slab/*_test.go |
| Persistence and security | Project round-trip, session scoping, admin roles, strict CSP | internal/model, internal/server |
5. Scope and limits
- Elastic benchmarks only. Cracked and long-term deflections follow the code models in Chapter 4 - Run the analysis; compare those against the same effective-stiffness and creep assumptions.
- Soil springs are linear Winkler - no tension cutoff beyond the modelled zones.
- Plate convergence. The first-order MITC4 shell is slightly stiff on coarse meshes; the 24 × 24 mesh is within ~1 % of the thin-plate solution. Refine your own model and compare converged values.
- Membrane fields are mesh-sensitive. Pointwise shell membrane stresses concentrate at restraints and load entries; only totals and mid-field means are quoted, never single-element peaks.
- Independent software comparison is a secondary check. Idealisation choices - beam section basis (centroid vs mid-plane), torsion release, cracked stiffness, mesh - normally explain the differences. Compare the same load combination, service-moment basis and supports.