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"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace incompressible
49 /*---------------------------------------------------------------------------*\
50 Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
51 \*---------------------------------------------------------------------------*/
53 class turbulentHeatFluxTemperatureFvPatchScalarField
55 public fixedGradientFvPatchScalarField
62 //- Name of effective thermal diffusivity field
65 //- Name of specific heat capacity field
71 //- Runtime type information
72 TypeName("turbulentHeatFluxTemperature");
77 //- Construct from patch and internal field
78 turbulentHeatFluxTemperatureFvPatchScalarField
81 const DimensionedField<scalar, volMesh>&
84 //- Construct from patch, internal field and dictionary
85 turbulentHeatFluxTemperatureFvPatchScalarField
88 const DimensionedField<scalar, volMesh>&,
92 //- Construct by mapping given
93 // turbulentHeatFluxTemperatureFvPatchScalarField onto
95 turbulentHeatFluxTemperatureFvPatchScalarField
97 const turbulentHeatFluxTemperatureFvPatchScalarField&,
99 const DimensionedField<scalar, volMesh>&,
100 const fvPatchFieldMapper&
103 //- Construct as copy
104 turbulentHeatFluxTemperatureFvPatchScalarField
106 const turbulentHeatFluxTemperatureFvPatchScalarField&
109 //- Construct and return a clone
110 virtual tmp<fvPatchScalarField> clone() const
112 return tmp<fvPatchScalarField>
114 new turbulentHeatFluxTemperatureFvPatchScalarField(*this)
118 //- Construct as copy setting internal field reference
119 turbulentHeatFluxTemperatureFvPatchScalarField
121 const turbulentHeatFluxTemperatureFvPatchScalarField&,
122 const DimensionedField<scalar, volMesh>&
125 //- Construct and return a clone setting internal field reference
126 virtual tmp<fvPatchScalarField> clone
128 const DimensionedField<scalar, volMesh>& iF
131 return tmp<fvPatchScalarField>
133 new turbulentHeatFluxTemperatureFvPatchScalarField
146 //- Map (and resize as needed) from self given a mapping object
147 virtual void autoMap(const fvPatchFieldMapper&);
149 //- Reverse map the given fvPatchField onto this fvPatchField
152 const fvPatchScalarField&,
157 // Evaluation functions
159 //- Update the coefficients associated with the patch field
160 virtual void updateCoeffs();
166 virtual void write(Ostream&) const;
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 } // End namespace incompressible
173 } // End namespace Foam
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 // ************************************************************************* //