1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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::MarshakRadiationFvPatchScalarField
29 Marshak boundary for radiation G field
30 - radiation temperature taken from patch value
33 MarshakRadiationFvPatchScalarField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef MarshakRadiationMixedFvPatchField_H
38 #define MarshakRadiationMixedFvPatchField_H
40 #include "mixedFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class MarshakRadiationFvPatchScalarField Declaration
49 \*---------------------------------------------------------------------------*/
51 class MarshakRadiationFvPatchScalarField
53 public mixedFvPatchScalarField
58 //- Name of temperature field
67 //- Runtime type information
68 TypeName("MarshakRadiation");
73 //- Construct from patch and internal field
74 MarshakRadiationFvPatchScalarField
77 const DimensionedField<scalar, volMesh>&
80 //- Construct from patch, internal field and dictionary
81 MarshakRadiationFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&,
88 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
90 MarshakRadiationFvPatchScalarField
92 const MarshakRadiationFvPatchScalarField&,
94 const DimensionedField<scalar, volMesh>&,
95 const fvPatchFieldMapper&
99 MarshakRadiationFvPatchScalarField
101 const MarshakRadiationFvPatchScalarField&
104 //- Construct and return a clone
105 virtual tmp<fvPatchScalarField> clone() const
107 return tmp<fvPatchScalarField>
109 new MarshakRadiationFvPatchScalarField(*this)
113 //- Construct as copy setting internal field reference
114 MarshakRadiationFvPatchScalarField
116 const MarshakRadiationFvPatchScalarField&,
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 MarshakRadiationFvPatchScalarField(*this, iF)
137 //- Return the temperature field name
138 const word& TName() const
143 //- Return reference to the temperature field name 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 // ************************************************************************* //