A monatomic gas goes clockwise round a rectangle: up at from to , out to , down, and back. You will make the program find the net work, the heat taken in, and the efficiency of an engine using this cycle.
The idea. The net work is the area of the loop. Heat goes in on the two steps where the gas warms: A to B at a steady volume, , and B to C at a steady pressure, . The efficiency is .
Your tasks.
W.Q_AB, Q_BC and the total heat taken in, Q_in.eff.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…