PSCF v1.1
|
Collection of all monomers of a single type in a molecule. More...
#include <Clump.h>
Public Member Functions | |
Clump () | |
Constructor. More... | |
template<class Archive > | |
void | serialize (Archive &ar, unsigned int versionId) |
Serialize to/from archive. More... | |
Setters | |
void | setMonomerId (int monomerId) |
Set the monomer id. More... | |
void | setSize (double size) |
Set the size of this block. More... | |
Accessors (getters) | |
int | monomerId () const |
Get the monomer type id. More... | |
double | size () const |
Get the size (number of monomers) in this block. More... | |
std::istream & | operator>> (std::istream &in, Clump &block) |
istream extractor for a Clump. More... | |
std::ostream & | operator<< (std::ostream &out, const Clump &block) |
ostream inserter for a Clump. More... | |
Collection of all monomers of a single type in a molecule.
A clump has a monomer id and a size. The size of a clump is the volume occupied by all monomers of the specified type in a particular molecular species, divided by a monomer reference volume.
For a block copolymer, a clump is generally different than a block because a clump may include the monomers in two or more blocks of the same monomer type. Hompolymer and point solvent molecular species each have only one clump.
void Pscf::Homogeneous::Clump::serialize | ( | Archive & | ar, |
unsigned int | versionId | ||
) |
void Pscf::Homogeneous::Clump::setMonomerId | ( | int | monomerId | ) |
Set the monomer id.
monomerId | integer id of monomer type (>=0) |
Definition at line 24 of file Clump.cpp.
References monomerId().
void Pscf::Homogeneous::Clump::setSize | ( | double | size | ) |
|
inline |
Get the monomer type id.
Definition at line 127 of file Clump.h.
Referenced by Pscf::Homogeneous::Mixture::computeMu(), Pscf::Homogeneous::Mixture::computePhi(), setMonomerId(), and Pscf::Homogeneous::Mixture::validate().
|
inline |
Get the size (number of monomers) in this block.
Definition at line 133 of file Clump.h.
Referenced by pscfpp.file.File::__eq__(), pscfpp.text.Record::__init__(), pscfpp.file.File::__init__(), pscfpp.file.File::__repr__(), pscfpp.text.Record::__str__(), Pscf::Homogeneous::Mixture::computeMu(), Pscf::Homogeneous::Mixture::computePhi(), and setSize().
|
friend |
|
friend |