Repository navigation
MiataPhySim v0.4.0-alpha (work in progress)
Pre-release
Pre-release
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