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. No pre-installation of EMC is needed.

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.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-2024.8.1.post1.tar.gz (21.2 MB view details)

Uploaded Source

Built Distribution

emc_pypi-2024.8.1.post1-py3-none-any.whl (21.6 MB view details)

Uploaded Python 3

File details

Details for the file emc-pypi-2024.8.1.post1.tar.gz.

File metadata

  • Download URL: emc-pypi-2024.8.1.post1.tar.gz
  • Upload date:
  • Size: 21.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for emc-pypi-2024.8.1.post1.tar.gz
Algorithm Hash digest
SHA256 ac51dbd29bbb84cf73ca73cddcda0b3c16cdfc1b7aed48451d76a3e3580e35c7
MD5 216b590c461e63593a6adeb4f0bc6533
BLAKE2b-256 de6d245197cc73bad4b29ec43a7f40e683716df8cb3b3ab47c0bc73f5ebf1182

See more details on using hashes here.

File details

Details for the file emc_pypi-2024.8.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for emc_pypi-2024.8.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 02c925dc432a425e220a5badcc98843505c89a61a6aa03e8cc5cf18d0b0d1180
MD5 235ab4d3d0fea16c5ad4764f0915fd06
BLAKE2b-256 403a161a18f40c7d65588ae9bdfbf9d51e9ee7c4c26a4a760cbdb29a9f39ac11

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