[Paraview] ParaView programmable filter -> what datatype to use to store complex number and complex number visualization
Su, Simon M CTR USARMY ARL (US)
simon.m.su.ctr at mail.mil
Wed May 21 10:20:40 EDT 2014
Hello,
I am calculating the roots using numpy in the python programmable filter. numpy.roots(coeff) is returning an array of type ndarray with complex128 array elements.
<type 'numpy.ndarray'>
[-0.77184451+1.11514251j -0.77184451-1.11514251j 0.54368901+0.j ]
array size = 3
(-0.771844506346+1.11514250804j)
<type 'numpy.complex128'>
(-0.771844506346-1.11514250804j)
<type 'numpy.complex128'>
(0.543689012692+0j)
<type 'numpy.complex128'>
In my calculation I will have 3 roots so I will be creating three variables root1, root2, root3, and add them to the output data via
output.GetPointData().AddArray(root1)
output.GetPointData().AddArray(root2)
output.GetPointData().AddArray(root3)
what would the vtk type that I need to use to create root1, root2, and root3?
Can ParaView draw an isosurface using root1, or root2, or root3?
Any help on this is much appreciated.
thanks
-simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140521/df32ebfc/attachment.html>
More information about the ParaView
mailing list