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 compressible
49 /*---------------------------------------------------------------------------*\
50 Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
51 \*---------------------------------------------------------------------------*/
53 class turbulentHeatFluxTemperatureFvPatchScalarField
55 public fixedGradientFvPatchScalarField
62 //- Name of density field
68 //- Runtime type information
69 TypeName("compressible::turbulentHeatFluxTemperature");
74 //- Construct from patch and internal field
75 turbulentHeatFluxTemperatureFvPatchScalarField
78 const DimensionedField<scalar, volMesh>&
81 //- Construct from patch, internal field and dictionary
82 turbulentHeatFluxTemperatureFvPatchScalarField
85 const DimensionedField<scalar, volMesh>&,
89 //- Construct by mapping given
90 // turbulentHeatFluxTemperatureFvPatchScalarField onto
92 turbulentHeatFluxTemperatureFvPatchScalarField
94 const turbulentHeatFluxTemperatureFvPatchScalarField&,
96 const DimensionedField<scalar, volMesh>&,
97 const fvPatchFieldMapper&
100 //- Construct as copy
101 turbulentHeatFluxTemperatureFvPatchScalarField
103 const turbulentHeatFluxTemperatureFvPatchScalarField&
106 //- Construct and return a clone
107 virtual tmp<fvPatchScalarField> clone() const
109 return tmp<fvPatchScalarField>
111 new turbulentHeatFluxTemperatureFvPatchScalarField(*this)
115 //- Construct as copy setting internal field reference
116 turbulentHeatFluxTemperatureFvPatchScalarField
118 const turbulentHeatFluxTemperatureFvPatchScalarField&,
119 const DimensionedField<scalar, volMesh>&
122 //- Construct and return a clone setting internal field reference
123 virtual tmp<fvPatchScalarField> clone
125 const DimensionedField<scalar, volMesh>& iF
128 return tmp<fvPatchScalarField>
130 new turbulentHeatFluxTemperatureFvPatchScalarField
143 //- Map (and resize as needed) from self given a mapping object
144 virtual void autoMap(const fvPatchFieldMapper&);
146 //- Reverse map the given fvPatchField onto this fvPatchField
149 const fvPatchScalarField&,
154 // Evaluation functions
156 //- Update the coefficients associated with the patch field
157 virtual void updateCoeffs();
163 virtual void write(Ostream&) const;
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 } // End namespace compressible
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //