osaft.core.functions.cartesian_2_spherical_coordinates#
- osaft.core.functions.cartesian_2_spherical_coordinates(x, z)[source]#
Transforms Cartesian coordinates (x z) of an axisymmetric model into spherical coordinates (r, theta). See here for the definition of the coordinate system.
- Parameters:
x (float | NDArray) – x coordinate
z (float | NDArray) – z coordinate
- Return type:
tuple[float, float]