ENH: updates to radiation Marshak boundary conditions

This commit is contained in:
andy
2012-07-05 11:59:54 +01:00
parent 489b2debd9
commit c2723a8ac3
5 changed files with 47 additions and 47 deletions

View File

@ -26,8 +26,8 @@ submodels/absorptionEmissionModel/wideBandAbsorptionEmission/wideBandAbsorptionE
/* Boundary conditions */ /* Boundary conditions */
derivedFvPatchFields/MarshakRadiation/MarshakRadiationMixedFvPatchScalarField.C derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C
derivedFvPatchFields/MarshakRadiationFixedT/MarshakRadiationFixedTMixedFvPatchScalarField.C derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C
derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C
derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C
derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.C derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.C

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
@ -23,12 +23,10 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "MarshakRadiationMixedFvPatchScalarField.H" #include "MarshakRadiationFvPatchScalarField.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "fvc.H"
#include "radiationModel.H" #include "radiationModel.H"
#include "physicoChemicalConstants.H" #include "physicoChemicalConstants.H"

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
@ -23,19 +23,17 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "MarshakRadiationFixedTMixedFvPatchScalarField.H" #include "MarshakRadiationFixedTemperatureFvPatchScalarField.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "fvc.H"
#include "radiationModel.H" #include "radiationModel.H"
#include "physicoChemicalConstants.H" #include "physicoChemicalConstants.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::MarshakRadiationFixedTMixedFvPatchScalarField:: Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
@ -51,10 +49,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
} }
Foam::MarshakRadiationFixedTMixedFvPatchScalarField:: Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf, const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
const fvPatch& p, const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF, const DimensionedField<scalar, volMesh>& iF,
const fvPatchFieldMapper& mapper const fvPatchFieldMapper& mapper
@ -71,8 +69,8 @@ MarshakRadiationFixedTMixedFvPatchScalarField
{} {}
Foam::MarshakRadiationFixedTMixedFvPatchScalarField:: Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF, const DimensionedField<scalar, volMesh>& iF,
@ -95,10 +93,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
} }
Foam::MarshakRadiationFixedTMixedFvPatchScalarField:: Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf
) )
: :
mixedFvPatchScalarField(ptf), mixedFvPatchScalarField(ptf),
@ -112,10 +110,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
{} {}
Foam::MarshakRadiationFixedTMixedFvPatchScalarField:: Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf, const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) )
: :
@ -132,7 +130,7 @@ MarshakRadiationFixedTMixedFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::autoMap void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::autoMap
( (
const fvPatchFieldMapper& m const fvPatchFieldMapper& m
) )
@ -142,7 +140,7 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::autoMap
} }
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::rmap void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::rmap
( (
const fvPatchScalarField& ptf, const fvPatchScalarField& ptf,
const labelList& addr const labelList& addr
@ -150,14 +148,14 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::rmap
{ {
mixedFvPatchScalarField::rmap(ptf, addr); mixedFvPatchScalarField::rmap(ptf, addr);
const MarshakRadiationFixedTMixedFvPatchScalarField& mrptf = const MarshakRadiationFixedTemperatureFvPatchScalarField& mrptf =
refCast<const MarshakRadiationFixedTMixedFvPatchScalarField>(ptf); refCast<const MarshakRadiationFixedTemperatureFvPatchScalarField>(ptf);
Trad_.rmap(mrptf.Trad_, addr); Trad_.rmap(mrptf.Trad_, addr);
} }
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs() void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs()
{ {
if (this->updated()) if (this->updated())
{ {
@ -190,7 +188,7 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs()
} }
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::write void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::write
( (
Ostream& os Ostream& os
) const ) const
@ -208,7 +206,7 @@ namespace Foam
makePatchTypeField makePatchTypeField
( (
fvPatchScalarField, fvPatchScalarField,
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
); );
} }

View File

@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class Class
Foam::MarshakRadiationFixedTMixedFvPatchScalarField Foam::MarshakRadiationFixedTemperatureFvPatchScalarField
Description Description
A 'mixed' boundary condition that implements a Marshak condition for the A 'mixed' boundary condition that implements a Marshak condition for the
@ -42,12 +42,12 @@ Description
\endverbatim \endverbatim
SourceFiles SourceFiles
MarshakRadiationFixedTMixedFvPatchScalarField.C MarshakRadiationFixedTemperatureFvPatchScalarField.C
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef MarshakRadiationFixedTMixedFvPatchField_H #ifndef MarshakRadiationFixedTemperatureFvPatchScalarField_H
#define MarshakRadiationFixedTMixedFvPatchField_H #define MarshakRadiationFixedTemperatureFvPatchScalarField_H
#include "mixedFvPatchFields.H" #include "mixedFvPatchFields.H"
#include "radiationCoupledBase.H" #include "radiationCoupledBase.H"
@ -58,10 +58,10 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration Class MarshakRadiationFixedTemperatureFvPatchScalarField Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class MarshakRadiationFixedTMixedFvPatchScalarField class MarshakRadiationFixedTemperatureFvPatchScalarField
: :
public mixedFvPatchScalarField, public mixedFvPatchScalarField,
public radiationCoupledBase public radiationCoupledBase
@ -76,20 +76,20 @@ class MarshakRadiationFixedTMixedFvPatchScalarField
public: public:
//- Runtime type information //- Runtime type information
TypeName("MarshakRadiationFixedT"); TypeName("MarshakRadiationFixedTemperature");
// Constructors // Constructors
//- Construct from patch and internal field //- Construct from patch and internal field
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const fvPatch&, const fvPatch&,
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct from patch, internal field and dictionary //- Construct from patch, internal field and dictionary
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const fvPatch&, const fvPatch&,
const DimensionedField<scalar, volMesh>&, const DimensionedField<scalar, volMesh>&,
@ -98,18 +98,18 @@ public:
//- Construct by mapping given MarshakRadiationFvPatchField onto a new //- Construct by mapping given MarshakRadiationFvPatchField onto a new
// patch // patch
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField&, const MarshakRadiationFixedTemperatureFvPatchScalarField&,
const fvPatch&, const fvPatch&,
const DimensionedField<scalar, volMesh>&, const DimensionedField<scalar, volMesh>&,
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct as copy //- Construct as copy
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField& const MarshakRadiationFixedTemperatureFvPatchScalarField&
); );
//- Construct and return a clone //- Construct and return a clone
@ -117,14 +117,14 @@ public:
{ {
return tmp<fvPatchScalarField> return tmp<fvPatchScalarField>
( (
new MarshakRadiationFixedTMixedFvPatchScalarField(*this) new MarshakRadiationFixedTemperatureFvPatchScalarField(*this)
); );
} }
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
MarshakRadiationFixedTMixedFvPatchScalarField MarshakRadiationFixedTemperatureFvPatchScalarField
( (
const MarshakRadiationFixedTMixedFvPatchScalarField&, const MarshakRadiationFixedTemperatureFvPatchScalarField&,
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
@ -136,7 +136,11 @@ public:
{ {
return tmp<fvPatchScalarField> return tmp<fvPatchScalarField>
( (
new MarshakRadiationFixedTMixedFvPatchScalarField(*this, iF) new MarshakRadiationFixedTemperatureFvPatchScalarField
(
*this,
iF
)
); );
} }