Skip to content
GitLab
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
8218923b
Commit
8218923b
authored
Jan 21, 2020
by
sergio
Committed by
Andrew Heather
May 21, 2020
Browse files
ENH: Adding support for two phases Euler solver to heatTransferModel FO
parent
8eeb5e86
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/Make/options
View file @
8218923b
...
...
@@ -18,7 +18,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/fvAgglomerationMethods/pairPatchAgglomeration/lnInclude
-I$(LIB_SRC)/fvAgglomerationMethods/pairPatchAgglomeration/lnInclude \
-I$(LIB_SRC)/phaseSystemModels/reactingEulerFoam/phaseSystems/lnInclude
LIB_LIBS = \
-lfiniteVolume \
...
...
@@ -37,4 +38,5 @@ LIB_LIBS = \
-lcompressibleTurbulenceModels \
-lchemistryModel \
-lreactionThermophysicalModels \
-lpairPatchAgglomeration
-lpairPatchAgglomeration \
-lreactingPhaseSystem
src/functionObjects/field/heatTransferCoeff/heatTransferCoeffModels/heatTransferCoeffModel/heatTransferCoeffModel.C
View file @
8218923b
...
...
@@ -30,6 +30,7 @@ License
#include
"fluidThermo.H"
#include
"turbulentTransportModel.H"
#include
"turbulentFluidThermoModel.H"
#include
"phaseSystem.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
...
...
@@ -90,6 +91,28 @@ Foam::heatTransferCoeffModel::q() const
q
[
patchi
]
=
alphabf
[
patchi
]
*
hebf
[
patchi
].
snGrad
();
}
}
else
if
(
mesh_
.
foundObject
<
phaseSystem
>
(
"phaseProperties"
))
{
const
phaseSystem
&
fluid
=
(
mesh_
.
lookupObject
<
phaseSystem
>
(
"phaseProperties"
)
);
for
(
label
patchi
:
patchSet_
)
{
forAll
(
fluid
.
phases
(),
phasei
)
{
const
phaseModel
&
phase
=
fluid
.
phases
()[
phasei
];
const
fvPatchScalarField
&
alpha
=
phase
.
boundaryField
()[
patchi
];
const
volScalarField
&
he
=
phase
.
thermo
().
he
();
const
volScalarField
::
Boundary
&
hebf
=
he
.
boundaryField
();
q
[
patchi
]
+=
alpha
*
phase
.
alphaEff
(
patchi
)()
*
hebf
[
patchi
].
snGrad
();
}
}
}
else
{
FatalErrorInFunction
...
...
tutorials/heatTransfer/chtMultiRegionTwoPhaseEulerFoam/solidQuenching2D/system/controlDict
View file @
8218923b
...
...
@@ -61,6 +61,41 @@ adjustTimeStep yes;
functions
{
htc
{
type heatTransferCoeff;
libs ("libfieldFunctionObjects.so");
region water;
field T.liquid;
writeControl outputTime;
writeInterval 1;
htcModel fixedReferenceTemperature;
patches (water_to_solid);
TRef 373;
}
htcSurfaceFieldValue
{
type surfaceFieldValue;
libs (fieldFunctionObjects);
log on;
enabled true;
writeControl outputTime;
writeInterval 1;
writeFields false;
surfaceFormat none;
writeArea false;
region water;
regionType patch;
name water_to_solid;
operation areaAverage;
fields ( heatTransferCoeff(T.liquid) );
}
}
// ************************************************************************* //
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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