Skip to content

Package for extracting the data from cp2k program, which was well known as tool for ab initio molecular dyanmics.

License

Notifications You must be signed in to change notification settings

minu928/cp2kbrew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cp2kbrew

version 0.0.6

Install

Using Raw Package

git clone https://github.com/minu928/cp2kbrew.git
cd cp2kbrew
pip install .

Tutorial

Open the files

import cp2kbrew as cb


brewer = cb.Brewer("somewhere/out.log", "somewhere/out.xyz")
print(f"nFRAME: {brewer.nframe}")
print(f"ENERGY: {brewer.energy}")
print(f"FORCE : {brewer.force}")
print(f"STRESS: {brewer.stress}")
print(f"COORD : {brewer.coord}")
print(f"CELL  : {brewer.cell}")

Fix the data

import cp2kbrew as cb


brewer = cb.Brewer("somewhere/out.log", "somewhere/out.xyz")
error = brewer.check()
brewer.fix(error)

ConvertUnit

import cp2kbrew as cb


brewer = cb.Brewer("somewhere/out.log", "somewhere/out.xyz")
brewer.convert_unit(to={"energy": "hatree->eV"})

Save

import cp2kbrew as cb


brewer = cb.Brewer("somewhere/out.log", "somewhere/out.xyz")
brewer.save(fmt="deepmd@npy", path="./tmp", element_order=["H", "O"])

About

Package for extracting the data from cp2k program, which was well known as tool for ab initio molecular dyanmics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages