← Back to team overview

yade-users team mailing list archive

Re: [Question #707069]: How to determine if a cohesive link is broken (Law2_ScGeom6D_CohFrictPhys_CohesionMoment)

 

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

    Status: Open => Answered

Robert Caulk proposed the following answer:
Hello,

Have you tried:

```
for i in O.interactions:
    if hasattr(i.phys, 'cohesionBroken'):
        if i.phys.cohesionBroken:
            print(f"Interaction {i} is broken")
```

?

-rob

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