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::MarshakRadiationFvPatchScalarField
28 Marshak boundary for radiation G field
29 - radiation temperature taken from patch value
32 MarshakRadiationFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef MarshakRadiationMixedFvPatchField_H
37 #define MarshakRadiationMixedFvPatchField_H
39 #include "mixedFvPatchFields.H"
40 #include "radiationCoupledBase.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class MarshakRadiationFvPatchScalarField Declaration
49 \*---------------------------------------------------------------------------*/
51 class MarshakRadiationFvPatchScalarField
53 public mixedFvPatchScalarField,
54 public radiationCoupledBase
59 //- Name of temperature field
65 //- Runtime type information
66 TypeName("MarshakRadiation");
71 //- Construct from patch and internal field
72 MarshakRadiationFvPatchScalarField
75 const DimensionedField<scalar, volMesh>&
78 //- Construct from patch, internal field and dictionary
79 MarshakRadiationFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&,
86 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
88 MarshakRadiationFvPatchScalarField
90 const MarshakRadiationFvPatchScalarField&,
92 const DimensionedField<scalar, volMesh>&,
93 const fvPatchFieldMapper&
97 MarshakRadiationFvPatchScalarField
99 const MarshakRadiationFvPatchScalarField&
102 //- Construct and return a clone
103 virtual tmp<fvPatchScalarField> clone() const
105 return tmp<fvPatchScalarField>
107 new MarshakRadiationFvPatchScalarField(*this)
111 //- Construct as copy setting internal field reference
112 MarshakRadiationFvPatchScalarField
114 const MarshakRadiationFvPatchScalarField&,
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 MarshakRadiationFvPatchScalarField(*this, iF)
135 //- Return the temperature field name
136 const word& TName() const
141 //- Return reference to the temperature field name 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 // ************************************************************************* //