qimpy.grid.coulomb.Kernel

class Kernel(*args, **kwargs)

Bases: Protocol

Specification for Coulomb kernel.

__init__(*args, **kwargs)

Methods

__init__

stress

Return stress due to Coulomb interaction between rho1 and rho2.

Attributes

G0_correction

G=0 correction to kernel for ion width

stress(rho1, rho2)

Return stress due to Coulomb interaction between rho1 and rho2. The result has dimensions of energy, appropriate for adding to lattice.grad.

Parameters:
Return type:

Tensor

G0_correction: float

G=0 correction to kernel for ion width