Skip to content

Commit 25b3480

Browse files
author
Henry Weller
committed
ThermophysicalTransportModels: New library to handle the transport of energy and species
The simplistic energy transport support in compressibleTurbulenceModels has been abstracted and separated into the new ThermophysicalTransportModels library in order to provide a more general interface to support complex energy and specie transport models, in particular multi-component diffusion. Currently only the Fourier for laminar and eddyDiffusivity for RAS and LES turbulent flows are provided but the interface is general and the set of models will be expanded in the near future. The ThermalDiffusivity and EddyDiffusivity modelling layers remain in compressibleTurbulenceModels but will be removed shortly and the alphat boundary conditions will be moved to ThermophysicalTransportModels.
1 parent 7f51443 commit 25b3480

File tree

143 files changed

+3833
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+3833
-134
lines changed

applications/solvers/combustion/PDRFoam/Make/options

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ EXE_INC = \
2626
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
2727
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
2828
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
29+
-I$(LIB_SRC)/ThermophysicalTransportModels/lnInclude \
2930
-I$(LIB_SRC)/thermophysicalModels/laminarFlameSpeed/lnInclude \
3031
-I$(LIB_SRC)/finiteVolume/lnInclude \
3132
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
@@ -36,12 +37,13 @@ EXE_INC = \
3637
EXE_LIBS = \
3738
-lengine \
3839
-lmeshTools \
39-
-lturbulenceModels \
40-
-lcompressibleTurbulenceModels \
4140
-lcompressibleTransportModels \
4241
-lfluidThermophysicalModels \
4342
-lreactionThermophysicalModels \
4443
-lspecie \
44+
-lturbulenceModels \
45+
-lcompressibleTurbulenceModels \
46+
-lthermophysicalTransportModels \
4547
-llaminarFlameSpeedModels \
4648
-lfiniteVolume \
4749
-ldynamicFvMesh \

applications/solvers/combustion/PDRFoam/PDRFoam.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -70,6 +70,7 @@ Description
7070
#include "fvCFD.H"
7171
#include "psiuReactionThermo.H"
7272
#include "turbulentFluidThermoModel.H"
73+
#include "fluidThermoTransportModel.H"
7374
#include "laminarFlameSpeed.H"
7475
#include "XiModel.H"
7576
#include "PDRDragModel.H"
@@ -140,6 +141,7 @@ int main(int argc, char *argv[])
140141
if (pimple.turbCorr())
141142
{
142143
turbulence->correct();
144+
thermophysicalTransport->correct();
143145
}
144146
}
145147

applications/solvers/combustion/PDRFoam/createFields.H

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ autoPtr<compressible::RASModel> turbulence
5757
)
5858
);
5959

60+
Info<< "Creating thermophysical transport model\n" << endl;
61+
autoPtr<compressible::RASThermophysicalTransportModel>
62+
thermophysicalTransport
63+
(
64+
compressible::RASThermophysicalTransportModel::New
65+
(
66+
turbulence()
67+
)
68+
);
6069

6170
Info<< "Creating field dpdt\n" << endl;
6271
volScalarField dpdt

applications/solvers/combustion/XiFoam/EaEqn.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616
: -dpdt
1717
)
18-
- fvm::laplacian(turbulence->alphaEff(), hea)
18+
- fvm::laplacian(thermophysicalTransport->alphaEff(), hea)
1919
+ fvOptions(rho, hea)
2020
);
2121

applications/solvers/combustion/XiFoam/EauEqn.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (ign.ignited())
1616
)*rho/thermo.rhou()
1717
: -dpdt*rho/thermo.rhou()
1818
)
19-
- fvm::laplacian(turbulence->alphaEff(), heau)
19+
- fvm::laplacian(thermophysicalTransport->alphaEff(), heau)
2020

2121
// These terms cannot be used in partially-premixed combustion due to
2222
// the resultant inconsistency between ft and heau transport.

