Saving/loading simulations
Hi,
I'm saving a simple simulation(the script is copied here) at some time step. When I quit Yade and load the save file again, the plot functions are lost. Do we need to save functions as well?
In the loaded XML file, I've got the spheres and loads on them but the function to plot is not defined.
#======
O.reset()
from yade import utils, plot
from yade import pack, qt
id_Mat2=
Mat2=O.
s1=utils.
s2=utils.
O.bodies.append(s1)
O.bodies.append(s2)
O.engines=[
ForceResetter(),
ForceEngine(
InsertionSortCo
InteractionLoop(
[Ig2_Sphere_
[Ip2_FrictMat_
[Law2_ScGeom_
),
NewtonIntegrato
PyRunner(
PyRunner(
]
def AutoData():
plot.plots=
plot.plot()
O.dt=1e-6
qt.View()
#======
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- behzad
- Solved:
- Last query:
- Last reply: