Hi,
This is a DEME-related question.
I have been running into a problem where my simulation crashes after being normal for a while. The error I get is the following:
//////////////////////////////////////////////////
-------- Simulation crashed potentially due to too many geometries in a bin --------
Right now, the dT reported (by user specification or by calculation) max velocity is 0.133465
The contact margin thickness is 9.35108e-06
If the velocity is extremely large, then the simulation probably diverged due to encountering large particle velocities, and decreasing the step size could help.
If the velocity is fair but the margin is large compared to particle sizes, then perhaps too many contact geometries are in one bin, and decreasing the step size, update frequency or the bin size could help.
If they are both fair and you do not see "exceeding maximum allowance" reports before the crash, then it is probably not too many geometries in a bin and it crashed for other reasons.
terminate called after throwing an instance of 'std::runtime_error'
what(): GPU Assertion: an illegal memory access was encountered. This happened in /DEM-Engine/src/algorithms/DEMCubContactDetection.cu:
////////////////////////////////////////////////////////////////
I have tried to reduce my simulation bin size to as small as 0.5*particle radius. I have also tried to reduce/increase other parameters, such as update frequency and safety multiplier but still, the simulation crashes after being normal for a while (I have a video that I could share with you via email if you like). In addition, I have tried to reduce the time step size very much (4e-7) but that did not seem to work. Also, I have reduced my mesh to have a Total num of triangles: 6790 which I do not think is really large. I have attached my sim file for your reference.
In addition, I have tried to use a different material from one of your demos with the same time step but I still seem to have the same problem.
Also, one thing that I noticed, every time I increased the CDupdate frequency value, the simulation reports a higher value of Average steps per dynamic update. for example, when I set my update frequency to 15, the simulation reports the Average steps per dynamic update: 16.94662. In addition, when I increase my CD update to 20 the simulation reports the Average steps per dynamic update: 21.997. Is that how it is supposed to be?
Thank you in advance for your help,