Simpatico
v1.10
|
Provides access to members of Simulation object.
A SimulationAccess holds pointers to the objects owned by a a parent simulation, and values of some variables (such as nAtomType, nBondType, etc.) that are not allowed to change after initialization.
It can only be instantiated after all of the objects for which it holds pointers, and after values are set for the variables nAtomType, nBondType, etc.
Definition at line 66 of file SimulationAccess.h.
#include <SimulationAccess.h>
Public Member Functions | |
SimulationAccess (Simulation &simulation) | |
Constructor. More... | |
~SimulationAccess () | |
Destructor. More... | |
Accessors (Miscellaneous) | |
Simulation & | simulation () |
Get the parent simulation. More... | |
Boundary & | boundary () |
Get the Boundary. More... | |
AtomStorage & | atomStorage () |
Get the AtomStorage. More... | |
GroupStorage< 2 > & | bondStorage () |
Get the BondStorage. More... | |
GroupStorage< 3 > & | angleStorage () |
Get the AngleStorage. More... | |
GroupStorage< 4 > & | dihedralStorage () |
Get the angleStorage. More... | |
PairPotential & | pairPotential () |
Get the PairPotential. More... | |
BondPotential & | bondPotential () |
Get the PairPotential. More... | |
AnglePotential & | anglePotential () |
Get the AnglePotential. More... | |
DihedralPotential & | dihedralPotential () |
Get the DihedralPotential. More... | |
ExternalPotential & | externalPotential () |
Get the ExternalPotential. More... | |
EnergyEnsemble & | energyEnsemble () |
Get the EnergyEnsemble. More... | |
BoundaryEnsemble & | boundaryEnsemble () |
Get the BoundaryEnsemble. More... | |
Random & | random () |
Get the Random number generator. More... | |
Domain & | domain () |
Get the Domain. More... | |
Exchanger & | exchanger () |
Get the Exchanger. More... | |
FileMaster & | fileMaster () |
Get the FileMaster. More... | |
int | nAtomType () |
Get maximum number of atom types. More... | |
int | nBondType () |
Get maximum number of bond types. More... | |
int | nAngleType () |
Get maximum number of angle types. More... | |
int | nDihedralType () |
Get maximum number of dihedral types. More... | |
bool | hasExternal () |
Does this simulation have an external potential? More... | |
AtomType & | atomType (int i) |
Get an AtomType descriptor for atomtype i. More... | |
MaskPolicy | maskedPairPolicy () const |
Return the value of the mask policy (MaskNone or MaskBonded). More... | |
bool | reverseUpdateFlag () const |
Are forces evaluated by reverse communication (true) or not (false)? More... | |
DdMd::SimulationAccess::SimulationAccess | ( | Simulation & | simulation | ) |
Constructor.
simulation | parent Simulation object. |
Definition at line 17 of file SimulationAccess.cpp.
DdMd::SimulationAccess::~SimulationAccess | ( | ) |
Destructor.
Definition at line 75 of file SimulationAccess.cpp.
|
inline |
Get the parent simulation.
Definition at line 298 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear(), DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), DdMd::NvtIntegrator::integrateStep1(), DdMd::NphIntegrator::integrateStep1(), DdMd::NptIntegrator::integrateStep1(), DdMd::NvtIntegrator::integrateStep2(), DdMd::NphIntegrator::integrateStep2(), DdMd::NveIntegrator::integrateStep2(), DdMd::NptIntegrator::integrateStep2(), DdMd::NvtLangevinIntegrator::integrateStep2(), DdMd::NvtIntegrator::loadParameters(), DdMd::NphIntegrator::loadParameters(), DdMd::NveIntegrator::loadParameters(), DdMd::NptIntegrator::loadParameters(), DdMd::NvtLangevinIntegrator::loadParameters(), DdMd::NvtIntegrator::readParameters(), DdMd::NveIntegrator::readParameters(), DdMd::NphIntegrator::readParameters(), DdMd::NptIntegrator::readParameters(), DdMd::NvtLangevinIntegrator::readParameters(), DdMd::TwoStepIntegrator::run(), DdMd::NvtIntegrator::setup(), DdMd::NveIntegrator::setup(), DdMd::NphIntegrator::setup(), DdMd::NptIntegrator::setup(), DdMd::NvtLangevinIntegrator::setup(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the Boundary.
Definition at line 301 of file SimulationAccess.h.
Referenced by DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the AtomStorage.
Definition at line 304 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear(), DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), DdMd::NvtIntegrator::integrateStep1(), DdMd::NphIntegrator::integrateStep1(), DdMd::NveIntegrator::integrateStep1(), DdMd::NptIntegrator::integrateStep1(), DdMd::NvtLangevinIntegrator::integrateStep1(), DdMd::NvtIntegrator::integrateStep2(), DdMd::NphIntegrator::integrateStep2(), DdMd::NveIntegrator::integrateStep2(), DdMd::NptIntegrator::integrateStep2(), DdMd::NvtLangevinIntegrator::integrateStep2(), DdMd::Integrator::isExchangeNeeded(), DdMd::Integrator::outputStatistics(), DdMd::TwoStepIntegrator::run(), DdMd::NvtIntegrator::setup(), DdMd::NphIntegrator::setup(), DdMd::NptIntegrator::setup(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the BondStorage.
Definition at line 308 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear().
|
inline |
Get the AngleStorage.
Definition at line 316 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear().
|
inline |
Get the angleStorage.
Definition at line 324 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear().
|
inline |
Get the PairPotential.
Definition at line 331 of file SimulationAccess.h.
Referenced by DdMd::Integrator::clear(), DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), DdMd::Integrator::outputStatistics(), DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the PairPotential.
Definition at line 338 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), and DdMd::Integrator::computeForcesAndVirial().
|
inline |
Get the AnglePotential.
Definition at line 346 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), and DdMd::Integrator::computeForcesAndVirial().
|
inline |
Get the DihedralPotential.
Definition at line 354 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), and DdMd::Integrator::computeForcesAndVirial().
|
inline |
Get the ExternalPotential.
Definition at line 362 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), and DdMd::Integrator::computeForcesAndVirial().
|
inline |
Get the EnergyEnsemble.
Definition at line 369 of file SimulationAccess.h.
Referenced by DdMd::NvtLangevinIntegrator::setup().
|
inline |
Get the BoundaryEnsemble.
Definition at line 372 of file SimulationAccess.h.
Referenced by DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the Random number generator.
Definition at line 375 of file SimulationAccess.h.
Referenced by DdMd::NvtLangevinIntegrator::integrateStep2().
|
inline |
Get the Domain.
Definition at line 378 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForcesAndVirial(), DdMd::NphIntegrator::integrateStep1(), DdMd::NptIntegrator::integrateStep1(), DdMd::NvtIntegrator::integrateStep2(), DdMd::NphIntegrator::integrateStep2(), DdMd::NptIntegrator::integrateStep2(), DdMd::Integrator::isExchangeNeeded(), DdMd::Integrator::outputStatistics(), DdMd::TwoStepIntegrator::run(), DdMd::NvtIntegrator::setup(), DdMd::NphIntegrator::setup(), DdMd::NptIntegrator::setup(), and DdMd::Integrator::time().
|
inline |
Get the Exchanger.
Definition at line 381 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().
|
inline |
Get the FileMaster.
Definition at line 384 of file SimulationAccess.h.
|
inline |
Get maximum number of atom types.
Definition at line 387 of file SimulationAccess.h.
Referenced by DdMd::NvtIntegrator::loadParameters(), DdMd::NphIntegrator::loadParameters(), DdMd::NveIntegrator::loadParameters(), DdMd::NptIntegrator::loadParameters(), DdMd::NvtLangevinIntegrator::loadParameters(), DdMd::NvtIntegrator::readParameters(), DdMd::NveIntegrator::readParameters(), DdMd::NphIntegrator::readParameters(), DdMd::NptIntegrator::readParameters(), DdMd::NvtLangevinIntegrator::readParameters(), DdMd::NvtIntegrator::setup(), DdMd::NphIntegrator::setup(), DdMd::NveIntegrator::setup(), DdMd::NptIntegrator::setup(), and DdMd::NvtLangevinIntegrator::setup().
|
inline |
Get maximum number of bond types.
Definition at line 391 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), and DdMd::Integrator::outputStatistics().
|
inline |
Get maximum number of angle types.
Definition at line 396 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), and DdMd::Integrator::outputStatistics().
|
inline |
Get maximum number of dihedral types.
Definition at line 401 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), and DdMd::Integrator::outputStatistics().
|
inline |
Does this simulation have an external potential?
Definition at line 406 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), DdMd::Integrator::computeForcesAndVirial(), and DdMd::Integrator::outputStatistics().
|
inline |
Get an AtomType descriptor for atomtype i.
Definition at line 410 of file SimulationAccess.h.
|
inline |
Return the value of the mask policy (MaskNone or MaskBonded).
Definition at line 413 of file SimulationAccess.h.
|
inline |
Are forces evaluated by reverse communication (true) or not (false)?
Definition at line 416 of file SimulationAccess.h.
Referenced by DdMd::Integrator::computeForces(), and DdMd::Integrator::computeForcesAndVirial().