check breakOccurred in JCF contact law
Hi all,
I am using the code [1] to check if a particle lose its cohesive contact and consequently belongs or not to a relative aggregate.
But I am not quite sure if i.phys.
My question is:
Inside O.engines should I activate the flag used to trigger retriangulation as soon as a cohesive bond breaks or not?
Example (yes):
O.engines=[
ForceResetter(),
...
[Law2_
),
]
Example (no):
O.engines=[
ForceResetter(),
...
[Law2_
),
]
Thank you,
Luis
[1]
def addBodyToAggreg
if body.id in aggreg: # do nothing if b is already in aggreg ...
return
aggreg.
intrs = body.intrs()
for i in intrs: # and add also all its neighbors ...
if not isinstance(
continue
if i.phys.
continue
i2 = i.id1 if i.id2==body.id else i.id2 # choose the other body of interaction
b2 = O.bodies[i2]
addBodyTo
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luis Barbosa
- Solved:
- Last query:
- Last reply: