radiationModels: Relocation, namespace changes, and fixed Qdot access

The radiation modelling library has been moved out of
thermophysicalProperties into the top-level source directory. Radiation
is a process, not a property, and belongs alongside turbulence,
combustion, etc...

The namespaces used within the radiation library have been made
consistent with the rest of the code. Selectable sub-models are in
namespaces named after their base classes. Some models have been
renamed remove the base type from the suffix, as this is unnecessary.
These renames are:

    Old name:                       New name:

    binaryAbsorptionEmission        binary
    cloudAbsorptionEmission         cloud
    constantAbsorptionEmission      constant
    greyMeanAbsorptionEmission      greyMean/greyMeanCombustion
    greyMeanSolidAbsorptionEmission greyMeanSolid
    wideBandAbsorptionEmission      wideBand/wideBandCombustion

    cloudScatter                    cloud
    constantScatter                 constant

    mixtureFractionSoot             mixtureFraction

Some absorption-emission models have been split into versions which do
and don't use the heat release rate. The version that does has been
given the post-fix "Combustion" and has been moved into the
combustionModels library. This removes the dependence on a registered
Qdot field, and makes the models compatible with the recent removal of
that field from the combustion solvers.
This commit is contained in:
Will Bainbridge
2019-02-07 14:48:20 +00:00
parent b3003ab5be
commit c59c82ac0e
128 changed files with 1415 additions and 1079 deletions

View File

@ -16,7 +16,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
-I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \

View File

@ -5,7 +5,7 @@ EXE_INC = \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude

View File

@ -3,7 +3,7 @@ EXE_INC = \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \

View File

@ -4,7 +4,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude

View File

@ -4,7 +4,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude

View File

@ -19,7 +19,7 @@ EXE_INC = \
-I$(LIB_SRC)/combustionModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude

View File

@ -10,7 +10,7 @@ PtrList<surfaceScalarField> ghfFluid(fluidRegions.size());
PtrList<compressible::turbulenceModel> turbulenceFluid(fluidRegions.size());
PtrList<CombustionModel<rhoReactionThermo>> reactionFluid(fluidRegions.size());
PtrList<volScalarField> p_rghFluid(fluidRegions.size());
PtrList<radiation::radiationModel> radiation(fluidRegions.size());
PtrList<radiationModel> radiation(fluidRegions.size());
PtrList<volScalarField> KFluid(fluidRegions.size());
PtrList<volScalarField> dpdtFluid(fluidRegions.size());
PtrList<multivariateSurfaceInterpolationScheme<scalar>::fieldTable>
@ -194,7 +194,7 @@ forAll(fluidRegions, i)
radiation.set
(
i,
radiation::radiationModel::New(thermoFluid[i].T())
radiationModel::New(thermoFluid[i].T())
);
initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();

View File

@ -43,7 +43,7 @@
multivariateSurfaceInterpolationScheme<scalar>::fieldTable& fields =
fieldsFluid[i];
radiation::radiationModel& rad = radiation[i];
radiationModel& rad = radiation[i];
IOMRFZoneList& MRF = MRFfluid[i];
fv::options& fvOptions = fluidFvOptions[i];

View File

@ -1,7 +1,7 @@
// Initialise solid field pointer lists
PtrList<coordinateSystem> coordinates(solidRegions.size());
PtrList<solidThermo> thermos(solidRegions.size());
PtrList<radiation::radiationModel> radiations(solidRegions.size());
PtrList<radiationModel> radiations(solidRegions.size());
PtrList<fv::options> solidHeatSources(solidRegions.size());
PtrList<volScalarField> betavSolid(solidRegions.size());
PtrList<volSymmTensorField> aniAlphas(solidRegions.size());
@ -16,7 +16,7 @@ forAll(solidRegions, i)
thermos.set(i, solidThermo::New(solidRegions[i]));
Info<< " Adding to radiations\n" << endl;
radiations.set(i, radiation::radiationModel::New(thermos[i].T()));
radiations.set(i, radiationModel::New(thermos[i].T()));
Info<< " Adding fvOptions\n" << endl;
solidHeatSources.set

View File

@ -4,7 +4,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude

View File

@ -7,7 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \

View File

@ -6,7 +6,7 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \

View File

@ -14,7 +14,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
-I$(LIB_SRC)/ODE/lnInclude \

View File

@ -14,7 +14,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \

View File

@ -15,7 +15,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/ODE/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \

View File

@ -18,7 +18,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/ODE/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \

View File

@ -18,7 +18,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/ODE/lnInclude \
-I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \

View File

@ -5,7 +5,7 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \

View File

@ -1,7 +1,7 @@
EXE_INC = \
-DFULLDEBUG -g -O0 \
-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

View File

@ -56,6 +56,7 @@ wmake $targetType randomProcesses
transportModels/Allwmake $targetType $*
thermophysicalModels/Allwmake $targetType $*
TurbulenceModels/Allwmake $targetType $*
wmake $targetType radiationModels
wmake $targetType combustionModels
regionModels/Allwmake $targetType $*
lagrangian/Allwmake $targetType $*

View File

@ -22,4 +22,7 @@ noCombustion/noCombustions.C
functionObjects/Qdot/Qdot.C
radiationModels/absorptionEmissionModels/greyMeanCombustion/greyMeanCombustion.C
radiationModels/absorptionEmissionModels/wideBandCombustion/wideBandCombustion.C
LIB = $(FOAM_LIBBIN)/libcombustionModels

View File

@ -6,6 +6,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
@ -14,5 +15,6 @@ LIB_LIBS = \
-lturbulenceModels \
-lcompressibleTurbulenceModels \
-lchemistryModel \
-lradiationModels \
-lfiniteVolume \
-lmeshTools

View File

@ -0,0 +1,89 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "greyMeanCombustion.H"
#include "combustionModel.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace radiationModels
{
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(greyMeanCombustion, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
greyMeanCombustion,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiationModels::absorptionEmissionModels::greyMeanCombustion::
greyMeanCombustion
(
const dictionary& dict,
const fvMesh& mesh
)
:
greyMean(dict, mesh, typeName),
EhrrCoeff_(readScalar(coeffsDict_.lookup("EhrrCoeff")))
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiationModels::absorptionEmissionModels::greyMeanCombustion::
~greyMeanCombustion()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiationModels::absorptionEmissionModels::greyMeanCombustion::ECont
(
const label bandI
) const
{
tmp<volScalarField> E = greyMean::ECont(bandI);
const word& name = combustionModel::combustionPropertiesName;
E.ref() += EhrrCoeff_*mesh_.lookupObject<combustionModel>(name).Qdot();
return E;
}
// ************************************************************************* //

View File

@ -0,0 +1,103 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiationModels::absorptionEmission::greyMeanCombustion
Description
greyMeanCombustion radiation absorption and emission coefficients for
continuous phase. Exactly as greyMean, but with additional effects of the
combustion heat release rate included.
See also
Foam::radiationModels::absorptionEmissionModels::greyMean
SourceFiles
greyMeanCombustion.C
\*---------------------------------------------------------------------------*/
#ifndef greyMeanCombustion_H
#define greyMeanCombustion_H
#include "greyMean.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class greyMeanCombustion Declaration
\*---------------------------------------------------------------------------*/
class greyMeanCombustion
:
public greyMean
{
private:
// Private data
//- Emission constant coefficient
const scalar EhrrCoeff_;
public:
//- Runtime type information
TypeName("greyMeanCombustion");
// Constructors
//- Construct from components
greyMeanCombustion(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~greyMeanCombustion();
// Member Functions
//- Emission contribution for continuous phase
tmp<volScalarField> ECont(const label bandI = 0) const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -0,0 +1,102 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "wideBandCombustion.H"
#include "combustionModel.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace radiationModels
{
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(wideBandCombustion, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
wideBandCombustion,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiationModels::absorptionEmissionModels::wideBandCombustion::
wideBandCombustion
(
const dictionary& dict,
const fvMesh& mesh
)
:
wideBand(dict, mesh, typeName)
{
label bandi = 0;
forAllConstIter(dictionary, coeffsDict_, iter)
{
if (!iter().isDict()) continue;
iter().dict().lookup("EhrrCoeff") >> iEhrrCoeffs_[bandi];
++ bandi;
}
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiationModels::absorptionEmissionModels::wideBandCombustion::
~wideBandCombustion()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiationModels::absorptionEmissionModels::wideBandCombustion::ECont
(
const label bandi
) const
{
tmp<volScalarField> E = wideBand::ECont(bandi);
const word& name = combustionModel::combustionPropertiesName;
E.ref() +=
iEhrrCoeffs_[bandi]
*mesh_.lookupObject<combustionModel>(name).Qdot()
*(iBands_[bandi][1] - iBands_[bandi][0])
/totalWaveLength_;
return E;
}
// ************************************************************************* //

View File

@ -0,0 +1,101 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiationModels::absorptionEmission::wideBandCombustion
Description
wideBandCombustion radiation absorption and emission coefficients for
continuous phase. Exactly as wideBand, but with additional effects of the
combustion heat release rate included.
See also
Foam::radiationModels::absorptionEmissionModels::wideBand
SourceFiles
wideBandCombustion.C
\*---------------------------------------------------------------------------*/
#ifndef wideBandCombustion_H
#define wideBandCombustion_H
#include "wideBand.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class wideBandCombustion Declaration
\*---------------------------------------------------------------------------*/
class wideBandCombustion
:
public wideBand
{
private:
//- Proportion of the heat released rate emitted
FixedList<scalar, maxBands_> iEhrrCoeffs_;
public:
//- Runtime type information
TypeName("wideBandCombustion");
// Constructors
//- Construct from components
wideBandCombustion(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~wideBandCombustion();
// Member Functions
//- Emission contribution for continuous phase
tmp<volScalarField> ECont(const label bandi = 0) const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -8,7 +8,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \

View File

@ -7,7 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/regionModels/regionModel/lnInclude \
-I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,23 +31,26 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(cloudAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(cloud, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
cloudAbsorptionEmission,
cloud,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::cloudAbsorptionEmission::cloudAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::cloud::cloud
(
const dictionary& dict,
const fvMesh& mesh
@ -61,14 +64,14 @@ Foam::radiation::cloudAbsorptionEmission::cloudAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::cloudAbsorptionEmission::~cloudAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::cloud::~cloud()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::cloudAbsorptionEmission::aDisp(const label) const
Foam::radiationModels::absorptionEmissionModels::cloud::aDisp(const label) const
{
tmp<volScalarField> ta
(
@ -95,7 +98,10 @@ Foam::radiation::cloudAbsorptionEmission::aDisp(const label) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::cloudAbsorptionEmission::eDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::cloud::eDisp
(
const label bandI
) const
{
tmp<volScalarField> te
(
@ -112,7 +118,10 @@ Foam::radiation::cloudAbsorptionEmission::eDisp(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::cloudAbsorptionEmission::EDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::cloud::EDisp
(
const label bandI
) const
{
tmp<volScalarField> tE
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::cloudAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::cloud
Description
Retrieves absorption/emission data from a cloud object
@ -41,14 +41,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class cloudAbsorptionEmission Declaration
Class cloud Declaration
\*---------------------------------------------------------------------------*/
class cloudAbsorptionEmission
class cloud
:
public absorptionEmissionModel
{
@ -64,37 +66,27 @@ class cloudAbsorptionEmission
public:
//- Runtime type information
TypeName("cloudAbsorptionEmission");
TypeName("cloud");
// Constructors
//- Construct from components
cloudAbsorptionEmission(const dictionary& dict, const fvMesh& mesh);
cloud(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~cloudAbsorptionEmission();
virtual ~cloud();
// Member Operators
// Access
// Absorption coefficient
// Member Functions
//- Absorption coefficient for dispersed phase
virtual tmp<volScalarField> aDisp(const label bandI = 0) const;
// Emission coefficient
//- Emission coefficient for dispersed phase
virtual tmp<volScalarField> eDisp(const label bandI = 0) const;
// Emission contribution
//- Return emission contribution for dispersed phase
virtual tmp<volScalarField> EDisp(const label bandI = 0) const;
};
@ -102,7 +94,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,23 +31,26 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(cloudScatter, 0);
namespace scatterModels
{
defineTypeNameAndDebug(cloud, 0);
addToRunTimeSelectionTable
(
scatterModel,
cloudScatter,
cloud,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::cloudScatter::cloudScatter
Foam::radiationModels::scatterModels::cloud::cloud
(
const dictionary& dict,
const fvMesh& mesh
@ -61,14 +64,14 @@ Foam::radiation::cloudScatter::cloudScatter
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::cloudScatter::~cloudScatter()
Foam::radiationModels::scatterModels::cloud::~cloud()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::cloudScatter::sigmaEff() const
Foam::radiationModels::scatterModels::cloud::sigmaEff() const
{
tmp<volScalarField> tsigma
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::cloudScatter
Foam::radiationModels::scatterModels::cloud
Description
Cloud radiation scatter model
@ -41,14 +41,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace scatterModels
{
/*---------------------------------------------------------------------------*\
Class cloudScatter Declaration
Class cloud Declaration
\*---------------------------------------------------------------------------*/
class cloudScatter
class cloud
:
public scatterModel
{
@ -64,26 +66,20 @@ class cloudScatter
public:
//- Runtime type information
TypeName("cloudScatter");
TypeName("cloud");
// Constructors
//- Construct from components
cloudScatter
(
const dictionary& dict,
const fvMesh& mesh
);
cloud(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~cloudScatter();
virtual ~cloud();
// Member Operators
// Access
// Member Functions
//- Return scatter coefficient
tmp<volScalarField> sigmaEff() const;
@ -92,7 +88,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace scatterModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -9,7 +9,7 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/radiationModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \

View File

@ -3,7 +3,7 @@ radiationModels/radiationModel/radiationModel.C
radiationModels/radiationModel/radiationModelNew.C
radiationModels/noRadiation/noRadiation.C
radiationModels/P1/P1.C
radiationModels/fvDOM/fvDOM/fvDOM.C
radiationModels/fvDOM/fvDOM.C
radiationModels/fvDOM/radiativeIntensityRay/radiativeIntensityRay.C
radiationModels/fvDOM/blackBodyEmission/blackBodyEmission.C
radiationModels/fvDOM/absorptionCoeffs/absorptionCoeffs.C
@ -11,26 +11,26 @@ radiationModels/viewFactor/viewFactor.C
radiationModels/opaqueSolid/opaqueSolid.C
/* Scatter model */
submodels/scatterModel/scatterModel/scatterModel.C
submodels/scatterModel/scatterModel/scatterModelNew.C
submodels/scatterModel/noScatter/noScatter.C
submodels/scatterModel/constantScatter/constantScatter.C
scatterModels/scatterModel/scatterModel.C
scatterModels/scatterModel/scatterModelNew.C
scatterModels/noScatter/noScatter.C
scatterModels/constantScatter/constantScatter.C
/* Absorption/Emission model */
submodels/absorptionEmissionModel/absorptionEmissionModel/absorptionEmissionModel.C
submodels/absorptionEmissionModel/absorptionEmissionModel/absorptionEmissionModelNew.C
submodels/absorptionEmissionModel/noAbsorptionEmission/noAbsorptionEmission.C
submodels/absorptionEmissionModel/constantAbsorptionEmission/constantAbsorptionEmission.C
submodels/absorptionEmissionModel/binaryAbsorptionEmission/binaryAbsorptionEmission.C
submodels/absorptionEmissionModel/greyMeanAbsorptionEmission/greyMeanAbsorptionEmission.C
submodels/absorptionEmissionModel/wideBandAbsorptionEmission/wideBandAbsorptionEmission.C
submodels/absorptionEmissionModel/greyMeanSolidAbsorptionEmission/greyMeanSolidAbsorptionEmission.C
absorptionEmissionModels/absorptionEmissionModel/absorptionEmissionModel.C
absorptionEmissionModels/absorptionEmissionModel/absorptionEmissionModelNew.C
absorptionEmissionModels/noAbsorptionEmission/noAbsorptionEmission.C
absorptionEmissionModels/constantAbsorptionEmission/constantAbsorptionEmission.C
absorptionEmissionModels/binary/binary.C
absorptionEmissionModels/greyMean/greyMean.C
absorptionEmissionModels/wideBand/wideBand.C
absorptionEmissionModels/greyMeanSolid/greyMeanSolid.C
/* Soot model */
submodels/sootModel/sootModel/sootModel.C
submodels/sootModel/sootModel/sootModelNew.C
submodels/sootModel/mixtureFractionSoot/mixtureFractionSoots.C
submodels/sootModel/noSoot/noSoot.C
sootModels/sootModel/sootModel.C
sootModels/sootModel/sootModelNew.C
sootModels/mixtureFraction/mixtureFractions.C
sootModels/noSoot/noSoot.C
/* Boundary conditions */
derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,7 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(absorptionEmissionModel, 0);
defineRunTimeSelectionTable(absorptionEmissionModel, dictionary);
@ -38,7 +38,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::absorptionEmissionModel::absorptionEmissionModel
Foam::radiationModels::absorptionEmissionModel::absorptionEmissionModel
(
const dictionary& dict,
const fvMesh& mesh
@ -51,21 +51,21 @@ Foam::radiation::absorptionEmissionModel::absorptionEmissionModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
Foam::radiation::absorptionEmissionModel::~absorptionEmissionModel()
Foam::radiationModels::absorptionEmissionModel::~absorptionEmissionModel()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::a(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::a(const label bandI) const
{
return aDisp(bandI) + aCont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::aCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::aCont(const label bandI) const
{
return volScalarField::New
(
@ -77,7 +77,7 @@ Foam::radiation::absorptionEmissionModel::aCont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::aDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::aDisp(const label bandI) const
{
return volScalarField::New
(
@ -89,14 +89,14 @@ Foam::radiation::absorptionEmissionModel::aDisp(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::e(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::e(const label bandI) const
{
return eDisp(bandI) + eCont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::eCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::eCont(const label bandI) const
{
return volScalarField::New
(
@ -108,7 +108,7 @@ Foam::radiation::absorptionEmissionModel::eCont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::eDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::eDisp(const label bandI) const
{
return volScalarField::New
(
@ -120,14 +120,14 @@ Foam::radiation::absorptionEmissionModel::eDisp(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::E(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::E(const label bandI) const
{
return EDisp(bandI) + ECont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::ECont(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::ECont(const label bandI) const
{
return volScalarField::New
(
@ -139,7 +139,7 @@ Foam::radiation::absorptionEmissionModel::ECont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::absorptionEmissionModel::EDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModel::EDisp(const label bandI) const
{
return volScalarField::New
(
@ -150,26 +150,26 @@ Foam::radiation::absorptionEmissionModel::EDisp(const label bandI) const
}
Foam::label Foam::radiation::absorptionEmissionModel::nBands() const
Foam::label Foam::radiationModels::absorptionEmissionModel::nBands() const
{
return pTraits<label>::one;
}
const Foam::Vector2D<Foam::scalar>&
Foam::radiation::absorptionEmissionModel::bands(const label n) const
Foam::radiationModels::absorptionEmissionModel::bands(const label n) const
{
return Vector2D<scalar>::one;
}
bool Foam::radiation::absorptionEmissionModel::isGrey() const
bool Foam::radiationModels::absorptionEmissionModel::isGrey() const
{
return false;
}
void Foam::radiation::absorptionEmissionModel::correct
void Foam::radiationModels::absorptionEmissionModel::correct
(
volScalarField& a,
PtrList<volScalarField>& aj

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::absorptionEmissionModel
Foam::radiationModels::absorptionEmissionModel
Description
Model to supply absorption and emission coefficients for radiation
@ -43,7 +43,7 @@ Description
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -181,7 +181,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,8 +28,8 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::radiation::absorptionEmissionModel>
Foam::radiation::absorptionEmissionModel::New
Foam::autoPtr<Foam::radiationModels::absorptionEmissionModel>
Foam::radiationModels::absorptionEmissionModel::New
(
const dictionary& dict,
const fvMesh& mesh

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,30 +23,33 @@ License
\*---------------------------------------------------------------------------*/
#include "binaryAbsorptionEmission.H"
#include "binary.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(binaryAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(binary, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
binaryAbsorptionEmission,
binary,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::binary::binary
(
const dictionary& dict,
const fvMesh& mesh
@ -67,49 +70,67 @@ Foam::radiation::binaryAbsorptionEmission::binaryAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::binaryAbsorptionEmission::~binaryAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::binary::~binary()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::aCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::aCont
(
const label bandI
) const
{
return model1_->aCont(bandI) + model2_->aCont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::aDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::aDisp
(
const label bandI
) const
{
return model1_->aDisp(bandI) + model2_->aDisp(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::eCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::eCont
(
const label bandI
) const
{
return model1_->eCont(bandI) + model2_->eCont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::eDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::eDisp
(
const label bandI
) const
{
return model1_->eDisp(bandI) + model2_->eDisp(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::ECont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::ECont
(
const label bandI
) const
{
return model1_->ECont(bandI) + model2_->ECont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::binaryAbsorptionEmission::EDisp(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::binary::EDisp
(
const label bandI
) const
{
return model1_->EDisp(bandI) + model2_->EDisp(bandI);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,18 +22,18 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::binaryAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::binary
Description
Radiation coefficient based on two absorption models
SourceFiles
binaryAbsorptionEmission.C
binary.C
\*---------------------------------------------------------------------------*/
#ifndef binaryAbsorptionEmission_H
#define binaryAbsorptionEmission_H
#ifndef binary_H
#define binary_H
#include "absorptionEmissionModel.H"
@ -41,14 +41,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class binaryAbsorptionEmission Declaration
Class binary Declaration
\*---------------------------------------------------------------------------*/
class binaryAbsorptionEmission
class binary
:
public absorptionEmissionModel
{
@ -67,17 +69,17 @@ class binaryAbsorptionEmission
public:
//- Runtime type information
TypeName("binaryAbsorptionEmission");
TypeName("binary");
// Constructors
//- Construct from components
binaryAbsorptionEmission(const dictionary& dict, const fvMesh& mesh);
binary(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~binaryAbsorptionEmission();
virtual ~binary();
// Member Functions
@ -114,7 +116,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,23 +30,26 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(constantAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(constant, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
constantAbsorptionEmission,
constant,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::constantAbsorptionEmission::constantAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::constant::constant
(
const dictionary& dict,
const fvMesh& mesh
@ -62,14 +65,17 @@ Foam::radiation::constantAbsorptionEmission::constantAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::constantAbsorptionEmission::~constantAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::constant::~constant()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::constantAbsorptionEmission::aCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::constant::aCont
(
const label bandI
) const
{
return volScalarField::New
(
@ -81,7 +87,10 @@ Foam::radiation::constantAbsorptionEmission::aCont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::constantAbsorptionEmission::eCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::constant::eCont
(
const label bandI
) const
{
return volScalarField::New
(
@ -93,7 +102,10 @@ Foam::radiation::constantAbsorptionEmission::eCont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::constantAbsorptionEmission::ECont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::constant::ECont
(
const label bandI
) const
{
return volScalarField::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::constantAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::constant
Description
Constant radiation absorption and emission coefficients for continuous
@ -42,14 +42,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class constantAbsorptionEmission Declaration
Class constant Declaration
\*---------------------------------------------------------------------------*/
class constantAbsorptionEmission
class constant
:
public absorptionEmissionModel
{
@ -71,17 +73,17 @@ class constantAbsorptionEmission
public:
//- Runtime type information
TypeName("constantAbsorptionEmission");
TypeName("constant");
// Constructors
//- Construct from components
constantAbsorptionEmission(const dictionary& dict, const fvMesh& mesh);
constant(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~constantAbsorptionEmission();
virtual ~constant();
// Member Functions
@ -117,7 +119,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "greyMeanAbsorptionEmission.H"
#include "greyMean.H"
#include "addToRunTimeSelectionTable.H"
#include "unitConversion.H"
#include "extrapolatedCalculatedFvPatchFields.H"
@ -33,35 +33,38 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(greyMeanAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(greyMean, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
greyMeanAbsorptionEmission,
greyMean,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::greyMeanAbsorptionEmission::greyMeanAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::greyMean::greyMean
(
const dictionary& dict,
const fvMesh& mesh
const fvMesh& mesh,
const word& modelName
)
:
absorptionEmissionModel(dict, mesh),
coeffsDict_((dict.optionalSubDict(typeName + "Coeffs"))),
coeffsDict_(dict.subDict(modelName + "Coeffs")),
speciesNames_(0),
specieIndex_(label(0)),
lookUpTablePtr_(),
thermo_(mesh.lookupObject<fluidThermo>(basicThermo::dictName)),
EhrrCoeff_(readScalar(coeffsDict_.lookup("EhrrCoeff"))),
Yj_(nSpecies_)
{
if (!isA<basicSpecieMixture>(thermo_))
@ -71,11 +74,8 @@ Foam::radiation::greyMeanAbsorptionEmission::greyMeanAbsorptionEmission
<< abort(FatalError);
}
label nFunc = 0;
const dictionary& functionDicts = dict.optionalSubDict(typeName + "Coeffs");
forAllConstIter(dictionary, functionDicts, iter)
forAllConstIter(dictionary, coeffsDict_, iter)
{
// safety:
if (!iter().isDict())
@ -168,14 +168,17 @@ Foam::radiation::greyMeanAbsorptionEmission::greyMeanAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::greyMeanAbsorptionEmission::~greyMeanAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::greyMean::~greyMean()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanAbsorptionEmission::aCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::greyMean::aCont
(
const label bandI
) const
{
const basicSpecieMixture& mixture =
dynamic_cast<const basicSpecieMixture&>(thermo_);
@ -249,54 +252,22 @@ Foam::radiation::greyMeanAbsorptionEmission::aCont(const label bandI) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanAbsorptionEmission::eCont(const label bandI) const
Foam::radiationModels::absorptionEmissionModels::greyMean::eCont
(
const label bandI
) const
{
return aCont(bandI);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanAbsorptionEmission::ECont(const label bandI) const
{
tmp<volScalarField> E
Foam::radiationModels::absorptionEmissionModels::greyMean::ECont
(
volScalarField::New
(
"ECont" + name(bandI),
mesh_,
dimensionedScalar(dimMass/dimLength/pow3(dimTime), 0)
)
);
if (mesh_.foundObject<volScalarField>("Qdot"))
const label bandI
) const
{
const volScalarField& Qdot =
mesh_.lookupObject<volScalarField>("Qdot");
if (Qdot.dimensions() == dimEnergy/dimTime)
{
E.ref().primitiveFieldRef() = EhrrCoeff_*Qdot/mesh_.V();
}
else if (Qdot.dimensions() == dimEnergy/dimTime/dimVolume)
{
E.ref().primitiveFieldRef() = EhrrCoeff_*Qdot;
}
else
{
if (debug)
{
WarningInFunction
<< "Incompatible dimensions for Qdot field" << endl;
}
}
}
else
{
WarningInFunction
<< "Qdot field not found in mesh" << endl;
}
return E;
return absorptionEmissionModel::ECont(bandI);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,11 +22,10 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::greyMeanAbsorptionEmission
Foam::radiationModels::absorptionEmission::greyMean
Description
greyMeanAbsorptionEmission radiation absorption and emission coefficients
for continuous phase
greyMean radiation absorption and emission coefficients for continuous phase
The coefficients for the species in the Look up table have to be specified
for use in moles x P [atm], i.e. (k[i] = species[i]*p*9.869231e-6).
@ -43,9 +42,13 @@ Description
The look-up table ("speciesTable") file should be in constant
i.e. dictionary
Example
\verbatim
LookUpTableFileName "speciesTable";
absorptionEmissionModel greyMean;
greyMeanCoeffs
{
lookUpTableFileName "speciesTable";
EhrrCoeff 0.0;
@ -75,15 +78,16 @@ Description
-5.8169e15
);
}
}
\endverbatim
SourceFiles
greyMeanAbsorptionEmission.C
greyMean.C
\*---------------------------------------------------------------------------*/
#ifndef greyMeanAbsorptionEmission_H
#define greyMeanAbsorptionEmission_H
#ifndef greyMean_H
#define greyMean_H
#include "interpolationLookUpTable.H"
#include "absorptionEmissionModel.H"
@ -95,14 +99,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class greyMeanAbsorptionEmission Declaration
Class greyMean Declaration
\*---------------------------------------------------------------------------*/
class greyMeanAbsorptionEmission
class greyMean
:
public absorptionEmissionModel
{
@ -117,9 +123,9 @@ public:
absorptionCoeffs coeffs_[nSpecies_];
private:
protected:
// Private data
// Protected data
//- Absorption model dictionary
dictionary coeffsDict_;
@ -136,9 +142,6 @@ private:
//- SLG thermo package
const fluidThermo& thermo_;
//- Emission constant coefficient
const scalar EhrrCoeff_;
//- Pointer list of species in the registry involved in the absorption
UPtrList<volScalarField> Yj_;
@ -146,43 +149,36 @@ private:
public:
//- Runtime type information
TypeName("greyMeanAbsorptionEmission");
TypeName("greyMean");
// Constructors
//- Construct from components
greyMeanAbsorptionEmission(const dictionary& dict, const fvMesh& mesh);
greyMean
(
const dictionary& dict,
const fvMesh& mesh,
const word& modelName=typeName
);
//- Destructor
virtual ~greyMeanAbsorptionEmission();
virtual ~greyMean();
// Member Functions
// Access
// Absorption coefficient
//- Absorption coefficient for continuous phase
tmp<volScalarField> aCont(const label bandI = 0) const;
// Emission coefficient
//- Emission coefficient for continuous phase
tmp<volScalarField> eCont(const label bandI = 0) const;
// Emission contribution
//- Emission contribution for continuous phase
tmp<volScalarField> ECont(const label bandI = 0) const;
// Member Functions
//-
inline bool isGrey() const
{
return true;
@ -192,7 +188,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,33 +23,39 @@ License
\*---------------------------------------------------------------------------*/
#include "greyMeanSolidAbsorptionEmission.H"
#include "greyMeanSolid.H"
#include "addToRunTimeSelectionTable.H"
#include "unitConversion.H"
#include "extrapolatedCalculatedFvPatchFields.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(greyMeanSolidAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(greyMeanSolid, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
greyMeanSolidAbsorptionEmission,
greyMeanSolid,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * //
Foam::tmp<Foam::scalarField> Foam::radiation::
greyMeanSolidAbsorptionEmission::X(const word specie) const
Foam::tmp<Foam::scalarField>
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::X
(
const word specie
) const
{
const volScalarField& T = thermo_.T();
const volScalarField& p = thermo_.p();
@ -82,8 +88,7 @@ greyMeanSolidAbsorptionEmission::X(const word specie) const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::greyMeanSolidAbsorptionEmission::
greyMeanSolidAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::greyMeanSolid
(
const dictionary& dict,
const fvMesh& mesh
@ -133,16 +138,17 @@ greyMeanSolidAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::greyMeanSolidAbsorptionEmission::
~greyMeanSolidAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::~greyMeanSolid()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanSolidAbsorptionEmission::
calc(const label propertyId) const
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::calc
(
const label propertyId
) const
{
tmp<volScalarField> ta
(
@ -178,7 +184,7 @@ calc(const label propertyId) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanSolidAbsorptionEmission::eCont
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::eCont
(
const label bandI
) const
@ -188,7 +194,7 @@ Foam::radiation::greyMeanSolidAbsorptionEmission::eCont
Foam::tmp<Foam::volScalarField>
Foam::radiation::greyMeanSolidAbsorptionEmission::aCont
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid::aCont
(
const label bandI
) const

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,11 +22,10 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::greyMeanSolidAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::greyMeanSolid
Description
greyMeanSolidAbsorptionEmission radiation absorption and emission
coefficients for continuous phase
greyMeanSolid radiation absorption and emission coefficients for solid phase
The coefficients for the species in the Look up table have to be specified
for use in moles x P [atm], i.e. (k[i] = species[i]*p*9.869231e-6).
@ -42,12 +41,12 @@ Description
name in the look-up table or the name of the field being solved
SourceFiles
greyMeanSolidAbsorptionEmission.C
greyMeanSolid.C
\*---------------------------------------------------------------------------*/
#ifndef greyMeanSolidAbsorptionEmission_H
#define greyMeanSolidAbsorptionEmission_H
#ifndef greyMeanSolid_H
#define greyMeanSolid_H
#include "absorptionEmissionModel.H"
#include "solidThermo.H"
@ -57,14 +56,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class greyMeanSolidAbsorptionEmission Declaration
Class greyMeanSolid Declaration
\*---------------------------------------------------------------------------*/
class greyMeanSolidAbsorptionEmission
class greyMeanSolid
:
public absorptionEmissionModel
{
@ -108,13 +109,13 @@ private:
public:
//- Runtime type information
TypeName("greyMeanSolidAbsorptionEmission");
TypeName("greyMeanSolid");
// Constructors
//- Construct from components
greyMeanSolidAbsorptionEmission
greyMeanSolid
(
const dictionary& dict,
const fvMesh& mesh
@ -122,7 +123,7 @@ public:
//- Destructor
virtual ~greyMeanSolidAbsorptionEmission();
virtual ~greyMeanSolid();
// Member Functions
@ -152,7 +153,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,7 +30,9 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(noAbsorptionEmission, 0);
@ -42,11 +44,13 @@ namespace Foam
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::noAbsorptionEmission::noAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::noAbsorptionEmission::
noAbsorptionEmission
(
const dictionary& dict,
const fvMesh& mesh
@ -58,7 +62,8 @@ Foam::radiation::noAbsorptionEmission::noAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::noAbsorptionEmission::~noAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::noAbsorptionEmission::
~noAbsorptionEmission()
{}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::noAbsorptionEmission
Foam::radiationModels::absorptionEmissionsModels::noAbsorptionEmission
Description
Dummy absorption-emission model for 'none'
@ -41,7 +41,9 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
@ -72,7 +74,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "wideBandAbsorptionEmission.H"
#include "wideBand.H"
#include "addToRunTimeSelectionTable.H"
#include "basicSpecieMixture.H"
#include "unitConversion.H"
@ -32,30 +32,34 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(wideBandAbsorptionEmission, 0);
namespace absorptionEmissionModels
{
defineTypeNameAndDebug(wideBand, 0);
addToRunTimeSelectionTable
(
absorptionEmissionModel,
wideBandAbsorptionEmission,
wideBand,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::wideBandAbsorptionEmission::wideBandAbsorptionEmission
Foam::radiationModels::absorptionEmissionModels::wideBand::wideBand
(
const dictionary& dict,
const fvMesh& mesh
const fvMesh& mesh,
const word& modelName
)
:
absorptionEmissionModel(dict, mesh),
coeffsDict_((dict.optionalSubDict(typeName + "Coeffs"))),
coeffsDict_(dict.subDict(modelName + "Coeffs")),
speciesNames_(0),
specieIndex_(label(0)),
lookUpTablePtr_(),
@ -64,24 +68,19 @@ Foam::radiation::wideBandAbsorptionEmission::wideBandAbsorptionEmission
totalWaveLength_(0)
{
label nBand = 0;
const dictionary& functionDicts = dict.optionalSubDict(typeName +"Coeffs");
forAllConstIter(dictionary, functionDicts, iter)
forAllConstIter(dictionary, coeffsDict_, iter)
{
// safety:
if (!iter().isDict())
{
continue;
}
if (!iter().isDict()) continue;
const dictionary& dict = iter().dict();
dict.lookup("bandLimits") >> iBands_[nBand];
dict.lookup("EhrrCoeff") >> iEhrrCoeffs_[nBand];
totalWaveLength_ += iBands_[nBand][1] - iBands_[nBand][0];
label nSpec = 0;
const dictionary& specDicts = dict.subDict("species");
forAllConstIter(dictionary, specDicts, iter)
forAllConstIter(dictionary, dict, iter)
{
if (!iter().isDict()) continue;
const word& key = iter().keyword();
if (nBand == 0)
{
@ -96,7 +95,7 @@ Foam::radiation::wideBandAbsorptionEmission::wideBandAbsorptionEmission
<< nl << exit(FatalError);
}
}
coeffs_[nBand][nSpec].initialise(specDicts.subDict(key));
coeffs_[nBand][nSpec].initialise(dict.subDict(key));
nSpec++;
}
nBand++;
@ -184,14 +183,17 @@ Foam::radiation::wideBandAbsorptionEmission::wideBandAbsorptionEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::wideBandAbsorptionEmission::~wideBandAbsorptionEmission()
Foam::radiationModels::absorptionEmissionModels::wideBand::~wideBand()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::wideBandAbsorptionEmission::aCont(const label bandi) const
Foam::radiationModels::absorptionEmissionModels::wideBand::aCont
(
const label bandi
) const
{
const basicSpecieMixture& mixture =
dynamic_cast<const basicSpecieMixture&>(thermo_);
@ -267,59 +269,26 @@ Foam::radiation::wideBandAbsorptionEmission::aCont(const label bandi) const
Foam::tmp<Foam::volScalarField>
Foam::radiation::wideBandAbsorptionEmission::eCont(const label bandi) const
Foam::radiationModels::absorptionEmissionModels::wideBand::eCont
(
const label bandi
) const
{
return aCont(bandi);
}
Foam::tmp<Foam::volScalarField>
Foam::radiation::wideBandAbsorptionEmission::ECont(const label bandi) const
{
tmp<volScalarField> E
Foam::radiationModels::absorptionEmissionModels::wideBand::ECont
(
volScalarField::New
(
"E",
mesh(),
dimensionedScalar(dimMass/dimLength/pow3(dimTime), 0)
)
);
if (mesh().foundObject<volScalarField>("Qdot"))
const label bandi
) const
{
const volScalarField& Qdot =
mesh().lookupObject<volScalarField>("Qdot");
if (Qdot.dimensions() == dimEnergy/dimTime)
{
E.ref().primitiveFieldRef() =
iEhrrCoeffs_[bandi]
*Qdot.primitiveField()
*(iBands_[bandi][1] - iBands_[bandi][0])
/totalWaveLength_
/mesh_.V();
}
else if (Qdot.dimensions() == dimEnergy/dimTime/dimVolume)
{
E.ref().primitiveFieldRef() =
iEhrrCoeffs_[bandi]
*Qdot.primitiveField()
*(iBands_[bandi][1] - iBands_[bandi][0])
/totalWaveLength_;
}
else
{
WarningInFunction
<< "Incompatible dimensions for Qdot field" << endl;
}
}
return E;
return absorptionEmissionModel::ECont(bandi);
}
void Foam::radiation::wideBandAbsorptionEmission::correct
void Foam::radiationModels::absorptionEmissionModels::wideBand::correct
(
volScalarField& a,
PtrList<volScalarField>& aLambda

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,17 +22,16 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::wideBandAbsorptionEmission
Foam::radiationModels::absorptionEmission::wideBand
Description
wideBandAbsorptionEmission radiation absorption and emission coefficients
for continuous phase.
wideBand radiation absorption and emission coefficients for continuous
phase.
All the bands should have the same number of species and have to be entered
in the same order.
There is no check of continuity of the bands. They should not ovelap or
There is no check of continuity of the bands. They should not overlap or
have gaps.
The emission constant proportionality is specified per band (EhrrCoeff).
@ -40,64 +39,67 @@ Description
The coefficients for the species have to be specified for use in
moles x P [atm], i.e. (k[i] = species[i]*p*9.869231e-6).
The look Up table file should be in the constant directory.
The lookup table file should be in the constant directory.
band dictionary:
Example
\verbatim
absorptionEmissionModel wideBand;
wideBandCoeffs
{
band0
{
bandLimits (1.0e-6 2.63e-6);
EhrrCoeff 0.0;
species
{
bandLimits (1e-6 2.63e-6);
CH4
{
Tcommon 300.;
Tlow 300.;
Thigh 2500.;
Tcommon 300;
Tlow 300;
Thigh 2500;
invTemp false;
loTcoeffs (0 0 0 0 0 0) ;
hiTcoeffs (.1 0 0 0 0 0);
hiTcoeffs (0.1 0 0 0 0 0);
}
CO2
{
Tcommon 300.;
Tlow 300.;
Thigh 2500.;
Tcommon 300;
Tlow 300;
Thigh 2500;
invTemp false;
loTcoeffs (0 0 0 0 0 0) ;
hiTcoeffs (.1 0 0 0 0 0);
hiTcoeffs (0.1 0 0 0 0 0);
}
H2O
{
Tcommon 300.;
Tlow 300.;
Thigh 2500.;
Tcommon 300;
Tlow 300;
Thigh 2500;
invTemp false;
loTcoeffs (0 0 0 0 0 0);
hiTcoeffs (.1 0 0 0 0 0);
hiTcoeffs (0.1 0 0 0 0 0);
}
Ysoot
{
Tcommon 300.;
Tlow 300.;
Thigh 2500.;
Tcommon 300;
Tlow 300;
Thigh 2500;
invTemp false;
loTcoeffs (0 0 0 0 0 0);
hiTcoeffs (.1 0 0 0 0 0);
hiTcoeffs (0.1 0 0 0 0 0);
}
}
}
\endverbatim
SourceFiles
wideBandAbsorptionEmission.C
wideBand.C
\*---------------------------------------------------------------------------*/
#ifndef wideBandAbsorptionEmission_H
#define wideBandAbsorptionEmission_H
#ifndef wideBand_H
#define wideBand_H
#include "interpolationLookUpTable.H"
#include "absorptionEmissionModel.H"
@ -109,14 +111,16 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace absorptionEmissionModels
{
/*---------------------------------------------------------------------------*\
Class wideBandAbsorptionEmission Declaration
Class wideBand Declaration
\*---------------------------------------------------------------------------*/
class wideBandAbsorptionEmission
class wideBand
:
public absorptionEmissionModel
{
@ -134,9 +138,9 @@ public:
FixedList<FixedList<absorptionCoeffs, nSpecies_>, maxBands_> coeffs_;
private:
protected:
// Private data
// Protected data
//- Absorption model dictionary
dictionary coeffsDict_;
@ -150,9 +154,6 @@ private:
//- Bands
FixedList<Vector2D<scalar>, maxBands_> iBands_;
//- Proportion of the heat released rate emitted
FixedList<scalar, maxBands_> iEhrrCoeffs_;
//- Look-up table of species related to ft
mutable autoPtr<interpolationLookUpTable<scalar>> lookUpTablePtr_;
@ -172,17 +173,22 @@ private:
public:
//- Runtime type information
TypeName("wideBandAbsorptionEmission");
TypeName("wideBand");
// Constructors
//- Construct from components
wideBandAbsorptionEmission(const dictionary& dict, const fvMesh& mesh);
wideBand
(
const dictionary& dict,
const fvMesh& mesh,
const word& modelName=typeName
);
//- Destructor
virtual ~wideBandAbsorptionEmission();
virtual ~wideBand();
// Member Functions
@ -196,7 +202,7 @@ public:
//- Emission contribution for continuous phase
tmp<volScalarField> ECont(const label bandi = 0) const;
//-
inline bool isGrey() const
{
return false;
@ -225,7 +231,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace absorptionEmissionModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -32,8 +32,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::MarshakRadiationFvPatchScalarField::
MarshakRadiationFvPatchScalarField
Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -49,8 +48,7 @@ MarshakRadiationFvPatchScalarField
}
Foam::radiation::MarshakRadiationFvPatchScalarField::
MarshakRadiationFvPatchScalarField
Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
(
const MarshakRadiationFvPatchScalarField& ptf,
const fvPatch& p,
@ -70,8 +68,7 @@ MarshakRadiationFvPatchScalarField
{}
Foam::radiation::MarshakRadiationFvPatchScalarField::
MarshakRadiationFvPatchScalarField
Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -100,8 +97,7 @@ MarshakRadiationFvPatchScalarField
}
Foam::radiation::MarshakRadiationFvPatchScalarField::
MarshakRadiationFvPatchScalarField
Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
(
const MarshakRadiationFvPatchScalarField& ptf
)
@ -117,8 +113,7 @@ MarshakRadiationFvPatchScalarField
{}
Foam::radiation::MarshakRadiationFvPatchScalarField::
MarshakRadiationFvPatchScalarField
Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField
(
const MarshakRadiationFvPatchScalarField& ptf,
const DimensionedField<scalar, volMesh>& iF
@ -137,7 +132,7 @@ MarshakRadiationFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::MarshakRadiationFvPatchScalarField::autoMap
void Foam::MarshakRadiationFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
@ -147,7 +142,7 @@ void Foam::radiation::MarshakRadiationFvPatchScalarField::autoMap
}
void Foam::radiation::MarshakRadiationFvPatchScalarField::rmap
void Foam::MarshakRadiationFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -158,7 +153,7 @@ void Foam::radiation::MarshakRadiationFvPatchScalarField::rmap
}
void Foam::radiation::MarshakRadiationFvPatchScalarField::updateCoeffs()
void Foam::MarshakRadiationFvPatchScalarField::updateCoeffs()
{
if (this->updated())
{
@ -195,7 +190,7 @@ void Foam::radiation::MarshakRadiationFvPatchScalarField::updateCoeffs()
}
void Foam::radiation::MarshakRadiationFvPatchScalarField::write
void Foam::MarshakRadiationFvPatchScalarField::write
(
Ostream& os
) const
@ -209,8 +204,6 @@ void Foam::radiation::MarshakRadiationFvPatchScalarField::write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
makePatchTypeField
(
@ -218,7 +211,6 @@ namespace radiation
MarshakRadiationFvPatchScalarField
);
}
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -66,8 +66,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class MarshakRadiationFvPatchScalarField Declaration
@ -202,7 +200,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -32,7 +32,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTemperatureFvPatchScalarField
(
const fvPatch& p,
@ -49,7 +49,7 @@ MarshakRadiationFixedTemperatureFvPatchScalarField
}
Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTemperatureFvPatchScalarField
(
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
@ -70,7 +70,7 @@ MarshakRadiationFixedTemperatureFvPatchScalarField
{}
Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTemperatureFvPatchScalarField
(
const fvPatch& p,
@ -94,7 +94,7 @@ MarshakRadiationFixedTemperatureFvPatchScalarField
}
Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTemperatureFvPatchScalarField
(
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf
@ -111,7 +111,7 @@ MarshakRadiationFixedTemperatureFvPatchScalarField
{}
Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTemperatureFvPatchScalarField
(
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
@ -131,8 +131,7 @@ MarshakRadiationFixedTemperatureFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
autoMap
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
@ -143,7 +142,7 @@ autoMap
}
void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::rmap
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -158,8 +157,7 @@ void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::rmap
}
void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::
updateCoeffs()
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs()
{
if (this->updated())
{
@ -192,7 +190,7 @@ updateCoeffs()
}
void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::write
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::write
(
Ostream& os
) const
@ -206,8 +204,6 @@ void Foam::radiation::MarshakRadiationFixedTemperatureFvPatchScalarField::write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
makePatchTypeField
(
@ -215,7 +211,6 @@ namespace radiation
MarshakRadiationFixedTemperatureFvPatchScalarField
);
}
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -66,8 +66,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class MarshakRadiationFixedTemperatureFvPatchScalarField Declaration
@ -206,7 +204,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -36,7 +36,7 @@ using namespace Foam::constant::mathematical;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
Foam::greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
const fvPatch& p,
@ -53,7 +53,7 @@ greyDiffusiveRadiationMixedFvPatchScalarField
}
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
Foam::greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
const greyDiffusiveRadiationMixedFvPatchScalarField& ptf,
@ -74,7 +74,7 @@ greyDiffusiveRadiationMixedFvPatchScalarField
{}
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
Foam::greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
const fvPatch& p,
@ -107,7 +107,7 @@ greyDiffusiveRadiationMixedFvPatchScalarField
}
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
Foam::greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
const greyDiffusiveRadiationMixedFvPatchScalarField& ptf
@ -124,7 +124,7 @@ greyDiffusiveRadiationMixedFvPatchScalarField
{}
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
Foam::greyDiffusiveRadiationMixedFvPatchScalarField::
greyDiffusiveRadiationMixedFvPatchScalarField
(
const greyDiffusiveRadiationMixedFvPatchScalarField& ptf,
@ -144,7 +144,7 @@ greyDiffusiveRadiationMixedFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::autoMap
void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
@ -154,7 +154,7 @@ void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::autoMap
}
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::rmap
void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -165,8 +165,7 @@ void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::rmap
}
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
updateCoeffs()
void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
{
if (this->updated())
{
@ -181,7 +180,8 @@ updateCoeffs()
const scalarField& Tp =
patch().lookupPatchField<volScalarField, scalar>(TName_);
const fvDOM& dom = db().lookupObject<fvDOM>("radiationProperties");
const radiationModels::fvDOM& dom =
db().lookupObject<radiationModels::fvDOM>("radiationProperties");
label rayId = -1;
label lambdaId = -1;
@ -199,8 +199,8 @@ updateCoeffs()
scalarField& Iw = *this;
const vectorField n(patch().nf());
radiativeIntensityRay& ray =
const_cast<radiativeIntensityRay&>(dom.IRay(rayId));
radiationModels::radiativeIntensityRay& ray =
const_cast<radiationModels::radiativeIntensityRay&>(dom.IRay(rayId));
const scalarField nAve(n & ray.dAve());
@ -258,7 +258,7 @@ updateCoeffs()
}
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::write
void Foam::greyDiffusiveRadiationMixedFvPatchScalarField::write
(
Ostream& os
) const
@ -272,8 +272,6 @@ void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
makePatchTypeField
(
@ -281,7 +279,6 @@ namespace radiation
greyDiffusiveRadiationMixedFvPatchScalarField
);
}
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField
Foam::greyDiffusiveRadiationMixedFvPatchScalarField
Description
This boundary condition provides a grey-diffuse condition for radiation
@ -50,8 +50,8 @@ Usage
See also
Foam::radiationCoupledBase
Foam::radiation::radiationModel
Foam::radiation::fvDOM
Foam::radiationModel
Foam::radiationModels::fvDOM
Foam::mixedFvPatchField
SourceFiles
@ -69,8 +69,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class greyDiffusiveRadiationMixedFvPatchScalarField Declaration
@ -203,7 +201,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,7 +31,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
const fvPatch& p,
@ -44,7 +44,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
{}
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
const greyDiffusiveViewFactorFixedValueFvPatchScalarField& ptf,
@ -65,7 +65,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
{}
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
const fvPatch& p,
@ -92,7 +92,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
}
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
const greyDiffusiveViewFactorFixedValueFvPatchScalarField& ptf
@ -109,7 +109,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
{}
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
greyDiffusiveViewFactorFixedValueFvPatchScalarField
(
const greyDiffusiveViewFactorFixedValueFvPatchScalarField& ptf,
@ -129,8 +129,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
autoMap
void Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
@ -141,7 +140,7 @@ autoMap
}
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::rmap
void Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -155,8 +154,7 @@ void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::rmap
qro_.rmap(mrptf.qro_, addr);
}
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
updateCoeffs()
void Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::updateCoeffs()
{
if (this->updated())
{
@ -182,8 +180,7 @@ updateCoeffs()
}
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
write
void Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField::write
(
Ostream& os
) const
@ -197,8 +194,6 @@ write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
makePatchTypeField
(
@ -206,7 +201,6 @@ namespace radiation
greyDiffusiveViewFactorFixedValueFvPatchScalarField
);
}
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField
Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField
Description
This boundary condition provides a grey-diffuse condition for radiative
@ -48,8 +48,8 @@ Usage
See also
Foam::radiationCoupledBase
Foam::radiation::radiationModel
Foam::radiation::viewFactor
Foam::radiationModel
Foam::radiationModels::viewFactor
Foam::fixedValueFvPatchField
SourceFiles
@ -67,8 +67,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class greyDiffusiveViewFactorFixedValueFvPatchScalarField declaration
@ -197,7 +195,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -34,17 +34,14 @@ License
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
defineTypeNameAndDebug(radiationCoupledBase, 0);
}
}
template<>
const char* Foam::NamedEnum
<
Foam::radiation::radiationCoupledBase::emissivityMethodType,
Foam::radiationCoupledBase::emissivityMethodType,
2
>::names[] =
{
@ -54,14 +51,14 @@ const char* Foam::NamedEnum
const Foam::NamedEnum
<
Foam::radiation::radiationCoupledBase::emissivityMethodType,
Foam::radiationCoupledBase::emissivityMethodType,
2
> Foam::radiation::radiationCoupledBase::emissivityMethodTypeNames_;
> Foam::radiationCoupledBase::emissivityMethodTypeNames_;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::radiationCoupledBase::radiationCoupledBase
Foam::radiationCoupledBase::radiationCoupledBase
(
const fvPatch& patch,
const word& calculationType,
@ -74,7 +71,7 @@ Foam::radiation::radiationCoupledBase::radiationCoupledBase
{}
Foam::radiation::radiationCoupledBase::radiationCoupledBase
Foam::radiationCoupledBase::radiationCoupledBase
(
const fvPatch& patch,
const word& calculationType,
@ -88,7 +85,7 @@ Foam::radiation::radiationCoupledBase::radiationCoupledBase
{}
Foam::radiation::radiationCoupledBase::radiationCoupledBase
Foam::radiationCoupledBase::radiationCoupledBase
(
const fvPatch& patch,
const dictionary& dict
@ -139,13 +136,13 @@ Foam::radiation::radiationCoupledBase::radiationCoupledBase
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
Foam::radiation::radiationCoupledBase::~radiationCoupledBase()
Foam::radiationCoupledBase::~radiationCoupledBase()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::scalarField Foam::radiation::radiationCoupledBase::emissivity() const
Foam::scalarField Foam::radiationCoupledBase::emissivity() const
{
switch (method_)
{
@ -157,8 +154,8 @@ Foam::scalarField Foam::radiation::radiationCoupledBase::emissivity() const
const polyMesh& nbrMesh = mpp.sampleMesh();
const radiation::opaqueSolid& radiation =
nbrMesh.lookupObject<radiation::opaqueSolid>
const radiationModels::opaqueSolid& radiation =
nbrMesh.lookupObject<radiationModels::opaqueSolid>
(
"radiationProperties"
);
@ -205,16 +202,13 @@ Foam::scalarField Foam::radiation::radiationCoupledBase::emissivity() const
}
void Foam::radiation::radiationCoupledBase::autoMap
(
const fvPatchFieldMapper& m
)
void Foam::radiationCoupledBase::autoMap(const fvPatchFieldMapper& m)
{
emissivity_.autoMap(m);
}
void Foam::radiation::radiationCoupledBase::rmap
void Foam::radiationCoupledBase::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -227,7 +221,7 @@ void Foam::radiation::radiationCoupledBase::rmap
}
void Foam::radiation::radiationCoupledBase::write(Ostream& os) const
void Foam::radiationCoupledBase::write(Ostream& os) const
{
writeEntry(os, "emissivityMode", emissivityMethodTypeNames_[method_]);
emissivity_.writeEntry("emissivity", os);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -48,8 +48,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class radiationCoupledBase Declaration
@ -165,7 +163,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,7 +29,7 @@ License
#include "volFields.H"
#include "fvDOM.H"
#include "wideBandAbsorptionEmission.H"
#include "wideBand.H"
#include "constants.H"
using namespace Foam::constant;
@ -37,7 +37,7 @@ using namespace Foam::constant::mathematical;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::
wideBandDiffusiveRadiationMixedFvPatchScalarField
(
const fvPatch& p,
@ -54,7 +54,7 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
}
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::
wideBandDiffusiveRadiationMixedFvPatchScalarField
(
const wideBandDiffusiveRadiationMixedFvPatchScalarField& ptf,
@ -75,7 +75,7 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
{}
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::
wideBandDiffusiveRadiationMixedFvPatchScalarField
(
const fvPatch& p,
@ -111,7 +111,7 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
}
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::
wideBandDiffusiveRadiationMixedFvPatchScalarField
(
const wideBandDiffusiveRadiationMixedFvPatchScalarField& ptf
@ -128,7 +128,7 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
{}
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::
wideBandDiffusiveRadiationMixedFvPatchScalarField
(
const wideBandDiffusiveRadiationMixedFvPatchScalarField& ptf,
@ -148,8 +148,7 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
autoMap
void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
@ -159,7 +158,7 @@ autoMap
}
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::rmap
void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
@ -169,8 +168,8 @@ void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::rmap
radiationCoupledBase::rmap(ptf, addr);
}
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
updateCoeffs()
void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs()
{
if (this->updated())
{
@ -182,10 +181,8 @@ updateCoeffs()
int oldTag = UPstream::msgType();
UPstream::msgType() = oldTag+1;
const radiationModel& radiation =
db().lookupObject<radiationModel>("radiationProperties");
const fvDOM& dom(refCast<const fvDOM>(radiation));
const radiationModels::fvDOM& dom =
db().lookupObject<radiationModels::fvDOM>("radiationProperties");
label rayId = -1;
label lambdaId = -1;
@ -203,8 +200,8 @@ updateCoeffs()
scalarField& Iw = *this;
const vectorField n(patch().Sf()/patch().magSf());
radiativeIntensityRay& ray =
const_cast<radiativeIntensityRay&>(dom.IRay(rayId));
radiationModels::radiativeIntensityRay& ray =
const_cast<radiationModels::radiativeIntensityRay&>(dom.IRay(rayId));
const scalarField nAve(n & ray.dAve());
@ -266,7 +263,7 @@ updateCoeffs()
}
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::write
void Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField::write
(
Ostream& os
) const
@ -280,8 +277,6 @@ void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
makePatchTypeField
(
@ -289,7 +284,6 @@ namespace radiation
wideBandDiffusiveRadiationMixedFvPatchScalarField
);
}
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField
Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField
Description
This boundary condition provides a wide-band, diffusive radiation
@ -62,8 +62,6 @@ SourceFiles
namespace Foam
{
namespace radiation
{
/*---------------------------------------------------------------------------*\
Class wideBandDiffusiveRadiationMixedFvPatchScalarField Declaration
@ -195,7 +193,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -65,7 +65,7 @@ Foam::fv::radiation::radiation
fieldNames_[0] = thermo.he().name();
applied_.setSize(fieldNames_.size(), false);
radiation_ = Foam::radiation::radiationModel::New(thermo.T());
radiation_ = radiationModel::New(thermo.T());
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -66,7 +66,7 @@ class radiation
// Private data
//- The radiation model pointer
autoPtr<Foam::radiation::radiationModel> radiation_;
autoPtr<radiationModel> radiation_;
// Private Member Functions

View File

@ -1,7 +1,4 @@
autoPtr<radiation::radiationModel> radiation
(
radiation::radiationModel::New(T)
);
autoPtr<radiationModel> radiation(radiationModel::New(T));
dimensionedScalar rhoCpRef
(
@ -10,7 +7,7 @@
1.0
);
if (!isType<radiation::noRadiation>(radiation()))
if (!isType<radiationModels::noRadiation>(radiation()))
{
IOdictionary transportProperties
(

View File

@ -0,0 +1 @@
autoPtr<radiationModel> radiation(radiationModel::New(thermo.T()));

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,7 @@ using namespace Foam::constant;
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(P1, 0);
addToRadiationRunTimeSelectionTables(P1);
@ -47,7 +47,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::P1::P1(const volScalarField& T)
Foam::radiationModels::P1::P1(const volScalarField& T)
:
radiationModel(typeName, T),
G_
@ -117,7 +117,7 @@ Foam::radiation::P1::P1(const volScalarField& T)
{}
Foam::radiation::P1::P1(const dictionary& dict, const volScalarField& T)
Foam::radiationModels::P1::P1(const dictionary& dict, const volScalarField& T)
:
radiationModel(typeName, dict, T),
G_
@ -189,13 +189,13 @@ Foam::radiation::P1::P1(const dictionary& dict, const volScalarField& T)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::P1::~P1()
Foam::radiationModels::P1::~P1()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::radiation::P1::read()
bool Foam::radiationModels::P1::read()
{
if (radiationModel::read())
{
@ -210,7 +210,7 @@ bool Foam::radiation::P1::read()
}
void Foam::radiation::P1::calculate()
void Foam::radiationModels::P1::calculate()
{
a_ = absorptionEmission_->a();
e_ = absorptionEmission_->e();
@ -257,7 +257,7 @@ void Foam::radiation::P1::calculate()
}
Foam::tmp<Foam::volScalarField> Foam::radiation::P1::Rp() const
Foam::tmp<Foam::volScalarField> Foam::radiationModels::P1::Rp() const
{
return volScalarField::New
(
@ -268,7 +268,7 @@ Foam::tmp<Foam::volScalarField> Foam::radiation::P1::Rp() const
Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh>>
Foam::radiation::P1::Ru() const
Foam::radiationModels::P1::Ru() const
{
const volScalarField::Internal& G =
G_();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::P1
Foam::radiationModels::P1
Description
Works well for combustion applications where optical thickness, tau is
@ -48,7 +48,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -128,7 +128,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,13 +28,13 @@ License
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
Foam::radiation::absorptionCoeffs::~absorptionCoeffs()
Foam::radiationModels::absorptionCoeffs::~absorptionCoeffs()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::absorptionCoeffs::checkT(const scalar T) const
void Foam::radiationModels::absorptionCoeffs::checkT(const scalar T) const
{
if (T < Tlow_ || T > Thigh_)
{
@ -46,8 +46,8 @@ void Foam::radiation::absorptionCoeffs::checkT(const scalar T) const
}
const Foam::radiation::absorptionCoeffs::coeffArray&
Foam::radiation::absorptionCoeffs::coeffs
const Foam::radiationModels::absorptionCoeffs::coeffArray&
Foam::radiationModels::absorptionCoeffs::coeffs
(
const scalar T
) const
@ -65,7 +65,7 @@ Foam::radiation::absorptionCoeffs::coeffs
}
void Foam::radiation::absorptionCoeffs::initialise(const dictionary& dict)
void Foam::radiationModels::absorptionCoeffs::initialise(const dictionary& dict)
{
dict.lookup("Tcommon") >> Tcommon_;
dict.lookup("Tlow") >> Tlow_;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -25,8 +25,8 @@ Class
Foam::absorptionCoeffs
Description
Absorption coefficients class used in greyMeanAbsorptionEmission and
wideBandAbsorptionEmission
Absorption coefficients class used in greyMean and wideBand
absorptionEmission models
SourceFiles
absorptionCoeffs.C
@ -41,9 +41,10 @@ SourceFiles
#include "IOdictionary.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -126,7 +127,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
} // End namespace radiation
} // End namespace radiationModels
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,39 +23,39 @@ License
\*---------------------------------------------------------------------------*/
inline bool Foam::radiation::absorptionCoeffs::invTemp() const
inline bool Foam::radiationModels::absorptionCoeffs::invTemp() const
{
return invTemp_;
}
inline Foam::scalar Foam::radiation::absorptionCoeffs::Tcommon() const
inline Foam::scalar Foam::radiationModels::absorptionCoeffs::Tcommon() const
{
return Tcommon_;
}
inline Foam::scalar Foam::radiation::absorptionCoeffs::Tlow() const
inline Foam::scalar Foam::radiationModels::absorptionCoeffs::Tlow() const
{
return Tlow_;
}
inline Foam::scalar Foam::radiation::absorptionCoeffs::Thigh() const
inline Foam::scalar Foam::radiationModels::absorptionCoeffs::Thigh() const
{
return Thigh_;
}
inline const Foam::radiation::absorptionCoeffs::coeffArray&
Foam::radiation::absorptionCoeffs::highACoeffs() const
inline const Foam::radiationModels::absorptionCoeffs::coeffArray&
Foam::radiationModels::absorptionCoeffs::highACoeffs() const
{
return highACoeffs_;
}
inline const Foam::radiation::absorptionCoeffs::coeffArray&
Foam::radiation::absorptionCoeffs::lowACoeffs() const
inline const Foam::radiationModels::absorptionCoeffs::coeffArray&
Foam::radiationModels::absorptionCoeffs::lowACoeffs() const
{
return lowACoeffs_;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,7 +31,7 @@ using namespace Foam::constant;
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
const Foam::List<Foam::Tuple2<Foam::scalar, Foam::scalar>>
Foam::radiation::blackBodyEmission::emissivePowerTable
Foam::radiationModels::blackBodyEmission::emissivePowerTable
(
IStringStream
(
@ -140,7 +140,7 @@ Foam::radiation::blackBodyEmission::emissivePowerTable
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::blackBodyEmission::blackBodyEmission
Foam::radiationModels::blackBodyEmission::blackBodyEmission
(
const label nLambda,
const volScalarField& T
@ -182,13 +182,13 @@ Foam::radiation::blackBodyEmission::blackBodyEmission
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::blackBodyEmission::~blackBodyEmission()
Foam::radiationModels::blackBodyEmission::~blackBodyEmission()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::scalar Foam::radiation::blackBodyEmission::fLambdaT
Foam::scalar Foam::radiationModels::blackBodyEmission::fLambdaT
(
const scalar lambdaT
) const
@ -198,7 +198,7 @@ Foam::scalar Foam::radiation::blackBodyEmission::fLambdaT
Foam::tmp<Foam::volScalarField>
Foam::radiation::blackBodyEmission::deltaLambdaT
Foam::radiationModels::blackBodyEmission::deltaLambdaT
(
const volScalarField& T,
const Vector2D<scalar>& band
@ -229,7 +229,7 @@ Foam::radiation::blackBodyEmission::deltaLambdaT
Foam::tmp<Foam::volScalarField>
Foam::radiation::blackBodyEmission::EbDeltaLambdaT
Foam::radiationModels::blackBodyEmission::EbDeltaLambdaT
(
const volScalarField& T,
const Vector2D<scalar>& band
@ -278,7 +278,7 @@ Foam::radiation::blackBodyEmission::EbDeltaLambdaT
}
void Foam::radiation::blackBodyEmission::correct
void Foam::radiationModels::blackBodyEmission::correct
(
const label lambdaI,
const Vector2D<scalar>& band

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::blackBodyEmission
Foam::radiationModels::blackBodyEmission
Description
Class black body emission
@ -47,7 +47,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -147,7 +147,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
} // End namespace radiation
} // End namespace radiationModels
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,7 @@ using namespace Foam::constant::mathematical;
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(fvDOM, 0);
addToRadiationRunTimeSelectionTables(fvDOM);
@ -47,7 +47,7 @@ namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::radiation::fvDOM::initialise()
void Foam::radiationModels::fvDOM::initialise()
{
// 3D
if (mesh_.nSolutionD() == 3)
@ -198,7 +198,7 @@ void Foam::radiation::fvDOM::initialise()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::fvDOM::fvDOM(const volScalarField& T)
Foam::radiationModels::fvDOM::fvDOM(const volScalarField& T)
:
radiationModel(typeName, T),
G_
@ -286,7 +286,7 @@ Foam::radiation::fvDOM::fvDOM(const volScalarField& T)
}
Foam::radiation::fvDOM::fvDOM
Foam::radiationModels::fvDOM::fvDOM
(
const dictionary& dict,
const volScalarField& T
@ -380,13 +380,13 @@ Foam::radiation::fvDOM::fvDOM
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::fvDOM::~fvDOM()
Foam::radiationModels::fvDOM::~fvDOM()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::radiation::fvDOM::read()
bool Foam::radiationModels::fvDOM::read()
{
if (radiationModel::read())
{
@ -406,7 +406,7 @@ bool Foam::radiation::fvDOM::read()
}
void Foam::radiation::fvDOM::calculate()
void Foam::radiationModels::fvDOM::calculate()
{
absorptionEmission_->correct(a_, aLambda_);
@ -443,7 +443,7 @@ void Foam::radiation::fvDOM::calculate()
}
Foam::tmp<Foam::volScalarField> Foam::radiation::fvDOM::Rp() const
Foam::tmp<Foam::volScalarField> Foam::radiationModels::fvDOM::Rp() const
{
// Construct using contribution from first frequency band
tmp<volScalarField> tRp
@ -477,7 +477,7 @@ Foam::tmp<Foam::volScalarField> Foam::radiation::fvDOM::Rp() const
Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh>>
Foam::radiation::fvDOM::Ru() const
Foam::radiationModels::fvDOM::Ru() const
{
tmp<DimensionedField<scalar, volMesh>> tRu
(
@ -521,7 +521,7 @@ Foam::radiation::fvDOM::Ru() const
}
void Foam::radiation::fvDOM::updateBlackBodyEmission()
void Foam::radiationModels::fvDOM::updateBlackBodyEmission()
{
for (label j=0; j < nLambda_; j++)
{
@ -530,7 +530,7 @@ void Foam::radiation::fvDOM::updateBlackBodyEmission()
}
void Foam::radiation::fvDOM::updateG()
void Foam::radiationModels::fvDOM::updateG()
{
G_ = dimensionedScalar("zero",dimMass/pow3(dimTime), 0);
qr_ = dimensionedScalar("zero",dimMass/pow3(dimTime), 0);
@ -548,7 +548,7 @@ void Foam::radiation::fvDOM::updateG()
}
void Foam::radiation::fvDOM::setRayIdLambdaId
void Foam::radiationModels::fvDOM::setRayIdLambdaId
(
const word& name,
label& rayId,

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::fvDOM
Foam::radiationModels::fvDOM
Description
@ -74,7 +74,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -253,7 +253,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,15 +23,15 @@ License
\*---------------------------------------------------------------------------*/
inline const Foam::radiation::radiativeIntensityRay&
Foam::radiation::fvDOM::IRay(const label rayI) const
inline const Foam::radiationModels::radiativeIntensityRay&
Foam::radiationModels::fvDOM::IRay(const label rayI) const
{
return IRay_[rayI];
}
inline const Foam::volScalarField&
Foam::radiation::fvDOM::IRayLambda
Foam::radiationModels::fvDOM::IRayLambda
(
const label rayI,
const label lambdaI
@ -41,37 +41,37 @@ Foam::radiation::fvDOM::IRayLambda
}
inline Foam::label Foam::radiation::fvDOM::nTheta() const
inline Foam::label Foam::radiationModels::fvDOM::nTheta() const
{
return nTheta_;
}
inline Foam::label Foam::radiation::fvDOM::nPhi() const
inline Foam::label Foam::radiationModels::fvDOM::nPhi() const
{
return nPhi_;
}
inline Foam::label Foam::radiation::fvDOM::nRay() const
inline Foam::label Foam::radiationModels::fvDOM::nRay() const
{
return nRay_;
}
inline Foam::label Foam::radiation::fvDOM::nLambda() const
inline Foam::label Foam::radiationModels::fvDOM::nLambda() const
{
return nLambda_;
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::a() const
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::a() const
{
return a_;
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::aLambda
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::aLambda
(
const label lambdaI
) const
@ -80,37 +80,37 @@ inline const Foam::volScalarField& Foam::radiation::fvDOM::aLambda
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::G() const
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::G() const
{
return G_;
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::qr() const
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::qr() const
{
return qr_;
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::qin() const
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::qin() const
{
return qin_;
}
inline const Foam::volScalarField& Foam::radiation::fvDOM::qem() const
inline const Foam::volScalarField& Foam::radiationModels::fvDOM::qem() const
{
return qem_;
}
inline const Foam::radiation::blackBodyEmission&
Foam::radiation::fvDOM::blackBody() const
inline const Foam::radiationModels::blackBodyEmission&
Foam::radiationModels::fvDOM::blackBody() const
{
return blackBody_;
}
inline Foam::scalar Foam::radiation::fvDOM::omegaMax() const
inline Foam::scalar Foam::radiationModels::fvDOM::omegaMax() const
{
return omegaMax_;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,7 +30,7 @@ License
using namespace Foam::constant;
const Foam::word Foam::radiation::radiativeIntensityRay::intensityPrefix
const Foam::word Foam::radiationModels::radiativeIntensityRay::intensityPrefix
(
"ILambda"
);
@ -38,7 +38,7 @@ const Foam::word Foam::radiation::radiativeIntensityRay::intensityPrefix
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::radiativeIntensityRay::radiativeIntensityRay
Foam::radiationModels::radiativeIntensityRay::radiativeIntensityRay
(
const fvDOM& dom,
const fvMesh& mesh,
@ -233,13 +233,13 @@ Foam::radiation::radiativeIntensityRay::radiativeIntensityRay
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::radiativeIntensityRay::~radiativeIntensityRay()
Foam::radiationModels::radiativeIntensityRay::~radiativeIntensityRay()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::scalar Foam::radiation::radiativeIntensityRay::correct()
Foam::scalar Foam::radiationModels::radiativeIntensityRay::correct()
{
// Reset boundary heat flux to zero
qr_.boundaryFieldRef() = 0.0;
@ -281,7 +281,7 @@ Foam::scalar Foam::radiation::radiativeIntensityRay::correct()
}
void Foam::radiation::radiativeIntensityRay::addIntensity()
void Foam::radiationModels::radiativeIntensityRay::addIntensity()
{
I_ = dimensionedScalar(dimMass/pow3(dimTime), 0);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::radiativeIntensityRay
Foam::radiationModels::radiativeIntensityRay
Description
Radiation intensity for a ray in a given direction
@ -43,7 +43,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
// Forward declaration of classes
@ -219,7 +219,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -24,88 +24,91 @@ License
\*---------------------------------------------------------------------------*/
inline const Foam::volScalarField&
Foam::radiation::radiativeIntensityRay::I() const
Foam::radiationModels::radiativeIntensityRay::I() const
{
return I_;
}
inline const Foam::volScalarField&
Foam::radiation::radiativeIntensityRay::qr() const
Foam::radiationModels::radiativeIntensityRay::qr() const
{
return qr_;
}
inline Foam::volScalarField& Foam::radiation::radiativeIntensityRay::qr()
inline Foam::volScalarField& Foam::radiationModels::radiativeIntensityRay::qr()
{
return qr_;
}
inline const Foam::volScalarField& Foam::radiation::
inline const Foam::volScalarField& Foam::radiationModels::
radiativeIntensityRay::qin() const
{
return qin_;
}
inline Foam::volScalarField& Foam::radiation::radiativeIntensityRay::qin()
inline Foam::volScalarField& Foam::radiationModels::radiativeIntensityRay::qin()
{
return qin_;
}
inline const Foam::volScalarField& Foam::radiation::
inline const Foam::volScalarField& Foam::radiationModels::
radiativeIntensityRay::qem() const
{
return qem_;
}
inline Foam::volScalarField& Foam::radiation::radiativeIntensityRay::qem()
inline Foam::volScalarField& Foam::radiationModels::radiativeIntensityRay::qem()
{
return qem_;
}
inline const Foam::vector& Foam::radiation::radiativeIntensityRay::d() const
inline const Foam::vector&
Foam::radiationModels::radiativeIntensityRay::d() const
{
return d_;
}
inline const Foam::vector& Foam::radiation::radiativeIntensityRay::dAve() const
inline const Foam::vector&
Foam::radiationModels::radiativeIntensityRay::dAve() const
{
return dAve_;
}
inline Foam::scalar Foam::radiation::radiativeIntensityRay::nLambda() const
inline Foam::scalar
Foam::radiationModels::radiativeIntensityRay::nLambda() const
{
return nLambda_;
}
inline Foam::scalar Foam::radiation::radiativeIntensityRay::phi() const
inline Foam::scalar Foam::radiationModels::radiativeIntensityRay::phi() const
{
return phi_;
}
inline Foam::scalar Foam::radiation::radiativeIntensityRay::theta() const
inline Foam::scalar Foam::radiationModels::radiativeIntensityRay::theta() const
{
return theta_;
}
inline Foam::scalar Foam::radiation::radiativeIntensityRay::omega() const
inline Foam::scalar Foam::radiationModels::radiativeIntensityRay::omega() const
{
return omega_;
}
inline const Foam::volScalarField&
Foam::radiation::radiativeIntensityRay::ILambda
Foam::radiationModels::radiativeIntensityRay::ILambda
(
const label lambdaI
) const

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -34,7 +34,7 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(noRadiation, 0);
addToRadiationRunTimeSelectionTables(noRadiation);
@ -44,13 +44,13 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::noRadiation::noRadiation(const volScalarField& T)
Foam::radiationModels::noRadiation::noRadiation(const volScalarField& T)
:
radiationModel(T)
{}
Foam::radiation::noRadiation::noRadiation
Foam::radiationModels::noRadiation::noRadiation
(
const dictionary& dict,
const volScalarField& T
@ -62,27 +62,27 @@ Foam::radiation::noRadiation::noRadiation
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::noRadiation::~noRadiation()
Foam::radiationModels::noRadiation::~noRadiation()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::noRadiation::correct()
void Foam::radiationModels::noRadiation::correct()
{}
void Foam::radiation::noRadiation::calculate()
void Foam::radiationModels::noRadiation::calculate()
{}
bool Foam::radiation::noRadiation::read()
bool Foam::radiationModels::noRadiation::read()
{
return radiationModel::read();
}
Foam::tmp<Foam::volScalarField> Foam::radiation::noRadiation::Rp() const
Foam::tmp<Foam::volScalarField> Foam::radiationModels::noRadiation::Rp() const
{
return volScalarField::New
(
@ -98,7 +98,7 @@ Foam::tmp<Foam::volScalarField> Foam::radiation::noRadiation::Rp() const
Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh>>
Foam::radiation::noRadiation::Ru() const
Foam::radiationModels::noRadiation::Ru() const
{
return volScalarField::Internal::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::noRadiation
Foam::radiationModels::noRadiation
Description
No radiation - does nothing to energy equation source terms
@ -42,7 +42,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -104,7 +104,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -34,7 +34,7 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(opaqueSolid, 0);
@ -45,13 +45,13 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::opaqueSolid::opaqueSolid(const volScalarField& T)
Foam::radiationModels::opaqueSolid::opaqueSolid(const volScalarField& T)
:
radiationModel(typeName, T)
{}
Foam::radiation::opaqueSolid::opaqueSolid
Foam::radiationModels::opaqueSolid::opaqueSolid
(
const dictionary& dict,
const volScalarField& T
@ -63,23 +63,23 @@ Foam::radiation::opaqueSolid::opaqueSolid
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::opaqueSolid::~opaqueSolid()
Foam::radiationModels::opaqueSolid::~opaqueSolid()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::radiation::opaqueSolid::read()
bool Foam::radiationModels::opaqueSolid::read()
{
return radiationModel::read();
}
void Foam::radiation::opaqueSolid::calculate()
void Foam::radiationModels::opaqueSolid::calculate()
{}
Foam::tmp<Foam::volScalarField> Foam::radiation::opaqueSolid::Rp() const
Foam::tmp<Foam::volScalarField> Foam::radiationModels::opaqueSolid::Rp() const
{
return volScalarField::New
(
@ -95,7 +95,7 @@ Foam::tmp<Foam::volScalarField> Foam::radiation::opaqueSolid::Rp() const
Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh>>
Foam::radiation::opaqueSolid::Ru() const
Foam::radiationModels::opaqueSolid::Ru() const
{
return volScalarField::Internal::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::opaqueSolid
Foam::radiationModels::opaqueSolid
Description
Radiation for solid opaque solids - does nothing to energy equation source
@ -43,7 +43,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -102,7 +102,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -33,22 +33,16 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace radiation
{
defineTypeNameAndDebug(radiationModel, 0);
defineRunTimeSelectionTable(radiationModel, T);
defineRunTimeSelectionTable(radiationModel, dictionary);
}
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
Foam::IOobject Foam::radiation::radiationModel::createIOobject
(
const fvMesh& mesh
) const
Foam::IOobject Foam::radiationModel::createIOobject(const fvMesh& mesh) const
{
IOobject io
(
@ -72,24 +66,24 @@ Foam::IOobject Foam::radiation::radiationModel::createIOobject
}
void Foam::radiation::radiationModel::initialise()
void Foam::radiationModel::initialise()
{
solverFreq_ = max(1, lookupOrDefault<label>("solverFreq", 1));
absorptionEmission_.reset
(
absorptionEmissionModel::New(*this, mesh_).ptr()
radiationModels::absorptionEmissionModel::New(*this, mesh_).ptr()
);
scatter_.reset(scatterModel::New(*this, mesh_).ptr());
scatter_.reset(radiationModels::scatterModel::New(*this, mesh_).ptr());
soot_.reset(sootModel::New(*this, mesh_).ptr());
soot_.reset(radiationModels::sootModel::New(*this, mesh_).ptr());
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::radiationModel::radiationModel(const volScalarField& T)
Foam::radiationModel::radiationModel(const volScalarField& T)
:
IOdictionary
(
@ -114,11 +108,7 @@ Foam::radiation::radiationModel::radiationModel(const volScalarField& T)
{}
Foam::radiation::radiationModel::radiationModel
(
const word& type,
const volScalarField& T
)
Foam::radiationModel::radiationModel(const word& type, const volScalarField& T)
:
IOdictionary(createIOobject(T.mesh())),
mesh_(T.mesh()),
@ -135,7 +125,7 @@ Foam::radiation::radiationModel::radiationModel
}
Foam::radiation::radiationModel::radiationModel
Foam::radiationModel::radiationModel
(
const word& type,
const dictionary& dict,
@ -170,13 +160,13 @@ Foam::radiation::radiationModel::radiationModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
Foam::radiation::radiationModel::~radiationModel()
Foam::radiationModel::~radiationModel()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::radiationModel::correct()
void Foam::radiationModel::correct()
{
if (firstIter_ || (time_.timeIndex() % solverFreq_ == 0))
{
@ -191,7 +181,7 @@ void Foam::radiation::radiationModel::correct()
}
bool Foam::radiation::radiationModel::read()
bool Foam::radiationModel::read()
{
if (regIOobject::read())
{
@ -209,7 +199,7 @@ bool Foam::radiation::radiationModel::read()
}
Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh
Foam::tmp<Foam::fvScalarMatrix> Foam::radiationModel::Sh
(
const basicThermo& thermo,
const volScalarField& he
@ -227,7 +217,7 @@ Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh
}
Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::ST
Foam::tmp<Foam::fvScalarMatrix> Foam::radiationModel::ST
(
const dimensionedScalar& rhoCp,
volScalarField& T
@ -241,28 +231,27 @@ Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::ST
}
const Foam::radiation::absorptionEmissionModel&
Foam::radiation::radiationModel::absorptionEmission() const
const Foam::radiationModels::absorptionEmissionModel&
Foam::radiationModel::absorptionEmission() const
{
if (!absorptionEmission_.valid())
{
FatalErrorInFunction
<< "Requested radiation absorptionEmission model, but model is "
<< "not activate" << abort(FatalError);
<< "not active" << abort(FatalError);
}
return absorptionEmission_();
}
const Foam::radiation::sootModel&
Foam::radiation::radiationModel::soot() const
const Foam::radiationModels::sootModel& Foam::radiationModel::soot() const
{
if (!soot_.valid())
{
FatalErrorInFunction
<< "Requested radiation sootModel model, but model is "
<< "not activate" << abort(FatalError);
<< "not active" << abort(FatalError);
}
return soot_();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -21,14 +21,8 @@ License
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Namespace
Foam::radiation
Description
Namespace for radiation modelling
Class
Foam::radiation::radiationModel
Foam::radiationModel
Description
Top level model for radiation modelling
@ -54,16 +48,16 @@ SourceFiles
namespace Foam
{
// Forward declaration of classes
class basicThermo;
class fvMesh;
namespace radiation
namespace radiationModels
{
// Forward declaration of classes
class absorptionEmissionModel;
class scatterModel;
class sootModel;
}
/*---------------------------------------------------------------------------*\
Class radiationModel Declaration
@ -100,13 +94,14 @@ protected:
// References to the radiation sub-models
//- Absorption/emission model
autoPtr<absorptionEmissionModel> absorptionEmission_;
autoPtr<radiationModels::absorptionEmissionModel>
absorptionEmission_;
//- Scatter model
autoPtr<scatterModel> scatter_;
autoPtr<radiationModels::scatterModel> scatter_;
//- Soot model
autoPtr<sootModel> soot_;
autoPtr<radiationModels::sootModel> soot_;
private:
@ -229,10 +224,11 @@ public:
) const;
//- Access to absorptionEmission model
const absorptionEmissionModel& absorptionEmission() const;
const radiationModels::absorptionEmissionModel&
absorptionEmission() const;
//- Access to soot Model
const sootModel& soot() const;
const radiationModels::sootModel& soot() const;
};
@ -256,7 +252,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,8 +28,7 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::radiation::radiationModel>
Foam::radiation::radiationModel::New
Foam::autoPtr<Foam::radiationModel> Foam::radiationModel::New
(
const volScalarField& T
)
@ -74,8 +73,7 @@ Foam::radiation::radiationModel::New
}
Foam::autoPtr<Foam::radiation::radiationModel>
Foam::radiation::radiationModel::New
Foam::autoPtr<Foam::radiationModel> Foam::radiationModel::New
(
const dictionary& dict,
const volScalarField& T

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -36,7 +36,7 @@ using namespace Foam::constant;
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(viewFactor, 0);
addToRadiationRunTimeSelectionTables(viewFactor);
@ -46,7 +46,7 @@ namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::radiation::viewFactor::initialise()
void Foam::radiationModels::viewFactor::initialise()
{
const polyBoundaryMesh& coarsePatches = coarseMesh_.boundaryMesh();
const volScalarField::Boundary& qrp = qr_.boundaryField();
@ -69,10 +69,10 @@ void Foam::radiation::viewFactor::initialise()
if (debug)
{
Pout<< "radiation::viewFactor::initialise() Selected patches:"
<< selectedPatches_ << endl;
Pout<< "radiation::viewFactor::initialise() Number of coarse faces:"
<< nLocalCoarseFaces_ << endl;
Pout<< "radiationModels::viewFactor::initialise() "
<< "Selected patches:" << selectedPatches_ << endl;
Pout<< "radiationModels::viewFactor::initialise() "
<< "Number of coarse faces:" << nLocalCoarseFaces_ << endl;
}
totalNCoarseFaces_ = nLocalCoarseFaces_;
@ -236,7 +236,7 @@ void Foam::radiation::viewFactor::initialise()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::viewFactor::viewFactor(const volScalarField& T)
Foam::radiationModels::viewFactor::viewFactor(const volScalarField& T)
:
radiationModel(typeName, T),
finalAgglom_
@ -290,7 +290,7 @@ Foam::radiation::viewFactor::viewFactor(const volScalarField& T)
}
Foam::radiation::viewFactor::viewFactor
Foam::radiationModels::viewFactor::viewFactor
(
const dictionary& dict,
const volScalarField& T
@ -350,13 +350,13 @@ Foam::radiation::viewFactor::viewFactor
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::viewFactor::~viewFactor()
Foam::radiationModels::viewFactor::~viewFactor()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::radiation::viewFactor::read()
bool Foam::radiationModels::viewFactor::read()
{
if (radiationModel::read())
{
@ -369,7 +369,7 @@ bool Foam::radiation::viewFactor::read()
}
void Foam::radiation::viewFactor::insertMatrixElements
void Foam::radiationModels::viewFactor::insertMatrixElements
(
const globalIndex& globalNumbering,
const label proci,
@ -392,7 +392,7 @@ void Foam::radiation::viewFactor::insertMatrixElements
}
void Foam::radiation::viewFactor::calculate()
void Foam::radiationModels::viewFactor::calculate()
{
// Store previous iteration
qr_.storePrevIter();
@ -675,7 +675,7 @@ void Foam::radiation::viewFactor::calculate()
}
Foam::tmp<Foam::volScalarField> Foam::radiation::viewFactor::Rp() const
Foam::tmp<Foam::volScalarField> Foam::radiationModels::viewFactor::Rp() const
{
return volScalarField::New
(
@ -691,7 +691,7 @@ Foam::tmp<Foam::volScalarField> Foam::radiation::viewFactor::Rp() const
Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh>>
Foam::radiation::viewFactor::Ru() const
Foam::radiationModels::viewFactor::Ru() const
{
return volScalarField::Internal::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::viewFactor
Foam::radiationModels::viewFactor
Description
View factor radiation model. The system solved is: C q = b
@ -57,7 +57,7 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -178,7 +178,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
inline const Foam::volScalarField& Foam::radiation::viewFactor::qr() const
inline const Foam::volScalarField& Foam::radiationModels::viewFactor::qr() const
{
return qr_;
}

View File

@ -30,23 +30,26 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(constantScatter, 0);
namespace scatterModels
{
defineTypeNameAndDebug(constant, 0);
addToRunTimeSelectionTable
(
scatterModel,
constantScatter,
constant,
dictionary
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::constantScatter::constantScatter
Foam::radiationModels::scatterModels::constant::constant
(
const dictionary& dict,
const fvMesh& mesh
@ -61,14 +64,14 @@ Foam::radiation::constantScatter::constantScatter
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::constantScatter::~constantScatter()
Foam::radiationModels::scatterModels::constant::~constant()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField>
Foam::radiation::constantScatter::sigmaEff() const
Foam::radiationModels::scatterModels::constant::sigmaEff() const
{
return volScalarField::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::constantScatter
Foam::radiationModels::scatterModels::constant
Description
Constant radiation scatter coefficient
@ -41,18 +41,19 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace scatterModels
{
/*---------------------------------------------------------------------------*\
Class constantScatter Declaration
Class constant Declaration
\*---------------------------------------------------------------------------*/
class constantScatter
class constant
:
public scatterModel
{
// Private data
//- Coefficients dictionary
@ -72,17 +73,17 @@ class constantScatter
public:
//- Runtime type information
TypeName("constantScatter");
TypeName("constant");
// Constructors
//- Construct from components
constantScatter(const dictionary& dict, const fvMesh& mesh);
constant(const dictionary& dict, const fvMesh& mesh);
//- Destructor
virtual ~constantScatter();
virtual ~constant();
// Member Functions
@ -94,7 +95,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace scatterModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,17 +30,20 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace scatterModels
{
defineTypeNameAndDebug(noScatter, 0);
addToRunTimeSelectionTable(scatterModel, noScatter, dictionary);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::noScatter::noScatter
Foam::radiationModels::scatterModels::noScatter::noScatter
(
const dictionary& dict,
const fvMesh& mesh
@ -52,13 +55,14 @@ Foam::radiation::noScatter::noScatter
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::noScatter::~noScatter()
Foam::radiationModels::scatterModels::noScatter::~noScatter()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField> Foam::radiation::noScatter::sigmaEff() const
Foam::tmp<Foam::volScalarField>
Foam::radiationModels::scatterModels::noScatter::sigmaEff() const
{
return volScalarField::New
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::noScatter
Foam::radiationModels::scatterModels::noScatter
Description
Dummy scatter model for 'none'
@ -41,7 +41,9 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace scatterModels
{
/*---------------------------------------------------------------------------*\
@ -78,7 +80,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace scatterModels
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,7 +30,7 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
defineTypeNameAndDebug(scatterModel, 0);
defineRunTimeSelectionTable(scatterModel, dictionary);
@ -40,7 +40,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::scatterModel::scatterModel
Foam::radiationModels::scatterModel::scatterModel
(
const dictionary&,
const fvMesh& mesh
@ -52,7 +52,7 @@ Foam::radiation::scatterModel::scatterModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
Foam::radiation::scatterModel::~scatterModel()
Foam::radiationModels::scatterModel::~scatterModel()
{}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::scatterModel
Foam::radiationModels::scatterModel
Description
Base class for radiation scattering
@ -41,7 +41,7 @@ Description
namespace Foam
{
namespace radiation
namespace radiationModels
{
/*---------------------------------------------------------------------------*\
@ -106,7 +106,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace radiation
} // End namespace radiationModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -28,7 +28,8 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::radiation::scatterModel> Foam::radiation::scatterModel::New
Foam::autoPtr<Foam::radiationModels::scatterModel>
Foam::radiationModels::scatterModel::New
(
const dictionary& dict,
const fvMesh& mesh

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,15 +23,15 @@ License
\*---------------------------------------------------------------------------*/
#include "mixtureFractionSoot.H"
#include "mixtureFraction.H"
#include "singleStepReactingMixture.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<class ThermoType>
const Foam::singleStepReactingMixture<ThermoType>&
Foam::radiation::mixtureFractionSoot<ThermoType>::checkThermo
Foam::radiationModels::sootModels::mixtureFraction<ThermoType>::checkThermo
(
const fluidThermo& thermo
)
@ -62,7 +62,7 @@ Foam::radiation::mixtureFractionSoot<ThermoType>::checkThermo
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class ThermoType>
Foam::radiation::mixtureFractionSoot<ThermoType>::mixtureFractionSoot
Foam::radiationModels::sootModels::mixtureFraction<ThermoType>::mixtureFraction
(
const dictionary& dict,
const fvMesh& mesh,
@ -140,14 +140,15 @@ Foam::radiation::mixtureFractionSoot<ThermoType>::mixtureFractionSoot
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template<class ThermoType>
Foam::radiation::mixtureFractionSoot<ThermoType>::~mixtureFractionSoot()
Foam::radiationModels::sootModels::mixtureFraction<ThermoType>::
~mixtureFraction()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ThermoType>
void Foam::radiation::mixtureFractionSoot<ThermoType>::correct()
void Foam::radiationModels::sootModels::mixtureFraction<ThermoType>::correct()
{
const volScalarField& mapField =
mesh_.lookupObject<volScalarField>(mappingFieldName_);
@ -155,4 +156,5 @@ void Foam::radiation::mixtureFractionSoot<ThermoType>::correct()
soot_ = sootMax_*(mapField/mapFieldMax_);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::radiation::mixtureFractionSoot
Foam::radiationModels::sootModels::mixtureFraction
Description
This soot model is purely an state model. The amount of soot produced is
@ -41,7 +41,7 @@ Description
The input dictionary reads like in the radiationProperties dictionary:
sootModel mixtureFractionSoot<gasHThermoPhysics>;
sootModel mixtureFraction<gasHThermoPhysics>;
mixtureFractionSootCoeffs
{
@ -51,12 +51,12 @@ Description
}
SourceFiles
mixtureFractionSoot.C
mixtureFraction.C
\*---------------------------------------------------------------------------*/
#ifndef mixtureFractionSoot_H
#define mixtureFractionSoot_H
#ifndef mixtureFraction_H
#define mixtureFraction_H
#include "interpolationLookUpTable.H"
#include "sootModel.H"
@ -69,19 +69,20 @@ SourceFiles
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace sootModels
{
/*---------------------------------------------------------------------------*\
Class mixtureFractionSoot Declaration
Class mixtureFraction Declaration
\*---------------------------------------------------------------------------*/
template<class ThermoType>
class mixtureFractionSoot
class mixtureFraction
:
public sootModel
{
// Static functions
//- Check mixture in thermo
@ -124,13 +125,13 @@ class mixtureFractionSoot
public:
//- Runtime type information
TypeName("mixtureFractionSoot");
TypeName("mixtureFraction");
// Constructors
//- Construct from components
mixtureFractionSoot
mixtureFraction
(
const dictionary& dict,
const fvMesh& mesh,
@ -139,7 +140,7 @@ public:
//- Destructor
virtual ~mixtureFractionSoot();
virtual ~mixtureFraction();
// Member Functions
@ -163,13 +164,14 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace sootModels
} // End namespace radiationModels
} // End namespace Foam
} // End namespace radiation
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#include "mixtureFractionSoot.C"
#include "mixtureFraction.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,14 +23,16 @@ License
\*---------------------------------------------------------------------------*/
#include "mixtureFractionSoot.H"
#include "mixtureFraction.H"
#include "makeSootTypes.H"
#include "thermoPhysicsTypes.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
makeSootTypesThermo(mixtureFractionSoot, gasHThermoPhysics);
makeSootTypesThermo(mixtureFractionSoot, gasEThermoPhysics);
namespace Foam
{
makeSootTypesThermo(mixtureFraction, gasHThermoPhysics);
makeSootTypesThermo(mixtureFraction, gasEThermoPhysics);
}
// ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -30,7 +30,9 @@ License
namespace Foam
{
namespace radiation
namespace radiationModels
{
namespace sootModels
{
defineTypeNameAndDebug(noSoot, 0);
@ -42,10 +44,11 @@ namespace Foam
);
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::radiation::noSoot::noSoot
Foam::radiationModels::sootModels::noSoot::noSoot
(
const dictionary& dict,
const fvMesh& mesh,
@ -56,17 +59,23 @@ Foam::radiation::noSoot::noSoot
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::radiation::noSoot::~noSoot()
Foam::radiationModels::sootModels::noSoot::~noSoot()
{}
void Foam::radiation::noSoot::correct()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiationModels::sootModels::noSoot::correct()
{}
const Foam::volScalarField& Foam::radiation::noSoot::soot() const
const Foam::volScalarField&
Foam::radiationModels::sootModels::noSoot::soot() const
{
NotImplemented;
return tmp<volScalarField>(nullptr);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Some files were not shown because too many files have changed in this diff Show More