← Back to team overview

yade-users team mailing list archive

Re: [Question #699796]: Delete interaction

 

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

Jan Stránský proposed the following answer:
Hello,

I could not find any details in documentation, although there should be some (in Programmer's manual, in tutorial->new law or similar).
Feel free to add these information if you find it appropriate.

It depends on what you call "delete interaction".

Normally, you "delete existing interaction" by returning false from Law2::go [1].
Sticking to CPM, see [2] (the "if tension and (broken or not cohesive)" branch, compared to "compression branch" [3] returning true.

BUT, the interaction itself is not deleted, it is just reset (setting
geom and phys to None, making it non-real), and it is then up to
collider (IMO, not 100% sure) to deal with it.

Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/core/InteractionLoop.cpp#L190
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ConcretePM.cpp#L472
[3] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ConcretePM.cpp#L498

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