sources.dirac_delta_source
sources.dirac_delta_source
Returns the coefficients for a delta source at the specified location.
This function is appropriate for creating sources to be used with
amplitudes_for_source
.
Args:
- location: The location of the source, with shape
(num_sources, 2)
and the trailing axis giving the x and y location. By convention, the center of the unit cell is at(0, 0)
. - in_plane_wavevector: The in-plane wavevevector for the calculation, which
gives the offset of the plane wave decomposition. Has shape
(..., 2)
with possible batch dimensions. - primitive_lattice_vectors: The primitive lattice vectors of the unit cell.
- expansion: The Fourier expansion used for the calculation.
Returns:
- None: The coefficients, with the shape
(..., expansion.num_terms, num_sources)
.