Monday, December 10, 2007

Results of the PS7 survey

Here were your choices of artistic electives:

Music history/theory - 3
Music performance - 7
Visual art - 3
Art history - 2
Dance - 3
Drama - 1
Filmmaking - 1

Friday, December 7, 2007

Extra credit quiz

If anyone wasn't in class Wed and would like their quiz back, please stop by my office.

Thursday, December 6, 2007

PS8 problem 3c

The defining equation for "a" should have a negative sign.

Wednesday, December 5, 2007

PS8 due date

Problem set 8 will be due to Sophia no later than Monday, Dec 10, at the beginning of the review session (2-3pm).

Final practice problems

On the practice problems for the final, for the first problem, consider problem 6 on the current problem set. You should be able to show for any pair potential u(r) that B2 can be written as

-2 pi Integral(0 to infinity) [ exp(-beta u(r)) - 1] r^2 dr

where r is the scalar distance between two particles.

PS8 problem 2b

Show that Aex/T and S are independent of T.

Monday, December 3, 2007

review session for final

Sophia will hold a review session for the final on Monday, December 10 the same time and place as the usual class.

Problem 6d on PS8

Instead of what is currently in the problem, consider the following expression for B2 in terms of the configurational integrals,

B2(T) = (Z1^2 - Z2) / (2 Z1^2 / V)

What was written in the problem statement is a simplification of this expression for the case in which there are only pair interactions in the system (no fields).

Thursday, November 29, 2007

Negative temperature

Let's think about the concept of temperature for a moment. What is a temperature, in terms of how you measure it in real life? When we measure temperature, we put a small system (a thermometer) in contact with a larger system. The thermometer comes to equilibrium with the larger system by exchanging energy until the total entropy of both systems is maximized. What we read off as temperature has to do with how the fluid inside the thermometer expands or contracts.

Systems at negative temperature come to equilibrium by the same means. Recall that, when we put two systems together that are isolated, the total entropy is maximized, S = S1+S2 while the total energy is held constant, E=E1+E2. Thus the sign of dS must be positive. But dS is just related to the temperature, when the energy changes.

A thermometer put in contact with a system at negative temperature will come to equilibrium in the same way it would as if it were put into contact with a system at positive temperature. The two systems will exchange energy until their temperatures are the same. Whatever temperature the thermometer is at in the end will depend on how much energy it exchanged with the system.

Not all systems can have negative temperatures. Only systems that have entropy functions that contain regions of negative slope do. Some systems have entropy functions that increase monotonically with energy for all energies, and thus, these systems cannot have negative slopes. Fluids have the latter kind of entropy function. Magnets can have the former. The basic difference between the two is that fluids can have an infinite energy (because the momenta are unbounded), but magnets can be saturated at a maximum energy.

Tuesday, November 27, 2007

TA office hours

Sophia's office hours this week will be 1pm tomorrow (Wed) in ESB 3413.

Monday, November 19, 2007

Correction to problem 6d on PS6

It turns out that neither bottle can be frozen the way mentioned. Here is a new problem statement for 6d:

An alternative way to freeze the solutions is to change the pressure. At 0 °C for each bottle, what pressure must be reached in order for freezing to begin? Assume the water freezes first, and assume constant molar densities. Why are these numbers unrealistic? What is special about water freezing here, relative to other liquids?

Hints for problem 5 on PS6

If you are having trouble with problem 5, go back and take a look at the lecture "Stability" to see a related derivation of tangent line properties, for the liquid-vapor transition.

Also, don't forget that the conditions for the critical point for the liquid-vapor transition were:
d^2 a /dv^2 = 0 and d^3 a / dv^3 = 0
A similar set of two equations exists for the mixture.

Wednesday, November 14, 2007

PS6 problems 3 and 4

Two corrections:

On problem 3, the radius of a cell is 10 um (microns).

On problem 4, the unsubscripted x's are just the same x's as those that precede them.

PS7-8 and online notes

Per the class vote, PS7 and PS8 will be due the Friday following their original Wednesday due dates. Note that this is not the case for PS6.

It was pointed out to me that some of the graphs are inverted in the lecture notes. I've tried to fix this for the lectures going back to "Solutions", so there are updated versions on the website. Let me know if you're still having problems.

Tuesday, November 13, 2007

