33 namespace interfaceCompositionModels
55 IOobject::groupName(
"YSolvent", this->interface().
name()),
56 interface.mesh().time().
name(),
66 <<
"Differing number of species and solubilities"
82 YSolvent_ = scalar(1);
86 YSolvent_ -= Yf(*iter, Tf);
93 const word& speciesName,
97 if (species().
found(speciesName))
99 const label index = species()[speciesName];
103 *otherMulticomponentThermo().Y(speciesName)
104 *otherThermo().rho()/
thermo().rho();
108 return YSolvent_*
thermo().Y(speciesName);
115 const word& speciesName,
#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.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
void size(const label)
Override size to be inconsistent with allocated storage.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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 hashedWordList & species() const
Return the transferring species names.
Henry's law for gas solubility in liquid. The concentration of a dissolved species in the liquid is p...
Henry(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual ~Henry()
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(interfaceCompositionModel, Henry, dictionary)
defineTypeNameAndDebug(Henry, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
const dimensionSet dimTemperature
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fluidMulticomponentThermo & thermo