logoalt Hacker News

Combustion engine web-based simulator

91 pointsby mytunylast Sunday at 5:11 PM41 commentsview on HN

Comments

noefingwaytoday at 10:51 PM

So i'll throw this out there. When I was a growing up back in the 50's (yeah, way back then) I was given a model of a v-8 engine to build. It was clear plastic, had pistons, crankshaft, valves, and little red lights for the spark plugs. Small battery powered motor (I think in the starter motor) made everything go round and rounds. One of the coolest models I ever built as a kid.

all2today at 9:10 PM

@AngeTheGreat on youtube is worth mentioning here, I think.

He has a whole series on building out engine simulators of various types, and even published a Steam game for steam engine simulation.

His work is notable because he leans heavily into generating sound directly from the simulations.

show 2 replies
huydotnettoday at 8:06 PM

If you're looking for a carefully crafted/written work to explain internal combustion engines, look no further than this one https://ciechanow.ski/internal-combustion-engine/ (the Mechanical Watch article from the same author was featured on HN a while ago).

show 1 reply
glouwbugtoday at 9:43 PM

Gave it my own spin once: https://github.com/glouw/ensim4

Makes audio too

chris_money202today at 6:49 PM

"How it Works" -> "Idk" OP probably

show 1 reply
burnt_toasttoday at 9:43 PM

Nice little project, I inputted the dimensions of a engine I've been building (b20-vtec) and it estimated 160whp which sounds low but I also can't set up my cams properly because it looks like this was designed for SOHC engines.

Very cool either way.

mtrtoday at 9:48 PM

Exhaust temp increase with decreasing lambda, and peaks at 0.7 lambda. That part of the model is likely incorrect.

steve918today at 8:52 PM

Calling this AI slop would be generous. If we made a list of the things wrong with it we would be here all day. Nothing has an effect on redline RPM, you can create compression and turbo combos that would instantly grenade an engine, the preset “super car” has 200hp?

The only thing it illustrates is the authors lack of understanding.

butliketoday at 8:47 PM

So if I set the animation speed to 1:1 and set the RPM to 3000, that's what it would look like inside the engine when I'm ready to shift gears? Seems WAY faster than what I expected in real life

show 1 reply
amaze_28today at 7:34 PM

this is really impressive. actual movements with live diagrams looks great. you can consider adding sound to take it to another level.

kristianduponttoday at 7:55 PM

Very nice! Reminds of this classic, focused mostly on the sounds: https://github.com/ange-yaghi/engine-sim

Lwerewolftoday at 7:47 PM

187 N/A BSFC @ 2000rpm and open throttle. Tried emulating a DI 2GR-FXE. Seems a bit optimistic, but still fun to play with.

bwestergardtoday at 7:32 PM

I don't understand how the throttle and RPM can be modified independently. Surely the RPM depends on the throttle?

show 3 replies
zuzululutoday at 10:37 PM

would be awesome if it could generate sounds like how lfs does it

lwansbroughtoday at 9:10 PM

From the pre-slop era: https://www.youtube.com/watch?v=RKT-sKtR970

Geeetoday at 6:59 PM

3638 kW / 4878 hp is the most powerful engine I could build with this.

show 3 replies
BeefySwaintoday at 6:39 PM

Am I missing something? Setting the throttle to 0% seems to do nothing?

show 1 reply
perssontmtoday at 7:13 PM

I was hoping for a two stroke mode as well!

seafishertoday at 7:34 PM

really interesting project - would be good to see a link to a repo

quantumHazertoday at 7:12 PM

Probably llm slop

show 1 reply
IshKebabtoday at 8:28 PM

How can I instantly tell this is slop?

show 1 reply