CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Spherical Coordinates (https://www.cfd-online.com/Forums/paraview/137092-spherical-coordinates.html)

Bing June 10, 2014 07:58

Spherical Coordinates
 
I want to display a spherical object with points at the corresponding r,theta,phi spherical coordinates. I am able do this using the Structured Grid Dataset with the dimensions Radius, Theta, Phi and the number of structured points as Radius*Theta*Phi. The corresponding x,y,z coordinates I determine using the well known formulae x = rsin(theta)cos(phi) etc. However there is not a unique one to one correspondence between the structured coordinates and the point coordinates. For example when r = 0 and for any value of theta and phi I get the origin coordinates (0,0,0). This does not seem to make any difference when displaying the object. However, what happens when I start adding scalar or vector values for the coordinates??? Will Paraview display the last value for that position overriding earlier values for that position or sum them or do something entirely different.??
I have tried to compensate by designing a unique one to one mapping but the dimensions are not straight forward. Any suggestions?
Regards
Bing


All times are GMT -4. The time now is 19:53.