1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::MarshakRadiationFixedTMixedFvPatchScalarField
29 Marshak boundary for radiation G field
30 - radiation temperature specified
33 MarshakRadiationFixedTMixedFvPatchScalarField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef MarshakRadiationFixedTMixedFvPatchField_H
38 #define MarshakRadiationFixedTMixedFvPatchField_H
40 #include "mixedFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration
49 \*---------------------------------------------------------------------------*/
51 class MarshakRadiationFixedTMixedFvPatchScalarField
53 public mixedFvPatchScalarField
58 //- Radiation temperature field
67 //- Runtime type information
68 TypeName("MarshakRadiationFixedT");
73 //- Construct from patch and internal field
74 MarshakRadiationFixedTMixedFvPatchScalarField
77 const DimensionedField<scalar, volMesh>&
80 //- Construct from patch, internal field and dictionary
81 MarshakRadiationFixedTMixedFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&,
88 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
90 MarshakRadiationFixedTMixedFvPatchScalarField
92 const MarshakRadiationFixedTMixedFvPatchScalarField&,
94 const DimensionedField<scalar, volMesh>&,
95 const fvPatchFieldMapper&
99 MarshakRadiationFixedTMixedFvPatchScalarField
101 const MarshakRadiationFixedTMixedFvPatchScalarField&
104 //- Construct and return a clone
105 virtual tmp<fvPatchScalarField> clone() const
107 return tmp<fvPatchScalarField>
109 new MarshakRadiationFixedTMixedFvPatchScalarField(*this)
113 //- Construct as copy setting internal field reference
114 MarshakRadiationFixedTMixedFvPatchScalarField
116 const MarshakRadiationFixedTMixedFvPatchScalarField&,
117 const DimensionedField<scalar, volMesh>&
120 //- Construct and return a clone setting internal field reference
121 virtual tmp<fvPatchScalarField> clone
123 const DimensionedField<scalar, volMesh>& iF
126 return tmp<fvPatchScalarField>
128 new MarshakRadiationFixedTMixedFvPatchScalarField(*this, iF)
137 //- Return the radiation temperature
138 const scalarField& Trad() const
143 //- Return reference to the radiation temperature to allow
150 //- Return the emissivity
151 const scalar& emissivity() const
156 //- Return reference to the emissivity to allow adjustment
165 //- Map (and resize as needed) from self given a mapping object
168 const fvPatchFieldMapper&
171 //- Reverse map the given fvPatchField onto this fvPatchField
174 const fvPatchScalarField&,
179 // Evaluation functions
181 //- Update the coefficients associated with the patch field
182 virtual void updateCoeffs();
188 virtual void write(Ostream&) const;
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 } // End namespace Foam
196 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
200 // ************************************************************************* //