1#ifndef PSCF_MIXTURE_BASE_H
2#define PSCF_MIXTURE_BASE_H
11#include <pscf/chem/Monomer.h>
12#include <util/containers/DArray.h>
56 template <
typename WT>
188 template <
typename WT>
inline
192 template <
typename WT>
inline
196 template <
typename WT>
inline
200 template <
typename WT>
inline
204 template <
typename WT>
inline
208 template <
typename WT>
inline
217 template <
typename WT>
inline
Abstract descriptor for a mixture of polymer and solvent species.
virtual SolventSpecies< WT > const & solventSpecies(int id) const =0
Set a solvent solver object by const reference.
virtual PolymerSpecies< WT > const & polymerSpecies(int id) const =0
Get a PolymerSpecies by const reference.
MixtureBase()
Constructor.
int nSolvent() const
Get number of solvent (point particle) species.
int nPolymer() const
Get number of polymer species.
void setVmonomer(double vMonomer)
Set new vMonomer value.
virtual ~MixtureBase()=default
Destructor.
int nMonomer() const
Get number of monomer types.
DArray< Monomer > monomers_
Monomer const & monomer(int id) const
Get a Monomer type descriptor by const reference.
Monomer & monomer(int id)
Get a Monomer type descriptor (non-const reference).
bool isCanonical() const
Is this mixture being treated in canonical ensemble?
int nBlock() const
Get total number blocks among all polymer species.
Descriptor for a monomer type.
Descriptor for a linear or acyclic branched block polymer.
Descriptor for a solvent species.
Dynamically allocatable contiguous array template.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
PSCF package top-level namespace.