Giter Site home page Giter Site logo

cp2k_to_deepmdkit's Introduction

CP2K-to-DEEPMDKIT : A Collection of Python Scripts to convert CP2K output to DEEPMD-KIT input.

  1. To obtain the box.raw file - Run the script named convert_to_box_raw_from_cp2k.py and input 5 for the number of rows, 19.00 for X, 19.00 for Y, and 19.00 for Z when prompted, the script will create a DataFrame with 5 rows, each containing the values (19.00, 19.00, 19.00) and save it to `box.raw'.
Enter the number of rows: 5
Enter the value for X: 19.00
Enter the value for Y: 19.00
Enter the value for Z: 19.00
  1. To obtain the coord.raw file - Run the script named convert_to_coord_raw_from_cp2k.py and input the required values when prompted. For example, if you input test.xyz for the input file path, 5 for the number of atoms per frame, 0 for the starting snapshot number, and 5 for the ending snapshot number, the script will create a .raw file named coord.raw.
Enter the path to the input file: test.xyz
Enter the number of atoms per frame: 5
Enter the starting snapshot number: 0
Enter the ending snapshot number: 5
  1. To obtain the force.raw and energy.raw files - Run the script named convert_to_force_raw_from_cp2k.py and input the required values when prompted. For example, if you input test.for for the input file path, 120 for the number of atoms per frame, 0 for the starting snapshot number, and 5 for the ending snapshot number, the script will create two .raw files named force.raw and energy.raw.
Enter the path to the input file: test.for
Enter the number of atoms per frame: 120
Enter the starting snapshot number: 0
Enter the ending snapshot number: 5
  1. To convert raw files to npy files - Run the script named convert_raw_to_npy.py and input the required values when prompted. For example, if you input box.raw for the raw file path, the script will convert the raw file to a .npy file with the same base name.
Enter the path to the raw file: box.raw

Contact : Nitesh Kumar Email : [email protected]

Please Cite if you find this package useful for your research:

@misc{CP2K-to-DEEPMDKIT,
  title={CP2K-to-DEEPMDKIT: A Collection of Python Scripts to convert CP2K output to DEEPMD-KIT input},
  author={Nitesh Kumar},
  year={2024},
  howpublished={\url{https://github.com/KMNitesh05/CP2K_to_DEEPMDKIT}},
  note={Washington State University, Pullman, WA, United States 99163}
}

cp2k_to_deepmdkit's People

Contributors

kmnitesh05 avatar

Watchers

 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.