Acoular 25.03 documentation

acoular.environments.cartToCyl

«  acoular.environments.cylToCart   ::   environments   ::   acoular.environments.spiral_sphere  »

acoular.environments.cartToCyl

acoular.environments.cartToCyl(x, Q=None)

Return cylindrical coordinate representation of an input array in cartesian coordinate.

Return the cylindrical coordinate representation of an input position which was before transformed into a modified cartesian coordinate, which has flow into positive z direction.

Parameters:
xnumpy.ndarray of floats

Cartesian coordinates of N points, shape (3, N).

Qnumpy.ndarray of floats, optional

Orthogonal transformation matrix, shape (3, 3). If provided, the positional vectors are transformed via new_x = Q * x, before transforming those modified coordinates into cylindrical ones. Default is the identity matrix.

Returns:
numpy.ndarray of floats

Cylindrical representation of given N points in cartesian coodrinates as an array of shape (3, N) with new coordinates \((\phi, r, z)\).

«  acoular.environments.cylToCart   ::   environments   ::   acoular.environments.spiral_sphere  »