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) – x coordinate

  • z (float) – z coordinate

Return type:

tuple[float, float]