Almost there!
atan(coordsX/coordsY)
If instead of coordsX I use psi__{X,Y}, things work. However, I need
something slightly different than atan: I'd like to get the complex
argument of a complex number X+iY (i.e., the angle with the positive
real axis). It's quite ~similar~ to what atan does,
AM
Subject: Re: [Paraview] unstructured grid, programmable filters: extract,
process array data
Almost there!
atan(coordsX/coordsY)
If instead of coordsX I use psi__{X,Y}, things work. However, I need
something slightly different than atan: I'd like to get the complex
argument of a complex
Sent: Wednesday, February 16, 2011 8:29:02 AM
Subject: Re: [Paraview] unstructured grid, programmable filters: extract,
process array data
Almost there!
atan(coordsX/coordsY)
If instead of coordsX I use psi__{X,Y}, things work. However, I need
something slightly different than atan: I'd
Subject: Re: [Paraview] unstructured grid, programmable filters: extract,
process array data
Almost there!
atan(coordsX/coordsY)
If instead of coordsX I use psi__{X,Y}, things work. However, I need
something slightly different than atan: I'd like to get the complex
argument
grid, programmable filters:
extract, process array data
Almost there!
atan(coordsX/coordsY)
If instead of coordsX I use psi__{X,Y}, things work. However, I need
something slightly different than atan: I'd like to get the complex
argument of a complex number X+iY (i.e., the angle
...@gatech.edu,
paraview@paraview.org
Sent: Wednesday, February 16, 2011 12:49:28 PM
Subject: Re: [Paraview] unstructured grid, programmable filters: extract,
process array data
the math.atan2 function (it's not listed in the web page of python
calculator functions)
So the Python Calculator
Bauer andy.ba...@kitware.com
Cc: gtg0...@mail.gatech.edu, tim gallagher tim.gallag...@gatech.edu,
paraview@paraview.org
Sent: Wednesday, February 16, 2011 12:49:28 PM
Subject: Re: [Paraview] unstructured grid, programmable filters: extract,
process array data
the math.atan2 function (it's
This sounds like a job for the calculator filter. coordsX^2+coordsY^2 for
your first example (or psi__X^2+psi__Y^2 for the psi variables) and
atan(coordsX/coordsY) for the second example.
It can operate on point or cell data (set in the Attribute Model drop-down
menu), replace invalid numbers