Skip to content

An open sourced Discrete Element Method software based on C++ and Python.

License

Notifications You must be signed in to change notification settings

Geo-StarLab/StarDEM

Repository files navigation

StarDEM

An open sourced Discrete Element Method (DEM) software based on Python and C++.

A very simple DEM code for beginners who are interested in DEM coding.

Environment requird

Python 3.x

cmake

Post Process : Paraview

A simple tutorial

Run the "Run_StarDEM.py" file

You will get a results in ResultsOutput file

Use Paraview to check the results as the following steps.

  • Open the results.csv file. -> Apply.
  • Add the Table To Points filter.
    • Set the X Column, Y Column, and Z Column to the respective columns.
    • Apply.
    • Close the SpreadSheetView.
  • Add the Glyph filter.
    • Change Glyph Type to Sphere.
    • Change Scale Array to the name of the column containing the radius.
    • Change the Scale Factor to 2. (The spheres are scaled from a reference with radius 0.5.)
    • Change Glyph Mode to All Points.
    • Apply.

Special Thanks To

  • pybind11 for exposing C++ to python

Contract

Email: cshang.cimne.upc.edu

About

An open sourced Discrete Element Method software based on C++ and Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published