Slow calculation speed with a large number of facets imported from stl mesh

Asked by gaoxuesong on 2020-01-29

Hi. Now i am simulating a case where spherical particles are spreading on a substrate imported from a stl mesh. The number of the spherical particles is 6,000 and the number of the facets from stl mesh is 447,262. The calculation speed is low as 2~4 iter/s.

I had tried to use more threads by the command of "yade -j4 myscript.py", however, i got the warning that there are fewer particles nad only some threads are used.

Since the thread option doesn't work, i am wondering how to deal with a large number of facets to increase calculation speed?

P.S. My system is ubuntu 18.04, yade version is 2018.02 and my cpu is intel i7-8or9 (quite new one, 12 threads in total).

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
gaoxuesong
Solved:
2020-01-30
Last query:
2020-01-30
Last reply:
2020-01-30
Jan Stránský (honzik) said : #1

> spherical particles is 6,000 and the number of the facets from stl mesh is 447,262.
> i am wondering how to deal with a large number of facets to increase calculation speed?

decrease the number of facets :-)
Is it possible/reasonable to use a coarser mesh? E.g. removing or merging facets significantly smaller than spheres?

In principal, I think it could be possible to make if faster adjusting the source code (like storing and evaluating strictly fixed bodies differently than dynamic bodies), but definitely it will not be "out of the box".

cheers
Jan

gaoxuesong (260582472-9) said : #2

Thanks, Jan. I cut off some parts of the mesh and get a total number of 93,011. The calculation speed is 60 iter/s. i think this can be acceptable.