mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'wip-support-eulersolver-heat-transfer-FO' into 'develop'
support eulersolver heat transfer fo See merge request Development/openfoam!333
This commit is contained in:
@ -36,5 +36,6 @@ EXE_LIBS = \
|
|||||||
-lradiationModels \
|
-lradiationModels \
|
||||||
-lregionModels \
|
-lregionModels \
|
||||||
-lsampling \
|
-lsampling \
|
||||||
-lreactingPhaseSystem \
|
-lreactingTwoPhaseSystem \
|
||||||
-lreactingTwoPhaseSystem
|
-lreactingPhaseSystem
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,8 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/specie/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 = \
|
LIB_LIBS = \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
@ -37,4 +38,5 @@ LIB_LIBS = \
|
|||||||
-lcompressibleTurbulenceModels \
|
-lcompressibleTurbulenceModels \
|
||||||
-lchemistryModel \
|
-lchemistryModel \
|
||||||
-lreactionThermophysicalModels \
|
-lreactionThermophysicalModels \
|
||||||
-lpairPatchAgglomeration
|
-lpairPatchAgglomeration \
|
||||||
|
-lreactingPhaseSystem
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "fluidThermo.H"
|
#include "fluidThermo.H"
|
||||||
#include "turbulentTransportModel.H"
|
#include "turbulentTransportModel.H"
|
||||||
#include "turbulentFluidThermoModel.H"
|
#include "turbulentFluidThermoModel.H"
|
||||||
|
#include "phaseSystem.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -90,6 +91,28 @@ Foam::heatTransferCoeffModel::q() const
|
|||||||
q[patchi] = alphabf[patchi]*hebf[patchi].snGrad();
|
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
|
else
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
|
|||||||
@ -4,9 +4,7 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
wmakeLnInclude reactingEulerFoam/interfacialCompositionModels
|
wmakeLnInclude reactingEulerFoam/phaseSystems
|
||||||
wmakeLnInclude reactingEulerFoam/interfacialModels
|
|
||||||
wmakeLnInclude reactingEulerFoam/derivedFvPatchFields
|
|
||||||
|
|
||||||
case "$WM_COMPILER" in
|
case "$WM_COMPILER" in
|
||||||
Mingw*)
|
Mingw*)
|
||||||
@ -18,7 +16,6 @@ esac
|
|||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
wmake $targetType reactingEulerFoam/phaseSystems
|
|
||||||
wmake $targetType reactingEulerFoam/interfacialModels
|
wmake $targetType reactingEulerFoam/interfacialModels
|
||||||
wmake $targetType reactingEulerFoam/interfacialCompositionModels
|
wmake $targetType reactingEulerFoam/interfacialCompositionModels
|
||||||
wmake $targetType reactingEulerFoam/derivedFvPatchFields
|
wmake $targetType reactingEulerFoam/derivedFvPatchFields
|
||||||
@ -29,4 +26,6 @@ wmake $targetType reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseCompr
|
|||||||
wmake $targetType reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseSystem
|
wmake $targetType reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseSystem
|
||||||
wmake $targetType reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels
|
wmake $targetType reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels
|
||||||
|
|
||||||
|
wmake $targetType reactingEulerFoam/phaseSystems
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -15,7 +15,6 @@ LIB_LIBS = \
|
|||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lfvOptions \
|
-lfvOptions \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lreactingPhaseSystem \
|
|
||||||
-lreactingEulerianInterfacialModels \
|
-lreactingEulerianInterfacialModels \
|
||||||
-lreactingEulerianInterfacialCompositionModels \
|
-lreactingEulerianInterfacialCompositionModels \
|
||||||
-lturbulenceModels \
|
-lturbulenceModels \
|
||||||
|
|||||||
@ -15,6 +15,5 @@ LIB_LIBS = \
|
|||||||
-lfluidThermophysicalModels \
|
-lfluidThermophysicalModels \
|
||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lspecie \
|
-lspecie \
|
||||||
-lreactingPhaseSystem \
|
|
||||||
-lturbulenceModels \
|
-lturbulenceModels \
|
||||||
-lcompressibleTurbulenceModels
|
-lcompressibleTurbulenceModels
|
||||||
|
|||||||
@ -24,4 +24,9 @@ LIB_LIBS = \
|
|||||||
-lcompressibleTransportModels \
|
-lcompressibleTransportModels \
|
||||||
-lturbulenceModels \
|
-lturbulenceModels \
|
||||||
-lcompressibleTurbulenceModels \
|
-lcompressibleTurbulenceModels \
|
||||||
-lcombustionModels
|
-lcombustionModels \
|
||||||
|
-lreactingEulerianInterfacialCompositionModels \
|
||||||
|
-lreactingEulerianInterfacialModels \
|
||||||
|
-lreactingEulerianFvPatchFields \
|
||||||
|
-lmultiphaseReactingTurbulenceModels \
|
||||||
|
-ltwoPhaseReactingTurbulenceModels
|
||||||
|
|||||||
@ -19,7 +19,6 @@ LIB_LIBS = \
|
|||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lfvOptions \
|
-lfvOptions \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lreactingPhaseSystem \
|
|
||||||
-lreactingMultiphaseSystem \
|
-lreactingMultiphaseSystem \
|
||||||
-lreactingEulerianInterfacialModels \
|
-lreactingEulerianInterfacialModels \
|
||||||
-lreactingEulerianInterfacialCompositionModels \
|
-lreactingEulerianInterfacialCompositionModels \
|
||||||
|
|||||||
@ -22,5 +22,4 @@ LIB_LIBS = \
|
|||||||
-lfvOptions \
|
-lfvOptions \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lsampling \
|
-lsampling \
|
||||||
-lcombustionModels \
|
-lcombustionModels
|
||||||
-lreactingPhaseSystem
|
|
||||||
|
|||||||
@ -17,7 +17,6 @@ LIB_LIBS = \
|
|||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-lfvOptions \
|
-lfvOptions \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lreactingPhaseSystem \
|
|
||||||
-lreactingTwoPhaseSystem \
|
-lreactingTwoPhaseSystem \
|
||||||
-lreactingEulerianInterfacialModels \
|
-lreactingEulerianInterfacialModels \
|
||||||
-lreactingEulerianInterfacialCompositionModels \
|
-lreactingEulerianInterfacialCompositionModels \
|
||||||
|
|||||||
@ -21,6 +21,5 @@ LIB_LIBS = \
|
|||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lsampling \
|
-lsampling \
|
||||||
-lcombustionModels \
|
-lcombustionModels \
|
||||||
-lreactingPhaseSystem \
|
|
||||||
-lturbulenceModels \
|
-lturbulenceModels \
|
||||||
-lcompressibleTurbulenceModels
|
-lcompressibleTurbulenceModels
|
||||||
|
|||||||
@ -61,6 +61,41 @@ adjustTimeStep yes;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
|
htc
|
||||||
|
{
|
||||||
|
type heatTransferCoeff;
|
||||||
|
libs (fieldFunctionObjects);
|
||||||
|
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) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user