Comments on midterm grades

Just to clarify:

The number in blue ink at the top of your midterm exam called "midterm average" is your average in the class for the midterm exam plus PS1-4. Both a percentage and letter grade are listed. Note that it is not the average of everyone in the class on the midterm.

Also, the green dot on everyone's exam indicates that you turned in your survey.

Scott

Sunday, November 11, 2007

PS5 correction

It just came to my attention that I inverted the derivative in problem 4 on PS5. The left hand side in both expressions should be (dT/dP).

Friday, November 9, 2007

Class Tuesday

In order to make up one of the lectures from this past week, this coming Tuesday's discussion class (Nov 13) will consist of a normal lecture (1 hour) followed by time as needed to answer questions about the problem set. I have arranged to keep the classroom for additional time.

Friday, November 2, 2007

Info on the midterm

Here is a summary of information about the midterm:

You can pick up your exam at the front chemical engineering office no earlier than 9am Monday morning, Nov. 5.

The exam is due back at the office no later than 11am Tuesday morning, Nov. 6.

Please write neatly on separate paper and staple your work together.

Happy studying!

Problem 2 on the midterm practice problems

I was told there may be some confusion about part 2b. Here is how to approach that problem.

For any phase, we can write the entropy as a function of the pressure and temperature:

S = S(T,P)

The total derivative is:

dS = (dS/dT) dT + (dS/dP) dP

= (Cp/T) dT - (alpha V) dP

Where Cp is the constant pressure heat capacity and alpha is the thermal expansion coefficient. In the second line, the (dS/dP) term was converted with a Maxwell relation to get -(dV/dT).

If we have a line along which the entropies are equal between two phases:

S1 = S2 (along Kauzmann locus)

The full differential must also be equal:

dS1 = dS2 (along Kauzmann locus)

Substituting the above relation:

(Cp1/T) dT - (alpha1 V1) dP = (Cp2/T) dT - (alpha2 V1) dP
(along Kauzmann locus)

Now simplifying:

(dP/dT) = Delta(Cp) / [T Delta(alpha V)] (along Kauzmann locus)

In general, the Kauzmann locus will extend into regions of (T,P) space where one is comparing a metastable state to a stable one. In the helium example given, the Kauzmann locus occurs in some parts of the phase diagram where the liquid is supercooled and the crystal is stable. It also occurs in places where the crystal is superheated and the liquid is stable. Where the Kauzmann locus intersects the phase boundary between the liquid and crystal, there is a Kauzmann point.

Monday, October 29, 2007

Review session -- updated

Sophia will have a review session Friday at 10am.

PS4 notes

There might be some confusion about the difference between partial molar properties in mixtures and intensive properties in pure components.

A partial molar something is defined by the expression given at the top problem 5, and it involves a derivative with respect to the number of molecules of a component. It is not the total quantity divided by the number of molecules in the mixture.

On the other hand, an intensive property is the quantity divided by the number of molecules, for a single component system.

Wednesday, October 24, 2007

Maxwell relations: be careful

You'll be tempted to start swapping around derivatives to get Maxwell relations, but remember not all derivatives can be transformed using this approach. For example,

(dS/dT)_(V,N) cannot be transformed using a Maxwell relation. It is not equal to (dP/dV)_(T,N), if that is what you were thinking.

Recall:
(dS/dT) = (d2A/dT2)
(dP/dV) = (d2A/dV2)

Therefore, these are not the same second derivative of a free energy.

If it had instead been (dS/dV)_(T,N) then we could have said that equals (dP/dT)_(V,N).

Tuesday, October 23, 2007

Hint on PS3 problem 5

The relationship we derived in class between Cp and Cv may be useful in both parts (b) and (c).

Hint on PS3, problem 4

In converting from A(T,V,N) to E(S,V,N), it may simplify your life to use the following relationship:

-E/T^2 = d(A/T)/dT (constant V and N)

You can use this equation to first get E(T,V,N) and then you can make the appropriate substitution to get E(S,V,N).

Be careful of using Mathematica to do all of the manipulations here. Sometimes it doesn't simplify to the best answer.

Monday, October 22, 2007

Calculus manipulations handout correction

The definition of constant-pressure heat capacity should involve a derivative at constant P, not constant V.

PS3

