tensor_sph2cart

Convert spherical tensors to rank-2 cartesian tensor

Syntax
Tc = tensor_cart2sph(T0,T1,T2)
Description

This function takes as input three irreducible spherical tensors T0 (a scalar), T1 (a 3-element array), and T2 (a 5-element array). It returns the corresponding rank-2 cartesian tensor represented by a 3x3 matrix in Tc.

Examples

Calculate the cartesian hyperfine tensor from the corresponding rank-0, -1, and -2 spherical tensors:

A0 = 10;
A1 = [0;0;0];
A2 = [3;0;12;0;3];
A = tensor_sph2cart(A0,A1,A2)
A =
      -7.6725            0            0
            0      -13.672            0
            0            0       4.0245
See also

isto, tensor_cart2sph