Gromacs
2024.4
|
#include <gromacs/modularsimulator/freeenergyperturbationdata.h>
The free energy perturbation data.
The lambda vector and the current FEP state are held by the FreeEnergyPerturbationData, offering access to its values via getter functions. The FreeEnergyPerturbationData::Element is responsible for lambda update (if applicable) and checkpointing.
Classes | |
class | Element |
The free energy perturbation data element. More... | |
Public Member Functions | |
FreeEnergyPerturbationData (FILE *fplog, const t_inputrec &inputrec, MDAtoms *mdAtoms, gmx_ekindata_t *ekindata) | |
Constructor. | |
ArrayRef< real > | lambdaView () |
Get a view of the current lambda vector. | |
ArrayRef< const real > | constLambdaView () const |
Get a const view of the current lambda vector. | |
int | currentFEPState () const |
Get the current FEP state. | |
FepStateSetting * | enableExternalFepStateSetting () const |
Enable setting of the FEP state by an external object. More... | |
Element * | element () |
Get pointer to element (whose lifetime is managed by this) | |
Static Public Member Functions | |
static void | readCheckpointToTrxFrame (t_trxframe *trxFrame, std::optional< ReadCheckpointData > readCheckpointData) |
Read everything that can be stored in t_trxframe from a checkpoint file. | |
static const std::string & | checkpointID () |
CheckpointHelper identifier. | |
FepStateSetting * gmx::FreeEnergyPerturbationData::enableExternalFepStateSetting | ( | ) | const |
Enable setting of the FEP state by an external object.
Currently, this can only be called once, usually during setup time. Having more than one object setting the FEP state would require additional bookkeeping.