Thermodynamic calculation source code version 1 final