Information

Simulating a Steam Engine with C++ (with sound)

Basic shortcuts

Ctrl + SSave subtitles
Ctrl + click
Double click
Edit highlighted caption
TabEdit next caption
Shift + TabEdit previous caption
EscLeave edit mode
Ctrl + SpacePlay / pause video
Ctrl + HomePlay selected caption
Ctrl + EnterSplit caption at cursor position
at current time

Advanced shortcuts

Ctrl + InsertAdd new caption
Ctrl + DeleteDelete selected caption
Ctrl + IEdit currently played segment
Shift + EnterNew line when editing
Ctrl + LeftPlay from -1s
Ctrl + RightPlay from +1s
Alt + LeftShift caption start time -0.1s
Alt + RightShift caption start time +0.1s
Alt + DownShift caption end time -0.1s
Alt + UpShift caption end time +0.1s

Annotation shortcuts

Ctrl + 1Hesitation
Ctrl + 2Speaker noise
Ctrl + 3Background noise
Ctrl + 4Unknown word
Ctrl + 5Wrong segment
Ctrl + 6Crosstalk segment
You are in the read-only mode. Close
00:00.0
00:01.5
Hey guys, Welcome back.
00:01.6
00:04.5
Today we're going to be building
a minature steam engine kit,
00:04.6
00:07.0
and simulating it using C++.
00:07.5
00:11.1
I challanged myself to finish
the entire project in one week.
00:11.2
00:16.0
So it should be a pretty wild ride,
and I think you'll like the result
00:16.1
00:20.9
I'd like to thank Rena, our first ever
Patron at the "Master Mechanic" tier for their support.
00:21.0
00:26.7
And a special thanks also to Squarespace
for sponsoring this video, and making it possible.
00:26.8
00:31.6
If you need a comprehensive tool to set up your website,
Squarespace is an amazing option.
00:31.7
00:34.0
More about them later.
00:34.1
00:37.5
[DAY 1]
[THE REAL ENGINE]
00:41.0
00:45.5
This thing has been sitting around my apartment
for months now and its finally time to open it.
00:46.0
00:51.0
Sterlingkit sent me this engine to review,
and I wasn't really sure what to do with it
00:51.1
00:54.0
Since I don't really do unboxing videos
on my channel.
00:58.0
01:03.0
Now that all the packaging is gone,
we can start going through all the pieces.
01:03.5
01:08.5
The build quality is actually pretty decent,
and they did include all of the tools that
01:08.6
01:13.3
you need to build it which is good because
I don't have any tools at my current location.
01:19.0
01:22.4
The first step is to add these rubber feet to
the bottom of the base.
01:22.5
01:27.8
Now trust me, when this bad boy gets going,
it's going to need these heavy duty motor mounts.
01:27.9
01:33.8
Next we connect the piston to the connecting rod
with a very very small wrist pin.
01:36.5
01:41.1
Then we need to connect this cylinder sleeve
to what I'm calling the cylinder head.
01:41.2
01:47.8
There is a small o-ring that goes here, and I used the wrong one
But I fixed it off camera, so don't worry.
01:47.9
01:52.7
The sleeve is attached with this plate
and four screws.
01:58.2
02:03.4
We can now put the piston into the cylinder through
the bottom and slide the valve into it's bore
02:03.5
02:05.0
in the side of the cylinder head.
02:05.1
02:10.5
The entire crankshaft and valve linkage comes
pre-assembled with the kit.
02:14.0
02:18.5
Now we can attach this plate which holds
everything together.
02:23.2
02:29.0
Once that's on, we attach the two engine mounts
which will be bolted to the base later.
02:30.8
02:36.2
The flywheel is then attached onto the crankshaft
and secured with a set screw.
02:36.7
02:40.8
The entire assembly is held onto the base
using two screws which go through the
02:40.9
02:43.3
engine mounts that we attached earlier.
02:44.8
02:49.5
And now we can attach the frame to the cylinder
and engine mounts in the same way
02:49.6
02:51.2
as the other side.
02:57.0
03:00.5
The manufacturer includes a pulley for the
opposite side of the crankshaft which
03:00.6
03:05.4
I guess you can use to drive a load of some
kind. This attached the same way as the
03:05.5
03:08.0
flywheel with a small set screw.
03:09.0
03:15.7
Now lets move onto the boiler. After putting the
orange o-ring in the correct place, we can attach
03:15.8
03:17.5
the outlet to the top of the tank.
03:18.0
03:24.5
The two halves of the tank are held together with
12 screws around the perimeter, and three of those
03:24.6
03:29.0
screws are actually special, and they work as studs
to attach the three legs that hold the boiler
03:29.1
03:33.9
above the base of the engine.
03:36.0
03:38.8
Three screws then hold the legs to the base.
03:41.4
03:46.0
Once we attach this hose and the blow-off
valve, we're done.
03:53.0
03:54.0
(He also attaches a tiny little chimney) (SO CUTE)
03:56.0
04:01.0
After filling the engine (boiler) with distilled water,
we can add fuel to the cup under the boiler.
04:01.7
04:06.7
You should use denatured alcohol for this,
and not isopropyl alcohol like I am.
04:06.8
04:11.6
I didn't really have any and this was the best
I could do given my time constraints.
04:11.7
04:16.5
Isopropyl alcohol has a very sooty flame which
you can see in the video.
04:16.6
04:21.0
You probably also don't want to run this indoors
on a flammable surface which is also exactly
04:21.1
04:24.8
what I'm doing. Now trust me, I know a thing or two
about freak accidents okay?
04:24.9
04:30.5
This is me almost getting Jay Lenoed while I was
trying to film footage for my first Engine Simulator video.
04:31.0
04:36.2
Anyway, I wanted to try running this engine longer
but decided to wait until I had the right fuel and
04:36.3
04:38.5
a better environment to test it in.
04:39.0
04:44.0
While it was running though, it was extremely cool
and it worked surprisingly well.
04:57.0
05:01.8
I think I'm more suited to operating a keyboard,
so let's move over to the computer and start
05:01.9
05:05.9
writing the simulation. Now you might think that I
opened VS Code and started doing some
05:06.0
05:11.8
really cool prototyping or something but no,
I like to start with the art personally.
05:11.9
05:17.2
Now i know it seems a little backwards but I think
that all the parts of a project are intrinsically linked
05:17.3
05:24.0
and kind of guide each other. It's kind of like how
some games have their soundtrack written before the game.
05:24.5
05:30.5
Anyway, I started visualizing the program in Blender
and seeing what problems might come up in the development.
05:30.6
05:35.0
These assets are all temporary but they can be
cleaned up later.
05:35.1
05:40.5
After a few hours, I had 2D models for all of the
important components of the engine, and this is
05:40.6
05:45.0
enough to get started with the programming, and it's
a good place to end day one.
05:46.6
05:54.4
As some of you know, I recently quit my full-time
job at Google to work on YouTube and Engine Simulator full-time.
05:54.5
05:59.4
It's been a really interesting experience starting
my own business and managing an online brand,
05:59.5
06:06.0
and that's where today's sponsor, Squarespace comes in.
Squarespace is a comprehensive website building and
06:06.1
06:10.9
hosting tool that has a lot of features that are
perfectly suited to online creators like myself.
06:11.0
06:16.9
I'm actually building my company's website with Squarespace
and they offer a wide array of analytics to help you
06:17.0
06:23.0
adjust your site to your target audience. They also offer a member areas feature, which is great for
06:23.1
06:29.0
my current model, which relies on online supporters.
It also integrates easily with my other social media.