Skip to content

spharmonic4mcartesiancoord

esta.externalBag.spharmonic4mcartesiancoord

Ylm_real(l, m, G)

from eminus

Calculate real spherical harmonics from cartesian coordinates.

Reference: https://scipython.com/blog/visualizing-the-real-forms-of-the-spherical-harmonics

Args: l (int): Angular momentum number. m (int): Magnetic quantum number. G (ndarray): Reciprocal lattice vector or array of lattice vectors.

Returns: ndarray: Real spherical harmonics.