PSCF v1.5.0
MixtureModifier.h
1#ifndef RP_MIXTURE_MODIFIER_H
2#define RP_MIXTURE_MODIFIER_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <pscf/backend/TmplDeclare.h>
12
13namespace Pscf {
14namespace Rp {
15
16 // Forward declaration
17 template <int D, class T> class Mixture;
18
42 template <int D, class T>
44 {
45
46 public:
47
50
55
60
66 void associate(Mixture<D,T>& mixture);
67
71
82 void setKuhn(int monomerId, double kuhn);
83
90 void setPhiPolymer(int polymerId, double phi);
91
98 void setMuPolymer(int polymerId, double mu);
99
107 void setBlockLength(int polymerId, int blockId, double length);
108
115 void setPhiSolvent(int solventId, double phi);
116
123 void setMuSolvent(int solventId, double mu);
124
135 void setSolventSize(int solventId, double size);
136
142 void setVMonomer(double vMonomer);
143
145
154 void clearUnitCellData();
155
156 private:
157
159 Mixture<D,T>* mixturePtr_;
160
164 Mixture<D,T>& mixture();
165
166 };
167
168 // Explicit instantiation declarations
169 PSCF_TMPL_DECLARE(MixtureModifier);
170
171} // namespace Rp
172} // namespace Pscf
173#endif
Modifier for parameters of an associated mixture.
void setMuPolymer(int polymerId, double mu)
Set the chemical for a polymer species.
void setPhiPolymer(int polymerId, double phi)
Set the volume fraction for a polymer species.
void associate(Mixture< D, T > &mixture)
Create associations with a Mixture.
void setKuhn(int monomerId, double kuhn)
Set the statistical segment length for one monomer type.
void setSolventSize(int solventId, double size)
Set the size (steric volume) for a solvent 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 clearUnitCellData()
Clear all data that depends on the unit cell parameters.
void setMuSolvent(int solventId, double mu)
Set the chemical for a solvent species.
void setVMonomer(double vMonomer)
Set the monomer reference volume for the mixture.
Solver and descriptor for a mixture of polymers and solvents.
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.