Skip to content
Generate data file for LAMMPS from initial structure
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bonds
data
data4lammps
README.md
box.txt
createBondCommands.py
createBonds.py
createDreidingTypes.py
getnd.py
input.args
readFiles.py
runData4Lammps.py
str2lmp.py

README.md

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:

You can’t perform that action at this time.