Potential energy (PE) is energy stored by height. A heavier train, or a higher train, stores more: PE = m · g · h. Here g is 9.81 m/s², the pull of gravity.
Kinetic energy (KE) is energy of motion: KE = ½ · m · v². Speed is squared, so going twice as fast means four times the kinetic energy.
The chain lift does work on the train. It pulls it up the first hill and gives it all of its energy. After that, nothing adds energy. As the train drops, PE turns into KE. As it climbs, KE turns back into PE.
Thermal energy (TE) is heat. Friction in the wheels and air rubbing on the train slowly turn some energy into heat. That energy is not destroyed, but it can't move the train anymore. So no hill after the lift can be as tall as the lift hill.
At the end station, brakes turn the train's last kinetic energy into thermal energy. Brakes can only take so much. If the train still has too much kinetic energy when it gets there, it crashes. A higher end station leaves more of the energy as PE, so there is less KE for the brakes.
A loop needs speed. At the top, the train is upside down. It must be moving fast enough to stay pressed against the track. Big loops need more speed than small ones.
Force on riders is measured in g. At 1 g you feel your normal weight. At the bottom of a drop or loop you feel heavier. Over a hilltop you can feel weightless (airtime). Real coasters stay under about 5 g. This sim won't crash because of g-forces, but the results will tell you if riders felt too much.
The track is a smooth curve through your nodes. Loops are teardrop-shaped, like real ones. Their curve starts gently and gets tightest at the top, so riders aren't slammed at the bottom. The chain lift moves the train at a steady 5 m/s, so the energy at the top of the lift is mgh + ½mv². The energy bar is scaled to that amount, so you can watch the lift fill it up. After the lift, rolling friction (μ × the force between the wheels and track) and air drag turn energy into heat. The brakes at the end slow the train at 4 m/s² over 26 m, so they can stop a train arriving at up to about 14 m/s (50 km/h). Friction grows with mass but air drag does not, so a heavier train coasts a little farther. The train is tracked by its front car.