mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding optional output fields for Tdew and HR
This commit is contained in:
@ -110,7 +110,7 @@ Foam::humidityTemperatureCoupledMixedFvPatchScalarField::thicknessField
|
|||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength, Zero)
|
dimensionedScalar(dimless, Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
ptr->store();
|
ptr->store();
|
||||||
@ -568,7 +568,7 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs()
|
|||||||
RH[faceI] = min(Xv*pf/pSat, 1.0);
|
RH[faceI] = min(Xv*pf/pSat, 1.0);
|
||||||
|
|
||||||
scalar RHmin = 0.01;
|
scalar RHmin = 0.01;
|
||||||
Tdew[faceI] = -GREAT;
|
Tdew[faceI] = 0.0;
|
||||||
|
|
||||||
if (RH[faceI] > RHmin)
|
if (RH[faceI] > RHmin)
|
||||||
{
|
{
|
||||||
@ -679,14 +679,25 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs()
|
|||||||
// Heat flux due to change of phase [W/m2]
|
// Heat flux due to change of phase [W/m2]
|
||||||
dmHfg_ = dm*hfg;
|
dmHfg_ = dm*hfg;
|
||||||
|
|
||||||
// Output RH and Tdew
|
if (debug)
|
||||||
scalarField& bRH =
|
{
|
||||||
thicknessField("RH", refCast<const fvMesh>(mesh));
|
// Output RH and Tdew
|
||||||
bRH = RH;
|
scalarField& bRH =
|
||||||
|
thicknessField
|
||||||
|
(
|
||||||
|
"RH",
|
||||||
|
refCast<const fvMesh>(mesh)
|
||||||
|
).boundaryFieldRef()[patch().index()];
|
||||||
|
bRH = RH;
|
||||||
|
|
||||||
scalarField& bTdew =
|
scalarField& bTdew =
|
||||||
thicknessField("Tdew", refCast<const fvMesh>(mesh));
|
thicknessField
|
||||||
bTdew = Tdew;
|
(
|
||||||
|
"Tdew",
|
||||||
|
refCast<const fvMesh>(mesh)
|
||||||
|
).boundaryFieldRef()[patch().index()];
|
||||||
|
bTdew = Tdew;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user