• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Example: Free energy of an expanding gas

Page history last edited by Ben Dreyfus 8 years, 1 month ago

Working Content > Thermodynamics and statistical physics

 

Prerequisites:

 

Though energy conservation (the 1st law of thermodynamics) constrains what transformations of a system are possible, it doesn't constrain what direction a transformation will go in spontaneously. Thermal energy can flow from a hot object to a cold object or from a cold object to a hot object and still conserve energy. To get the direction it will tend to go (without an input of outside work to help it change its mind) by itself, we need the 2nd law of thermodynamics that says transformations occur so as to increase the total entropy of the universe.

 

A useful way to combine these two laws is to create the concept of free energy -- a quantity that represents something like "the energy available for doing work". Keeping track of the thermal energy that needed to be dumped outside our system in order to keep the entropy of the universe increasing leads us to introduce free energy. Let's evaluate the example discussed in that web page explicitly to see how free energy works. Consider the following problem:

 

Consider a perfectly insulated box with gas on one side and vacuum on the other separated by a removable dividing membrane. The membrane can be quickly slid out, doing essentially no work. When this is done:

 

  1. What happens to the total internal energy of the gas?
  2. What happens to the pressure of the gas?
  3. What happens to the free energy, F = U - TS, of the gas? 

 

1. The internal energy of a substance consists of the kinetic energy of the molecules plus the chemical energy of the molecules (negative binding energies) plus the potential energy interactions of the molecules. We are considering only fixed molecules -- not considering that any chemical reactions might take place -- so the chemical energy doesn't change and we can ignore it. We are considering a gas, so the molecules are so far apart that there is no significant energy from potential energies of interactions. As a result, all we have to consider is the kinetic energy of the gas molecules. The internal energy can be considered as the sum of all the kinetic energies of the molecules. Since the collisions between molecules conserve kinetic energy, this remains a constant.

 

When the membrane is removed, the molecules can move in a larger space, but their speeds are not changed as a result. Therefore, the total kinetic energy and therefore the internal energy, does not change when the membrane is removed.

 

2. The pressure of the gas arises from the molecules colliding with the walls. As discussed in the page, Kinetic theory: the ideal gas law, the pressure on the wall is p = ⅓nmv2 where n is the number density of the molecules (N/V), m is an individual molecule's mass, and v is their average speed. Since the number density decreases by a factor of 2 when the membrane is removed (number, N, stays the same, but V doubles), the pressure drops by a factor of 2 when the volume doubles. Microscopically, this arises since the molecules have further to go before they hit a wall, so they will not hit as often, reducing the average number of strikes per second, and therefore the force felt by the wall.

 

We can see this both from looking directly at the macroscopic form of the law, pV = NkBT. Since the number N and the temperature T are both constant, when V doubles, p must halve so that the product pV remains constant.

 

3. Since this is not a constant pressure situation, the (Helmholtz) free energy, F = U - TS, is more appropriate to consider than the Gibbs free energy (which includes a term that corresponds to the work needed to keep the pressure constant). 

 

To get this, we will need to figure out what the entropy change is for an ideal gas whose temperature remains constant but whose volume changes. Since there is no thermal energy exchanged, we have to use the statistical form of the entropy, S = kB ln W, where W is the number of microstates. 

 

Since volume is one of those continuous variables, counting has to be done by breaking up the variable into discrete pieces, counting, figuring out the change, and then taking the limit as our discrete pieces get small. (In fact, often the size of the discrete pieces becomes irrelevant to the change so we don't actually have to take this limit.) Let's break our volume up into a lot of small pieces of size V0. Then define

 

M = V/V0, the number of little volumes V0 present in our big volume, V.

 

Then how many ways are there to put our N molecules into a volume V? Since there are M bins, each molecules can go into M different places. So we get the number of different ways is M x M x M ... x M with one factor of M for each molecule - MN. The initial entropy is then

 

Si = kB ln W = kB ln MN = NkB ln M = NkB ln (V/V0)

 

When we double V, the final entropy becomes

Sf =  NkB ln (2V/V0

 

But since ln(ab) = ln(a) + ln(b) (logarithms convert multiplication into addition) this is just

 

Sf =  NkB ln (2) + NkB ln (V/V0)

 

As we had hoped, the change in entropy is independent of our choice of the small volume, V0:

 

ΔSSf  - Si  = NkB ln (2

 

Doubling the volume increases the entropy by kB ln(2) for each molecule. Since the internal energy doesn't change, the resulting change in the free energy is

 

ΔF = Ff  - Fi =  {Uf - TSf } - {Ui - TSi} = -TΔS  =-NkB T ln (2

 

 

 

Joe Redish 2/7/16

Comments (0)

You don't have permission to comment on this page.