59 |
""" |
""" |
60 |
returns a frame counter |
returns a frame counter |
61 |
""" |
""" |
62 |
return self.n-1 |
return self.n |
63 |
|
|
64 |
def getSafeTimeStepSize(self,dt): |
def getSafeTimeStepSize(self,dt): |
65 |
""" |
""" |
120 |
self.__filename=n+".%s."+fnc[-1] |
self.__filename=n+".%s."+fnc[-1] |
121 |
self.trace("output filename is %s."%self.__filename) |
self.trace("output filename is %s."%self.__filename) |
122 |
|
|
123 |
|
def doInitialPostprocessing(self): |
124 |
|
kwargs={} |
125 |
|
if not self.scalar==None: kwargs["scalar"] = self.scalar |
126 |
|
if not self.vector==None: kwargs["vector"] = self.vector |
127 |
|
if not self.tensor==None: kwargs["tensor"] = self.tensor |
128 |
|
saveVTK(self.__filename%self.getFrameCounter(),**kwargs) |
129 |
|
self.trace("%s-th frame at time %s is writen to %s"%(self.getFrameCounter(),self.t,self.__filename%self.getFrameCounter())) |
130 |
|
|
131 |
def doStepPostprocessing(self, dt): |
def doStepPostprocessing(self, dt): |
132 |
""" |
""" |