← Back to team overview

yade-users team mailing list archive

Re: [Question #671468]: How to use TSSR method in order to promote failure in YADE??

 

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

    Status: Open => Answered

Robert Caulk proposed the following answer:
I noticed you added your script to the original post. Thank you, I
assume you will want to add something like:

srFactor = 1.

def reduceStrength():
    srFactor *= 0.9
    for cont in O.interactions: 
      cont.phys.FnMax *= 0.9 
      cont.phys.FsMax *= 0.9 

O.engines=O.engines+[PyRunner(iterPeriod=1000,command='reduceStrength()',label='strength
reduction')]

and instead of jcfpmlaw.nbTensileCracks, change it to
interactionLaw.nbTensileCracks

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