[Paraview] Examples of Field Variables Manipulation for Exodus Multi-block datasets

Dennis Conklin dennis_conklin at goodyear.com
Thu Feb 16 13:44:28 EST 2017


All,

Sorry, I answered my own question - I was afraid Field Variables were buried in the "meta" like the Block names were.   They were actually a little simpler once I found some time to poke around.

To add Total_Volume as a Field Variable  inside programmable filter:

...
output.DeepCopy(inputs[0])

Total_Volume = calc_Total_Volume()

FieldData=output.FieldData
Tot_Vol_Array=zeros( (1,1) )             #this is the part I didn't understand I needed
Tot_Vol_Array.fill(Total_Volume)
FieldData.append(Tot_Vol_Array, "Total_Volume")

False alarm this time, but I'm sure I'll be back!
Dennis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170216/34313e33/attachment.html>


More information about the ParaView mailing list