33 namespace interfaceCompositionModels
54 IOobject::groupName(
"YNonVapour", this->interface().
name()),
65 IOobject::groupName(
"YNonVapourPrime", this->interface().
name()),
101 YNonVapour_ = scalar(1);
113 otherMulticomponentThermo().Y(iter.key())
114 *iter()->Yf(iter.key(), Tf);
117 otherMulticomponentThermo().Y(iter.key())
118 *iter()->YfPrime(iter.key(), Tf);
125 const word& speciesName,
129 if (species().
found(speciesName))
132 otherMulticomponentThermo().Y(speciesName)
133 *speciesModels_[speciesName]->Yf(speciesName, Tf);
137 return thermo().Y(speciesName)*YNonVapour_;
145 const word& speciesName,
149 if (species().
found(speciesName))
152 otherMulticomponentThermo().Y(speciesName)
153 *speciesModels_[speciesName]->YfPrime(speciesName, Tf);
157 return thermo().Y(speciesName)*YNonVapourPrime_;
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
T * ptr()
Return object pointer for reuse.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A wordList with hashed indices for faster lookup by name.
Generic base class for interface composition models. These models describe the composition in phase 1...
const sidedPhaseInterface & interface() const
Return the interface.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
const hashedWordList & species() const
Return the transferring species names.
Raoult's law of ideal mixing. A separate composition model is given for each species....
Raoult(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual ~Raoult()
Destructor.
virtual void update(const volScalarField &Tf)
Update the composition.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
addToRunTimeSelectionTable(interfaceCompositionModel, Henry, dictionary)
defineTypeNameAndDebug(Henry, 0)
const dimensionSet dimless
const dimensionSet dimTemperature
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fluidMulticomponentThermo & thermo