Alan-Rusty24 / Struc2Lammps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

struc2lammps

This tool generates a data file for LAMMPS simulations of molecular systems starting with an atomistic structure.

Tool features:

  • Accepts a wide range of input formats (e.g. CIF, PDB, XYZ)
  • Works with periodic boundary conditions, even when covalent bonds cross boundariesThe tool uses OpenBabel to convert the initial files
  • Sets up energy expression for Dreiding and PCFF force fields (including automatic bond recognition and atom typing)
  • Assigns atomic changes using the Gasteiger method

Known bug: If resonance ring crosses the boundary, atoms will be incorrectly

How to run

Please be aware of the requirements specified below, before running struc2lammps. If ready to run, then follow the instructions:

  1. Specify the input arguments in input.args
    • Initial structure (can be added in ./data/)
    • If box parameters are not included in the initial structure please edit the box.txt file (include cell dimensions and angles)
    • Bondscale parameter for connectivity identification (scaling sum of covalent radii of bonded atoms)
    • Force field. Currently supporting Dreiding and PCFF
  2. run python str2lmp.py
  3. Just wait! You should see a LAMMPSDataFile.data once if finishes.

The data file provides pair coefficents in LJ (12/6) form but you will obtain a extra file with Buckingham potential (exp/6)

Requirements:

In order to sucesfully run struc2lammps and obtain a data file you must have:

About


Languages

Language:Python 100.0%