Skip to main content

A lattice-gas Monte-Carlo simulation tool

Project description

# lattice-mc

lattice-mc is Python module for running (kinetic) lattice-gas Monte Carlo simulations. Simple lattices can be constructed programmatically (presently square, honeycomb, and cubic lattices). Arbitrary lattices can be generated from files that define the lattice sites and their connectivity. The algorithms used and interaction models are described in <a href=”#ref1”>[1]</a>. Calculated properties include tracer and &ldquo;jump&rdquo; diffusion coefficients; where the latter is proportional to the mobility (and hence the conductivity for charged particles) <a href=”#ref2”>[2]</a>; and tracer (single particle) and collective correlation factors, f and f_I <a href=”#ref3”>[3]</a>. The simplest interaction model is for &ldquo;non-interacting&rdquo; particles, where the only restriction is volume exclusion (two particles cannot simultaneously occupy a single site) <a href=”#ref1”>[4]</a>. Additional interaction models include nearest-neighbour repulsion and on-site energies for inequivalent sites.

## Installation

Install the [current PyPI release](https://pypi.python.org/pypi/lattice-mc): ` pip3 install lattice-mc ` or clone the latest development version from [GitHub](https://github.com/bjmorgan/lattice-mc) ` git clone git@github.com:bjmorgan/lattice-mc.git `

## Documentation

Full documentation and examples are contained in a [Jupyter notebook](http://jupyter-notebook.readthedocs.io/en/latest/#) at [examples/lattice-mc_example.ipynb](examples/lattice-mc_example.ipynb). This example notebook is also hosted on [GitHub](https://github.com/bjmorgan/lattice-mc/blob/master/examples/lattice-mc_examples.ipynb).

## Tests

` python3 -m unittest discover `

## References <span id=’ref1’>[1] B. J. Morgan, In Preparation.</span> <span id=’ref2’>[2] A. Van der Ven et al. [Acc. Chem. Res. 46, 1216 (2013)](https://dx.doi.org/10.1021/ar200329r)</span> <span id=’ref3’>[3] G. E. Murch [Sol. Stat. Ionics 7, 177 (1982)](https://dx.doi.org/10.1016/0167-2738%2882%2990050-9)</span> <span id=’ref4’>[4] R. Kutner [Phys. Lett. 81A, 239 (1981)](https://dx.doi.org/10.1016/0375-9601%2881%2990251-6) </span> <span id=’ref5’>[5] Morgan and Madden, [J. Phys. Condens. Matter 24, 275303 (2012)](http://www.iopscience.iop.org/article/10.1088/0953-8984/24/27/275303/)</span>. <span id=’ref6’> [6] G. E. Murch & R. J. Thorn, [Phil. Mag. 36 529 (1977)](http://dx.doi.org/10.1080/14786437708239737).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

lattice_mc-1.0.0-py3.6.egg (45.2 kB view details)

Uploaded Egg

File details

Details for the file lattice_mc-1.0.0-py3.6.egg.

File metadata

  • Download URL: lattice_mc-1.0.0-py3.6.egg
  • Upload date:
  • Size: 45.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lattice_mc-1.0.0-py3.6.egg
Algorithm Hash digest
SHA256 bb960c6f4c66d66eb6a54ea2e2d603f03092a497cd8b35c10ea521ffedd4b368
MD5 8c0f177a4e71c73dbc2202c658abb70e
BLAKE2b-256 3c24067ff9ec9b568cde88f6d1375835945082c234d5b664fd7202cf4ef1bf1b

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