1#ifndef PSCF_HOMOGENEOUS_MOLECULE_H
2#define PSCF_HOMOGENEOUS_MOLECULE_H
11#include <util/param/ParamComposite.h>
13#include <pscf/homogeneous/Clump.h>
14#include <util/containers/Pair.h>
15#include <util/containers/DArray.h>
20 namespace Homogeneous {
142 {
return clumps_[id]; }
148 {
return clumps_[id]; }
Collection of all monomers of a single type in a molecule.
Descriptor of a molecular species in a homogeneous mixture.
int nClump() const
Number of monomer clumps (monomer types).
Clump & clump(int id)
Get a specified Clump.
void setNClump(int nClump)
Set the number of clumps, and allocate memory.
void computeSize()
Compute total molecule size by adding clump sizes.
virtual void readParameters(std::istream &in)
Read and initialize.
double size() const
Total molecule size = volume / reference volume.
Dynamically allocatable contiguous array template.
An object that can read multiple parameters from file.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.