34 namespace interfaceCompositionModels
46 const dictionary& dict,
50 interfaceCompositionModel(dict, pair),
56 IOobject::groupName(
"YSolvent", pair.
name()),
64 if (k_.size() != species().size())
67 <<
"Differing number of species and solubilities" 83 YSolvent_ = scalar(1);
87 YSolvent_ -= Yf(*iter, Tf);
94 const word& speciesName,
98 if (species().
found(speciesName))
100 const label index = species()[speciesName];
104 *otherComposition().Y(speciesName)
117 const word& speciesName,
124 pair().phase1().
mesh(),
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
basicSpecieMixture & composition
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual ~Henry()
Destructor.
const dimensionSet dimless
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
static word groupName(Name name, const word &group)
Henry(const dictionary &dict, const phasePair &pair)
Construct from components.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual void update(const volScalarField &Tf)
Update the composition.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
A class for managing temporary objects.
const dimensionSet dimTemperature