Optimization. The DEM method does not require that contacts are created before the distance is smaller than an 'outward' safety envelope, as it is needed in DVI. Instead, in classical DEM, contacts have an effect only when there is some interpenetration. So, here in ChSystemDEM I set the default outward envelope to 0, instead than default 0.03 that was in the normal ChSystem. This means that also bounding boxes will be more 'tight', less potential contacts are created, the collision detection stage is faster, less RAM is used (especially for small granular particles whose size was comparable to that 0.03 envelope!)
Optimization. The DEM method does not require that contacts are created before the distance is smaller than an 'outward' safety envelope, as it is needed in DVI.
Instead, in classical DEM, contacts have an effect only when there is some interpenetration.
So, here in ChSystemDEM I set the default outward envelope to 0, instead than default 0.03 that was in the normal ChSystem.
This means that also bounding boxes will be more 'tight', less potential contacts are created, the collision detection stage is faster, less RAM is used (especially for small granular particles whose size was comparable to that 0.03 envelope!)

armanpazouki/chrono,tjolsen/chrono,jcmadsen/chrono,Bryan-Peterson/chrono,tjolsen/chrono,dariomangoni/chrono,projectchrono/chrono,jcmadsen/chrono,Bryan-Peterson/chrono,armanpazouki/chrono,Milad-Rakhsha/chrono,armanpazouki/chrono,projectchrono/chrono,rserban/chrono,jcmadsen/chrono,dariomangoni/chrono,amelmquist/chrono,andrewseidl/chrono,rserban/chrono,jcmadsen/chrono,tjolsen/chrono,jcmadsen/chrono,jcmadsen/chrono,Milad-Rakhsha/chrono,rserban/chrono,Milad-Rakhsha/chrono,projectchrono/chrono,Milad-Rakhsha/chrono,rserban/chrono,armanpazouki/chrono,Bryan-Peterson/chrono,Bryan-Peterson/chrono,dariomangoni/chrono,rserban/chrono,tjolsen/chrono,andrewseidl/chrono,andrewseidl/chrono,amelmquist/chrono,rserban/chrono,projectchrono/chrono,amelmquist/chrono,amelmquist/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,dariomangoni/chrono,armanpazouki/chrono,jcmadsen/chrono,andrewseidl/chrono,rserban/chrono,amelmquist/chrono,dariomangoni/chrono,tjolsen/chrono,andrewseidl/chrono,Milad-Rakhsha/chrono,Bryan-Peterson/chrono,projectchrono/chrono,projectchrono/chrono,armanpazouki/chrono,amelmquist/chrono