← Back to team overview

yade-users team mailing list archive

Re: [Question #220639]: saving simulation at certain time step

 

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

Christian Jakob proposed the following answer:
Hi,
You can save/ load simulations with O.save() or O.saveTmp() [1] and O.load() or O.loadTmp() [2].
Also you can store your python variables with O.saveVars() [3] and load it with O.loadVars() [4].

[1] https://yade-dem.org/doc/yade.wrapper.html?highlight=save#yade.wrapper.Omega.save
[2] https://yade-dem.org/doc/yade.wrapper.html?highlight=load#yade.wrapper.Omega.load
[3] https://yade-dem.org/doc/yade.utils.html?highlight=save#yade.utils.saveVars
[4] https://yade-dem.org/doc/yade.utils.html?highlight=load#yade.utils.loadVars

If you saved a sim. with O.save() with yade release (e.g. 0.9.1) it may
happen, that you can not load it with a newer version (e.g. 0.9.2). Then
you have to run the script again with the new version to get a new save
file.

Hope it helps,

Christian

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.