Thermodynamic Modeling of Geologic Materials