9 #include "McEnergyPerturbation.h" 10 #include <mcMd/mcSimulation/McSystem.h> 11 #include <simp/ensembles/EnergyEnsemble.h> 49 if (i > nParameters_) {
50 UTIL_THROW(
"perturbation parameter index is out of bounds");
61 if (i > nParameters_) {
62 UTIL_THROW(
"perturbation parameter index is out of bounds");
69 #endif // ifdef MCMD_PERTURB DArray< double > parameter_
Value of the perturbation parameter for the associated System.
A System for use in a Markov chain Monte Carlo simulation.
virtual void readParameters(std::istream &in)
Read beta parameter (inverse temperature) from file.
double potentialEnergy() const
Return total potential energy of this System.
McEnergyPerturbation(McSystem &system, int size, int rank)
Constructor.
A Perturbation that is a linear function of a parameter.
EnergyEnsemble & energyEnsemble() const
Get the EnergyEnsemble by reference.
Classes used by all simpatico molecular simulations.
virtual double parameter(int i) const
Get inverse temperature of the parent system.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
virtual double derivative(int i) const
Get derivative of the Boltzmann weight with respect to the perturbation parameter.
Utility classes for scientific computation.
int getNParameters() const
Gets the number of parameters per system.
McSystem & system() const
Get the associated System by reference.
void setTemperature(double temperature)
Set the temperature.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
double temperature() const
Return the temperature.
void readParameters(std::istream &in)
Read perturbation parameter(s) from file.
virtual void setParameter()
Set inverse temperature of the parent system.