A couple of notes:

For problem 8.1 in MDF, do two things: (1) express Z in terms of the Gibbs free energy in integrated form (e.g., Z = G + ...). (2) write Z in differential form (e.g., Z = x dy + ...)

For problem 3, don't forget that the chemical potential is also the Gibbs free energy per particle, for a single component system.

Friday, October 19, 2007

PS3, problem 4 correction

The expression for the Helmholtz free energy should start with:

3 N k T ln[ ... ]

The N was missing in the handout.

Also, in part (b), you are calculating the intensive heat capacities (i.e. 1/N dE/dT and 1/N dH/dT).

Tuesday, October 16, 2007

Hint on problem 4 on PS2

In computing the entropy change of the environment, it is helpful to think of it as a constant T and P bath. We can write for the environment, at constant N,

dS = 1/T dE + P/T dV

Since the environment is a big bath, small changes of dE and dV do not affect its temperature or pressure. Therefore, we can integrate this equation to get:

DeltaS = (DeltaE + P * DeltaV) / T = DeltaH / T

Thus, if you know how much enthalpy the supercooled liquid gives up when it freezes, this must be the amount that is added to the environment, and so you can compute DeltaS for the environment this way.

Monday, October 15, 2007

Regarding problem 4 grading on PS1

If you used factorials in this problem to account for indistinguishibility of particles, i.e (V/v)^N / N! instead of just (V/v)^N, and got half a point taken off, see Sophia and you can get that half point back if you want. The N! doesn't affect the problem, because the number of particles is constant throughout (only volumes are changing). The true quantum mechanical result is that the N! should be in there, we just hadn't really gotten to that yet in class.

PS2: sign error in problem 4

In parts (b) and (c), it should be dh = de + P dV (plus instead of minus).

Friday, October 12, 2007

Some questions answered

"If 2 systems are allowed to exchange E (but not N or V) heat 'flows'. But how does it actually flow? In other words, how is energy exchanged microscopically? Via collisions? Via rearrangement of potential energies?"

