ENH: Re-worked radiation model headers

This commit is contained in:
andy 2012-10-15 12:00:00 +01:00
parent a72ef4a169
commit 9b3be5d6ed
6 changed files with 14 additions and 17 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -26,6 +26,7 @@ License
#include "noPyrolysis.H" #include "noPyrolysis.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "volFields.H" #include "volFields.H"
#include "absorptionEmissionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,7 @@ License
#include "fvcDiv.H" #include "fvcDiv.H"
#include "fvcVolumeIntegrate.H" #include "fvcVolumeIntegrate.H"
#include "fvMatrices.H" #include "fvMatrices.H"
#include "absorptionEmissionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,7 +31,7 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "zeroGradientFvPatchFields.H" #include "zeroGradientFvPatchFields.H"
#include "fvMatrices.H" #include "fvMatrices.H"
#include "absorptionEmissionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -25,11 +25,10 @@ License
#include "radiationCoupledBase.H" #include "radiationCoupledBase.H"
#include "volFields.H" #include "volFields.H"
#include "mappedPatchBase.H" #include "mappedPatchBase.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "radiationModel.H" #include "radiationModel.H"
#include "absorptionEmissionModel.H"
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * // // * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
@ -136,10 +135,7 @@ Foam::scalarField Foam::radiationCoupledBase::emissivity() const
{ {
// Get the coupling information from the mappedPatchBase // Get the coupling information from the mappedPatchBase
const mappedPatchBase& mpp = const mappedPatchBase& mpp =
refCast<const mappedPatchBase> refCast<const mappedPatchBase>(patch_.patch());
(
patch_.patch()
);
const polyMesh& nbrMesh = mpp.sampleMesh(); const polyMesh& nbrMesh = mpp.sampleMesh();
@ -153,10 +149,10 @@ Foam::scalarField Foam::radiationCoupledBase::emissivity() const
// Force recalculation of mapping and schedule // Force recalculation of mapping and schedule
const mapDistribute& distMap = mpp.map(); const mapDistribute& distMap = mpp.map();
const fvPatch& nbrPatch = refCast<const fvMesh> const fvMesh& nbrFvMesh = refCast<const fvMesh>(nbrMesh);
(
nbrMesh const fvPatch& nbrPatch =
).boundary()[mpp.samplePolyPatch().index()]; nbrFvMesh.boundary()[mpp.samplePolyPatch().index()];
scalarField emissivity scalarField emissivity
@ -187,7 +183,6 @@ Foam::scalarField Foam::radiationCoupledBase::emissivity() const
) << "Unimplemented method " << method_ << endl ) << "Unimplemented method " << method_ << endl
<< "Please set 'emissivity' to one of " << "Please set 'emissivity' to one of "
<< emissivityMethodTypeNames_.toc() << emissivityMethodTypeNames_.toc()
<< " and 'emissivityName' to the name of the volScalar"
<< exit(FatalError); << exit(FatalError);
} }
break; break;

View File

@ -46,11 +46,9 @@ SourceFiles
#include "autoPtr.H" #include "autoPtr.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "volFields.H" #include "volFieldsFwd.H"
#include "fluidThermo.H" #include "fluidThermo.H"
#include "fvMatrices.H" #include "fvMatricesFwd.H"
#include "blackBodyEmission.H"
#include "absorptionEmissionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -60,6 +58,7 @@ namespace radiation
{ {
// Forward declaration of classes // Forward declaration of classes
class absorptionEmissionModel;
class scatterModel; class scatterModel;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\

View File

@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "viewFactor.H" #include "viewFactor.H"
#include "surfaceFields.H"
#include "constants.H" #include "constants.H"
#include "greyDiffusiveViewFactorFixedValueFvPatchScalarField.H" #include "greyDiffusiveViewFactorFixedValueFvPatchScalarField.H"
#include "typeInfo.H" #include "typeInfo.H"