1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::MarshakRadiationFixedTMixedFvPatchScalarField
28 Marshak boundary for radiation G field
29 - radiation temperature specified
32 MarshakRadiationFixedTMixedFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef MarshakRadiationFixedTMixedFvPatchField_H
37 #define MarshakRadiationFixedTMixedFvPatchField_H
39 #include "mixedFvPatchFields.H"
40 #include "radiationCoupledBase.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration
49 \*---------------------------------------------------------------------------*/
51 class MarshakRadiationFixedTMixedFvPatchScalarField
53 public mixedFvPatchScalarField,
54 public radiationCoupledBase
59 //- Radiation temperature field
65 //- Runtime type information
66 TypeName("MarshakRadiationFixedT");
71 //- Construct from patch and internal field
72 MarshakRadiationFixedTMixedFvPatchScalarField
75 const DimensionedField<scalar, volMesh>&
78 //- Construct from patch, internal field and dictionary
79 MarshakRadiationFixedTMixedFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&,
86 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
88 MarshakRadiationFixedTMixedFvPatchScalarField
90 const MarshakRadiationFixedTMixedFvPatchScalarField&,
92 const DimensionedField<scalar, volMesh>&,
93 const fvPatchFieldMapper&
97 MarshakRadiationFixedTMixedFvPatchScalarField
99 const MarshakRadiationFixedTMixedFvPatchScalarField&
102 //- Construct and return a clone
103 virtual tmp<fvPatchScalarField> clone() const
105 return tmp<fvPatchScalarField>
107 new MarshakRadiationFixedTMixedFvPatchScalarField(*this)
111 //- Construct as copy setting internal field reference
112 MarshakRadiationFixedTMixedFvPatchScalarField
114 const MarshakRadiationFixedTMixedFvPatchScalarField&,
115 const DimensionedField<scalar, volMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual tmp<fvPatchScalarField> clone
121 const DimensionedField<scalar, volMesh>& iF
124 return tmp<fvPatchScalarField>
126 new MarshakRadiationFixedTMixedFvPatchScalarField(*this, iF)
135 //- Return the radiation temperature
136 const scalarField& Trad() const
141 //- Return reference to the radiation temperature to allow
151 //- Map (and resize as needed) from self given a mapping object
154 const fvPatchFieldMapper&
157 //- Reverse map the given fvPatchField onto this fvPatchField
160 const fvPatchScalarField&,
165 // Evaluation functions
167 //- Update the coefficients associated with the patch field
168 virtual void updateCoeffs();
174 virtual void write(Ostream&) const;
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180 } // End namespace Foam
182 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 // ************************************************************************* //