← 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:

    Status: Open => Answered

Robert Caulk proposed the following answer:

Have you tried:

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



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