Statistical and Thermal Physics Programs
Interactive Programs for Teaching STP
This collection includes all the programs used in the text Statistical and Thermal Physics: With Computer Applications, 2nd ed., Harvey Gould and Jan Tobochnik, Princeton University Press (2021). The Java programs use the Open Source Physics (OSP) library, created by Wolfgang Christian and supported by many other collaborators.
Program Resources and Organization
- On each program page the user can run the program from their browser. Included are problems from the textbook. The programs were converted from Java to JavaScript by Wolfgang Christian and Robert Hanson using the SwingJS system developed at St. Olaf College.
- The Java programs and the OSP library can be found on Github. Each program source code appears in the chapter folder where it is first used.
- The source code for all Java and Python versions of the programs, and the latest version of a jar file containing all Java programs and textbook problems can be found on ComPADRE. For novice programmers the Python code may be easier to follow and modify than the Java code, but for some programs, such as those that use molecular dynamics of many particles, the Python programs might run slower than the Java or JavaScript versions..