3from NekPy.SolverUtils
import Filter
4from NekPy.FieldUtils
import Field, OutputModule
7 def __init__(self, session, eqsys, params):
9 super(TestVTKFilter, self).
__init__(session, eqsys)
11 self.
field = Field([], force_output=
True)
14 "vtu", self.
field, outfile=
"output_0.vtu")
17 self.
field.SetupFromExpList(fields)
21 if self.
num % 10 != 0:
24 self.
field.SetupFromExpList(fields)
25 self.
module.RegisterConfig(
"outfile",
"output_%03d.vtu" % (self.
num / 10, ))
30 sys.stdout.write(
"TestVTKFilter: %d\n" % self.
num)
37Filter.Register(
"TestVTKFilter", TestVTKFilter)
def Initialise(self, fields, time)
def Finalise(self, fields, time)
def __init__(self, session, eqsys, params)
def IsTimeDependent(self)
def Update(self, fields, time)