xnn.ffnn.models.amoeba.multipole_field#

xnn.ffnn.models.amoeba.multipole_field(c, d, Q, r, D, at_k)[source]#

Electric field of a multipole set through a radial kernel.

With r = r_k - r_i: the field at k due to the set at i (at_k=True) is -c D_1 r + D_2 r (d.r) + D_1 d - D_3 r (r.Q.r) - 2 D_2 Q r; the field at i due to the set at k (at_k=False) is c D_1 r + D_2 r (d.r) + D_1 d + D_3 r (r.Q.r) + 2 D_2 Q r.

Parameters:

at_k (bool)

Return type:

Tensor