Skip to content

benjym/HGD

Repository files navigation

Heterarchical Granular Dynamics

Disclaimer: This code is under development and is likely to have significant breaking changes in the near future. Many features are incomplete or redundant. Please contact the development team if you would like a tour.

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.

Code style: black

Installation

  1. Download and unzip (or clone) this repository
  2. Install python 3.11 or newer. c++ version of the code also requires openmp on the system.
  3. Install the required python packages with pip install -e .. This also builds the c++ extension module.
  4. Set up your pre-commit hooks (so that when you make changes things are kept nice and clean) by running pre-commit install
  5. Run the code with python HGD/main.py json/collapse.json5. The parameters for this specific case are stored in json/collapse.json5. Change that file name to a different json5 file to use those values instead. Default parameters are stored in json/defaults.json5.

Documentation

You can read the docs here.

Support

You can contact the development team here.

Authors

About

Heterarchical Granular Dynamics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages