{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/pgm-a-python-package-for-free-energy","title":"pgm: A Python package for free energy calculations within the phonon gas model","arxiv_id":"2303.11583","date":"2023-03-21","proceeding":null,"authors":["Hongjin Wang","Jingyi Zhuang","Zhen Zhang","Qi Zhang","Renata M. Wentzcovitch"],"abstract":"The quasi-harmonic approximation (QHA) is a powerful method that uses the volume dependence of non-interacting phonons to compute the free energy of materials at high pressures (P) and temperatures (T). However, anharmonicity, electronic excitations in metals, or both, introduce an intrinsic T-dependence on phonon frequencies, rendering the QHA inadequate. Here we present a Python code, pgm, to compute the free energy and thermodynamic property within the phonon gas model (PGM) that uses T-dependent phonon quasiparticle frequencies. In this case, the vibrational contribution to the Helmholtz free energy is obtained by integrating the vibrational entropy, which can be readily calculated for a system of phonon quasiparticles. Other thermodynamic properties are then obtained from standard thermodynamic relations. We demonstrate the successful applications of pgm to two cases of geophysical significance: cubic CaSiO3-perovskite (cCaPv), a strongly anharmonic insulator and the third most abundant phase of the Earth's lower mantle, and NiAs-type (B8) FeO, a partially covalent-metallic system. This is the oxide endmember of a recently discovered iron-rich Fe$_n$O alloy phase likely to exit in the Earth's inner core.","url_abs":"https://arxiv.org/abs/2303.11583v1","url_pdf":"https://arxiv.org/pdf/2303.11583v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"pgm-a-python-package-for-free-energy","repo_url":"https://github.com/mineralscloud/pgm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}