Skip to main content

Automated generation of LAMMPS data and input files for polymer molecular dynamics simulations

Project description

Neural Network Molecular Dynamics Kit

License

NNMDKit generates polymer topology from SMILES strings and automatically builds LAMMPS data and input files for molecular dynamics simulations

Example

Below is an example python script where we use NNMDKit to generate LAMMPS data and input files for Tg measurement with a list of SMILES strings.

import nnmdkit

smiles = ['*CC*', '*CC(*)C', '*CC(*)CC', '*CC(*)CCC', '*CC(*)CCCC','*CC(*)c1ccccc1']

for s in smiles:
    sys = nnmdkit.System(smiles=s, mw=10000, ntotal=3000, density=0.5, builtby='emc')
    data = sys.write_data(output_dir=s)

    lmp = nnmdkit.Lammps(data, NN_POTENTIAL='~/p-rramprasad3-0/NNLMP/potential_saved')
    lmp.add_procedure('minimization', min_style='cg')
    lmp.add_procedure('equilibration', Tfinal=600, Pfinal=1, Tmax=800, Pmax=49346.163)
    lmp.add_procedure('Tg_measurement', Tinit=600, Tfinal=100, Tinterval=25, step=1000000)
    lmp.write_input(output_dir=s)
                       
    job = nnmdkit.Job(jobname=s, project='GT-rramprasad3-CODA20', nodes=2, ppn=24, 
                      walltime='48:00:00', LAMMPS_EXEC='~/p-rramprasad3-0/NNLMP/lmp')
    job.write_pbs(output_dir=s)

A tutorial on using NNMDKit to create simulations of hydrocarbon polymers can be found here.

Installation

pip install .

Requirements

Note that, both EMC/PSP and RDKit are required to be installed manually. NNMDKit requires EMC or PSP to create polymer structures. To configure the integration with EMC, two environment variables are required to be addded to locate your EMC executable (emc_linux64 for Linux, emc_macos for MacOS, or emc_win32 for Windows) and setup tool (emc_setup.pl). Add the paths of the EMC executable and setup tool as environment variables "EMC_EXEC" and "EMC_SETUP", respectively.

For Ramprasad Group users on Tyrion2, simply type in the command line:

echo "export EMC_EXEC=/data/kevin/EMC/bin/emc_linux64" >> ~/.bashrc
echo "export EMC_SETUP=/data/kevin/EMC/scripts/emc_setup.pl" >> ~/.bashrc

Copyright

Ramprasad Group, Georgia Tech, USA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NNMDKit-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

NNMDKit-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file NNMDKit-0.1.0.tar.gz.

File metadata

  • Download URL: NNMDKit-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for NNMDKit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c9cc42e869b8e61a4dc3593ad6ef9bf48345dc4ab9177f58e7bc6e2ea7a521a
MD5 4348d2bbde2efc4a5c3f088517ae8bea
BLAKE2b-256 7f176752bca1839a0e49386e6a9dede35d324f0e36ab6f988da6e6dcf8e2011b

See more details on using hashes here.

File details

Details for the file NNMDKit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: NNMDKit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for NNMDKit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c44fb325c85a887bc05a6e4e1639869c25cf831e7522900631e316790913cf02
MD5 e245656ff2dd7ab0982290392b895d32
BLAKE2b-256 0fb815ec388f95f675a66801f716875598954c5f0ad9aa85aeeab607b99e1c2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page