This repository contains a suite of scripts designed to automate thermodynamic properties of materials, using MatterSim-v1.0.0-5M for geometry optimization and force constant calculations, integrated with Phonopy for Quasi-Harmonic Approximation (QHA).
Ensure you have the critic2 image available in your environment:
uenv image ls | grep critic2/1.2:1952527021
# If missing, pull it:
uenv image pull critic2/1.2:1952527021Clone the repository to a persistent location like your $PROJECT or $STORE directory and run the installation script.
# 1. Move to persistent storage and clone
cd $PROJECT # or cd $STORE
git clone https://github.com/croncagl/MatterSim-Phonopy-QHA.git
cd MatterSim-Phonopy-QHA
# 2. Run the automated setup within the uenv
uenv start --view=default prgenv-gnu/25.6:v2
bash ./install.sh- Navigate into your
$SCRATCHdirectory and create a dedicated run folder for your simulation. - Copy your structure file (e.g.,
.xyz,.cif, or extendedxyz) and themaster.shscript into this run directory.Note: Ensure the lattice vectors are explicitly specified in your structure file.
The script uses relative pathing to automatically find the supporting scripts and the virtual environment within your cloned repository folder.
You only need to open master.sh in a text editor if you wish to adjust the following:
NUM_VOLUMES: The number of volume points for the QHA calculation (Default is21, which creates volumes equally spaced from0.9to1.1of the original volume).
Submit the job to the Slurm scheduler:
sbatch master.shThe master.sh script coordinates the execution of the sub-scripts. It will automatically create a directory for each volume increment, named according to the volume scale (e.g., vol_0.900, vol_1.000, vol_1.100).
Each folder contains the specific data for that volume point:
- Optimization:
opt.log: Log of the geometry optimization at constant volume.POSCAR: Optimized structure in VASP format (required for thermal properties).
- Physics Data:
energy_volume.dat: Final energy and volume pair used for the Equation of State (EOS) fit.force_constants.hdf5: The force constants calculated by MatterSim.
- Phonopy Specifics:
phonopy.conf: Configuration details for the run.thermal_properties.yaml&phonopy.yaml: Main output files containing phonon data.phonopy.out: Standard output log.
After the volume-specific tasks finish, run_qha.sh aggregates the data to produce the final Quasi-Harmonic Approximation results.
| Property Category | Resulting Files |
|---|---|
| Temperature Dependence | volume-temperature.dat, thermal_expansion.dat, gruneisen-temperature.dat |
| Thermodynamics | gibbs-temperature.dat, helmholtz-volume.dat, helmholtz-volume_fitted.dat |
| Heat Capacity | Cp-temperature.dat, Cp-temperature_polyfit.dat, Cv-volume.dat |
| Elasticity | bulk_modulus-temperature.dat, dsdv-temperature.dat, entropy-volume.dat |
The geometry optimization and force constants are calculated using MatterSim-v1.0.0-5M.
As shown in Nature Communications (2025), this model provides state-of-the-art performance for phonon properties when compared against other machine learning potentials.