xnn.ffnn.models.amoeba_kernels.amoeba_pairs_forward#

xnn.ffnn.models.amoeba_kernels.amoeba_pairs_forward(i_, k_, r_vec, scales, keep, per, q, d, Q, params, offsets, scalars, polar, modes, write_pairs=False, count=None, select=None, tangents=None)[source]#

Launch the AMOEBA pair kernel.

The inputs are those of pairs_forward() with the AMOEBA tables: params the per-atom table (N, AMOEBA_NP) (AMOEBA_PARAMS), offsets the van der Waals site of every atom minus its position (N, 3), scalars the float64 scalars (AMOEBA_SCALARS), modes the van der Waals switch (0 none, 1 cells, 2 every pair) and combining rules of the radius (0 arithmetic, 1 geometric, 2 cubic mean) and the well depth (0 geometric, 1 arithmetic, 2 HHG). tangents (directions of the pair vectors, charges, dipoles, quadrupoles and site offsets) add the outputs’ derivatives along them (<key>_t).

Returns:

e_node (N, 2) (multipoles, van der Waals), field_d / field_p (N, 3), du (M, 2) and e_pair (M, 2) (or None).

Return type:

dict

Parameters: