Work in Thermodynamic Systems
In questa pagina 8
The "mechanical" way a gas exchanges energy with the environment: by moving a piston. Before: Thermodynamic Systems and TemperatureA thermodynamic system is described by a few state variables (p, V, T, n) that are only defined at equilibrium; the zeroth law makes temperature a well-defined quantity measured by thermometers, and the Kelvin scale is T = t(°C) + 273.15.Thermodynamic Systems and Temperature → and the mechanical definition of work. Next: First Law of ThermodynamicsA system exchanges energy with the environment as heat Q (absorbed is positive) and as work W (done by the system is positive). The change of internal energy, a state function, is ΔU = Q − W: the conservation of energy extended to thermal phenomena.First Law of Thermodynamics →.
Work done by a gas on a piston
A gas is enclosed in a cylinder by a piston of area , free to slide. The gas pushes on the piston with force (perpendicular to the piston, outwards). If the piston moves outwards by , the work done by the gas is
because is exactly the volume increase . For a finite change, from volume to volume :
Definition (thermodynamic work).
Example. A gas at constant pressure Pa going from to : J, positive because it expands.
The result does not depend on the shape of the container: it holds for any deforming surface, since only the volume change matters.
Sign convention
In thermodynamics (and in this course) the "engine" convention is used:
- : work done by the system on the environment. It happens in an expansion (): the gas pushes the piston and lifts weights, turns wheels, and so on.
- : work done on the system, i.e. by the environment on the gas. It happens in a compression ().
- if the volume does not change (isochoric transformation, piston locked).
Exam texts use both "work done by the gas" and "work done on the gas": the second is the opposite of the first, and in a compression it is a positive number.
Quasistatic, reversible, irreversible transformations
A transformation is the passage of a system from an initial to a final equilibrium state.
- Quasistatic: it proceeds so slowly that the system goes through a succession of equilibrium states. At each instant the state variables are defined, and the transformation is drawn as a curve in the Clapeyron plane . Ideally it is achieved by removing one grain of sand at a time from the piston.
- Reversible: quasistatic and without friction or other dissipative effects. It can be retraced backwards, bringing both system and environment back to the initial state. In texts: "reversible isothermal compression", "reversible expansion".
- Irreversible: all the others. Typically: a piston is suddenly released, a weight is placed on it, the gas is put in contact with a reservoir at a different temperature, the gas expands into vacuum. The system goes through non-equilibrium states: only initial and final states are known, and in the Clapeyron plane one draws (if at all) a dashed line, just to show which states it joins.
Which pressure goes in the integral
The correct general definition uses the pressure the environment exerts on the piston, . Indeed the work exchanged is that of the forces gas and environment exert on each other through the piston, and by the third law the force of the gas on the piston, if the piston has negligible mass and no friction, equals that of the environment:
- Quasistatic transformation: at every instant the gas is in mechanical equilibrium with the outside, (gas pressure), and one returns to with given by the equation of the curve (for an ideal gas ).
- Irreversible transformation: the gas pressure is not defined during the process, but the external one is (for instance atmosphere plus the weight of a block on the piston). Use .
Most frequent exam case: constant external pressure. If the environment pushes with constant pressure (atmosphere, piston with a weight on it, "external pressure suddenly brought to…"):
Formula (work at constant external pressure).
even if the transformation is irreversible. At the end the gas is again in equilibrium, so its final pressure is .
Example. A gas at in expands, by releasing the piston, against the atmosphere , up to . The work done by the gas is . The initial gas pressure, which is larger, is not used: the gas pushes harder only at the start, but the energy given to the environment is that against the external pressure.
Graphical interpretation: the area
In the Clapeyron plane (volume on the abscissa, pressure on the ordinate) the integral is the area under the curve of the transformation, between and :
- positive if one moves to the right (expansion), negative if to the left (compression);
- for an isobar ( constant) it is a rectangle: ;
- for an isochor ( constant) it is zero: ;
- for a transformation with linear in it is a trapezoid: (average pressure times volume change);
- for an isotherm of an ideal gas, , the area under the hyperbola is (derived in Transformations of Ideal GasesFor every transformation of an ideal gas compute ΔU = n c_V ΔT, the work W and the heat Q = ΔU + W. Isochoric: W = 0. Isobaric: W = nRΔT, Q = n c_p ΔT. Reversible isothermal: ΔU = 0, Q = W = nRT ln(Vf/Vi). Reversible adiabatic: Q = 0, pV^γ constant. Irreversible adiabatic: n c_V ΔT = −p_ext ΔV.Transformations of Ideal Gases →).
Grafico interattivo: Isotherm of 1 mol of ideal gas at 300 K: p = nRT/V (abscissa: V in dm³, ordinate: p in kPa). The work in the expansion from 10 to 40 dm³ is the area under the curve, nRT ln 4 ≈ 3.46 kJ
Example (trapezoid). A gas goes reversibly from , to , with pressure growing linearly. Work done by the gas:
Work depends on the path
Between the same two states A and B one can go in many ways, and the work changes. Example: from A to B with and :
- first isochor then isobar (pressure is lowered at fixed volume, then expansion at ): ;
- first isobar then isochor (expansion at , then pressure is lowered): , larger.
So work is not a state function: one cannot speak of the "work possessed" by a gas in a state, only of the work exchanged during a transformation. This is why one writes and cannot write .
Grafico interattivo: Two paths between the same states A = (10 dm³; 300 kPa) and B = (30 dm³; 100 kPa) (abscissa: V in dm³, ordinate: p in kPa; numbers chosen as an example): isochor then isobar gives W = p₂(V₂ − V₁) = 2000 J (lower area); isobar then isochor gives W = p₁(V₂ − V₁) = 6000 J (lower area plus upper area)
Work in a cycle
A cycle is a transformation that brings the system back to the initial state. In the Clapeyron plane it is a closed curve, and the total work is the enclosed area:
- positive if traversed clockwise (the expansion occurs at higher pressure than the compression: the gas does more work than it receives). This is the case of heat engines;
- negative if traversed anticlockwise (refrigerators).
Returning to the initial state the state variables regain their values, but the total work is in general not zero: another confirmation that it is not a state function. Heat Engines and RefrigeratorsA heat engine repeats a cycle: it absorbs heat, releases part of it and turns the rest into work, with efficiency η = W/Qabs = 1 − |Qrel|/Qabs. The refrigerator runs the cycle backwards. Stirling, Otto and Diesel cycles.Heat Engines and Refrigerators → are based on this.
Summary
| transformation | work done by the gas |
|---|---|
| general | |
| quasistatic | = area under the curve |
| isochoric | |
| isobaric, or against constant | |
| linear in | |
| isothermal, ideal gas | |
| cycle | enclosed area, if clockwise |
Common mistakes
- Using the gas pressure in an irreversible transformation: the external pressure counts. In the example of the expansion against the atmosphere, using gives a work wrong by .
- Sign errors: in a compression the work done by the gas is negative; if the text asks for the "work done on the gas" give the number with the sign changed.
- Leaving volumes in dm³: with in Pa the volume must be in m³, otherwise the result is a thousand times too large.
- Writing for any transformation: it holds only if the (external) pressure is constant.
Versione ripasso
For a gas in a cylinder with piston of area : . The work exchanged in a volume change is
Sign convention
- : expansion, work done by the system.
- : compression, work done on the system.
- : isochoric.
Types of transformation
- Quasistatic: equilibrium states throughout; a curve in the Clapeyron plane , with .
- Reversible: quasistatic and without dissipation (friction).
- Irreversible: no equilibrium during the process; use , which is defined.
Special cases
- Constant external pressure: . Example: Pa, dm³ to dm³: J (using would be wrong by ).
- linear in : , the trapezoid area. Example: dm³, Pa to dm³, Pa gives J.
- Isotherm (ideal gas): .
Work is not a state function: from to , isochor then isobar gives , isobar then isochor . In a cycle the net work is the enclosed area: positive clockwise (engines, Heat Engines and RefrigeratorsA heat engine repeats a cycle: it absorbs heat, releases part of it and turns the rest into work, with efficiency η = W/Qabs = 1 − |Qrel|/Qabs. The refrigerator runs the cycle backwards. Stirling, Otto and Diesel cycles.Heat Engines and Refrigerators →), negative anticlockwise.
Common mistakes
- Using the gas pressure instead of in irreversible transformations.
- Wrong sign in compressions.
- Volumes in dm³ with in Pa.
- when pressure is not constant.