← Back to team overview

yade-users team mailing list archive

Re: [Question #702505]: How to solve particle overlap?

 

Question #702505 on Yade changed:
https://answers.launchpad.net/yade/+question/702505

    Status: Open => Needs information

Jan Stránský requested more information:
Hello,

> O.bodies. Erase
> O.bodies. Appnd

please use correct names of methods, including case sensitivity. I.e. O.bodies.erase and O.bodies.append
Here it is clear what you mean, but it is a bad habit not to use "actual code" and in other cases it can be confusing or simply wrong and misleading.

> fixes them

What does "fixes" mean?
What do you fix on deleted particles?

> the particles to be deleted were not completely removed

Please explain.
What are the symptoms?
How do you know they are not completely removed?
E.g. the erased body still exists in computer memory and you can work with it if you desire, but it should not be part of simulation any more.

> Is this because the particles were deleted too slowly and the particles were added too quickly?
> Is there a code that deletes particles faster? Or how can I solve this problem?

No.
Normally the particles is deleted "instantly" (w.r.t simulation progress) and also new particles are added "instantly".
Some actions of the particles may take "some time", e.g. interactions of the newly created particles takes place in InteractionLoop, which is part of O.engines and executed within O.step / O.run.

> and the remaining particles overlapped with the new particles.

If the problem is that new particles overlap with existing particles, then simply adjust the new particles such that they do not overlap with existing particles.
If I got the problem right, it has nothing to do with deleting particles.

Anyway, please read [1] and provide a MWE.
With MWE, the problem will (should) be much clearer.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.