Hi, Ruochun

      1. If so many spherical particle templates are created, will it 
affect the calculation speed? 
      2. If I have particles with multiple particle size ranges, such as [2 
mm, 4mm], [4 mm, 6 mm], [6 mm, 8 mm], how can I group the particles based 
on their particle size ranges?

Thank you 
Wenxuan

在2024年9月12日星期四 UTC+8 08:18:51<Ruochun Zhang> 写道:

> 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/85b1d4d7-aab4-47b4-b825-5f97242e089bn%40googlegroups.com.

Reply via email to