Simpatico  v1.10
List of all members | Public Member Functions
DdMd::SimulationAccess Class Reference

Detailed Description

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>

Inheritance diagram for DdMd::SimulationAccess:
DdMd::Integrator DdMd::TwoStepIntegrator DdMd::NphIntegrator DdMd::NptIntegrator DdMd::NveIntegrator DdMd::NvtIntegrator DdMd::NvtLangevinIntegrator

Public Member Functions

 SimulationAccess (Simulation &simulation)
 Constructor. More...
 
 ~SimulationAccess ()
 Destructor. More...
 
Accessors (Miscellaneous)
Simulationsimulation ()
 Get the parent simulation. More...
 
Boundaryboundary ()
 Get the Boundary. More...
 
AtomStorageatomStorage ()
 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...
 
PairPotentialpairPotential ()
 Get the PairPotential. More...
 
BondPotentialbondPotential ()
 Get the PairPotential. More...
 
AnglePotentialanglePotential ()
 Get the AnglePotential. More...
 
DihedralPotentialdihedralPotential ()
 Get the DihedralPotential. More...
 
ExternalPotentialexternalPotential ()
 Get the ExternalPotential. More...
 
EnergyEnsembleenergyEnsemble ()
 Get the EnergyEnsemble. More...
 
BoundaryEnsembleboundaryEnsemble ()
 Get the BoundaryEnsemble. More...
 
Randomrandom ()
 Get the Random number generator. More...
 
Domaindomain ()
 Get the Domain. More...
 
Exchangerexchanger ()
 Get the Exchanger. More...
 
FileMasterfileMaster ()
 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...
 
AtomTypeatomType (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...
 

Constructor & Destructor Documentation

DdMd::SimulationAccess::SimulationAccess ( Simulation simulation)

Constructor.

Parameters
simulationparent Simulation object.

Definition at line 17 of file SimulationAccess.cpp.

DdMd::SimulationAccess::~SimulationAccess ( )

Destructor.

Definition at line 75 of file SimulationAccess.cpp.

Member Function Documentation

Simulation & DdMd::SimulationAccess::simulation ( )
inline
Boundary & DdMd::SimulationAccess::boundary ( )
inline

Get the Boundary.

Definition at line 301 of file SimulationAccess.h.

Referenced by DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().

AtomStorage & DdMd::SimulationAccess::atomStorage ( )
inline
GroupStorage< 2 > & DdMd::SimulationAccess::bondStorage ( )
inline

Get the BondStorage.

Definition at line 308 of file SimulationAccess.h.

Referenced by DdMd::Integrator::clear().

GroupStorage< 3 > & DdMd::SimulationAccess::angleStorage ( )
inline

Get the AngleStorage.

Definition at line 316 of file SimulationAccess.h.

Referenced by DdMd::Integrator::clear().

GroupStorage< 4 > & DdMd::SimulationAccess::dihedralStorage ( )
inline

Get the angleStorage.

Definition at line 324 of file SimulationAccess.h.

Referenced by DdMd::Integrator::clear().

PairPotential & DdMd::SimulationAccess::pairPotential ( )
inline
BondPotential & DdMd::SimulationAccess::bondPotential ( )
inline
AnglePotential & DdMd::SimulationAccess::anglePotential ( )
inline
DihedralPotential & DdMd::SimulationAccess::dihedralPotential ( )
inline
ExternalPotential & DdMd::SimulationAccess::externalPotential ( )
inline
EnergyEnsemble & DdMd::SimulationAccess::energyEnsemble ( )
inline

Get the EnergyEnsemble.

Definition at line 369 of file SimulationAccess.h.

Referenced by DdMd::NvtLangevinIntegrator::setup().

BoundaryEnsemble & DdMd::SimulationAccess::boundaryEnsemble ( )
inline

Get the BoundaryEnsemble.

Definition at line 372 of file SimulationAccess.h.

Referenced by DdMd::TwoStepIntegrator::run(), and DdMd::Integrator::setupAtoms().

Random & DdMd::SimulationAccess::random ( )
inline

Get the Random number generator.

Definition at line 375 of file SimulationAccess.h.

Referenced by DdMd::NvtLangevinIntegrator::integrateStep2().

Domain & DdMd::SimulationAccess::domain ( )
inline
Exchanger & DdMd::SimulationAccess::exchanger ( )
inline
FileMaster & DdMd::SimulationAccess::fileMaster ( )
inline

Get the FileMaster.

Definition at line 384 of file SimulationAccess.h.

int DdMd::SimulationAccess::nAtomType ( )
inline
int DdMd::SimulationAccess::nBondType ( )
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().

int DdMd::SimulationAccess::nAngleType ( )
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().

int DdMd::SimulationAccess::nDihedralType ( )
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().

bool DdMd::SimulationAccess::hasExternal ( )
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().

AtomType & DdMd::SimulationAccess::atomType ( int  i)
inline

Get an AtomType descriptor for atomtype i.

Definition at line 410 of file SimulationAccess.h.

MaskPolicy DdMd::SimulationAccess::maskedPairPolicy ( ) const
inline

Return the value of the mask policy (MaskNone or MaskBonded).

Definition at line 413 of file SimulationAccess.h.

bool DdMd::SimulationAccess::reverseUpdateFlag ( ) const
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().


The documentation for this class was generated from the following files: