← Back to team overview

yade-users team mailing list archive

Re: [Question #680784]: Export plot data issues

 

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

    Status: Open => Answered

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

> O.run(100000)
> plot.saveDataTxt('Plot_data.txt',vars=('t'))

Yade / Python reads the script line by line and executes it. In this
case, O.run(100000) starts the running for 100000 time steps, but in the
meantime the next lines are directly executed, so you save a state
shortly after starting running.

try:
O.run(100000,True) # True makes Yade wait until defined number of steps is finished
or
O.run(100000)
O.wait() # similar as above

Also please have a look at [1], section "Please, no external links!"

cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask

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