Skip to main content

Python interface for the Enhanced Monte Carlo (EMC) package

Project description

Enhanced Monte Carlo (EMC) Python Interface

PyPI version shields.io PyPI download month

This module is a thin Python wrapper library of the EMC package that allows you to use all EMC functionalities with Python interface.

EMC creates input structures from SMILES strings and LAMMPS input files for particle simulations with atomistic force fields - Born, COMPASS, PCFF, CHARMM, OPLS, TraPPE or coarse-grained force fields - DPD, Martini, SDK.

The package works out of the box without pre-installation of EMC or any configuration. Please open an issue if you find something missing or not working as expected.

Installation

pip install emc-pypi

Usage

import pyemc

# Run the emc_setup.pl and generate the build.emc file for the build command
pyemc.setup('your-setup-file.esh')

# Or you can pass in arguments like this
pyemc.setup('your-setup-file.esh', '-ntotal=1000', '-field=opls-aa')

# Finally, run the emc executable to create simulation input files
pyemc.build('build.emc')

Example

Example input files are provided in the example. Once installed, you can run the example by:

cd example
python example.py

The example.esh file creates a system with 80% m/m water and 20% m/m alcohol. More examples are available here

Citation

In any publication of scientific results based in part or completely on the use of EMC, please cite the original paper: P.J. in 't Veld and G.C. Rutledge, Macromolecules 2003, 36, 7358 [link] [pdf]

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

emc-pypi-2023.8.2.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emc_pypi-2023.8.2-py3-none-any.whl (10.0 MB view details)

Uploaded Python 3

File details

Details for the file emc-pypi-2023.8.2.tar.gz.

File metadata

  • Download URL: emc-pypi-2023.8.2.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for emc-pypi-2023.8.2.tar.gz
Algorithm Hash digest
SHA256 abd7babe2f0a471a3c81fefb5144029978498abd0e5e1967b628350a7238fc00
MD5 b05340fcc9e30c466d1160aa625fff7f
BLAKE2b-256 f76dc80c9f1d1691ff0d235ccabbcf8c1d692109c137981e85b7d996b1f1cf4c

See more details on using hashes here.

File details

Details for the file emc_pypi-2023.8.2-py3-none-any.whl.

File metadata

  • Download URL: emc_pypi-2023.8.2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for emc_pypi-2023.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82713535a17870ca9a7f0072629f4101209f4fc01240a87b57e86599cc56050e
MD5 1eed6166605e937f8a6911f7aa2f2488
BLAKE2b-256 bc9a1b1b8fd8a892787aa465c29fbb156c47ff9fcf080aa55db406185be255d6

See more details on using hashes here.

Supported by

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