Gromacs  2021.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
gmx::ParrinelloRahmanBarostat Class Referencefinal

#include <gromacs/modularsimulator/parrinellorahmanbarostat.h>

+ Inheritance diagram for gmx::ParrinelloRahmanBarostat:
+ Collaboration diagram for gmx::ParrinelloRahmanBarostat:

Description

Element implementing the Parrinello-Rahman barostat.

This element

Public Member Functions

 ParrinelloRahmanBarostat (int nstpcouple, int offset, real couplingTimeStep, Step initStep, StatePropagatorData *statePropagatorData, EnergyData *energyData, FILE *fplog, const t_inputrec *inputrec, const MDAtoms *mdAtoms)
 Constructor.
 
void scheduleTask (Step step, Time time, const RegisterRunFunction &registerRunFunction) override
 Register run function for step / time. More...
 
void elementSetup () override
 Fix relative box shape.
 
void elementTeardown () override
 No element teardown needed.
 
const rvec * boxVelocities () const
 Getter for the box velocities.
 
real conservedEnergyContribution () const
 Contribution to the conserved energy (called by energy data)
 
void connectWithPropagator (const PropagatorBarostatConnection &connectionData)
 Connect this to propagator.
 
void saveCheckpointState (std::optional< WriteCheckpointData > checkpointData, const t_commrec *cr) override
 ICheckpointHelperClient write checkpoint implementation.
 
void restoreCheckpointState (std::optional< ReadCheckpointData > checkpointData, const t_commrec *cr) override
 ICheckpointHelperClient read checkpoint implementation.
 
const std::string & clientID () override
 ICheckpointHelperClient key implementation.
 
- Public Member Functions inherited from gmx::ISimulatorElement
virtual ~ISimulatorElement ()=default
 Standard virtual destructor.
 
- Public Member Functions inherited from gmx::ICheckpointHelperClient
virtual ~ICheckpointHelperClient ()=default
 Standard virtual destructor.
 

Static Public Member Functions

static ISimulatorElementgetElementPointerImpl (LegacySimulatorData *legacySimulatorData, ModularSimulatorAlgorithmBuilderHelper *builderHelper, StatePropagatorData *statePropagatorData, EnergyData *energyData, FreeEnergyPerturbationData *freeEnergyPerturbationData, GlobalCommunicationHelper *globalCommunicationHelper, int offset)
 Factory method implementation. More...
 

Member Function Documentation

ISimulatorElement * gmx::ParrinelloRahmanBarostat::getElementPointerImpl ( LegacySimulatorData legacySimulatorData,
ModularSimulatorAlgorithmBuilderHelper builderHelper,
StatePropagatorData statePropagatorData,
EnergyData energyData,
FreeEnergyPerturbationData freeEnergyPerturbationData,
GlobalCommunicationHelper globalCommunicationHelper,
int  offset 
)
static

Factory method implementation.

Parameters
legacySimulatorDataPointer allowing access to simulator level data
builderHelperModularSimulatorAlgorithmBuilder helper object
statePropagatorDataPointer to the StatePropagatorData object
energyDataPointer to the EnergyData object
freeEnergyPerturbationDataPointer to the FreeEnergyPerturbationData object
globalCommunicationHelperPointer to the GlobalCommunicationHelper object
offsetThe step offset at which the barostat is applied
Returns
Pointer to the element to be added. Element needs to have been stored using storeElement
void gmx::ParrinelloRahmanBarostat::scheduleTask ( Step  step,
Time  time,
const RegisterRunFunction registerRunFunction 
)
overridevirtual

Register run function for step / time.

Parameters
stepThe step number
timeThe time
registerRunFunctionFunction allowing to register a run function

Implements gmx::ISimulatorElement.


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