← Back to team overview

yade-users team mailing list archive

Re: [Question #703920]: How to excute the VTKRecorder at virtual time

 

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

mikexue posted a new comment:
Hi,Jan
Thanks! Your code works just fine!
I am just curious why my code didn't work although it's poorly written.
###
O.engines = [
    PyRunner(command='record_vrk()',virtPeriod=1,nDo = 2),#call "record_vtk"at O.time=20 for only once 
]

def record_vrk():
    VTKRecorder(fileName='3d-vtk-',recorders=['all','bstresses'],virtPeriod = 3,nDo = 5)

Best,
Mikexue

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