The program shows how to plot figure 14.4 page 248 presented in T. L. Hill, An Introduction to Statistical Thermodynamics, Dover, New York, 1986. The Bragg-Williams approximation gives pressure-volume isotherms similar to those obtained using the van der Waals equation and it predicts first-order phase transition. We use the symmetry condition to draw the horizontal stable equilibrium path. We can also use the thermodynamic equal-area theorem as shown at the end of the code.
A similar treatment using Mathematica
can be found at the following link:
Housam Binous (2021). Pressure-volume isotherms for a Bragg-Williams lattice gas (https://www.mathworks.com/matlabcentral/fileexchange/18153-pressure-volume-isotherms-for-a-bragg-williams-lattice-gas), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!