OneSimulation docs Website Free books Plans on Gumroad

Docs › Verification

Verification

What was compared with what, and how close it came. These are numerical verifications against analytical or independent references. They are not experimental validation.

Reference checks

CalculationCompared withResult
3D cantilever, tip deflectionQuadratic hexahedra, the code example on this pageEuler–Bernoulli beam theory: 0.0952 mm0.0948 mm · within 0.5 %
Microwave cavity, field amplitudeSecond-order Nédélec elements, driven by an exact cavity modeAnalytical cavity mode0.013 % apart
Joule-heated bar, temperaturePotential, Joule heat and temperature solved in sequenceExact temperature parabola0.04 % apart
Ions in crossed fields, drift velocityThree ion species, 8,000 RK4 steps eachExact drift E/B = 100 km/s100.000000 km/s · 5.5 pm off
Your own equation, convergenceVariable-coefficient reaction–diffusion on 24², 48² and 96² cellsExact manufactured solution, order 2order 2.0002 · error 8.3 × 10⁻⁵
Reacting plume, total reactant64³ finite volumes, 400 RK4 stepsExact first-order decay6.3 × 10⁻¹⁶ relative
Rotating disk, mass and angular momentum512 × 512 cells over 15 orbitsConserved exactlydrift below 5 × 10⁻¹⁵
Heat transport, global heat balance576 × 384 finite volumes with circulationSources equal wall lossesdefect 1.7 × 10⁻⁷

Euler–Bernoulli beam theory is an approximate reference for a slender beam. Each example page states the model and its limits.

The example library adds a check of its own to every notebook: more than 200 worked examples, each compared with a closed-form or independent reference.

Method comparison on one problem

The 3D Poisson problem of the method-swap example has an exact solution, so the error of every discretization is known. Computed on 16 × 16 × 16 hexahedra.

MethodError against the exact solution
Finite elements, linear2.8 × 10⁻³
Finite elements, quadratic6.3 × 10⁻⁷
Finite volumes5.7 × 10⁻⁴
Finite differences, 2nd order1.1 × 10⁻³
Finite differences, 4th order1.7 × 10⁻⁸

What this does and does not show