33 namespace interfaceCompositionModels
45 const dictionary& dict,
46 const phaseInterface& interface
49 interfaceCompositionModel(dict, interface),
55 IOobject::groupName(
"YSolvent", this->interface().
name()),
63 if (k_.size() != species().size())
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 *otherComposition().Y(speciesName)
116 const word& speciesName,
FvWallInfoData< WallInfo, label > 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.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
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,.
Henry(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
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)
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