|
PSCF v1.5.0
|
Modifier for parameters of an associated mixture. More...
#include <MixtureModifier.h>
Public Member Functions | |
| void | clearUnitCellData () |
| Clear all data that depends on the unit cell parameters. | |
Lifetime | |
| MixtureModifier () | |
| Constructor. | |
| ~MixtureModifier () | |
| Destructor. | |
| void | associate (Mixture< D, T > &mixture) |
| Create associations with a Mixture. | |
Parameter Modification Functions | |
| void | setKuhn (int monomerId, double kuhn) |
| Set the statistical segment length for one monomer type. | |
| void | setPhiPolymer (int polymerId, double phi) |
| Set the volume fraction for a polymer species. | |
| void | setMuPolymer (int polymerId, double mu) |
| Set the chemical for a polymer species. | |
| void | setBlockLength (int polymerId, int blockId, double length) |
| Set the length for a block of a block polymer. | |
| void | setPhiSolvent (int solventId, double phi) |
| Set the volume fraction for a solvent species. | |
| void | setMuSolvent (int solventId, double mu) |
| Set the chemical for a solvent species. | |
| void | setSolventSize (int solventId, double size) |
| Set the size (steric volume) for a solvent species. | |
| void | setVMonomer (double vMonomer) |
| Set the monomer reference volume for the mixture. | |
Modifier for parameters of an associated mixture.
A MixtureModifier provides an interface for a limited number of non-const operations that modify the parameters of an associated Mixture object that are initialized in the parameter file. These include changes in species volume fractions or chemical potential, changes in kuhn lengths, changes in block lengths, and changes in solvent sizes. The parent System<D, T> class template provides public access to a child instance of Mixture <D, T> only through a const reference, but provides a non-const reference to an associated MixtureModifier. The MixtureModifier template defines a limited set of non-const operations that modify parameters of the mixture. This interface is used to implement sweep and ramp operations that may need to modify these parameters during program execution.
The MixtureModifier class also provides public access to the Mixture::clearUnitCell function, which clears all data owned by a Mixture that depends upon values of the unit cell parameters (i.e., marks this data as outdated).
Definition at line 43 of file MixtureModifier.h.
| Pscf::Rp::MixtureModifier< D, T >::MixtureModifier | ( | ) |
Constructor.
Definition at line 27 of file MixtureModifier.tpp.
Referenced by Pscf::Rp::System< D, T >::System().
| Pscf::Rp::MixtureModifier< D, T >::~MixtureModifier | ( | ) |
Destructor.
Definition at line 35 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::associate | ( | Mixture< D, T > & | mixture | ) |
Create associations with a Mixture.
| mixture | associated Mixture object |
Definition at line 42 of file MixtureModifier.tpp.
References UTIL_CHECK.
| void Pscf::Rp::MixtureModifier< D, T >::setKuhn | ( | int | monomerId, |
| double | kuhn ) |
Set the statistical segment length for one monomer type.
This function resets the kuhn or statistical segment length value for a monomer type, and updates the associcated value in every block of that monomer type.
| monomerId | monomer type id |
| kuhn | new value for the statistical segment length |
Definition at line 54 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setPhiPolymer | ( | int | polymerId, |
| double | phi ) |
Set the volume fraction for a polymer species.
| polymerId | polymer species id |
| phi | new value for the species volume fraction |
Definition at line 61 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setMuPolymer | ( | int | polymerId, |
| double | mu ) |
Set the chemical for a polymer species.
| polymerId | polymer species id |
| mu | new value for the species chemical potential |
Definition at line 69 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setBlockLength | ( | int | polymerId, |
| int | blockId, | ||
| double | length ) |
Set the length for a block of a block polymer.
| polymerId | polymer species id |
| blockId | block identifier |
| length | new value for the block length |
Definition at line 77 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setPhiSolvent | ( | int | solventId, |
| double | phi ) |
Set the volume fraction for a solvent species.
| solventId | solvent species id |
| phi | new value for the species volume fraction |
Definition at line 86 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setMuSolvent | ( | int | solventId, |
| double | mu ) |
Set the chemical for a solvent species.
| solventId | solvent species id |
| mu | new value for the species chemical potential |
Definition at line 94 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setSolventSize | ( | int | solventId, |
| double | size ) |
Set the size (steric volume) for a solvent species.
The size is a dimensionless parameter given by the ratio size = (solvent molecular volume)/vMonomer, where vMonomer is the monomer reference volume.
| solventId | solvent species id |
| size | new value for the species size parameter |
Definition at line 102 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::setVMonomer | ( | double | vMonomer | ) |
Set the monomer reference volume for the mixture.
| vMonomer | new value for the monomer reference volume |
Definition at line 110 of file MixtureModifier.tpp.
| void Pscf::Rp::MixtureModifier< D, T >::clearUnitCellData | ( | ) |
Clear all data that depends on the unit cell parameters.
This function marks all private data that depends on the values of the unit cell parameters as invalid, so that it can be recomputed before it is next needed. This function should be called after any change in unit cell parameters.
Definition at line 119 of file MixtureModifier.tpp.