Hi Wenxuan,

You can use DEMdemo_BallDrop.cpp 
<https://github.com/projectchrono/DEM-Engine/blob/main/src/demo/DEMdemo_BallDrop.cpp>
 as 
an example and starting point. There, I created 11 templates with diameters 
ranging from 0.25cm to 0.35cm, then when instantiating particles, they 
randomly took one of the 11 templates. This is usually enough for emulating 
a size distribution.

However, if you want "truly random" distribution in the range of [8 mm, 
12mm], then you probably just have to generate random floating numbers in 
this range, then create a sphere template based on this number, then create 
a particle using this template, then repeat the process. In the end, you 
will have as many templates as particles, and each of them is different. 
DEME should support this as well (and if it complains, please let me know). 
>From the simulation physics point of view, this is likely an overkill.

Thank you,
Ruochun

On Wednesday, September 11, 2024 at 10:26:07 AM UTC+8 [email protected] 
wrote:

> Hi, Ruochun
>
>      I got a sphere particle template through the LoadSphereType function. 
> The diameter of the sphere particle template is 10 mm. How can I add 
> particles with a diameter randomly distributed in the range of [8 mm, 12mm] 
> based on this spherical particle template?
>
> Best regards
> Wenxuan XU
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/c33c3d58-b118-4b6b-9417-4551081b0928n%40googlegroups.com.

Reply via email to