Hi Ruochun,Thank you for that suggestion, this implementation will work for me for now.
I've been trying to run some simulations but my simulations keep crashing.
It is difficult to share a code snippet because I've already abstracted the DEME calls in my code.
My basic test setup right now looks as follows tough:
- cube represented as a mesh which I'm planning to use as my boundaries (also tried the same with using the BoxDomainBoundaryConditions), the normals are pointing inwards accordingly (1.4 in each direction)
- the cube inside is filled with clumps, simple spheres with diameter 0.04 and a spacing of 0.1
- Mat properties: {"E", 1e9}, {"nu", 0.33}, {"CoR", 0.8}, {"mu", 0.3}, {"Crr", 0.00}
- timestep: 1e-6
- initial bin size: 1.0
(I had problems when I was not settings the initial bin size, the simulation already crashed during initialisation. Then I saw the comment of setting the bin size to 25*granular radius in the DEMdemo_Mixer file. Then the simulation kept running for a while.)
- max CDUpdateFreq: 20
Eventually the simulation crashes with the following error:
// 233 contacts were active at time 0.192906 on dT, but they are not detected on kT, therefore being removed unexpectedly!
// terminate called recursively
// terminate called after throwing an instance of 'std::runtime_error'
// GPU Assertion: an illegal memory access was encountered. This happened in /tmp/chrono-dem/src/DEM/dT.cpp:1941 (also happened at different locations in dT.cpp)
I've been trying to tweak some of the parameters but couldn't find a set of reasonable parameters. Do you maybe have any suggestions on what could be wrong?
I've added an screenshot from the last output I could get from the simulation, for me it looks fine until then. I've also added my particle output file and mesh file, it's the output from my code so it's a H5 file if that is of any help.
Also I don't really understand how I should set the initial bin size, can you maybe give me some insight on how this parameter affects the simulation?
Thank you for your help, so far!
Julian