Python package (noblegasmd)
A pip install-able, numba-accelerated Python port of the same NVE Lennard-Jones engine,
runnable with zero build step (e.g. in Google Colab). MD.cpp below remains the authoritative
physics reference; the port is validated against it (see tests/).
pip install noblegasmd
from noblegasmd import run, sweep
result = run(gas="Ar", T=300.0, rho=40.0)
print(result.Z, result.P_avg, result.T_avg)
df = sweep(gas="Ar", T=[100, 200, 300, 400], rho=[1, 40, 500, 2000], n_replicates=3)
See notebooks/reproduce_figure4.ipynb to regenerate the
published quasi-isotherms, and MD_python_port_spec.md for the full
port specification. Development install: pip install -e ".[dev]", then pytest.
C++ reference implementation (MD.cpp)
-
Source code for Molecular Dynamics Program - can compile and run on Linux, Windows, and Mac OSX
-
More information about this program, including detailed instructions for its use, can be found here for instructions and here for discussion of its use in an undergraduate laboratory setting
-
This folder should containt the source code (MD.cpp) and a makefile which can be used to compile the source to a machine-executable file.
-
A copy of the gnu public license (LICENSE.md) should be included.
-
To compile this code using a gnu C/C++ compiler and create an executable called 'MD.exe' in a Linux/Unix environment, type
make -
To run the program in a Linux/Unix environment, type
./MD.exe -
The program will run interactively. Follow the prompts to customize your simulation
Note for Windows users on Cygwin installation: Our J. Chem. Ed. article suggests installing all Cygwin packages, which is quite large and time consuming. Success with a much lighter installation has been reported by selecting the default package installation plus 3 additional packages under the "devel" sub-heading. As accessed on 01/08/2020, these packages and version numbers are as follows:
- gcc-g++ (7.4.0-1)
- git (2.21.0-1)
- make (4.2.1-2)
Metadata
Release files for noblegasmd 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| noblegasmd-0.1.1.tar.gz | 63.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| noblegasmd-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.2 kB
Release files / noblegasmd-0.1.1.tar.gz
| Download URL | noblegasmd-0.1.1.tar.gz |
|---|---|
| Size | 63.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74d9392ea458b5cf718f756ee72f1c47a60a2e945ce168145e34413f26c9cdae
|
|
BLAKE2b-256 checksum How to use checksums |
6463da3eb770a246c211517c66d8c5cb863bc55f054820a68b6782d6ae9d6906
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / noblegasmd-0.1.1-py3-none-any.whl
| Download URL | noblegasmd-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd4840a232db6dbe50273e90f3a0ecefa41130650f7348126777c9c79edfc53a
|
|
BLAKE2b-256 checksum How to use checksums |
57907379364aa714b158d28cf1c71246fd17aa8075d93e285f20f9d78ceefa3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log