calphy
calphy(pronounced cal-phee) is a Python library and command line tool for calculation of free energies. It uses LAMMPS as the molecular dynamics driver to enable calculation of free energies using thermodynamic integration in a completely automated and efficient manner. The various methods that calphy can perform are:
and
for both solid and liquid phases at the given thermodynamic conditions using non-equilibrium Hamiltonian interpolation.
and
, temperature dependence of Gibbs and Helmholtz free energies using the reversible scaling approach.
- Calculation of solid-solid or solid-liquid phase transition temperatures.
- Calculation of specific heat
as a function of temperature.
- Calculation of
and
for multicomponent systems using alchemical transformations.
- Upsampling calculations.
Calphy works with all interatomic potentials implemented in LAMMPS and can obtain reliable results with low error bars in as low as 50 ps of simulation time with less than 3000 atoms. More information about the methods in calphy can be found in the associated publication.
Installation, examples and documentation
-
Read the
calphyinstallation instructions and documentation including examples here. -
For a description of the methods and algorithms implemented in
calphy, please see the associated publication. -
For a set of examples presented in the
calphypublication, please see here.
Citing calphy
If you find calphy useful, please consider citing:
Menon, Sarath, Yury Lysogorskiy, Jutta Rogal, and Ralf Drautz.
“Automated Free Energy Calculation from Atomistic Simulations.”
Physical Review Materials 5(10), 2021
DOI: 10.1103/PhysRevMaterials.5.103801
Download bibtex here
License
calphy is published and distributed under the Academic Software Licence v1.0 (ASL), a reciprocal licence whose core terms match the GNU GPLv2 but which permits academic non-commercial use only. It is an available-source, not an open-source, licence. See LICENSE for the full terms.
If you intend to use calphy commercially, you need a separate commercial licence. Please contact sarath.menon@ruhr-uni-bochum.de to enquire about commercial use rights.
Releases up to and including 2.0.1 were distributed under a split ASL / BSD-3-Clause licence (and earlier releases under the GNU GPL). Those grants continue to apply to the versions they were published with; from 2.1.0 onwards calphy is ASL only.
Note that calphy drives LAMMPS, which is licensed separately under the GNU GPLv2. calphy does not include LAMMPS.
Metadata
Release files for calphy 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calphy-2.1.2.tar.gz | 248.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| calphy-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 458.7 kB
Release files / calphy-2.1.2.tar.gz
| Download URL | calphy-2.1.2.tar.gz |
|---|---|
| Size | 248.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd31518466314961fa67bcb499f5ceda418843167c4cf9a498667f6ffdaa19a7
|
|
BLAKE2b-256 checksum How to use checksums |
cb0ce16e4fc71296638da2f550ab5f45ba4a218bafdd998be1612ea5bcb77e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logRelease files / calphy-2.1.2-py3-none-any.whl
| Download URL | calphy-2.1.2-py3-none-any.whl |
|---|---|
| Size | 210.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
778558c99d29c8299c987efd61d004f67a016f96f520879ae82429519e2e86bb
|
|
BLAKE2b-256 checksum How to use checksums |
3b912f3cfd546d63fe7e1121cafe0105b8d248e27d9175437a6fdf73549b8f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency log