radiationModel: Added "he" argument to the "Sh" function

for consistency with the other energy sources.
This commit is contained in:
Henry Weller
2017-04-13 13:57:33 +01:00
parent e3c67dc111
commit 9ece58af9d
12 changed files with 22 additions and 18 deletions

View File

@ -67,7 +67,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
- fvm::laplacian(turbulence->alphaEff(), he) - fvm::laplacian(turbulence->alphaEff(), he)
== ==
Qdot Qdot
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ parcels.Sh(he) + parcels.Sh(he)
+ surfaceFilm.Sh() + surfaceFilm.Sh()
+ fvOptions(rho, he) + fvOptions(rho, he)

View File

@ -18,7 +18,7 @@
- fvm::laplacian(turbulence->alphaEff(), he) - fvm::laplacian(turbulence->alphaEff(), he)
== ==
rho*(U&g) rho*(U&g)
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -12,7 +12,7 @@
- fvm::laplacian(turbulence->alphaEff(), he) - fvm::laplacian(turbulence->alphaEff(), he)
== ==
rho*(U&g) rho*(U&g)
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -12,7 +12,7 @@
- fvm::laplacian(turb.alphaEff(), he) - fvm::laplacian(turb.alphaEff(), he)
== ==
rho*(U&g) rho*(U&g)
+ rad.Sh(thermo) + rad.Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -18,7 +18,7 @@
- fvm::laplacian(turb.alphaEff(), he) - fvm::laplacian(turb.alphaEff(), he)
== ==
rho*(U&g) rho*(U&g)
+ rad.Sh(thermo) + rad.Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -17,7 +17,7 @@
) )
- fvm::laplacian(alphaEff, he) - fvm::laplacian(alphaEff, he)
== ==
radiation->Sh(thermo) radiation->Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -21,7 +21,7 @@
+ Qdot + Qdot
+ coalParcels.Sh(he) + coalParcels.Sh(he)
+ limestoneParcels.Sh(he) + limestoneParcels.Sh(he)
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -20,7 +20,7 @@
rho*(U&g) rho*(U&g)
+ parcels.Sh(he) + parcels.Sh(he)
+ surfaceFilm.Sh() + surfaceFilm.Sh()
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ Qdot + Qdot
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -19,7 +19,7 @@
== ==
rho*(U&g) rho*(U&g)
+ parcels.Sh(he) + parcels.Sh(he)
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ Qdot + Qdot
+ fvOptions(rho, he) + fvOptions(rho, he)
); );
@ -35,6 +35,6 @@
thermo.correct(); thermo.correct();
radiation->correct(); radiation->correct();
Info<< "T gas min/max = " << min(T).value() << ", " Info<< "T gas min/max " << min(T).value() << ", "
<< max(T).value() << endl; << max(T).value() << endl;
} }

View File

@ -13,7 +13,7 @@
== ==
rho*(U&g) rho*(U&g)
+ parcels.Sh(he) + parcels.Sh(he)
+ radiation->Sh(thermo) + radiation->Sh(thermo, he)
+ Qdot + Qdot
+ fvOptions(rho, he) + fvOptions(rho, he)
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -28,7 +28,7 @@ License
#include "scatterModel.H" #include "scatterModel.H"
#include "sootModel.H" #include "sootModel.H"
#include "fvmSup.H" #include "fvmSup.H"
#include "fluidThermo.H" #include "basicThermo.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -228,10 +228,10 @@ void Foam::radiation::radiationModel::correct()
Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh
( (
fluidThermo& thermo const basicThermo& thermo,
const volScalarField& he
) const ) const
{ {
volScalarField& he = thermo.he();
const volScalarField Cpv(thermo.Cpv()); const volScalarField Cpv(thermo.Cpv());
const volScalarField T3(pow3(T_)); const volScalarField T3(pow3(T_));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,7 +54,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
class fluidThermo; class basicThermo;
class fvMesh; class fvMesh;
namespace radiation namespace radiation
@ -224,7 +224,11 @@ public:
virtual tmp<volScalarField::Internal> Ru() const = 0; virtual tmp<volScalarField::Internal> Ru() const = 0;
//- Energy source term //- Energy source term
virtual tmp<fvScalarMatrix> Sh(fluidThermo& thermo) const; virtual tmp<fvScalarMatrix> Sh
(
const basicThermo& thermo,
const volScalarField& he
) const;
//- Temperature source term //- Temperature source term
virtual tmp<fvScalarMatrix> ST virtual tmp<fvScalarMatrix> ST