Repository navigation
Releases
MiataPhySim v0.5.0-alpha (work in progress)
Work in progress. An alpha of a 2D impact and armour physics simulator: an SPH hydrocode written from scratch in C++20. Expect rough edges, changes and fixes.
Download & run (Windows 10/11, 64-bit)
- Download
miataphysim-v0.5.0-alpha-windows-x64.zipbelow and unzip it. - Double-click
miataphysim.exe. Nothing to install. - Keep the
scenariosandlibraryfolders next to the.exe.
New since v0.4.0-alpha
Tank rounds and tank armour
- Modern APFSDS rounds with pointed noses: DM53, M829A3, 3BM60 Svinets-2, 3BM59 Svinets-1.
- Ten tank armour cross-sections: turret cheeks (seen from above, with their real slant) and hull fronts (seen from the side, with real slopes) for the T-90A, T-80U, M1A2 Abrams, Leopard 2A6 and Challenger 2. Each has Kontakt-5, NERA steel-rubber packets, spaced plates, ceramics, polyurethane, glass textolite and DU layers as public estimates describe them. The armour amount follows public protection estimates divided by mass efficiency.
- Tank check (Details): an instant verdict for any round against every tank front ("gets through / stopped / too close to call"). It uses Odermatt's plate-perforation equation (fitted to 141 tungsten and DU firings, ±3.5%), with a range slider.
Moving things before a run
- A setup view before every run (ready-made and build-your-own).
- Drag the projectile or any armour with the mouse, and rotate with Q/E.
- A dashed line shows where the projectile will fly.
- Round scenarios slide along their axis.
More realistic physics
- Ceramics (JH-2): alumina (AD-995, sourced constants), boron carbide, silicon carbide.
- NERA: neoprene rubber (shock data from Marsh/LASL, anchored at rubber's real stiffness). Checked against Fras 2021: an air gap leaves the rod intact; rubber bends and breaks it.
- New materials: polyurethane, glass textolite, a brittle tungsten grade (Y925).
- "Held by the tank" mounts: armour edges far from the shot soak up the impact as if the vehicle continued there. The held zone follows where you aim and lets go of breaking material.
- Flying debris in 2D slices: broken armour no longer piles up in front of the projectile and bursts.
Validation (checked against experiments)
- Long-rod penetration within ~2–5% of Lanz-Odermatt. DM53 in a wide steel block: 502 mm vs 502 mm.
- Ballistic limit of a steel plate (Børvik): within ~1% at fine spacing. Includes a V50 tool.
- Earlier checks still hold: copper Hugoniot, Taylor bar, spall.
Known limitations
- Angled shots and tank cross-sections are 2D slices. The rod is really an infinitely wide slab, so it can bend but not yaw or shatter like a round rod. At tank scale, NERA is therefore only about as good as plain steel of the same mass (real NERA is credited with ~1.4×). Use the Tank check for tank-vs-round verdicts.
- The explosive inside ERA is not modelled yet (empty gap until Stage G).
- Depth numbers need wide targets (radius ≥ ~10 projectile diameters); the app warns.
- Tank armour make-up is secret. All layouts are public reconstructions and estimates.
- Windows build only. Linux and MinGW can be built from source.
Roadmap
✅ A elastic solids · ✅ B plasticity and shocks · 🔨 C failure · ✅ D scenario builder and library · 🔨 E validation · 🔨 F ceramics, layered/spaced armour, NERA · ⏳ G explosives (ERA, shaped charges, HESH) · ⏳ H performance, 3D
MIT licensed.
MiataPhySim v0.4.0-alpha (work in progress)
Work in progress. An early alpha of a 2D impact and armour physics simulator: an SPH hydrocode written from scratch in C++20. Expect rough edges, changes and fixes.
Download & run (Windows 10/11, 64-bit)
- Download
miataphysim-v0.4.0-alpha-windows-x64.zipbelow and unzip it. - Double-click
miataphysim.exe. Nothing to install. - Keep the
scenariosandlibraryfolders next to the.exe.
What you can do
- Build your own test: pick a projectile (steel balls, a tungsten long rod, a hard-steel rod, a fragment simulator, a copper Taylor rod, an aluminium space-debris ball) and armour (steel plates 5–120 mm, aluminium, a spacecraft-shield bumper, titanium, copper). Choose the material of every piece, stack up to 6 layers with gaps (spaced armour), set the speed and the angle.
- Ready-made experiments: the Taylor bar test, shock waves, spall, a long rod into armour steel, and more.
- Watch it happen: colour the material by pressure, stress, plastic strain, temperature or damage, scrub the timeline, and hover any particle to read its values.
- Measure: virtual gauges are plotted live, with CSV export.
- Scenario files: describe any setup in a JSON file, or run without a window:
miataphysim.exe --headless --file scenarios\spall_copper.json --csv out.csv
Physics in this version
- Shock waves follow measured Hugoniots (Mie-Grüneisen equation of state).
- Metals yield, harden and heat up (Johnson-Cook plasticity).
- Materials fail: ductile fracture (Johnson-Cook damage), spall voids that grow and join into cracks, melting.
- Energy is conserved by construction (energy-compatible SPH forces).
Checked against experiments and theory: copper shock pressure within 1% of the measured Hugoniot; Taylor bar final length within 3% of the experiment; internal spall voids in the Taylor rod about 3 mm behind the impact face, as found by sectioning real rods; spall plane position and back-face pullback in plate impacts.
Known limitations
- No ceramics yet. They need a brittle-fracture model (JH-2), planned for Stage F.
- Straight-on impacts are exact round bodies (axisymmetric). Angled shots use a 2D slice, so their depths are qualitative.
- Spall strengths are approximate and not yet rate-dependent.
- Windows build only. Linux and MinGW can be built from source.
Roadmap
✅ A elastic solids · ✅ B plasticity and shocks · 🔨 C failure · 🔨 D scenario builder and library · ⏳ E validation (long-rod penetration, ballistic limits) · ⏳ F ceramics, layered armour, ricochet · ⏳ G explosives (shaped charges) · ⏳ H performance, 3D