Skip to main content

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]

Metadata

Release files for emc-pypi 2025.8.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emc-pypi 2025.8.21
File Size Uploaded
emc-pypi-2025.8.21.tar.gz 18.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for emc-pypi 2025.8.21
File Interpreter ABI Platform
emc_pypi-2025.8.21-py3-none-any.whl Python 3 none any Details

Total release size: 36.3 MB

Release files / emc-pypi-2025.8.21.tar.gz

Download URL emc-pypi-2025.8.21.tar.gz
Size 18.0 MB
Tags Source
SHA-256 checksum
How to use checksums
049b4e8026b95f3afc2c925d9bb75cc817ecd2d657fcff506e1472c99139b2d3
BLAKE2b-256 checksum
How to use checksums
c5778d093c2b2820cc8b4b549e9a0507e8ee708ce2403fe2dd1cd9af70f00995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release files / emc_pypi-2025.8.21-py3-none-any.whl

Download URL emc_pypi-2025.8.21-py3-none-any.whl
Size 18.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1e8e1cce97e7bc359b123cab214bfb93069cfd709411d70c9cf0625468a7403e
BLAKE2b-256 checksum
How to use checksums
a4c0622d4b759415900b7f51566e26eb609178042a01d21a2058e6ae6537ad38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release history Release notifications | RSS feed

This release

2025.8.21 This release

2 release files

1.0.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page