1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. 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"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class MarshakRadiationFvPatchScalarField Declaration
48 \*---------------------------------------------------------------------------*/
50 class MarshakRadiationFvPatchScalarField
52 public mixedFvPatchScalarField
57 //- Name of temperature field
66 //- Runtime type information
67 TypeName("MarshakRadiation");
72 //- Construct from patch and internal field
73 MarshakRadiationFvPatchScalarField
76 const DimensionedField<scalar, volMesh>&
79 //- Construct from patch, internal field and dictionary
80 MarshakRadiationFvPatchScalarField
83 const DimensionedField<scalar, volMesh>&,
87 //- Construct by mapping given MarshakRadiationFvPatchField onto a new
89 MarshakRadiationFvPatchScalarField
91 const MarshakRadiationFvPatchScalarField&,
93 const DimensionedField<scalar, volMesh>&,
94 const fvPatchFieldMapper&
98 MarshakRadiationFvPatchScalarField
100 const MarshakRadiationFvPatchScalarField&
103 //- Construct and return a clone
104 virtual tmp<fvPatchScalarField> clone() const
106 return tmp<fvPatchScalarField>
108 new MarshakRadiationFvPatchScalarField(*this)
112 //- Construct as copy setting internal field reference
113 MarshakRadiationFvPatchScalarField
115 const MarshakRadiationFvPatchScalarField&,
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 MarshakRadiationFvPatchScalarField(*this, iF)
136 //- Return the temperature field name
137 const word& TName() const
142 //- Return reference to the temperature field name 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 // ************************************************************************* //