APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Statistical and Thermal Physics 2nd Ed. Programs Documents

filedot ss folder verified

This material has 5 associated documents. Select a document title to view a document's information.

Main Document

filedot ss folder verified Statistical and Thermal Physics (STP) Applications 

Verified | Filedot Ss Folder

with open(hashes_file, 'r') as f: expected_hashes = [line.strip().split() for line in f.readlines()]

def calculate_sha256(file_path): sha256_hash = hashlib.sha256() with open(file_path, "rb") as f: # Read and update hash string value for byte_block in iter(lambda: f.read(4096), b""): sha256_hash.update(byte_block) return sha256_hash.hexdigest() filedot ss folder verified

# Log results for file_path, result in verification_results.items(): if result: logging.info(f"Verified: {file_path}") else: logging.info(f"Verification failed: {file_path}") with open(hashes_file, 'r') as f: expected_hashes = [line

def verify_folder_ss(root_dir): ss_folder = os.path.join(root_dir, '.ss') if not os.path.exists(ss_folder): logging.info("'.ss' folder does not exist.") return # Assuming a hashes.txt file in .ss folder for verification hashes_file = os.path.join(ss_folder, 'hashes.txt') if not os.path.exists(hashes_file): logging.info("'hashes.txt' file does not exist.") return filedot ss folder verified

verification_results = {} for file_path, expected_hash in expected_hashes: file_path = os.path.join(ss_folder, file_path) if os.path.exists(file_path): actual_hash = calculate_sha256(file_path) verification_results[file_path] = actual_hash == expected_hash else: verification_results[file_path] = False

Supplemental Documents (2)

filedot ss folder verified List of program names in Statistical and Thermal Physics package 

Correspondence of program names in Statistical and Thermal Physics by Harvey Gould and Jan
Tobochnik, Princeton University Press (2010) and program descriptions in Java Simulations for
Statistical and Thermal Physics jar.

Last Modified January 17, 2015

filedot ss folder verified This file is included in the full-text index.

filedot ss folder verified STP First Edition Launcher Package 

STP Launcher Package contains read-to-run computer models and curricular materials for the first edition of Statistical and Thermal Physics by Harvey Gould and Jan Tobochnik.

Released under a Creative Commons Attribution-Share Alike 4.0 license.

Last Modified August 26, 2020

Source Code Documents (2)

filedot ss folder verified STP Python Source Code 

A Python implementation of the STP programs to accompany the second edition of Statistical and Thermal Physics by Harvey Gould and Jan Tobochnik.

Last Modified February 1, 2021

filedot ss folder verified This file has previous versions.

filedot ss folder verified STP Java Program Source Code 

A Java implementation of the STP programs to accompany the second edition of Statistical and Thermal Physics by Harvey Gould and Jan Tobochnik.

Last Modified August 26, 2020

OSP Projects:
filedot ss folder verified Open Source Physics - EJS Modeling
filedot ss folder verified Tracker
filedot ss folder verified Physlet Physics
filedot ss folder verified Physlet Quantum Physics
filedot ss folder verified STP Book