Commit ee36fe8c authored by sergio's avatar sergio
Browse files

ENH: Adding optional output fields for Tdew and HR

parent bc192e24
...@@ -110,7 +110,7 @@ Foam::humidityTemperatureCoupledMixedFvPatchScalarField::thicknessField ...@@ -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() ...@@ -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() ...@@ -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
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment