sDEM has been integrated into the CFD-DEM sovler CP3d as a sub-solver.
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
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
).
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 useinputFile
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
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)
- Adding a non-spherical Particles module, using Super-ellipsoids and/or Multi-Sphere Method
- Hybrid MPI/OpenMP parallelization and GPU acceleration
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.
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.