O.run() at a certain virtual time

Asked by jamespaul on 2019-06-28

Hi,

O.run() can stop at a certain iter.But is there any method to stop at a certain virtual time,such as 10s?

Thanks

James

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
William Chevremont
Solved:
2019-07-02
Last query:
2019-07-02
Last reply:
2019-06-28

if O.time > 10:
    O.stopAtIter=O.iter+1;

Yade [2]: O.stop + TAB
O.stopAtIter O.stopAtTime

Maybe one of them will help? :)

Or, elaborating on Williams solution (but it needs a PyRunner):
if O.time > 10:
    O.pause()

jamespaul (jamespauljames) said : #3

Thanks William Chèvremont, that solved my question.

jamespaul (jamespauljames) said : #4

Also thanks bruno.