11#include <util/param/ParamComposite.h>
12#include <pscf/chem/Ensemble.h>
33 template <
typename WT =
double>
158 template <
typename WT>
165 template <
typename WT>
172 template <
typename WT>
179 template <
typename WT>
181 {
return ensemble_; }
Base class for a molecular species (polymer or solvent).
virtual ~Species()=default
Destructor.
WT q() const
Get the molecular partition function for this species.
void setMu(double mu)
Set value of mu (chemical potential), if ensemble is closed.
Ensemble ensemble() const
Get the statistical ensemble for this species (open or closed).
virtual void readParameters(std::istream &in)
Read phi or mu (but not both) and set ensemble accordingly.
WT mu() const
Get the chemical potential for this species (units kT=1).
void setQ(WT q)
Set q and compute phi or mu (depending on the ensemble).
WT phi() const
Get the overall volume fraction for this species.
void setPhi(double phi)
Set value of phi (volume fraction), if ensemble is closed.
ParamComposite()
Constructor.
Ensemble
Statistical ensemble type for the number of molecules of one species.
PSCF package top-level namespace.