← Back to team overview

yade-users team mailing list archive

Re: [Question #678783]: saveDataTxt repeatedly in one simulation

 

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

jamespaul posted a new comment:
Thanks Jan so much,

Thanks for your help.Maybe I didn't make myself clear.Because every
simulation takes a lot of time, i should save a .gz file to think which
data could be used in the whole simulation.Maybe it's my lack of
knowledge,if i use O.load,i could only obtain the final state of the
first code.

My aim is to play the saved file from the beginning ,and export data.

James

### script 1
makeCloud...

O.engines=[
   ...
   PeriTriaxController...
   PyRunner(command='addPlotData()',iterPeriod=100),]

def triaxFinished():
   print 'Finished'
   O.pause()

def addPlotData():
   pass

qt.Controller()
O.run()
O.wait()
O.save('1.yade.gz')
O.saveTmp()

### script 2
O.load('1.yade.gz')

def triaxFinished():

def addPlotData():
   plot.addData(...)
   plot.saveDataTxt(...)

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