logoalt Hacker News

Combustion engine web-based simulator

224 pointsby mytunylast Sunday at 5:11 PM76 commentsview on HN

Comments

huydotnetyesterday 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
all2yesterday 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
noefingwayyesterday 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.

show 2 replies
mwexlertoday at 4:09 PM

I wish this had a stepper so I could see how things change at each point in the cycle. But even without, quite cool to play with.

chris_money202yesterday at 6:49 PM

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

show 1 reply
userbinatortoday at 7:18 AM

Why have a kW/Nm - HP/lbf setting, but no metric/US option for the bore and stroke?

Others here are suspicious of the numbers, but at least for the actual engine in my daily driver which I've dyno'd before, it seems reasonable with around 400HP and 450lbf for a 400ci NA V8.

glouwbugyesterday at 9:43 PM

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

Makes audio too

steve918yesterday 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.

show 2 replies
h2aichattoday at 3:54 PM

I like It, no matter what

mtryesterday at 9:48 PM

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

burnt_toastyesterday 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.

FrostKiwitoday at 3:20 AM

Interesting, I had Fable generate me a summary using an identical style, with the same square design, bg and yellow highlights

Lwerewolfyesterday 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.

other_herberttoday at 4:11 AM

I had just been daydreaming about a v12 with tiny pistons and wondering how that would behave … now I can find out … turns out it would be terrible at low speed

bwestergardyesterday 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 4 replies
butlikeyesterday 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 2 replies
kristiandupontyesterday at 7:55 PM

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

Geeeyesterday at 6:59 PM

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

show 3 replies
BeefySwainyesterday at 6:39 PM

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

show 1 reply
amaze_28yesterday 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.

perssontmyesterday at 7:13 PM

I was hoping for a two stroke mode as well!

jdw64today at 8:14 AM

If LLMs had come out when I was younger, I would have been able to understand things this easily. There are some incorrect implementations, but they're incredibly helpful for grasping the concepts.

quantumHazeryesterday at 7:12 PM

Probably llm slop

show 1 reply
seafisheryesterday at 7:34 PM

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

yunnpptoday at 12:09 AM

I am genuinely curious why OP thinks this slop post should be of interest to others. Nobody cares how you're prompting an LLM, guys.

zuzululuyesterday at 10:37 PM

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

show 1 reply
AtomicOrbitalyesterday at 11:27 PM

we have all heard of V8 ... now visualize a W12

... two pairs of V3 in a Bentley

show 1 reply
IshKebabyesterday at 8:28 PM

How can I instantly tell this is slop?

show 1 reply