treams.special.vcyl2car

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

Convert vector in cylindrical coordinates to vector in cartesian coordinates

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

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

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

Returns:

float or complex, 3-array