yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #18073
Re: [Question #673124]: Triaxial compression test displacement field
Question #673124 on Yade changed:
https://answers.launchpad.net/yade/+question/673124
Status: Open => Answered
Jan Stránský proposed the following answer:
Thanks for clarification :-)
as you have it, the vtk.exportSpheres is called just once, hence you get only one file..
To get vtk files regularly during the simulation, you have to use PyRunner [1] in O.engines and call an export function from it, something like:
####
def doExport():
vtk.exportSpheres(...)
O.engines = [
...
PyRunner(iterPeriod=1000,command="doExport()"), # you can use realPeriod or virtPeriod, see [1]
]
####
or you can do the run "in cycle":
####
for i in range(20):
O.run(1000,True)
vtk.exportSpheres(...)
####
cheers
Jan
[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.PyRunner
--
You received this question notification because your team yade-users is
an answer contact for Yade.