yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #26055
Re: [Question #698346]: Why VTKExporter does not work?
Question #698346 on Yade changed:
https://answers.launchpad.net/yade/+question/698346
Jan Stránský posted a new comment:
I just have tried what you described (both with script and terminal) and
could not reproduce the problem..
### script 1
from yade import export
O.bodies.append(sphere((0,0,0),1))
vtk = yade.export.VTKExporter("test")
def doVtk():
vtk.exportSpheres()
O.engines = [PyRunner(iterPeriod=1,command="doVtk()")]
O.step()
print(len(O.bodies))
O.save("test.bz2")
###
### script 2
O.load("test.bz2")
print(O.iter)
print(len(O.bodies))
from yade import export
vtk = yade.export.VTKExporter("test")
def doVtk():
vtk.exportSpheres()
O.engines = [PyRunner(iterPeriod=1,command="doVtk()")]
O.step()
###
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.