All Projects → abelcarreras → phonolammps

abelcarreras / phonolammps

Licence: MIT license
LAMMPS interface for phonon calculations using phonopy

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to phonolammps

Proton
High-level python framework that facilitates rapid server-side development with clean & pragmatic design!
Stars: ✭ 24 (-54.72%)
Mutual labels:  python-api
Surelog
SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler. Provides IEEE Design/TB C/C++ VPI and Python AST API.
Stars: ✭ 116 (+118.87%)
Mutual labels:  python-api
calphy
A Python library and command line interface for automated free energy calculations
Stars: ✭ 28 (-47.17%)
Mutual labels:  lammps
Vhackxtbot Python
Python API for vHackXT Game
Stars: ✭ 27 (-49.06%)
Mutual labels:  python-api
Pyseeta
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)
Stars: ✭ 93 (+75.47%)
Mutual labels:  python-api
Xtp api python
Stars: ✭ 146 (+175.47%)
Mutual labels:  python-api
Findatapy
Python library to download market data via Bloomberg, Eikon, Quandl, Yahoo etc.
Stars: ✭ 787 (+1384.91%)
Mutual labels:  python-api
lammps vscode
VSCODE extension for language support of LAMMPS scripts
Stars: ✭ 26 (-50.94%)
Mutual labels:  lammps
Wikipron
Massively multilingual pronunciation mining
Stars: ✭ 99 (+86.79%)
Mutual labels:  python-api
Lammps brownian
custom LAMMPS fix used for Brownian Dynamics Simulation (Overdamped Langevin)
Stars: ✭ 16 (-69.81%)
Mutual labels:  lammps
Googleearthenginepy
Basic script to order data on Google Earth Engine using Python API
Stars: ✭ 33 (-37.74%)
Mutual labels:  python-api
Newsapi
A python wrapper for News API.
Stars: ✭ 71 (+33.96%)
Mutual labels:  python-api
Genomeworks
SDK for GPU accelerated genome assembly and analysis
Stars: ✭ 215 (+305.66%)
Mutual labels:  python-api
Lyrics Corpora
An unofficial Python API that allows users to create a corpus of lyrical text from their favorite artists and billboard charts
Stars: ✭ 13 (-75.47%)
Mutual labels:  python-api
SSAGES
Software Suite for Advanced General Ensemble Simulations
Stars: ✭ 72 (+35.85%)
Mutual labels:  lammps
Hug
Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
Stars: ✭ 6,572 (+12300%)
Mutual labels:  python-api
Kinopoiskpy
Python API to kinopoisk.ru
Stars: ✭ 126 (+137.74%)
Mutual labels:  python-api
kyros
Python wrapper for WhatsApp Web API websocket communication (based on https://github.com/sigalor/whatsapp-web-reveng)
Stars: ✭ 94 (+77.36%)
Mutual labels:  python-api
SCEMa
HMM implementation featuring Deal.II (FE) and LAMMPS (MD)
Stars: ✭ 14 (-73.58%)
Mutual labels:  lammps
fftool
Tool to build force field input files for molecular simulation.
Stars: ✭ 84 (+58.49%)
Mutual labels:  lammps

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)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].