One time I tried to make a steam engine simulation. It did not go well. What I learned there went into this. This was pretty much a test cobbled together in an hour or so. I found that it looked like the S282 so I went with that. Click on the different parts.
Not my finest work but it'll do.