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

37 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 cpb


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

Fix the data

import cp2kbrew as cpb


alchemist = cpb.Alchemist("somewhere/out.log", "somewhere/out.xyz")
print(f"CHECK: {alchemist.doctor.check()}")
print(f"FIX  : {alchemist.doctor.fix()}")
print(f"CHECK: {alchemist.doctor.check()}")

ConvertUnit

import cp2kbrew as cpb


alchemist = cpb.Alchemist("somewhere/out.log", "somewhere/out.xyz")
alchemist.convert_unit(to={"energy": "hatree->eV"})

Save

import cp2kbrew as cpb


alchemist = cpb.Alchemist("somewhere/out.log", "somewhere/out.xyz")
alchemist.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