Multipolar harmonics#
Multipolar spherical harmonics with internal degree of freedom (sympy).
The definition is that of the PG multipolar harmonics of MultiPieGen (util_multipolar_harmonics.Olm):
O_{lm}^{(s)}(k) = i^{k+s} (-1)^{l+m} sqrt(2l+1) sum_n (l+k, l, s; m-n, -m, n) O_{l+k,m-n}(r) e_n,
where O_{lm}(r) = sqrt(4pi/(2l+1)) r^l Y_lm(r) is ALWAYS A POLAR FUNCTION of r, and e_n is the internal basis of rank s.
- internal_type(X, s, k)[source]#
Internal type q (polar) or g (axial) allowed for the multipolar harmonics (X, s, k), whose spatial part is polar.
- Parameters:
X (str) – Q/G/T/M.
s (int) – internal rank.
k (int) – internal component.
- Returns:
(str) – “q” or “g”.
- multipolar_harmonics_expression(X, l, m, s, k, x, symbols, U)[source]#
Expression of multipolar spherical harmonics with internal degree of freedom.
- Parameters:
X (str) – Q/G/T/M.
l (int) – rank.
m (int) – component, -l <= m <= l.
s (int) – internal rank, 0 <= s <= 3.
k (int) – internal component, -s <= k <= s, l + k >= 0.
x (str) – internal type, q (polar) or g (axial).
symbols (list) – internal basis symbols of (s, x) (Q/G + orbital name).
U (ndarray) – <n|alpha> of the internal basis (row: n = s, …, -s, column: alpha).
- Returns:
(sympy) – expression, 0 for the combination of X and x of the wrong parity.
Notes
the spatial part is always polar, so that x is fixed by X and the parity of s+k.
for X = T/M, the internal symbols Q/G are renamed T/M.
for s = 0, the internal symbol is multiplied only for G_{0} and M_{0}.