Giter VIP home page Giter VIP logo

phonolammps's Introduction

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
[email protected]

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

phonolammps's People

Contributors

abelcarreras avatar jan-janssen avatar yuhldr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.