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 atkdue to the set ati(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 atidue to the set atk(at_k=False) isc D_1 r + D_2 r (d.r) + D_1 d + D_3 r (r.Q.r) + 2 D_2 Q r.