Mpcmd
An extensible hydrodynamic simulation package
Installation
you can install it with:
$ pip install mpcmd
or clone this repository and run:
$ python setup.py install
Requirements
If you are using Lammps for MD simulation, you need to install lammps Python module.
You can install this module by following this page: https://docs.lammps.org/Python_module.html, or just using following commands (recommend):
$ conda install -c conda-forge lammps
If you are using Hoomd-blue for MD simulation, you need to install hoomd Python module (<=2.9.7).
You can install this module by following this page: https://hoomd-blue.readthedocs.io/en/v2.9.7/installation.html, or just using this command (recommend):
$ conda install -c conda-forge "hoomd=2.9.7"
Example usage
# Import Modules
from mpcmd import MPCD
from mpcmd.geometry import Cylinder
# Set fluid geometry
cyl = Cylinder(dim='z', radius=10.0, lo=0, hi=10)
cyl.construct_grid(a=1)
# Setup MPCD system
m = MPCD()
m.set_box(box=[100, 100, 100])
m.set_geometry(cyl)
m.add_fluid(density=10)
m.stream(dt=0.005, period=20)
m.collide(kbt=1.0, alpha=130, period=20)
# Save trajectory
m.logger(period=1000, objects=['fluid'], fnames=['test_fluid.gsd'])
# Run
m.run(1e4, mute=1e3)
# Add force field
m.add_force(a=0.1, direction=[0,0,1])
m.run(1e4, mute=1e3)
Metadata
Release files for mpcmd 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpcmd-0.0.6.tar.gz | 19.5 kB | Without provenance | Details for mpcmd-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpcmd-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for mpcmd-0.0.6-py3-none-any.whl |
Total release size: 42.7 kB
Release files / mpcmd-0.0.6.tar.gz
| Download URL | mpcmd-0.0.6.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d89c2a6716af90cf264b28faa0f1a9767ec155bb1b8c3ed854746634b6561b2
|
|
BLAKE2b-256 checksum How to use checksums |
c21410aedc06baf8e21a357b9eaa47fdc61f576aa7351d6b74a8a0c00ac649a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / mpcmd-0.0.6-py3-none-any.whl
| Download URL | mpcmd-0.0.6-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c71a888078eaaaedece7446682a59ca0fa65a7bcc9dc7f59dde4a45bf24ada28
|
|
BLAKE2b-256 checksum How to use checksums |
3cfeb866d3ed13de13770de56e5c5df98202a7bfb920ce455cfeb3269ad58b93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for mpcmd 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.