This repository contains a Discrete Element Method (DEM) simulation of the Galton Board system, utilizing the open-source DEM software, YADE. It is comprised of two main components:
galton_board.py: Runs the simulation.plotter.py: Processes the simulation output and visualizes the results.
Ensure you have YADE installed on your system. For installation instructions, refer to the YADE documentation.
-
Simulation Script: To start the simulation, open your terminal and run the following command:
yade galton_board.pyor for yadedaily builds:
yadedaily galton_board.pyThis function creates a
SIM_DATAfolder, generates STL files, and records the corresponding simulation parameters. -
Data Visualization: After running the simulation, use
plotter.pyto process the STL files and simulation parameters. This script plots a histogram for each timestep and combines these plots to create a video. Run the following command in your terminal:python plotter.py
For any queries or issues, feel free to open an issue or contact the repository maintainers.