1 #ifndef UTIL_ENERGY_ENSEMBLE_H 2 #define UTIL_ENERGY_ENSEMBLE_H 11 #include <util/param/ParamComposite.h> 12 #include <util/archives/serialize.h> 37 enum Type{UNKNOWN, ADIABATIC, ISOTHERMAL};
146 {
return temperature_; }
158 {
return (type_ == ADIABATIC); }
164 {
return (type_ == ISOTHERMAL); }
173 template <
class Archive>
176 const unsigned int version)
182 #include <util/mpi/MpiTraits.h> static MPI::Datatype type
MPI Datatype.
void serialize(Archive &ar, const unsigned int version)
Serialize this ParamComponent as a string.
static bool hasType
Is the MPI type initialized?
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
std::istream & operator>>(std::istream &in, MonoclinicBoundary &boundary)
istream extractor for a MonoclinicBoundary.
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive.
Saving / output archive for binary ostream.
A statistical ensemble for energy.
double beta() const
Return the inverse temperature.
bool isAdiabatic() const
Is this an Adiabatic ensemble?
bool isIsothermal() const
Is this an Isothermal ensemble?
Utility classes for scientific computation.
~EnergyEnsemble()
Destructor.
std::ostream & operator<<(std::ostream &out, const MonoclinicBoundary &boundary)
ostream inserter for an MonoclinicBoundary.
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
static MPI::Datatype type
MPI Datatype.
void setTemperature(double temperature)
Set the temperature.
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive.
Type
Enumeration of the allowed types of EnergyEnsemble.
EnergyEnsemble(Type type=UNKNOWN)
Constructor.
Saving archive for binary istream.
virtual void readParameters(std::istream &in)
Read the type and (if necessary) temperature from file.
double temperature() const
Return the temperature.
An object that can read multiple parameters from file.
static bool hasType
Is the MPI type initialized?
static void commitMpiType()
Commit MPI data type for an EnergyEnsemble.