Boyer-Lindquist/Cartesian Coordinate Transformations

einsteinpy.utils.bl_coord_transforms.CartesianToBL_pos(pos_vec, a)

Function to convert Cartesian to Boyer-Lindquits coordinates (position vector)

Parameters
  • pos_vec (array) – 3-length numpy array having x, y, z coordinates in SI units(m)

  • a (float) – Any constant

Returns

3-length numpy array with r, theta, phi in (m, rad, rad)

Return type

array

einsteinpy.utils.bl_coord_transforms.CartesianToBL_vel(pos_vec, vel_vec, a)

Function to convert velocity in Cartesian coordinates to velocity in Boyer-Lindquist coordinates

Parameters
  • pos_vec (array) – 3-length numpy array having x, y, z coordinates in SI units(m)

  • vel_vec (array) – 3-length numpy array with vx, vy, vz in (m/s)

  • a (float) – Any constant

Returns

3-length numpy array having v_r, v_theta, v_phi in (m/s, rad/s, rad/s)

Return type

array

einsteinpy.utils.bl_coord_transforms.BLToCartesian_pos(pos_vec, a)

Function to convert Boyer-Lindquist coordinates to Cartesian coordinates

Parameters
  • pos_vec (array) – 3-length numpy array having r, theta, phi coordinates in SI units(m, rad, rad)

  • a (float) – Any constant

Returns

3-length numpy array with x, y, z in m.

Return type

array

einsteinpy.utils.bl_coord_transforms.BLToCartesian_vel(pos_vec, vel_vec, a)

Function to convert velocities in Boyer-Lindquist coordinates to velocities in Cartesian coordinates

Parameters
  • pos_vec (array) – 3-length numpy array having r, theta, phi coordinates in SI units(m, rad, rad)

  • vel_vec (array) – 3-length numpy array with V_r, V_theta, V_phi (m/s, rad/s, rad/s)

  • a (float) – Any constant

Returns

3-length numpy array having vx, vy, vz in SI units(m/s)

Return type

array