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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Set the page title
|
4 |
+
st.title("PHY 632: Statistical Mechanics")
|
5 |
+
|
6 |
+
# Course Details
|
7 |
+
st.markdown("""
|
8 |
+
## Course Details
|
9 |
+
- **Course Title**: Statistical Mechanics
|
10 |
+
- **Credits**: 3
|
11 |
+
- **Prerequisites**: PHY 504, PHY 520, PHY 522
|
12 |
+
- **Instructor**: [Instructor Name]
|
13 |
+
- **Office Hours**: [Office Hours]
|
14 |
+
|
15 |
+
## Course Description
|
16 |
+
This course provides an in-depth exploration of the principles of statistical mechanics and their applications to thermodynamics and various physical systems. Topics include the thermodynamic description of matter, perfect gases, and quantum statistics.
|
17 |
+
|
18 |
+
## Course Objectives
|
19 |
+
Upon completing this course, students will:
|
20 |
+
- Understand the connection between statistical mechanics and thermodynamics.
|
21 |
+
- Solve problems involving classical and quantum statistical systems.
|
22 |
+
- Apply statistical mechanics to real-world physical systems.
|
23 |
+
|
24 |
+
---
|
25 |
+
""")
|
26 |
+
|
27 |
+
# Weekly Outline with Problems
|
28 |
+
|
29 |
+
# Week 1: Introduction to Statistical Mechanics and Thermodynamics
|
30 |
+
with st.expander("**Week 1: Introduction to Statistical Mechanics and Thermodynamics**"):
|
31 |
+
st.markdown("""
|
32 |
+
### Topics Covered
|
33 |
+
- Review of thermodynamic principles.
|
34 |
+
- Introduction to statistical mechanics: microstates and macrostates.
|
35 |
+
- Connection between thermodynamics and statistical mechanics.
|
36 |
+
|
37 |
+
### Problems
|
38 |
+
1. Derive the first law of thermodynamics from a microscopic statistical perspective.
|
39 |
+
2. Calculate the change in entropy for an ideal gas in an adiabatic process.
|
40 |
+
3. Use statistical mechanics to explain the concept of temperature in terms of microstates and macrostates.
|
41 |
+
4. Compute the thermodynamic variables (energy, temperature, pressure) for a system of non-interacting particles.
|
42 |
+
5. Explain the connection between the partition function and thermodynamic quantities.
|
43 |
+
6. Derive the thermodynamic identity and apply it to a simple thermodynamic process.
|
44 |
+
7. Calculate the entropy change in a reversible isothermal expansion of an ideal gas.
|
45 |
+
8. Use statistical mechanics to describe the fluctuation of energy in a small subsystem.
|
46 |
+
""")
|
47 |
+
|
48 |
+
# Week 2-3: Microcanonical Ensemble and Classical Thermodynamics
|
49 |
+
with st.expander("**Week 2-3: Microcanonical Ensemble and Classical Thermodynamics**"):
|
50 |
+
st.markdown("""
|
51 |
+
### Topics Covered
|
52 |
+
- Microcanonical ensemble and the definition of entropy.
|
53 |
+
- Energy, entropy, and temperature in the microcanonical ensemble.
|
54 |
+
- Applications to classical thermodynamics.
|
55 |
+
|
56 |
+
### Problems
|
57 |
+
9. Solve for the entropy of a system of N non-interacting particles in the microcanonical ensemble.
|
58 |
+
10. Derive the thermodynamic quantities (energy, temperature, entropy) from the microcanonical partition function.
|
59 |
+
11. Calculate the probability distribution of energy in a microcanonical ensemble for a small system.
|
60 |
+
12. Apply the microcanonical ensemble to a system of harmonic oscillators and derive the thermodynamic quantities.
|
61 |
+
13. Explain the role of the density of states in determining the entropy of an isolated system.
|
62 |
+
14. Calculate the change in entropy for a system of non-interacting spins in an external magnetic field.
|
63 |
+
15. Solve for the temperature of a system in terms of the multiplicity of microstates.
|
64 |
+
16. Use the microcanonical ensemble to derive the ideal gas law.
|
65 |
+
17. Compute the entropy of an ideal gas in a microcanonical ensemble and compare with classical thermodynamics.
|
66 |
+
18. Explain the concept of ergodicity and its significance in statistical mechanics.
|
67 |
+
""")
|
68 |
+
|
69 |
+
# Week 4-5: Canonical Ensemble: Partition Functions, Thermodynamic Quantities
|
70 |
+
with st.expander("**Week 4-5: Canonical Ensemble: Partition Functions, Thermodynamic Quantities**"):
|
71 |
+
st.markdown("""
|
72 |
+
### Topics Covered
|
73 |
+
- Canonical ensemble for systems in thermal contact with a heat bath.
|
74 |
+
- Partition function as the central quantity in the canonical ensemble.
|
75 |
+
- Calculation of thermodynamic quantities from the partition function.
|
76 |
+
|
77 |
+
### Problems
|
78 |
+
19. Derive the canonical partition function for a system of non-interacting particles in a potential well.
|
79 |
+
20. Use the canonical partition function to calculate the Helmholtz free energy for an ideal gas.
|
80 |
+
21. Calculate the specific heat of a system from the partition function and discuss its temperature dependence.
|
81 |
+
22. Solve for the energy fluctuations in a canonical ensemble and derive the corresponding heat capacity.
|
82 |
+
23. Calculate the partition function for a system of N harmonic oscillators.
|
83 |
+
24. Derive the relationship between the canonical partition function and the free energy.
|
84 |
+
25. Apply the canonical ensemble to a system of particles in a gravitational potential and compute the thermodynamic quantities.
|
85 |
+
26. Use the partition function to calculate the entropy and internal energy of an ideal gas.
|
86 |
+
27. Derive the expression for the pressure of an ideal gas using the canonical ensemble.
|
87 |
+
28. Solve for the thermodynamic properties of a two-level system in thermal equilibrium with a heat bath.
|
88 |
+
29. Calculate the probability of finding a system in a particular energy state using the Boltzmann distribution.
|
89 |
+
30. Use the canonical ensemble to solve for the entropy of a paramagnetic system in an external magnetic field.
|
90 |
+
""")
|
91 |
+
|
92 |
+
# Week 6-7: Grand Canonical Ensemble: Applications to Gases
|
93 |
+
with st.expander("**Week 6-7: Grand Canonical Ensemble: Applications to Gases**"):
|
94 |
+
st.markdown("""
|
95 |
+
### Topics Covered
|
96 |
+
- Grand canonical ensemble for systems with varying particle numbers.
|
97 |
+
- Chemical potential and applications to ideal and real gases.
|
98 |
+
- Thermodynamic properties of systems in the grand canonical ensemble.
|
99 |
+
|
100 |
+
### Problems
|
101 |
+
31. Derive the grand partition function for an ideal gas and use it to calculate the average particle number.
|
102 |
+
32. Calculate the chemical potential of an ideal gas using the grand canonical ensemble.
|
103 |
+
33. Solve for the particle number fluctuations in a grand canonical ensemble and relate them to the compressibility.
|
104 |
+
34. Use the grand canonical ensemble to derive the equation of state for a van der Waals gas.
|
105 |
+
35. Calculate the thermodynamic properties of a photon gas using the grand canonical ensemble.
|
106 |
+
36. Derive the relationship between the grand partition function and the thermodynamic potential.
|
107 |
+
37. Apply the grand canonical ensemble to a system of fermions and calculate the Fermi energy at low temperatures.
|
108 |
+
38. Solve for the particle number distribution in a grand canonical ensemble of non-interacting particles.
|
109 |
+
39. Calculate the entropy of a Bose gas in the grand canonical ensemble and discuss Bose-Einstein condensation.
|
110 |
+
40. Use the grand partition function to calculate the pressure and chemical potential of a photon gas.
|
111 |
+
""")
|
112 |
+
|
113 |
+
# Week 8: Quantum Statistical Mechanics: Bose-Einstein and Fermi-Dirac Statistics
|
114 |
+
with st.expander("**Week 8: Quantum Statistical Mechanics: Bose-Einstein and Fermi-Dirac Statistics**"):
|
115 |
+
st.markdown("""
|
116 |
+
### Topics Covered
|
117 |
+
- Quantum statistics: Bose-Einstein and Fermi-Dirac distributions.
|
118 |
+
- Application to real-world systems like photon gases and electron systems.
|
119 |
+
- Understanding condensation phenomena and degenerate Fermi gases.
|
120 |
+
|
121 |
+
### Problems
|
122 |
+
41. Derive the Bose-Einstein distribution function and apply it to a system of non-interacting bosons.
|
123 |
+
42. Solve for the critical temperature of a Bose-Einstein condensate in three dimensions.
|
124 |
+
43. Calculate the Fermi energy for a system of non-interacting fermions at absolute zero.
|
125 |
+
44. Use the Fermi-Dirac distribution to compute the average energy of a system of electrons in a metal.
|
126 |
+
45. Derive the equation of state for an ideal Fermi gas at high temperatures.
|
127 |
+
46. Calculate the entropy and specific heat of a Fermi gas at low temperatures using the Fermi-Dirac distribution.
|
128 |
+
47. Apply Bose-Einstein statistics to a photon gas and derive Planck’s law of blackbody radiation.
|
129 |
+
48. Solve for the thermodynamic properties of a Bose gas near the critical temperature of condensation.
|
130 |
+
49. Derive the chemical potential of a Bose gas in terms of the particle number and temperature.
|
131 |
+
50. Calculate the thermodynamic properties of a degenerate Fermi gas and compare with classical ideal gases.
|
132 |
+
""")
|
133 |
+
|
134 |
+
# Week 9-10: Ideal Gases: Classical and Quantum Regimes
|
135 |
+
with st.expander("**Week 9-10: Ideal Gases: Classical and Quantum Regimes**"):
|
136 |
+
st.markdown("""
|
137 |
+
### Topics Covered
|
138 |
+
- Classical ideal gas in the microcanonical and canonical ensembles.
|
139 |
+
- Quantum ideal gas and quantum corrections to classical behavior.
|
140 |
+
- Comparing classical and quantum behavior of ideal gases.
|
141 |
+
|
142 |
+
### Problems
|
143 |
+
51. Solve for the thermodynamic properties of a classical ideal gas using the partition function.
|
144 |
+
52. Compare the behavior of a classical ideal gas and a quantum ideal gas at low temperatures.
|
145 |
+
53. Derive the equation of state for an ideal gas in both classical and quantum regimes.
|
146 |
+
54. Calculate the compressibility and specific heat of a quantum ideal gas.
|
147 |
+
55. Solve for the quantum corrections to the thermodynamic properties of an ideal gas at low temperatures.
|
148 |
+
56. Use quantum statistical mechanics to calculate the pressure and chemical potential of a photon gas.
|
149 |
+
57. Calculate the specific heat of a classical ideal gas and compare with the Dulong-Petit law.
|
150 |
+
58. Derive the expression for the entropy of a quantum ideal gas and compare with the classical result.
|
151 |
+
59. Apply quantum statistical mechanics to a system of non-interacting particles in a box and calculate the energy levels.
|
152 |
+
60. Solve for the energy density and pressure of a photon gas using quantum statistics.
|
153 |
+
61. Compare the behavior of a Bose gas and a Fermi gas at low temperatures and discuss their differences.
|
154 |
+
62. Calculate the thermodynamic quantities of an ideal gas in the classical limit using the canonical partition function.
|
155 |
+
""")
|
156 |
+
|
157 |
+
# Week 11: Blackbody Radiation and Photon Gas
|
158 |
+
with st.expander("**Week 11: Blackbody Radiation and Photon Gas**"):
|
159 |
+
st.markdown("""
|
160 |
+
### Topics Covered
|
161 |
+
- Blackbody radiation and photon gas.
|
162 |
+
- Application of Bose-Einstein statistics to photons.
|
163 |
+
- Planck’s law and thermodynamic properties of photon gases.
|
164 |
+
|
165 |
+
### Problems
|
166 |
+
63. Derive Planck’s radiation law using Bose-Einstein statistics for photons.
|
167 |
+
64. Solve for the energy density of blackbody radiation as a function of temperature.
|
168 |
+
65. Calculate the entropy of a photon gas and compare with classical thermodynamics.
|
169 |
+
66. Use the Stefan-Boltzmann law to calculate the radiation pressure of blackbody radiation.
|
170 |
+
67. Solve for the spectral energy density of blackbody radiation at different temperatures.
|
171 |
+
68. Derive the relationship between the energy density and temperature for blackbody radiation.
|
172 |
+
69. Calculate the specific heat of a photon gas using the partition function.
|
173 |
+
70. Analyze the thermodynamic properties of blackbody radiation in terms of the photon gas model.
|
174 |
+
""")
|
175 |
+
|
176 |
+
# Week 12: Non-Ideal Systems: Interacting Gases and Phase Transitions
|
177 |
+
with st.expander("**Week 12: Non-Ideal Systems: Interacting Gases and Phase Transitions**"):
|
178 |
+
st.markdown("""
|
179 |
+
### Topics Covered
|
180 |
+
- Non-ideal gas behavior and interactions between particles.
|
181 |
+
- Phase transitions: first-order and second-order.
|
182 |
+
- Application of statistical mechanics to phase transitions.
|
183 |
+
|
184 |
+
### Problems
|
185 |
+
71. Solve the van der Waals equation for a real gas and calculate its thermodynamic properties.
|
186 |
+
72. Use statistical mechanics to derive the conditions for a first-order phase transition.
|
187 |
+
73. Calculate the critical temperature and pressure of a real gas using the van der Waals equation.
|
188 |
+
74. Solve for the coexistence curve of a phase transition in a two-phase system.
|
189 |
+
75. Derive the Gibbs free energy for a system undergoing a phase transition.
|
190 |
+
76. Apply the van der Waals equation to a liquid-gas phase transition and calculate the latent heat.
|
191 |
+
77. Calculate the specific heat and compressibility of a system near a critical point.
|
192 |
+
78. Solve for the entropy change during a first-order phase transition using statistical mechanics.
|
193 |
+
79. Use statistical mechanics to derive the Clausius-Clapeyron equation for phase transitions.
|
194 |
+
80. Analyze the behavior of a gas near the critical point using the van der Waals equation.
|
195 |
+
""")
|
196 |
+
|
197 |
+
# Week 13-14: Advanced Topics: Critical Phenomena, Renormalization
|
198 |
+
with st.expander("**Week 13-14: Advanced Topics: Critical Phenomena, Renormalization**"):
|
199 |
+
st.markdown("""
|
200 |
+
### Topics Covered
|
201 |
+
- Critical phenomena and second-order phase transitions.
|
202 |
+
- Renormalization group theory and its application to phase transitions.
|
203 |
+
- Scaling laws and critical exponents.
|
204 |
+
|
205 |
+
### Problems
|
206 |
+
81. Derive the critical exponents for a system undergoing a second-order phase transition.
|
207 |
+
82. Apply the renormalization group theory to calculate the scaling laws near the critical point.
|
208 |
+
83. Solve for the correlation length and susceptibility near the critical point of a phase transition.
|
209 |
+
84. Calculate the behavior of the specific heat near a second-order phase transition.
|
210 |
+
85. Use scaling arguments to derive the temperature dependence of thermodynamic quantities near a critical point.
|
211 |
+
86. Solve for the critical temperature of a system using renormalization group methods.
|
212 |
+
87. Analyze the behavior of a magnetic system near its critical temperature using statistical mechanics.
|
213 |
+
88. Apply renormalization techniques to derive the scaling behavior of thermodynamic quantities near a phase transition.
|
214 |
+
89. Calculate the critical exponents for a system undergoing a phase transition and compare with experimental data.
|
215 |
+
90. Use renormalization group theory to solve for the behavior of a system near a tricritical point.
|
216 |
+
""")
|
217 |
+
|
218 |
+
# Week 15: Review and Final Exam Preparation
|
219 |
+
with st.expander("**Week 15: Review and Final Exam Preparation**"):
|
220 |
+
st.markdown("""
|
221 |
+
### Topics Covered
|
222 |
+
- Comprehensive review of statistical mechanics concepts.
|
223 |
+
- Focus on key topics such as quantum statistics, partition functions, and phase transitions.
|
224 |
+
- Problem-solving sessions and final exam preparation.
|
225 |
+
|
226 |
+
### Problems
|
227 |
+
91. Mixed problems covering microcanonical, canonical, and grand canonical ensembles.
|
228 |
+
92. Problems integrating quantum statistical mechanics with real systems such as photon gases and Bose-Einstein condensation.
|
229 |
+
93. Calculate thermodynamic quantities for systems undergoing phase transitions.
|
230 |
+
94. Use quantum statistics to solve real-world problems in condensed matter physics.
|
231 |
+
95. Analyze thermodynamic properties of gases using classical and quantum statistics.
|
232 |
+
96. Derive critical exponents and scaling laws for systems near critical points.
|
233 |
+
""")
|
234 |
+
|
235 |
+
# Textbooks Section
|
236 |
+
st.markdown("""
|
237 |
+
## Textbooks
|
238 |
+
- **"Statistical Mechanics"** by R.K. Pathria and Paul D. Beale
|
239 |
+
- **"Statistical Physics: Volume 5 (Course of Theoretical Physics)"** by L.D. Landau and E.M. Lifshitz
|
240 |
+
""")
|