1 #ifndef DDMD_EXTERNAL_POTENTIAL_H 2 #define DDMD_EXTERNAL_POTENTIAL_H 4 #include <ddMd/potentials/Potential.h> 5 #include <simp/boundary/Boundary.h> 67 virtual void setNAtomType(
int nAtomType) = 0;
76 virtual double externalEnergy(
const Vector& position,
int i)
const = 0;
85 virtual void getExternalForce(
const Vector& position,
int type,
94 virtual void set(std::string name,
double value) = 0;
101 virtual double get(std::string name)
const = 0;
106 virtual std::string interactionClassName()
const = 0;
141 {
return *simulationPtr_; }
144 {
return *boundaryPtr_; }
147 {
return *storagePtr_; }
A Vector is a Cartesian vector.
Boundary & boundary()
Get the Boundary by reference.
An orthorhombic periodic unit cell.
Calculates external forces and energies for a parent Simulation.
File containing preprocessor macros for error handling.
Parallel domain decomposition (DD) MD simulation.
Classes used by all simpatico molecular simulations.
Main object for a domain-decomposition MD simulation.
A Potential represents a potential energy contribution.
Utility classes for scientific computation.
A container for all the atoms and ghost atoms on this processor.
AtomStorage & storage()
Get the AtomStorage by reference.
Simulation & simulation()
Get the parent Simulation by reference.