|
PSCF v1.4.0
|
Sub-unit of a molecule in Flory-Huggins theory. More...
#include <FhClump.h>
Public Member Functions | |
| FhClump () | |
| Constructor. | |
| template<class Archive> | |
| void | serialize (Archive &ar, unsigned int versionId) |
| Serialize to/from archive. | |
Setters | |
| void | setMonomerId (int monomerId) |
| Set the monomer type id. | |
| void | setSize (double size) |
| Set the size of this clump. | |
Accessors | |
| int | monomerId () const |
| Get the monomer type id. | |
| double | size () const |
| Get the size (number of monomers) in this block. | |
| std::istream & | operator>> (std::istream &in, FhClump &block) |
| istream extractor for a FhClump. | |
| std::ostream & | operator<< (std::ostream &out, const FhClump &block) |
| ostream inserter for a FhClump. | |
Sub-unit of a molecule in Flory-Huggins theory.
A clump is an aggregate of all monomers of a specified type within a molecule. A clump has a monomer id and a size. The size of a clump is the total volume occupied by all monomers of the specified type in a molecule of a specific species, divided by the 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 solvent molecular species each have only one clump.
| Pscf::FhClump::FhClump | ( | ) |
| void Pscf::FhClump::serialize | ( | Archive & | ar, |
| unsigned int | versionId ) |
| void Pscf::FhClump::setMonomerId | ( | int | monomerId | ) |
Set the monomer type id.
| monomerId | integer id of monomer type (>=0) |
Definition at line 23 of file FhClump.cpp.
References monomerId().
Referenced by Pscf::FhMixture::initialize().
| void Pscf::FhClump::setSize | ( | double | size | ) |
Set the size of this clump.
The ``size" is steric volume / reference volume.
| size | clump size (volume / monomer volume) |
Definition at line 29 of file FhClump.cpp.
References size().
Referenced by Pscf::FhMixture::initialize().
|
inline |
Get the monomer type id.
Definition at line 127 of file FhClump.h.
Referenced by Pscf::FhMixture::computeMu(), Pscf::FhMixture::computePhi(), setMonomerId(), and Pscf::FhMixture::validate().
|
inline |
Get the size (number of monomers) in this block.
Definition at line 133 of file FhClump.h.
Referenced by Pscf::FhMixture::computeMu(), Pscf::FhMixture::computePhi(), and setSize().
|
friend |
istream extractor for a FhClump.
| in | input stream |
| block | FhClump to be read from stream |
Definition at line 35 of file FhClump.cpp.
References FhClump().
|
friend |
ostream inserter for a FhClump.
| out | output stream |
| block | FhClump to be written to stream |
Definition at line 45 of file FhClump.cpp.
References FhClump().