Skip to content

simple MPI version Discrete Element Method solver

Notifications You must be signed in to change notification settings

GongZheng-Justin/sDEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sDEM

sDEM (simple Discrete Element Method) is a simple parallel DEM code with following features:

  • MPI parallelization by means of 2D Domain Decomposition
  • Have the ability to handle particles with different diameters
  • Both linear and non-linear contact force models
  • NBS-Munjiza (Non Binary Search - Munjiza) contact search algorithm

Notice 📰

sDEM has been integrated into the CFD-DEM sovler CP3d as a sub-solver.

Installation 💼

 Present solver has the following two prerequisities:

  • MPI
  • GFortran/Intel Fortran (Supporting Fortran 2003 or higher version)

 You can compile the code as follows:

1. chmod a+x ./mymake.sh
2. ./mymake.sh
3. choose the correct compiler you use, just following guidances printed in the terminal

 If the compiling processes successfully, the executable file dem will be appeared in the current folder (e.g. sDEM-master).

Usage 📖

 After compiling the code successfully, you can run the executable file like that:

mpirun -n [np] ./dem [inputFile]

 Here:

  • np denotes the number of processors you use
  • inputFile is the name string for the input parameter file

 For instance, if you want to run the particles settling in a sand box, you can type the following words in your terminal:

mpirun -n 4 ./dem ./Input/SandBox_DEM.prm

Postprocessing 👾

Paraview is used as the postprocessing tool as follows:

1. cd DEM/Results
2. paraview &
3. use paraview to open the interface XDMF file (e.g. PartVisuForSandBox.xmf)

To do list 💪

  • Adding a non-spherical Particles module, using Super-ellipsoids and/or Multi-Sphere Method
  • Hybrid MPI/OpenMP parallelization and GPU acceleration

Acknowledgements 👏

 I would particularly thank Dr. Norouzi from University of Tehran, for his continuous help (from superficial Fortran language explanation to the underlying DEM details), and his book Coupled CFD‐DEM Modeling: Formulation, Implementation and Applimation to Multiphase Flows, besides the attached code cemfDEM.

 To some extent, the present DEM solver can be regarded as the MPI version of the original serial cemfDEM.

Contact and Feedback 📧

 If you have any question, or want to contribute to the code, please don't hesitate to contact me: Zheng Gong ([email protected])

Following picture shows the process of particles settling in a sand box.

Star History

Star History Chart

About

simple MPI version Discrete Element Method solver

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published