1#ifndef PSCF_SOLVENT_DESCRIPTOR_TPP
2#define PSCF_SOLVENT_DESCRIPTOR_TPP
11#include "SolventDescriptor.h"
33 read<double>(in,
"size",
size_);
double size_
Size of this block = volume / monomer reference volume.
double size() const
Get the size (number of monomers) in this solvent.
void setPhi(double phi)
Set input value of phi (volume fraction), if ensemble is closed.
void setMu(double mu)
Set input value of mu (chemical potential), if ensemble is open.
SolventDescriptor()
Constructor.
void setSize(double size)
Set the size or volume of this solvent species.
int monomerId() const
Get the monomer type id.
virtual void readParameters(std::istream &in)
Read and initialize.
int monomerId_
Identifier for the associated monomer type.
void setMonomerId(int monomerId)
Set the monomer id for this solvent.
~SolventDescriptor()
Constructor.
double phi() const
Get the overall volume fraction for this species.
Ensemble ensemble_
Statistical ensemble for this species (open or closed).
Ensemble ensemble()
Get the statistical ensemble for this species (open or closed).
double phi_
Volume fraction, set by either setPhi or compute function.
double mu_
Chemical potential, set by either setPhi or compute function.
double mu() const
Get the chemical potential for this species (units kT=1).
ScalarParam< Type > & read(std::istream &in, const char *label, Type &value)
Add and read a new required ScalarParam < Type > object.
void setClassName(const char *className)
Set class name string.
ScalarParam< Type > & readOptional(std::istream &in, const char *label, Type &value)
Add and read a new optional ScalarParam < Type > object.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
C++ namespace for polymer self-consistent field theory (PSCF).