1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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 Radiation temperature specified
32 MarshakRadiationFixedTMixedFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef MarshakRadiationFixedTMixedFvPatchField_H
37 #define MarshakRadiationFixedTMixedFvPatchField_H
39 #include "mixedFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class MarshakRadiationFixedTMixedFvPatchScalarField Declaration
48 \*---------------------------------------------------------------------------*/
50 class MarshakRadiationFixedTMixedFvPatchScalarField
52 public mixedFvPatchScalarField
57 //- Radiation temperature field
66 //- Runtime type information
67 TypeName("MarshakRadiationFixedT");
72 //- Construct from patch and internal field
73 MarshakRadiationFixedTMixedFvPatchScalarField
76 const DimensionedField<scalar, volMesh>&
79 //- Construct from patch, internal field and dictionary
80 MarshakRadiationFixedTMixedFvPatchScalarField
83 const DimensionedField<scalar, volMesh>&,
87 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
89 MarshakRadiationFixedTMixedFvPatchScalarField
91 const MarshakRadiationFixedTMixedFvPatchScalarField&,
93 const DimensionedField<scalar, volMesh>&,
94 const fvPatchFieldMapper&
98 MarshakRadiationFixedTMixedFvPatchScalarField
100 const MarshakRadiationFixedTMixedFvPatchScalarField&
103 //- Construct and return a clone
104 virtual tmp<fvPatchScalarField> clone() const
106 return tmp<fvPatchScalarField>
108 new MarshakRadiationFixedTMixedFvPatchScalarField(*this)
112 //- Construct as copy setting internal field reference
113 MarshakRadiationFixedTMixedFvPatchScalarField
115 const MarshakRadiationFixedTMixedFvPatchScalarField&,
116 const DimensionedField<scalar, volMesh>&
119 //- Construct and return a clone setting internal field reference
120 virtual tmp<fvPatchScalarField> clone
122 const DimensionedField<scalar, volMesh>& iF
125 return tmp<fvPatchScalarField>
127 new MarshakRadiationFixedTMixedFvPatchScalarField(*this, iF)
136 //- Return the radiation temperature
137 const scalarField& Trad() const
142 //- Return reference to the radiation temperature to allow
149 //- Return the emissivity
150 const scalar& emissivity() const
155 //- Return reference to the emissivity to allow adjustment
164 //- Map (and resize as needed) from self given a mapping object
167 const fvPatchFieldMapper&
170 //- Reverse map the given fvPatchField onto this fvPatchField
173 const fvPatchScalarField&,
178 // Evaluation functions
180 //- Update the coefficients associated with the patch field
181 virtual void updateCoeffs();
187 virtual void write(Ostream&) const;
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193 } // End namespace Foam
195 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 // ************************************************************************* //