1#ifndef PSCF_MIXTURE_BASE_H
2#define PSCF_MIXTURE_BASE_H
11#include <pscf/chem/Monomer.h>
12#include <util/containers/DArray.h>
66 template <
typename WT>
221 mutable bool isCanonical_;
226 mutable bool hasIsCanonical_;
232 template <
typename WT>
inline
236 template <
typename WT>
inline
240 template <
typename WT>
inline
244 template <
typename WT>
inline
248 template <
typename WT>
inline
252 template <
typename WT>
inline
261 template <
typename WT>
inline
Descriptor for a mixture of polymer and solvent species.
int nPolymer_
Number of polymer species.
virtual ~Composition()=default
Destructor.
int nMonomer() const
Get number of monomer types.
void setVmonomer(double vMonomer)
Set new vMonomer value.
int nMonomer_
Number of monomer types.
virtual PolymerSpecies< WT > const & polymerSpecies(int id) const =0
Get a PolymerSpecies by const reference.
virtual SolventSpecies< WT > const & solventSpecies(int id) const =0
Set a solvent solver object by const reference.
double vMonomer() const
Get monomer reference volume (set to 1.0 by default).
double vMonomer_
Monomer reference volume (set to 1.0 by default).
int nPolymer() const
Get number of polymer species.
int nSolvent() const
Get number of solvent (point particle) species.
Monomer const & monomer(int id) const
Get a Monomer type descriptor by const reference.
DArray< Monomer > monomers_
Array of monomer type descriptors.
int nSolvent_
Number of solvent species.
Composition()
Constructor.
int nBlock_
Number of blocks total, across all polymers.
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.