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::turbulentHeatFluxTemperatureFvPatchScalarField
29 Fixed heat flux boundary condition for temperature.
32 turbulentHeatFluxTemperatureFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef turbulentHeatFluxTemperatureFvPatchScalarFields_H
37 #define turbulentHeatFluxTemperatureFvPatchScalarFields_H
39 #include "fvPatchFields.H"
40 #include "fixedGradientFvPatchFields.H"
41 #include "NamedEnum.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 namespace compressible
50 /*---------------------------------------------------------------------------*\
51 Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
52 \*---------------------------------------------------------------------------*/
54 class turbulentHeatFluxTemperatureFvPatchScalarField
56 public fixedGradientFvPatchScalarField
62 //- Enumeration listing the possible hest source input modes
74 //- Heat source type names
75 static const NamedEnum<heatSourceType, 2> heatSourceTypeNames_;
78 heatSourceType heatSource_;
80 //- Heat power [W] or flux [W/m2]
87 //- Runtime type information
88 TypeName("compressible::turbulentHeatFluxTemperature");
93 //- Construct from patch and internal field
94 turbulentHeatFluxTemperatureFvPatchScalarField
97 const DimensionedField<scalar, volMesh>&
100 //- Construct from patch, internal field and dictionary
101 turbulentHeatFluxTemperatureFvPatchScalarField
104 const DimensionedField<scalar, volMesh>&,
108 //- Construct by mapping given
109 // turbulentHeatFluxTemperatureFvPatchScalarField onto
111 turbulentHeatFluxTemperatureFvPatchScalarField
113 const turbulentHeatFluxTemperatureFvPatchScalarField&,
115 const DimensionedField<scalar, volMesh>&,
116 const fvPatchFieldMapper&
119 //- Construct as copy
120 turbulentHeatFluxTemperatureFvPatchScalarField
122 const turbulentHeatFluxTemperatureFvPatchScalarField&
125 //- Construct and return a clone
126 virtual tmp<fvPatchScalarField> clone() const
128 return tmp<fvPatchScalarField>
130 new turbulentHeatFluxTemperatureFvPatchScalarField(*this)
134 //- Construct as copy setting internal field reference
135 turbulentHeatFluxTemperatureFvPatchScalarField
137 const turbulentHeatFluxTemperatureFvPatchScalarField&,
138 const DimensionedField<scalar, volMesh>&
141 //- Construct and return a clone setting internal field reference
142 virtual tmp<fvPatchScalarField> clone
144 const DimensionedField<scalar, volMesh>& iF
147 return tmp<fvPatchScalarField>
149 new turbulentHeatFluxTemperatureFvPatchScalarField
162 //- Map (and resize as needed) from self given a mapping object
163 virtual void autoMap(const fvPatchFieldMapper&);
165 //- Reverse map the given fvPatchField onto this fvPatchField
168 const fvPatchScalarField&,
173 // Evaluation functions
175 //- Update the coefficients associated with the patch field
176 virtual void updateCoeffs();
182 virtual void write(Ostream&) const;
186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188 } // End namespace compressible
189 } // End namespace Foam
191 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195 // ************************************************************************* //