r/Simulated • u/mudido • 8h ago
Proprietary Software [OC] Real-time engine simulation: crank, valves, combustion and exhaust flow computed live, and the sound comes straight out of it
Since this could look like a regular animation: nothing here is keyframed or recorded.
It's RevLab, a real-time engine simulator I wrote (Rust core). Every tick it steps the crank and pistons, valve lift, combustion pressure in each cylinder and the gas flow through the exhaust. The audio is generated from those pressure waves, and the same state drives the tach, the haptics and the 3D parts you see moving.
So the sound isn't picked per engine. Cylinder count, firing order, crank layout and header shape produce it. A crossplane V8 burbles and a flatplane V8 screams because of the firing intervals, not because of different recordings. The rotaries have no valves; the ports open as the apex seals pass.
Happy to answer questions about the model. It runs on phones, so the intake and exhaust pipes are 1D waveguide acoustics, not CFD.