osaft.core.functions.spherical_2_cartesian_coordinates

osaft.core.functions.spherical_2_cartesian_coordinates(r, theta)[source]

Transforms spherical coordinates (r theta) of an axisymmetric model into Cartesian coordinates (x, z). See here for the definition of the coordinate system.

Parameters
  • r (float | NDArray) – x radial coordinate

  • theta (float | NDArray) – polar angle

Return type

tuple[float, float]