[Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-15 Thread Nico Schlömer
Hi all, I've been looking at to create a programmable filter, but I'm a bit lost as to whether or not I need GetPolyData, CopyAttributes,... Essentially, I have an unstructured grid in an ExodusII file (like the attached file actually) wit

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-15 Thread Andy Bauer
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 numbe

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
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, s

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Tim Gallagher
raview] 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 number X+

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
t;Andy Bauer" > Cc: paraview@paraview.org > 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_

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Andy Bauer
quot;Nico Schlömer" > > To: "Andy Bauer" > > Cc: paraview@paraview.org > > Sent: Wednesday, February 16, 2011 8:29:02 AM > > Subject: Re: [Paraview] unstructured grid, programmable filters: extract, > process array data > > > > Almost there! >

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Nico Schlömer
hon_Calculator but >> couldn't figure out what's wrong. >> >> --Nico >> >> >> >> On Wed, Feb 16, 2011 at 2:43 PM, Tim Gallagher >> wrote: >> > You can use the Python Calculator, which will let you use any valid >> > Python exp

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread Tim Gallagher
uot; , 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 Calcula

Re: [Paraview] unstructured grid, programmable filters: extract, process array data

2011-02-16 Thread David E DeMarle
- Original Message - > From: "Nico Schlömer" > To: "Andy Bauer" > Cc: gtg0...@mail.gatech.edu, "tim gallagher" , > paraview@paraview.org > Sent: Wednesday, February 16, 2011 12:49:28 PM > Subject: Re: [Paraview] unstructured grid, programmable filters