This is exactly how energy moves around from one place to another. Molecules are constantly bombarding each other. Each molecule exerts a potential energy "field" around it which is felt by its neighbors. Even in dilute gases, molecules occasionally whiz past each other long enough to feel these potential energies, or occasionally even get close enough to be involved in what might be considered a collision (it's hard to define rigorously exactly when a collision occurs, since in reality, most atoms are kind of 'soft'). It is through these interactions that molecules exchange kinetic and potential energies.

Imagine, in the simplest scenario, that someone breaks a racked set of billiard balls. In that case, the kinetic energy of the cue ball is divided up and transferred to the kinetic energies of all the other balls. This is not all that different than bringing a molecule at a high temperature in contact with molecules at a lower temperature.

"What is the fundamental definition of a phase? In other words, what is different (or the same) between a system of 2 phases and a situation where two systems are just sitting next to each other?"

You're anticipating our discussion of phase equilibrium later on! Basically, a phase is a homogeneous system: no spatial variations in density, energy, temperature, etc. We can consider two phases in equilibrium as being a subset of the situation where two systems sit next to each other. The idea of phase equilibrium, however, is that these two phases sit next to each other on their own, without barriers, membranes, etc. That is, water spontaneously separates into a phase of ice and a phase of liquid at 0 degrees C.

Irreversible sand problem

From class today we were calculating the work done when the sand is raised irreversibly by the piston. Here is perhaps a clearer way to look at that problem.

Before the piston is raised, it has some potential energy U1. After the piston is raised, it has a new potential energy U2, given in this case by U1 - mgz, where m is the mass of the piston, g is the gravitational potential, and z is how high it was raised. The difference in energy (U2-U1) is equal to whatever work energy the gas put into the piston, W (the gas does work on the system).

W = (U2 - U1)
= -mgz

But since Pext = mg/A:

W = -Pext * A * z
= -Pext * Delta V

Thursday, October 11, 2007

Zotero

This is not at all related to class, or even to thermodynamics, but this is such a brilliant discovery I can't help but share it. People, you have to check out Zotero (http://www.zotero.org/).

This software builds right into your Firefox browser, and it enables you to oh-so-easily save and organize scientific information, particularly journal references and PDF articles. You can tag entries with your own keywords, it does all kinds of search, and it is quickly becoming an Endnote-type replacement. Best of all, it's open source.

No, I'm not related to the Zotero folks. But I find myself using this software more and more every day, and it has really simplified a lot of things. (Insert "back in my day" grad school story here.)

Stirling's approximation

In the last homework, we made frequent use of Stirling's approximation for the log of a factorial. In fact, this approximation occurs again and again in statistical mechanics. You may have been wondering where it comes from. Here is a simple derivation. For large N we can write the derivative of ln(N!) as:

d ln(N!) / dN ~ [ln(N!) - ln((N-1)!)] / (N - (N-1))

= ln[N!/(N-1)!]

= ln N

Now, integrating we have:

ln(N!) = N ln(N) - N + const

Usually we take the constant to be zero, since it is negligible if N is very large. In general, Stirling's approximation works very well in statistical mechanical theory because we are using very large values of N.

Also, you might have noticed that Stirling's approximation simplifies the expression for number of combinations of M items picked from N. Notice that N! = N^N / e^N according to Stirling's formula. Then we can write

N!/M!(N-M)! ~ N^N / M^M (N-M)^(N-M)

Notice that the exponential terms canceled out of this expression. A little manipulation puts this formula in a nicer form:

N!/M!(N-M!) = [x^x * (1-x)^(1-x)]^(-N)

where x = M/N. Just about any time you use the combination expression, it will greatly simplify your life to convert to this kind of expression. If you don't see where this comes from, try the derivation yourself. It's just a little algebraic manipulation.

Monday, October 8, 2007

PS1 Problem 5a

There is a small typo in the diagram. It should say N_B "B" particles rather than N_A "B" particles.

Friday, October 5, 2007

One more point from lecture today

Just want to clarify something more rigorously for you mathematically inclined folks:

We were talking about how to calculate Omega_total for the case in which one system exchanges energy with another. We wrote the following down:

Omega_total = Sum Omega_1(E1 - dE) Omega_2(E2 + dE)

What we were saying in class was that Omega_total is strongly peaked around its maximum value. By strongly peaked, what we mean specifically is that we can approximate the above equation just using the maximum term, rather than the complete sum:

Omega_total = Omega_1(E1 - dE*) Omega_2(E2 + dE*)

where dE* is the value of dE that maximizes this equation. This is actually called the "maximum term method."

Thursday, October 4, 2007

A question...

"Does the equal a priori rule only apply to classical systems, and not quantum ones?"

Actually, no! Everything we have been discussing in recent classes--the rule of equal a priori probabilities and the concepts of microstates, macrostates, and ensembles--are equally valid in quantum mechanics. It just turns out that the way you write these things out is a little bit more difficult to conceptualize since, instead of thinking of configurations as microstates, we have to start thinking of quantum-mechanical states. The classical viewpoint here will just make things easier to think about physically, but realize that it does not provide the basis for these things, which are instead very general.

Wednesday, October 3, 2007

Regarding problem 5b on PS1

Some of the math may get a little tedious in this problem. Let me make a recommendation. Once you write down the density of states expression, substitute the expression x*N for the number of defects n, where x is the fractional number of defects n/N. Then simplify the expression that way, and indeed a lot of simplification should happen.

In the rest of the problem, keep things in terms of x, rather than E or n, to keep things easy. You can still take the energy derivative in a pretty easy way. Since x = n/N = E/(epsilon*N) you can express d/dE of something as just 1/(epsilon*N) * d/dx of that something.

And yes, there are two problem 5s. Just seeing if you were paying attention. :)

Regarding problem 4 on PS1

We will touch upon this more Friday, but recall that ideal gases consist of structureless, volumeless particles. That means that if one ideal gas particle occupies a small volume cell, it doesn't exclude other particles from occupying that same volume cell. This might affect your way of counting configurations in this problem.

Some questions about todays lecture

(1) "This times averages = microstate averages part... what are we referring to by <A>, and is the delta just 1 for the correct N,V,E and 0 for the incorrect N,V,E?"

Yes, exactly. That delta just means that we only sum up A for those configurations that have the right N, V, E.

