2from NekPy.FieldUtils
import Field, OutputModule
4field = Field([], force_output=
True)
10 global field, output_vtk
12 field.SetupFromExpList(fields)
13 output_vtk = OutputModule.Create(
"vtu", field, outfile=
"output_0.vtu")
16 global field, output_num, output_vtk
19 if output_num % 10 != 0:
22 field.SetupFromExpList(fields)
24 output_vtk.RegisterConfig(
"outfile",
"output_%03d.vtu" % (output_num / 10, ))
33 sys.stdout.write(
"FilterPython_Function: %d\n" % output_num)
def filter_initialise(fields, time)
def filter_update(fields, time)
def filter_finalise(fields, time)