[Paraview] get the sum of a cell or point variable (UNCLASSIFIED)

Su, Simon M CTR USARMY ARL (US) simon.m.su.ctr at mail.mil
Wed Jun 25 11:21:22 EDT 2014


Classification: UNCLASSIFIED
Caveats: NONE

Hello,

Running in PV client/server mode, is there a calculator function that will
add up all the values of a variable (cell or point variable). 

I can use the programmable filter to write a python loop to iterate through
all the cell/point of the variable and add them up. But, running in a
client/server mode, how would you store that value? Can I just add a single
value (not array) to the data? If so, what vtk data structure shall I use to
store a double variable? vtk.vtkDouble()? Or is there a way to write that
value out to a file. Running it in parallel, how would that be handled?

Thanks
-simon

Classification: UNCLASSIFIED
Caveats: NONE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5633 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140625/2b1636aa/attachment-0001.bin>


More information about the ParaView mailing list