applications/solvers/combustion/XiFoam/Make/options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ EXE_INC = \
66
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
77
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
88
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
9+
-I$(LIB_SRC)/ThermophysicalTransportModels/lnInclude \
910
-I$(LIB_SRC)/thermophysicalModels/laminarFlameSpeed/lnInclude \
1011
-I$(LIB_SRC)/finiteVolume/lnInclude \
1112
-I$(LIB_SRC)/sampling/lnInclude \
@@ -15,6 +16,7 @@ EXE_LIBS = \
1516
-lengine \
1617
-lturbulenceModels \
1718
-lcompressibleTurbulenceModels \
19+
-lthermophysicalTransportModels \
1820
-lcompressibleTransportModels \
1921
-lfluidThermophysicalModels \
2022
-lreactionThermophysicalModels \

applications/solvers/combustion/XiFoam/XiEngineFoam/Make/options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EXE_INC = \
1010
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
1111
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
1212
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
13+
-I$(LIB_SRC)/ThermophysicalTransportModels/lnInclude \
1314
-I$(LIB_SRC)/thermophysicalModels/laminarFlameSpeed/lnInclude
1415

1516
EXE_LIBS = \
@@ -20,6 +21,7 @@ EXE_LIBS = \
2021
-lengine \
2122
-lturbulenceModels \
2223
-lcompressibleTurbulenceModels \
24+
-lthermophysicalTransportModels \
2325
-lcompressibleTransportModels \
2426
-lfluidThermophysicalModels \
2527
-lreactionThermophysicalModels \

applications/solvers/combustion/XiFoam/XiEngineFoam/XiEngineFoam.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -53,6 +53,7 @@ Description
5353
#include "engineMesh.H"
5454
#include "psiuReactionThermo.H"
5555
#include "turbulentFluidThermoModel.H"
56+
#include "fluidThermoTransportModel.H"
5657
#include "laminarFlameSpeed.H"
5758
#include "ignition.H"
5859
#include "Switch.H"
@@ -127,6 +128,7 @@ int main(int argc, char *argv[])
127128
if (pimple.turbCorr())
128129
{
129130
turbulence->correct();
131+
thermophysicalTransport->correct();
130132
}
131133
}
132134

applications/solvers/combustion/XiFoam/XiFoam.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -52,6 +52,7 @@ Description
5252
#include "fvCFD.H"
5353
#include "psiuReactionThermo.H"
5454
#include "turbulentFluidThermoModel.H"
55+
#include "fluidThermoTransportModel.H"
5556
#include "laminarFlameSpeed.H"
5657
#include "ignition.H"
5758
#include "Switch.H"
@@ -117,6 +118,7 @@ int main(int argc, char *argv[])
117118
if (pimple.turbCorr())
118119
{
119120
turbulence->correct();
121+
thermophysicalTransport->correct();
120122
}
121123
}
122124

applications/solvers/combustion/XiFoam/bEqn.H

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (ign.ignited())
5252
+ mvConvection->fvmDiv(phi, b)
5353
+ fvm::div(phiSt, b)
5454
- fvm::Sp(fvc::div(phiSt), b)
55-
- fvm::laplacian(turbulence->alphaEff(), b)
55+
- fvm::laplacian(thermophysicalTransport->alphaEff(), b)
5656
==
5757
fvOptions(rho, b)
5858
);
@@ -103,7 +103,10 @@ if (ign.ignited())
103103
surfaceScalarField phiXi
104104
(
105105
phiSt
106-
- fvc::interpolate(fvc::laplacian(turbulence->alphaEff(), b)/mgb)*nf
106+
- fvc::interpolate
107+
(
108+
fvc::laplacian(thermophysicalTransport->alphaEff(), b)/mgb
109+
)*nf
107110
+ fvc::interpolate(rho)*fvc::interpolate(Su*(1.0/Xi - Xi))*nf
108111
);
109112

0 commit comments

Comments
 (0)