Mat Qha Thermal Expansion
Researchmat-qha-thermal-expansionMat Qha Thermal Expansion is an Agent Skill for research published in the learningmatter-mit/AtomisticSkills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Calculate Quasi-Harmonic Approximation (QHA) thermal properties using MLIPs.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/learningmatter-mit/AtomisticSkills/blob/HEAD/.agents/skills/mat-qha-thermal-expansion/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/mat-qha-thermal-expansion, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
QHA Thermal Expansion Skill
This skill provides tools for calculating thermal expansion and temperature-dependent Gibbs energy using Machine Learning Interatomic Potentials (MLIPs).
1. Prerequisites
- The appropriate MLIP wrapper must be available (
MACEWrapper,MatGLWrapper, orFAIRCHEMWrapper). matcalcmust be installed in the relevant conda environment.
2. Choosing a Foundation Potential
QHA calculations require accurate lattice expansion and vibrational properties.
[!IMPORTANT]
- Use OMAT or MatPES trained models: These models (e.g.,
MACE-OMAT-0-small,TensorNet-MatPES-r2SCAN) are specifically optimized for forces and vibrational stability.- Avoid MPtrj-trained models: Models trained primarily on the
MPtrjdataset (e.g.,CHGNet-MPtrj) suffer from the "softening" problem, where the calculated phonon frequencies are significantly lower than DFT values.
Refer to the foundation-potentials skill for more details.
3. Calculation Workflow
To calculate thermal expansion and temperature-dependent Gibbs energy, use calculate_qha.py.
conda activate matgl-agent
python .agents/skills/qha/scripts/calculate_qha.py \
--structure path/to/relaxed_structure.cif \
--model_type matgl \
--eos vinet \
--output_dir research/my_folder/qha
4. Output Files
qha_results.json: Summary.gibbs_temperature.dat: Gibbs energy vs T.thermal_expansion.dat: Thermal expansion vs T.
5. Examples
See examples/ for detailed usage scenarios.
Author: Bowen Deng Contact: GitHub @learningmatter-mit