Added rothalpy support in boundary conditions
This commit is contained in:
parent
c5a2b9d772
commit
ffb866bb9a
3 changed files with 15 additions and 3 deletions
|
@ -103,7 +103,11 @@ void Foam::fixedEnthalpyFvPatchScalarField::updateCoeffs()
|
|||
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
|
||||
Tw.evaluate();
|
||||
|
||||
if (dimensionedInternalField().name() == db().mangleFileName("h"))
|
||||
if
|
||||
(
|
||||
dimensionedInternalField().name() == db().mangleFileName("h")
|
||||
|| dimensionedInternalField().name() == db().mangleFileName("i")
|
||||
)
|
||||
{
|
||||
operator==(thermo.h(Tw, patchi));
|
||||
}
|
||||
|
|
|
@ -104,7 +104,11 @@ void Foam::gradientEnthalpyFvPatchScalarField::updateCoeffs()
|
|||
|
||||
Tw.evaluate();
|
||||
|
||||
if (dimensionedInternalField().name() == db().mangleFileName("h"))
|
||||
if
|
||||
(
|
||||
dimensionedInternalField().name() == db().mangleFileName("h")
|
||||
|| dimensionedInternalField().name() == db().mangleFileName("i")
|
||||
)
|
||||
{
|
||||
gradient() = thermo.Cp(Tw, patchi)*Tw.snGrad()
|
||||
+ patch().deltaCoeffs()*
|
||||
|
|
|
@ -112,7 +112,11 @@ void Foam::mixedEnthalpyFvPatchScalarField::updateCoeffs()
|
|||
|
||||
valueFraction() = Tw.valueFraction();
|
||||
|
||||
if (dimensionedInternalField().name() == db().mangleFileName("h"))
|
||||
if
|
||||
(
|
||||
dimensionedInternalField().name() == db().mangleFileName("h")
|
||||
|| dimensionedInternalField().name() == db().mangleFileName("i")
|
||||
)
|
||||
{
|
||||
refValue() = thermo.h(Tw.refValue(), patchi);
|
||||
refGrad() = thermo.Cp(Tw, patchi)*Tw.refGrad()
|
||||
|
|
Reference in a new issue