treams.special.vcar2cyl

treams.special.vcar2cyl(v, r) = <ufunc 'vcar2cyl'>

Convert vector in cartesian coordinates to vector in cylindrical coordinates

The cartesian vector \((v_x, v_y, v_z)\) at coordinates \((x, y, z)\) is converted to \((v_\rho, v_\varphi, v_z)\) with

\[\begin{split}\begin{pmatrix} v_\rho \\ v_\varphi \\ v_z \end{pmatrix} = \begin{pmatrix} \cos \varphi & \sin \varphi & 0 \\ -\sin \varphi & \cos \varphi & 0 \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} v_x \\ v_y \\ v_z \end{pmatrix}\end{split}\]
Parameters:
  • v (float or complex, 3-array) – Vector in 3-dimensional cartesian space

  • r (float, 3-array) – Cartesian coordinates in 3-dimensional space

Returns:

float or complex, 3-array