← Back to team overview

yade-users team mailing list archive

Re: [Question #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

 

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

    Status: Open => Answered

Chiara Modenese proposed the following answer:

On 20/03/2012 17:30, Christian Jakob wrote:
> Question #190529 on Yade changed:
> https://answers.launchpad.net/yade/+question/190529
>
>      Status: Answered =>  Open
>
> Christian Jakob is still having a problem:
> I implemented this isBroken flag in Law2...Capillarity and in the header files of CapillaryPhys.hpp and Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.hpp
> But deleting single liquid bridges is still not working, i tried:
>
> for i in O.interactions:
>    z_int=i.geom.contactPoint[2]	#z coordinate of interaction
>    ...
>    if ((z_int<  water_height) and (i.isReal)):
The problem is most likely with the condition you set: (z_int < 
water_height)
Does it work if you only said i.isReal?

Chiara
>      i.isBroken=True				#delete liquid bridges
>
> if i look into simulation inspection isBroken flag is false. What i can
> do now is deleting all bridges with
>
> Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.isBroken=True
>
> but how can i delete single bridges from O.interactions ?
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.