A python package for simulating the motion of a granular material as a result of the motion of voids. In particular, it (currently) models non-inertial problems quite well. In particular, segregation is well modelled for several systems.
- Download and unzip (or clone) this repository
- Install python 3.11 or newer
- Install the required python packages with
pip install -e .
- Set up your pre-commit hooks (so that when you make changes things are kept nice and clean) by running
pre-commit install
- Run the code with
python HGD/main.py json/collapse.json5
. The parameters for this specific case are stored injson/collapse.json5
. Change that file name to a differentjson5
file to use those values instead.
You can read the docs here.