PSCF v1.5.0
Pscf::Rp::MixtureModifier< D, T > Class Template Reference

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.

Detailed Description

template<int D, class T>
class Pscf::Rp::MixtureModifier< D, T >

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.

Constructor & Destructor Documentation

◆ MixtureModifier()

template<int D, class T>
Pscf::Rp::MixtureModifier< D, T >::MixtureModifier ( )

Constructor.

Definition at line 27 of file MixtureModifier.tpp.

Referenced by Pscf::Rp::System< D, T >::System().

◆ ~MixtureModifier()

template<int D, class T>
Pscf::Rp::MixtureModifier< D, T >::~MixtureModifier ( )

Destructor.

Definition at line 35 of file MixtureModifier.tpp.

Member Function Documentation

◆ associate()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::associate ( Mixture< D, T > & mixture)

Create associations with a Mixture.

Parameters
mixtureassociated Mixture object

Definition at line 42 of file MixtureModifier.tpp.

References UTIL_CHECK.

◆ setKuhn()

template<int D, class T>
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.

Parameters
monomerIdmonomer type id
kuhnnew value for the statistical segment length

Definition at line 54 of file MixtureModifier.tpp.

◆ setPhiPolymer()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setPhiPolymer ( int polymerId,
double phi )

Set the volume fraction for a polymer species.

Parameters
polymerIdpolymer species id
phinew value for the species volume fraction

Definition at line 61 of file MixtureModifier.tpp.

◆ setMuPolymer()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setMuPolymer ( int polymerId,
double mu )

Set the chemical for a polymer species.

Parameters
polymerIdpolymer species id
munew value for the species chemical potential

Definition at line 69 of file MixtureModifier.tpp.

◆ setBlockLength()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setBlockLength ( int polymerId,
int blockId,
double length )

Set the length for a block of a block polymer.

Parameters
polymerIdpolymer species id
blockIdblock identifier
lengthnew value for the block length

Definition at line 77 of file MixtureModifier.tpp.

◆ setPhiSolvent()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setPhiSolvent ( int solventId,
double phi )

Set the volume fraction for a solvent species.

Parameters
solventIdsolvent species id
phinew value for the species volume fraction

Definition at line 86 of file MixtureModifier.tpp.

◆ setMuSolvent()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setMuSolvent ( int solventId,
double mu )

Set the chemical for a solvent species.

Parameters
solventIdsolvent species id
munew value for the species chemical potential

Definition at line 94 of file MixtureModifier.tpp.

◆ setSolventSize()

template<int D, class T>
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.

Parameters
solventIdsolvent species id
sizenew value for the species size parameter

Definition at line 102 of file MixtureModifier.tpp.

◆ setVMonomer()

template<int D, class T>
void Pscf::Rp::MixtureModifier< D, T >::setVMonomer ( double vMonomer)

Set the monomer reference volume for the mixture.

Parameters
vMonomernew value for the monomer reference volume

Definition at line 110 of file MixtureModifier.tpp.

◆ clearUnitCellData()

template<int D, class T>
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.


The documentation for this class was generated from the following files: