← Back to team overview

yade-users team mailing list archive

Re: [Question #707350]: Stop Sim After Reaching StressTriaxController Goal from doneHook?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

you can use approach similar to [1], i.e.
###
while True:
    O.run(N,True)
    if stopCondition():
        break
###

Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/examples/triax-
tutorial/script-session1.py

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