Skip to content
Generate data file for LAMMPS from initial structure
Branch: master
Clone or download
Latest commit cb79da8 Oct 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bonds Add files via upload Oct 11, 2019
data Add files via upload Oct 11, 2019
data4lammps Add files via upload Oct 11, 2019
README.md Update README.md Oct 11, 2019
box.txt Add files via upload Oct 11, 2019
createBondCommands.py Add files via upload Oct 11, 2019
createBonds.py Add files via upload Oct 11, 2019
createDreidingTypes.py Add files via upload Oct 11, 2019
getnd.py Add files via upload Oct 11, 2019
input.args Add files via upload Oct 11, 2019
readFiles.py Add files via upload Oct 11, 2019
runData4Lammps.py Add files via upload Oct 11, 2019
str2lmp.py Add files via upload Oct 11, 2019

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.