Module ppm_module_util_cart2sph

This module provides the routines that convert cartesian to spherical coordinates.

Defined Types

name description

no types

Defined Module Interfaces

name description

ppm_util_cart2sph

Defined Module Subroutines

name description

no subroutines

Interface ppm_util_cart2sph

Subroutines contained in this interface:

name description

ppm_util_cart2sph_s

Routine for conversion between Charthesian and

ppm_util_cart2sph_d

Routine for conversion between Charthesian and

Subroutine ppm_util_cart2sph_d

Routine for conversion between Charthesian and Spherical co-ordinates.

[Note]Note

theta is angle of the vector with the z axis, and phi the angle in the x-y plane.

[Note]Note

The routine has by no means been optimized.

Arguments

name type dimension intent optional description

x

real array

(:)

(IN)

x coordinates

y

real array

(:)

(IN)

y coordinates

z

real array

(:)

(IN)

z coordinates

n

integer

(IN)

Number of points

x0

real

(IN)

x coordinate of center of coord. sys.

y0

real

(IN)

y coordinate of center of coord. sys

z0

real

(IN)

z coordinate of center of coord. sys

r

real array

(:)

(OUT)

Radii in polar coord. sys.

theta

real array

(:)

(OUT)

Theta-angle in polar coord. sys.

phi

real array

(:)

(OUT)

Phi-angle in polar coord. sys.

info

integer

(OUT)

Return status

x

real array, (:), (IN)

x coordinates

y

real array, (:), (IN)

y coordinates

z

real array, (:), (IN)

z coordinates

n

integer, , (IN)

Number of points

x0

real, , (IN)

x coordinate of center of coord. sys.

y0

real, , (IN)

y coordinate of center of coord. sys

z0

real, , (IN)

z coordinate of center of coord. sys

r

real array, (:), (OUT)

Radii in polar coord. sys.

theta

real array, (:), (OUT)

Theta-angle in polar coord. sys.

phi

real array, (:), (OUT)

Phi-angle in polar coord. sys.

info

integer, , (OUT)

Return status

Used Modules

ppm_module_data, ppm_module_error, ppm_module_write, ppm_module_substop, ppm_module_substart

Subroutine ppm_util_cart2sph_s

Routine for conversion between Charthesian and Spherical co-ordinates.

[Note]Note

theta is angle of the vector with the z axis, and phi the angle in the x-y plane.

[Note]Note

The routine has by no means been optimized.

Arguments

name type dimension intent optional description

x

real array

(:)

(IN)

x coordinates

y

real array

(:)

(IN)

y coordinates

z

real array

(:)

(IN)

z coordinates

n

integer

(IN)

Number of points

x0

real

(IN)

x coordinate of center of coord. sys.

y0

real

(IN)

y coordinate of center of coord. sys

z0

real

(IN)

z coordinate of center of coord. sys

r

real array

(:)

(OUT)

Radii in polar coord. sys.

theta

real array

(:)

(OUT)

Theta-angle in polar coord. sys.

phi

real array

(:)

(OUT)

Phi-angle in polar coord. sys.

info

integer

(OUT)

Return status

x

real array, (:), (IN)

x coordinates

y

real array, (:), (IN)

y coordinates

z

real array, (:), (IN)

z coordinates

n

integer, , (IN)

Number of points

x0

real, , (IN)

x coordinate of center of coord. sys.

y0

real, , (IN)

y coordinate of center of coord. sys

z0

real, , (IN)

z coordinate of center of coord. sys

r

real array, (:), (OUT)

Radii in polar coord. sys.

theta

real array, (:), (OUT)

Theta-angle in polar coord. sys.

phi

real array, (:), (OUT)

Phi-angle in polar coord. sys.

info

integer, , (OUT)

Return status

Used Modules

ppm_module_data, ppm_module_error, ppm_module_write, ppm_module_substop, ppm_module_substart

Defined Module Variables

name type dimension description

no variables

Used Modules

has no uses