ange-yaghi / engine-sim

Combustion engine simulator that generates realistic audio.
http://engine-sim.parts/
MIT License
8.7k stars 788 forks source link

Support for 2stroke engines? #231

Open BasHeemskerk opened 2 years ago

BasHeemskerk commented 2 years ago

Are 2 stroke engines ever planned? Since the technique is ofcourse completely different.

Jckf commented 2 years ago

They're not so different. In essence all that's happening is that the crank rotates once per engine cycle instead of twice. Someone else will have to comment on how easily this would be to implement in the sim though.

BasHeemskerk commented 2 years ago

Yes but the cylinder is filled and emtpied with ports instead of valves, and different kinds of exhausts also respond differently due to other types of physics going on, like exhaust waves pushing fuel back and stuff like that. It would be very interesting to see that.

Evil-Spirit commented 2 years ago

I made it https://github.com/ange-yaghi/engine-sim/pull/309