Professional Documents
Culture Documents
V
initial
V
final
-P
ext
V (1)
where P
ext
is the pressure exerted by the surroundings on the system. By the definition of a reversible process, a reversible
expansion is one that occurs so slowly that the system always remains in equilibrium, both internally and with the surround-
ings. When the system and surrounding are in equilibrium, P
ext
= P of the system. Therefore, for a reversible expansion
V
initial
V
final
-P V (2)
What does this equation become for one mole of an ideal gas?
For an irreversible expansion P
ext
has to be used in the calculation of w. The irreversible expansions we will look at will
involve a series of steps in which the gas starts out at equilibrium, P
ext
is dropped instantaneously from one value to a
new, lower one and is held constant at the new value while the gas expands until a new equilibrium is reached. Then P
ext
is instantaneously dropped again to start the next step. For example, the expansion of a gas from a pressure of 10 atm to a
pressure of 1 atm might happen in a series of 1-atm steps, with P
ext
first dropping instantaneously from 10 atm to 9 atm
and holding there until the gas has expanded enough to come into equilibrium with it, then dropping to 8 atm, etc. (The
sudden drop in pressure at the beginning of each step destroys the equilibrium attained at the end of the last step, and it is
this destruction of equilibrium that makes the expansion irreversible.) Since P
ext
is constant during each
of these steps, the value of w for each step as calculated from Equation 1 is simply -P
ext
DV, where P
ext
is the value of
P
ext
for that step and DV is the change in volume during that step. The total work for the expansion is the sum of the
values of w for the individual steps.
In this exercise we will examine how the work for an irreversible stepped expansion of 1 mole of an ideal gas at 300 K
from a pressure of 10 atm to a pressure of 1 atm changes as the number of steps is increased and will compare the work for
the irreversible expansions to the work for a reversible expansion of the same gas between the same two pressures.
Setting up the initial parameters:
Isothermal_Expansion.nb 2
<< Miscellaneous`Units`
<< Graphics`Graphics`
<< Graphics`MultipleListPlot`
P
initial
= 10 Atmosphere;
P
final
= 1 Atmosphere;
T = 300 Kelvin; R = 0.08205
Liter Atmosphere
Kelvin
;
V
initial
=
R T
P
initial
Liter;
V
final
=
R T
P
final
Liter;
Establishing Arrays for Pext, V and w
Our approach will be to set up arrays for P
ext
, V and w. Each element of P
ext
will be the external pressure during a step in
the expansion and will be smaller than the previous one by an amount int gotten by dividing the range between P
initial
and
P
final
by the number of steps the expansion will take. Each element of V will be the volume of the gas at the end of a step,
when it is in equilibrium with the corresponding value of P
ext
. Each value of w will be the work for a step, which is equal to
-P
ext
for the step times the change in volume during the step, calculated as the difference between the volume at the end of
the step and the volume at the end of the previous step. The total work will be the sum of the elements of the w array.
Note that the values of the 0th elements of the P
ext
and V arrays are set manually and that the range value i starts at 1 rather
than 0.
Steps = 1;
Pex@0D = P
initial
;
V@0D = V
initial
Liter;
int =
P
initial
P
final
Steps
;
Do@Pex@iD = Pex@i 1D int, 8i, Steps<D;
DoAV@iD =
R T
Pex@iD
, 8i, Steps<E;
Do@w@iD = Pex@iD HV@iD V@i 1DL, 8i, Steps<D;
totalwork = ConvertA
i=1
Steps
Hw@iDL, JouleE
2244.7 Joule
Isothermal_Expansion.nb 3
Exercise 1
In this exercise you will want to fill in the X and Y matrix below with at least 10 elements each (the first two are given for
you).
X = 81, 5<;
Y = 82244.7, 4277.22<;
Fill up the matrix elements by repeating the calculation above for totalwork with different values for Steps. Add the
number of steps into the X matrix and totalwork into the Y matrix. Verify that the first two entries are correct. Repeat at
least 8 more times. Make sure that your values of Steps cover a large range, with the largest value being at least 5000.
(The values 1, 2, 10, 25, 50, 100, 500, 1000, 5000, 10000 work well, but you may want to experiment with other values as
well.)
wlist = Table@8X@@iDD, Y@@iDD<, 8i, Length@XD<D;
zplot = ListPlot@wlist, FrameLabel 8"Number of Steps", "Work"<,
RotateLabel False, PlotStyle 8Hue@0D, PointSize@0.010D<,
Frame True, TextStyle 8FontFamily "Times", FontSize 12<D
1 2 3 4
Number of Steps
-4000
-3500
-3000
-2500
Work
a. What does the full graph above look like? Does it look useful?
Isothermal_Expansion.nb 4
Change zplot to a LogLinearListPlot so that the x scale is now logarithmic.
1 10 100 1000
Number of Steps
-5500
-5000
-4500
-4000
-3500
-3000
-2500
Work
b. Does this make the graph look better? Explain.
c. Describe the new graph.
d. What happens to totalwork as the number of steps gets larger?
e. What happens to the size of each step as the number of steps gets larger?
f. Is there a correlation between totalwork and the size of the steps?
g. What happens to the graph, and the value of totalwork, as the number of steps gets very
large?
Calculate the work for the reversible expansion of 1 mole of an ideal gas between the same two pressures. The easiest way
to do this is to copy Equation 2, and make the appropriate substitution for P.
( Notice how quickly and easily Mathematica evaluates the integral compared to adding up 5000 steps!)
To make this calculation comparable to what you have already done, do not forget to Convert the units to Joule similar to
what was done above.
Isothermal_Expansion.nb 5
wo = ConvertA
V
initial
V
final
I
R T
V
y
{
z
z
z
z
zz
V, JouleE
5742.91 Joule
h. Compare the values of total work for the irreversible expansions with the value of work for the reversible expansion.
Are the values of totalwork for the irreversible expansions larger or smaller than the value of w for the reversible expan-
sion? Take the sign into account in giving your answer.
i. What happens to the difference between the values of totalwork for the irreversible expansions and the value of work
for the reversible expansion as the number of steps gets larger?
j. Does the value of totalwork (irreversible) ever "pass" the value of work for the reversible expansion? (switch from
being larger to being smaller or vice versa)
k. Can you think of a mathematical term that describes the relationship between work for the reversible expansion and
the values of totalwork for the irreversible expansions?
Exercise 2
Repeat Exercise 1 for the compression, rather than the expansion,of the gas. This can be done very easily by simply
reversing the values of P
initial
and P
final
in the Initial Paramters section, recalculating the value of totalwork for each
value of Steps. In order to facilitate comparison between the data for the expansion and the compression,you may want to
create a new data set YY which will contain the new values of totalwork as function of X.
Answer all the questions in Exercise 1 for the compression.
l. Can you think of an expression of the relationship between the values of work for the reversible and irreversible
processes that applies to both the expansion and the compression?
m. Compare the values of work for the reversible expansion and the reversible compression of the gas. Are they related? If
so, how?
Make a copy of the graph you developed for compression work as a function of step size (using a different name for the
Table and LinearListPlot). Develop a similar graph for the compression, plotting X vs YY. Then use the DisplayTo-
gether command to put both plots together on the same plot (It will also be useful to add the modifier "PlotRange->All")
Isothermal_Expansion.nb 6
w1list = Table@8X@@iDD, YY@@iDD<, 8i, Length@XD<D;
zplot1 = LogLinearListPlot@w1list, FrameLabel 8"Number of Steps", "Work"<,
RotateLabel False, PlotStyle 8Hue@.8D, PointSize@0.015D<,
Frame True, TextStyle 8FontFamily "Times", FontSize 12<D;
DisplayTogether@8zplot, zplot1<, PlotRange AllD
1 10 100 1000 10000
Number of Steps
-22500
-20000
-17500
-15000
-12500
-10000
-7500
Work
Isothermal_Expansion.nb 7
1 10 100 1000 10000
Number of Steps
-20000
-15000
-10000
-5000
Work
n. What does this graph tell you about the relationship between totalwork for the irreversible expansions and the irrevers-
ible compressions as the number of steps becomes very large?
Isothermal_Expansion.nb 8