Skip to main content

Free energy calculation using phonon gas model

Project description

pgm: A Python package for free energy calculations within the phonon gas model

Calculate thermodynamic properties of matter using phonon gas model(PGM)

GitHub Actions pypi pypi

Contributors

This repository is authored and maintained by Hongjin Wang and Jingyi Zhuang.

How to cite

The associated paper is published online here.

Please cite this article as:

Hongjin Wang, Jingyi Zhuang, Zhen Zhang, Qi Zhang, Renata M. Wentzcovitch, pgm: A Python package for free energy calculations within the phonon gas model, Computer Physics Communications (2023), Volume 291, 2023, 108845, https://doi.org/10.1016/j.cpc.2023.108845.

If you are unable to access the full text of this article, please contact the authors.

Installation

Install from PyPI

You can install the package directly from PyPI:

$ pip install phonon-gas-model

Manual install

To install the pgm package, first clone the code repository using git:

$ git clone https://github.com/MineralsCloud/pgm.git

After cloning the code repository, change to the code directory using cd:

$ cd pgm

After changing to the code directory, install the required Python packages using pip:

$ pip install -r requirements.txt

Finally, install the pgm package using pip:

$ pip install .

See details in Installation of pgm.

How to use

Here we provide two examples inside the example folder. One is CaSiO₃, and one is B8-FeO.

For the case of CaSiO₃, simply run the following commands from the root path of the package:

$ cd examples/casio3
$ pgm run casio3.yaml

and for another case, B8-FeO,

run the following commands from the root path of the package:

$ cd examples/feo
$ pgm run feo.yaml

See details Command Line Tool of pgm.

Use your own example

First, you need to prepare a set of phonon calculations calculated at different temperatures.

Convert them as standard qha input files(for now use input converter in qha pkg), and put the input files like in the case of CaSiO₃ or B8-FeO

Compose your own settings.yaml file, enjoy.

Details will be provide shortly.

Documentation

See GitHub pages of pgm.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phonon-gas-model-1.0.0a0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phonon_gas_model-1.0.0a0-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file phonon-gas-model-1.0.0a0.tar.gz.

File metadata

  • Download URL: phonon-gas-model-1.0.0a0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for phonon-gas-model-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 970eae444460140f5a3eb7141079e56c50e292dfed5c259eb24224c4d3dfe40d
MD5 0c6a29819c3f1fbb617b254caf5aea8f
BLAKE2b-256 857c8069c434badf75fd105723bf2a850a57429f106a5d4824f5301129b40954

See more details on using hashes here.

File details

Details for the file phonon_gas_model-1.0.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for phonon_gas_model-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 db147832916b8ebe8421982e9651f1cc6a61bafcbde30fc95f39e0cb6254c4b4
MD5 7d70f449fcdf9d329ea512fe51cb1342
BLAKE2b-256 e89d381f1889e67526b0ee870e84c7b30c0286a55e56d99e5b912daa5f90d266

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page