Are there places on the cylinder you are calling atan2 with the same inputs, 
returning the same data, lots of times?  Alternatively, could you calculate 
this in the simulation, and just add it to the simulation output?  I am 
speculating that a C++ call to atan2 may be faster than numpy?

Alan

From: ParaView [mailto:[email protected]] On Behalf Of Dennis 
Conklin
Sent: Friday, April 27, 2018 1:39 PM
To: Paraview ([email protected]) <[email protected]>
Subject: [EXTERNAL] [Paraview] Calculating cylindrical coordinates

All,

If I wanted to run atan2(X,Y) on millions and millions of nodes to calculate 
cylindrical coordinates, but found that numpy.atan2 in a Programmable Filter 
was taking 45 minutes to run,   what should I do to make it much faster?

Thanks for any hints

Dennis
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview

Reply via email to