Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ee36fe8c
Commit
ee36fe8c
authored
Dec 14, 2021
by
sergio
Browse files
ENH: Adding optional output fields for Tdew and HR
parent
bc192e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/thermophysicalPropertiesFvPatchFields/liquidProperties/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C
View file @
ee36fe8c
...
...
@@ -110,7 +110,7 @@ Foam::humidityTemperatureCoupledMixedFvPatchScalarField::thicknessField
IOobject
::
AUTO_WRITE
),
mesh
,
dimensionedScalar
(
dim
Length
,
Zero
)
dimensionedScalar
(
dim
less
,
Zero
)
);
ptr
->
store
();
...
...
@@ -568,7 +568,7 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs()
RH
[
faceI
]
=
min
(
Xv
*
pf
/
pSat
,
1
.
0
);
scalar
RHmin
=
0
.
01
;
Tdew
[
faceI
]
=
-
GREAT
;
Tdew
[
faceI
]
=
0
.
0
;
if
(
RH
[
faceI
]
>
RHmin
)
{
...
...
@@ -679,14 +679,25 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs()
// Heat flux due to change of phase [W/m2]
dmHfg_
=
dm
*
hfg
;
// Output RH and Tdew
scalarField
&
bRH
=
thicknessField
(
"RH"
,
refCast
<
const
fvMesh
>
(
mesh
));
bRH
=
RH
;
if
(
debug
)
{
// Output RH and Tdew
scalarField
&
bRH
=
thicknessField
(
"RH"
,
refCast
<
const
fvMesh
>
(
mesh
)
).
boundaryFieldRef
()[
patch
().
index
()];
bRH
=
RH
;
scalarField
&
bTdew
=
thicknessField
(
"Tdew"
,
refCast
<
const
fvMesh
>
(
mesh
));
bTdew
=
Tdew
;
scalarField
&
bTdew
=
thicknessField
(
"Tdew"
,
refCast
<
const
fvMesh
>
(
mesh
)
).
boundaryFieldRef
()[
patch
().
index
()];
bTdew
=
Tdew
;
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment