11#include <util/param/ParamComposite.h>
168 {
return ensemble_; }
197 template <
class Archive>
199 const unsigned int version)
double phi() const
Get the overall volume fraction for this species.
double mu() const
Get the chemical potential for this species (units kT=1).
double q() const
Get the molecular partition function for this species.
double phi() const
Get the overall volume fraction for this species.
virtual void readParameters(std::istream &in)
Read phi or mu (but not both) and set ensemble accordingly.
void setPhi(double phi)
Set value of phi (volume fraction), if ensemble is closed.
void setQ(double q)
Set q and compute phi or mu (depending on the ensemble).
double mu() const
Get the chemical potential for this species (units kT=1).
Ensemble ensemble() const
Get the statistical ensemble for this species (open or closed).
void setMu(double mu)
Set value of mu (chemical potential), if ensemble is closed.
Species()
Default constructor.
double q() const
Get the molecular partition function for this species.
Ensemble
Statistical ensemble for number of molecules.
ParamComposite()
Constructor.
File containing preprocessor macros for error handling.
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
PSCF package top-level namespace.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.