Skip to main content

phonoLAMMPS module

Project description

PyPI version Downloads DOI

phonoLAMMPS

Calculate the harmonic interatomic force constants using phonopy and LAMMPS.
Online manual: https://phonolammps.readthedocs.io

Main features

  • Command line interface (phonopy like style)
  • Python API fully compatible with phonopy
  • Use of official LAMMPS python interface
  • Simple and easy to use
  • Finite temperature force constants using DynaPhoPy

Requirements

Optional requirements for phonon band structure preview

Optional requirements for finite temperature FC calculations

Optional requirements for tinker

Installation instructions

  1. From source code
# python setup.py install --user --prefix=
  1. From PyPI repository
# pip install phonoLAMMPS --user

For convenience, you may want to copy (or link) the files inside scripts folder to a location included in $PATH environment variable

Command line interface

phonoLAMMPS has a similar interface to phonopy to allow to easily calculate the 2nd order force constants and generate the crystal unitcell from a LAMMPS input file in VASP/POSCAR format. All outputs are fully compatible and ready to use in phonopy calculations. Also features a quick preview of the phonon band structure (requires seekpath).

# phonolammps in.lammps --dim 2 2 2 -c POSCAR_unitcell -p

Additionally phonoLAMMPS allows to easily calculate finite temperature force constants from molecular dynamics by quasiparticle theory (requires dynaphopy).

# phonolammps in.lammps --dim 2 2 2  -c POSCAR_unitcell -p -t 300       (at 300 K)

The obtained FORCE_CONSTANTS and POSCAR_unitcell can be used in phonopy using --readfc option for more advanced calculations.

# phonopy --dim="2 2 2" --readfc -c POSCAR_unitcell band.conf

Python API

Simple python API fully compatible with phonopy.

from phonolammps import Phonolammps
from phonopy import Phonopy

phlammps = Phonolammps('in.lammps',
                       supercell_matrix=[[3, 0, 0],
                                         [0, 3, 0],
                                         [0, 0, 3]])

unitcell = phlammps.get_unitcell()
force_constants = phlammps.get_force_constants()
supercell_matrix = phlammps.get_supercell_matrix()

phonon = Phonopy(unitcell,
                 supercell_matrix)

phonon.set_force_constants(force_constants)
phonon.set_mesh([20, 20, 20])

phonon.set_total_DOS()
phonon.plot_total_DOS().show()

phonon.set_thermal_properties()
phonon.plot_thermal_properties().show()

Contact info

Abel Carreras
abelcarreras83@gmail.com

Donostia International Physics Center (DIPC)
Donostia-San Sebastian (Spain)

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

phonoLAMMPS-0.8.2.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

phonoLAMMPS-0.8.2-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file phonoLAMMPS-0.8.2.tar.gz.

File metadata

  • Download URL: phonoLAMMPS-0.8.2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for phonoLAMMPS-0.8.2.tar.gz
Algorithm Hash digest
SHA256 0dbf7499bed2e8227d828c91efbc3357f5e59250d0ec6194b7eb27fadc9a39ee
MD5 7db84b4797d41913a33d3e543fa5cb61
BLAKE2b-256 6beead5250868bdd791cd8aa9b71f8f20956a3630e3f3e24eb85d89b7ac04de0

See more details on using hashes here.

File details

Details for the file phonoLAMMPS-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: phonoLAMMPS-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for phonoLAMMPS-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6087e1bd0df5e520a1e9590de9cca1906c0cc8356671495fe7054a4889ac2348
MD5 fbdb7b9cbd08feae1d958b9c9ab0fe03
BLAKE2b-256 fc9d6ec4a19b46334e9a5cdea29743b241c42c8e85335d559929d30924eb491e

See more details on using hashes here.

Supported by

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