Skip to main content

Add your description here

Project description

Hard Spheres in 2d

Simulating hard spheres in two dimensions using event driven molecular dynamics and visualizing rotational symmetry using psi-6.

Melting hexagon of hard spheres

Quickstart

uvx --from hardspheres-2d hardspheres2d --help

Setup to develop

git clone https://github.com/eschmidt42/hardspheres-2d.git
cd hardspheres-2d
uv sync

For the installation of uv see here.

Note: this project uses Rust 1.82. So you may need to install the rust toolchain.

How to use

Command Line

To run the event driven molecular dynamics simulation from your command line within the project check out

uv run hardspheres2d --help

Notebook

Alternatively, the notebook ./melting-hard-sphere-hexagons.ipynb contains all the steps to set up and run event driven molecular dynamcis on your machine. As well as some sanity checks to better understand what is going on.

To visualize the dynamics you may want to install ovito. The base version is sufficient.

Developing

During your rust edits you want to update your build artefacts so you can use them from python / a notebook. For you can use

make update

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

hardspheres_2d-0.1.4.tar.gz (3.2 MB view details)

Uploaded Source

File details

Details for the file hardspheres_2d-0.1.4.tar.gz.

File metadata

  • Download URL: hardspheres_2d-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.9

File hashes

Hashes for hardspheres_2d-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4bbccfe8a4817314b8dd39d559b7711aaaa1b04e7e9836100263f59737c5c564
MD5 e4e06dfe6a1e7642a08a48605f23b755
BLAKE2b-256 5649039e5017a3de19fe032d513681cc1696fecb1bb7cc7bb7f7461e09494d28

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