This is the internal implementation of AndersenThermostat. More...
#include <AndersenThermostatImpl.h>
Public Member Functions | |
AndersenThermostatImpl (AndersenThermostat &owner) | |
void | initialize (ContextImpl &context) |
This is called after the ForceImpl is created and before updateContextState(), calcForces(), or calcEnergy() is called on it. | |
AndersenThermostat & | getOwner () |
Get the Force object from which this ForceImpl was created. | |
void | updateContextState (ContextImpl &context) |
This method is called at the beginning of each time step. | |
double | calcForcesAndEnergy (ContextImpl &context, bool includeForces, bool includeEnergy) |
Calculate the force on each particle generated by this ForceImpl and/or this ForceImpl's contribution to the potential energy of the system. | |
std::map< std::string, double > | getDefaultParameters () |
Get a map containing the default values for all adjustable parameters defined by this ForceImpl. | |
std::vector< std::string > | getKernelNames () |
Get the names of all Kernels used by this Force. | |
Static Public Member Functions | |
static std::vector < std::vector< int > > | calcParticleGroups (const System &system) |
This is a utility routine that computes the groups of particles the thermostat should be applied to. |
This is the internal implementation of AndersenThermostat.
AndersenThermostatImpl | ( | AndersenThermostat & | owner | ) |
double calcForcesAndEnergy | ( | ContextImpl & | context, | |
bool | includeForces, | |||
bool | includeEnergy | |||
) | [inline, virtual] |
Calculate the force on each particle generated by this ForceImpl and/or this ForceImpl's contribution to the potential energy of the system.
context | the context in which the system is being simulated | |
includeForces | true if forces should be calculated | |
includeEnergy | true if the energy should be calculated |
Implements ForceImpl.
static std::vector<std::vector<int> > calcParticleGroups | ( | const System & | system | ) | [static] |
This is a utility routine that computes the groups of particles the thermostat should be applied to.
std::map<std::string, double> getDefaultParameters | ( | ) | [virtual] |
std::vector<std::string> getKernelNames | ( | ) | [virtual] |
AndersenThermostat& getOwner | ( | ) | [inline, virtual] |
void initialize | ( | ContextImpl & | context | ) | [virtual] |
This is called after the ForceImpl is created and before updateContextState(), calcForces(), or calcEnergy() is called on it.
This allows it to do any necessary initialization.
Implements ForceImpl.
void updateContextState | ( | ContextImpl & | context | ) | [virtual] |
This method is called at the beginning of each time step.
It give the ForceImpl a chance to modify the state variables (positions, velocities, and parameters) stored in the Context in arbitrary ways before integration is performed.
context | the context in which the system is being simulated |
Implements ForceImpl.