1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
from paraview.simple import *
# Greeting to ensure that ctest knows this script is being imported
print("executing catalyst_pipeline")
# registrationName must match the channel name used in the
# 'CatalystAdaptor'.
producer = TrivialProducer(registrationName="grid")
def catalyst_execute(info):
global producer
producer.UpdatePipeline()
print("-----------------------------------")
print("executing (cycle={}, time={})".format(info.cycle, info.time))
print("bounds:", producer.GetDataInformation().GetBounds())
print("velocity-magnitude-range:", producer.PointData["velocity"].GetRange(-1))
print("pressure-range:", producer.CellData["pressure"].GetRange(0))
|