mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: updates to radiation Marshak boundary conditions
This commit is contained in:
@ -26,8 +26,8 @@ submodels/absorptionEmissionModel/wideBandAbsorptionEmission/wideBandAbsorptionE
|
||||
|
||||
|
||||
/* Boundary conditions */
|
||||
derivedFvPatchFields/MarshakRadiation/MarshakRadiationMixedFvPatchScalarField.C
|
||||
derivedFvPatchFields/MarshakRadiationFixedT/MarshakRadiationFixedTMixedFvPatchScalarField.C
|
||||
derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C
|
||||
derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C
|
||||
derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C
|
||||
derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C
|
||||
derivedFvPatchFields/radiationCoupledBase/radiationCoupledBase.C
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,12 +23,10 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "MarshakRadiationMixedFvPatchScalarField.H"
|
||||
#include "MarshakRadiationFvPatchScalarField.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "fvPatchFieldMapper.H"
|
||||
#include "volFields.H"
|
||||
|
||||
#include "fvc.H"
|
||||
#include "radiationModel.H"
|
||||
#include "physicoChemicalConstants.H"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,19 +23,17 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "MarshakRadiationFixedTMixedFvPatchScalarField.H"
|
||||
#include "MarshakRadiationFixedTemperatureFvPatchScalarField.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "fvPatchFieldMapper.H"
|
||||
#include "volFields.H"
|
||||
|
||||
#include "fvc.H"
|
||||
#include "radiationModel.H"
|
||||
#include "physicoChemicalConstants.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField::
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<scalar, volMesh>& iF
|
||||
@ -51,10 +49,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
}
|
||||
|
||||
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField::
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf,
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
|
||||
const fvPatch& p,
|
||||
const DimensionedField<scalar, volMesh>& iF,
|
||||
const fvPatchFieldMapper& mapper
|
||||
@ -71,8 +69,8 @@ MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
{}
|
||||
|
||||
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField::
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const fvPatch& p,
|
||||
const DimensionedField<scalar, volMesh>& iF,
|
||||
@ -95,10 +93,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
}
|
||||
|
||||
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField::
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf
|
||||
)
|
||||
:
|
||||
mixedFvPatchScalarField(ptf),
|
||||
@ -112,10 +110,10 @@ MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
{}
|
||||
|
||||
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField::
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField& ptf,
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf,
|
||||
const DimensionedField<scalar, volMesh>& iF
|
||||
)
|
||||
:
|
||||
@ -132,7 +130,7 @@ MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::autoMap
|
||||
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::autoMap
|
||||
(
|
||||
const fvPatchFieldMapper& m
|
||||
)
|
||||
@ -142,7 +140,7 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::autoMap
|
||||
}
|
||||
|
||||
|
||||
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::rmap
|
||||
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::rmap
|
||||
(
|
||||
const fvPatchScalarField& ptf,
|
||||
const labelList& addr
|
||||
@ -150,14 +148,14 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::rmap
|
||||
{
|
||||
mixedFvPatchScalarField::rmap(ptf, addr);
|
||||
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField& mrptf =
|
||||
refCast<const MarshakRadiationFixedTMixedFvPatchScalarField>(ptf);
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField& mrptf =
|
||||
refCast<const MarshakRadiationFixedTemperatureFvPatchScalarField>(ptf);
|
||||
|
||||
Trad_.rmap(mrptf.Trad_, addr);
|
||||
}
|
||||
|
||||
|
||||
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs()
|
||||
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs()
|
||||
{
|
||||
if (this->updated())
|
||||
{
|
||||
@ -190,7 +188,7 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs()
|
||||
}
|
||||
|
||||
|
||||
void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::write
|
||||
void Foam::MarshakRadiationFixedTemperatureFvPatchScalarField::write
|
||||
(
|
||||
Ostream& os
|
||||
) const
|
||||
@ -208,7 +206,7 @@ namespace Foam
|
||||
makePatchTypeField
|
||||
(
|
||||
fvPatchScalarField,
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
);
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
Foam::MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
Foam::MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
|
||||
Description
|
||||
A 'mixed' boundary condition that implements a Marshak condition for the
|
||||
@ -42,12 +42,12 @@ Description
|
||||
\endverbatim
|
||||
|
||||
SourceFiles
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField.C
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef MarshakRadiationFixedTMixedFvPatchField_H
|
||||
#define MarshakRadiationFixedTMixedFvPatchField_H
|
||||
#ifndef MarshakRadiationFixedTemperatureFvPatchScalarField_H
|
||||
#define MarshakRadiationFixedTemperatureFvPatchScalarField_H
|
||||
|
||||
#include "mixedFvPatchFields.H"
|
||||
#include "radiationCoupledBase.H"
|
||||
@ -58,10 +58,10 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration
|
||||
Class MarshakRadiationFixedTemperatureFvPatchScalarField Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
class MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
:
|
||||
public mixedFvPatchScalarField,
|
||||
public radiationCoupledBase
|
||||
@ -76,20 +76,20 @@ class MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("MarshakRadiationFixedT");
|
||||
TypeName("MarshakRadiationFixedTemperature");
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from patch and internal field
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const fvPatch&,
|
||||
const DimensionedField<scalar, volMesh>&
|
||||
);
|
||||
|
||||
//- Construct from patch, internal field and dictionary
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const fvPatch&,
|
||||
const DimensionedField<scalar, volMesh>&,
|
||||
@ -98,18 +98,18 @@ public:
|
||||
|
||||
//- Construct by mapping given MarshakRadiationFvPatchField onto a new
|
||||
// patch
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField&,
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField&,
|
||||
const fvPatch&,
|
||||
const DimensionedField<scalar, volMesh>&,
|
||||
const fvPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Construct as copy
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField&
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField&
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
@ -117,14 +117,14 @@ public:
|
||||
{
|
||||
return tmp<fvPatchScalarField>
|
||||
(
|
||||
new MarshakRadiationFixedTMixedFvPatchScalarField(*this)
|
||||
new MarshakRadiationFixedTemperatureFvPatchScalarField(*this)
|
||||
);
|
||||
}
|
||||
|
||||
//- Construct as copy setting internal field reference
|
||||
MarshakRadiationFixedTMixedFvPatchScalarField
|
||||
MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
const MarshakRadiationFixedTMixedFvPatchScalarField&,
|
||||
const MarshakRadiationFixedTemperatureFvPatchScalarField&,
|
||||
const DimensionedField<scalar, volMesh>&
|
||||
);
|
||||
|
||||
@ -136,7 +136,11 @@ public:
|
||||
{
|
||||
return tmp<fvPatchScalarField>
|
||||
(
|
||||
new MarshakRadiationFixedTMixedFvPatchScalarField(*this, iF)
|
||||
new MarshakRadiationFixedTemperatureFvPatchScalarField
|
||||
(
|
||||
*this,
|
||||
iF
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user