template<typename TPolicy>
class Faunus::Energy::GroupPairing< TPolicy >
Computes pair quantity difference for a systen perturbation.
Such quantity can be energy using nonponded pair potential
- Template Parameters
-
template<typename TPolicy >
template<RequireEnergyAccumulator TAccumulator>
Computes pair quantity difference from changed particles.
The internal energy contribution, i.e., the contribution from the intra group interactions, is added only if a single group is changed or if all changed.
- Parameters
-
| change | |
| pair_accumulator | accumulator of interacting pairs of particles |
template<typename TPolicy >
template<RequireEnergyAccumulator TAccumulator>
Computes pair quantity difference if the number of particles has changed.
Particles have to be explicitly enumerated in the atom indices of the changed group. Implicit addition of atoms with a group is not supported yet. Note that we do not have to care about missing (removed) particles at all. They are taken into account in the original (old) space where they are present.
- Parameters
-
| pair_accumulator | accumulator of interacting pairs of particles |
| change | |