deepmd.tf.infer.ewald_recp#
Classes#
Evaluate the reciprocal part of the Ewald sum. |
Module Contents#
- class deepmd.tf.infer.ewald_recp.EwaldRecp(hh: float, beta: float)[source]#
Evaluate the reciprocal part of the Ewald sum.
- eval(coord: numpy.ndarray, charge: numpy.ndarray, box: numpy.ndarray) tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray][source]#
Evaluate.
- Parameters:
- coord
The coordinates of atoms
- charge
The atomic charge
- box
The simulation region. PBC is assumed
- Returns:
eThe energy
fThe force
vThe virial