What this simulation shows
There are two scenes. In the power race, two climbers rise through exactly the same height, or two winch motors haul crates up a shaft if you switch the racers. You choose each racer's mass and the time it takes to reach the glowing finish line, then watch them go. In the motor efficiency scene, a tower crane on a building site lifts a pallet of bricks, and you decide how efficient its electric motor is.
Power in the stairs race
Rising through a height adds to a racer's gravitational potential energy. Power is the rate at which that energy is transferred:
With the energy in joules and the time in seconds, the power comes out in watts. A watt means a joule every second and a kilowatt means a thousand of them, so the table gives each power both ways.
The default race is the textbook comparison. Both climbers are 50 kg and climb 10 m, so each gains the same energy, yet Climber B needs only half the time and so develops double the power. Next, try the heavier climber who is slower to the top. Arriving first does not guarantee the bigger power: a racer with twice the mass gains twice the energy, so can take almost twice as long and still come out ahead.
Lifting at a steady speed, the upward force equals the weight, so the work done is also . Writing therefore gives exactly the same answer, and some courses lead with that form.
Gradients on the energy–time graph
Each racer's line climbs steadily while they are on the stairs and goes flat the moment they arrive. A steeper line means more joules every second, so the gradient is the power. Choose a racer under Gradient tool measures and drag along that line: the reading matches the power in the table, in watts, or in kilowatts when the axis is in kilojoules. After the finish the gradient drops to zero, because nothing more is being transferred.
Efficiency and the crane motor
No motor turns all of its electrical input into useful output. Some is dissipated by heating, mostly in the coils of wire and in the gears and bearings, and it spreads into the surroundings. Efficiency compares the useful output with the total input:
Both versions give the same number, because the useful and total energies are transferred over the same time. Multiply by 100 for a percentage. The three meters beside the crane fill as the load rises, and the energy in always equals the useful energy plus the wasted energy, so nothing is created or destroyed.
The Sankey diagram, two ways
The Sankey diagram draws each transfer as an arrow whose width is in proportion to what it carries. Flip it between energy for the whole lift and power for each second. The numbers change but the shape does not, which shows at a glance why the two efficiency equations agree. The diagram always draws the input arrow at the same width, so a better motor narrows the wasted arrow and widens the useful one. The useful output itself does not change for the same lift; what falls is the input the motor needs.
About the model
Everything rises at a steady speed, so kinetic energy stays constant during the lift; the brief speed-up and slow-down are ignored. For climbers, only the energy gained by the gravitational store is counted. Real muscles waste a large share of the energy they use, so energy leaves a climber's chemical store several times faster than the power shown here. The motor's efficiency is a model value you choose, not a measurement of a real crane.