A is any property we want to calculate that comes from microscopic configurations. It could be something like "the average number of hydrogen bonds a water molecule makes with its neighboring molecules" or "the average rate at which molecules bounce off of the walls of the container (which could be used to calculate the force, and hence, the pressure)". It is just a general property that, given a list of velocities and positions of all the atoms, we could have a recipe to calculate it.

So all we are saying is that one way to measure A would be to, say, check the instantaneous molecular configuration every minute, calculate A for that configuration, and then tabulate it. We would do this for a long time, so we get a long list of A values. Then we take the average of them. This is the time average.

The alternative way we can do this, at equilibrium, is find out what the N, V, and E values are for that same system. Then we just take *all* of the microscopic configurations that have those values, in a very systematic way, and we average A over those. This average will be equal to the time average because the rule of equal a priori probabilities says that we are equally likely to pick any one of these microstates at any moment in time.


(2) "Can you say S = kB ln Omega(N,V,E) = S(N) + S(V) + S(E)?"

You can only say this in the case that we can write Omega(N,V,E) = Omega(N)Omega(V)Omega(E). In general this is not the case. The reason is, the number of ways of arranging N molecules in a volume V with energy E is usually not separable. For example, the system today in class, where we had a bunch of toy molecules that could each either be in an energy=0 or energy=1 state. If there are N molecules, and we want to find out how many ways there are to have a total energy of E, then the number of ways is N!/E!(N-E)!. There is no way to separate this into two functions f(E)f(N).

Tuesday, October 2, 2007

PS1

A couple of clarifications:

Problem 2 - you can assume constant volume conditions

Problems 4 and 5 - you can neglect both kinetic and potential energies.

Monday, October 1, 2007

Lecture today

Just realized there was a mistake in the summary I wrote on the board at the beginning of lecture today in the integral of (N k_B / V) dV. There should be a prefactor of N in the result: S = N k_B ln V + const(N,V).

Sunday, September 30, 2007

Regarding PS1

Hey guys- Just a quick reminder that some of the problems in the first problem set (handed out Friday) will touch upon material we will cover in lectures in the coming week. So if things seem confusing, don't rack your brains trying to figure out what to do... yet. We will be covering important related material soon. So I would recommend, rather than working on the problem set this weekend and the coming few days, instead take some time to flip through the introductory chapters of Molecular Driving Forces.

Tuesday, September 25, 2007

" The real 'theory of everything' "

That would be thermodynamics. Yes, thermodynamics, not string theory or relativity or the standard model. At least, that's the claim of this recent book review in Science. Let me just pull some tantalizing quotes:
Thermodynamics ought to be the cornerstone of any scientist's understanding of nature. ...
The development of thermodynamics in the nineteenth century was the most wide-reaching and fundamental advance since Newton's mechanics.

Sunday, September 16, 2007

Sunshine, beaches, and classes, oh my

Here's a cheerful welcome to all the new students at UCSB. This is no doubt a busy time for you, sorting through schedules, learning the nooks and crannies of campus and Santa Barbara, and perhaps still trying to piece together a decent housing situation on the beautiful but you-pay-for-what-you-get central California coast. I hope that the excitement of this burgeoning part of your life--and the many opportunities ahead--outweigh the scramble and stress of new beginnings.

In particular, I'd like to welcome the graduate students in chemical engineering, whom I will be teaching this fall in ChE 210A: Thermodynamics and Statistical Mechanics. We've got a great journey ahead of us venturing into the fundamental molecular foundations of these fields. That's cheesy to say, I know, but I do believe there's a lot of excitement to be had here. We'll be dissecting many of the equations and techniques you've used as an undergraduate, but had never really known their precise origin. So it is my hope that this will be a clarifying, dare I say enjoyable, experience for you.

A word about this blog: it's a new experiment I'm trying out for class. The idea is that I can respond here to questions that don't get answered in lecture, that arise in problem sets, or that get sent my way via email. Idealistically, I'm hoping this way we can avoid repeating information, and everyone can be on exactly the same page. Students in the class are encouraged to post comments, too, if they have them.

And occasionally I might post a random science thought. Yes, I do have random science thoughts. No, I'm not embarrassed by that.

Here's one that might be of interest to new students, who have recently poured through university stats and rankings. It's an article called "Who Ranks the University Rankers?" that appeared in a recent edition of Science. It'll make you think twice next time you see those top-10 lists.

Welcome to UCSB!