Simpatico
v1.10
|
Interface for a Pair Potential.
Definition at line 35 of file mcMd/potentials/pair/PairPotential.h.
#include <PairPotential.h>
Public Member Functions | |
virtual | ~PairPotential () |
Destructor (does nothing) More... | |
Pair Interaction Interface | |
virtual double | energy (double rsq, int iAtomType, int jAtomType) const =0 |
Return pair energy for a single pair. More... | |
virtual double | forceOverR (double rsq, int iAtomType, int jAtomType) const =0 |
Return force / separation for a single pair. More... | |
virtual void | set (std::string name, int i, int j, double value)=0 |
Modify a parameter, identified by a string. More... | |
virtual double | get (std::string name, int i, int j) const =0 |
Get a parameter value, identified by a string. More... | |
virtual double | maxPairCutoff () const =0 |
Return maximum cutoff distance. More... | |
virtual std::string | interactionClassName () const =0 |
Return name of pair interaction class (e.g., "LJPair"). More... | |
![]() | |
virtual void | computeEnergy ()=0 |
Calculate the total nonBonded pair energy for the associated System. More... | |
virtual void | unsetEnergy () |
Mark the energy as unknown. More... | |
double | energy () |
Return the energy contribution, compute if necessary. More... | |
![]() | |
virtual void | computeStress () |
Compute and store the stress tensor. More... | |
virtual void | unsetStress () |
Mark the stress as unknown. More... | |
void | computeStress (Tensor &stress) |
Get pair stress tensor. More... | |
void | computeStress (Vector &pressures) |
Get the xx, yy, zz non-Coulomb pair pressures. More... | |
void | computeStress (double &pressure) |
Get the scalar pressure. More... | |
bool | createsStress () const |
Return false if subclass does not generate stress. More... | |
Additional Inherited Members | |
![]() | |
StressCalculator (bool createsStress=true) | |
Constructor (protected to prevent direct instantiation). More... | |
|
inlinevirtual |
Destructor (does nothing)
Definition at line 43 of file mcMd/potentials/pair/PairPotential.h.
|
pure virtual |
Return pair energy for a single pair.
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
Referenced by McMd::GroupRebridgeBase::octaEnergy(), McMd::McSystem::potentialEnergy(), McMd::MdSystem::potentialEnergy(), McMd::McMuExchange::sample(), McMd::MdEnergyOutput::sample(), McMd::McEnergyOutput::sample(), McMd::MdPairEnergyCoefficients::sample(), McMd::MdEnergyAnalyzer::sample(), McMd::McEnergyAnalyzer::sample(), and McMd::GroupRebridgeBase::tetraEnergy().
|
pure virtual |
Return force / separation for a single pair.
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
|
pure virtual |
Modify a parameter, identified by a string.
name | parameter name |
i | type index of first atom |
j | type index of first atom |
value | new value of parameter |
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
Referenced by McMd::McCommandManager::readStandardCommand(), and McMd::MdCommandManager::readStandardCommand().
|
pure virtual |
Get a parameter value, identified by a string.
name | parameter name |
i | type index of first atom |
j | type index of first atom |
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
|
pure virtual |
Return maximum cutoff distance.
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
Referenced by McMd::McPairPotential::buildCellList(), McMd::NvtDpdVvIntegrator::loadParameters(), and McMd::NvtDpdVvIntegrator::readParameters().
|
pure virtual |
Return name of pair interaction class (e.g., "LJPair").
Implemented in McMd::MdPairPotentialImpl< Interaction >, McMd::MdEwaldPairPotentialImpl< Interaction >, and McMd::McPairPotentialImpl< Interaction >.
Referenced by McMd::McPerturbationFactory::factory(), and McMd::PairFactory::mdFactory().