initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / turbulenceModels / compressible / RAS / derivedFvPatchFields / turbulentHeatFluxTemperature / turbulentHeatFluxTemperatureFvPatchScalarField.H
blobf7581102df9f8d328715b7b295548f2e8d051326
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::turbulentHeatFluxTemperatureFvPatchScalarField
28 Description
29     Fixed heat flux boundary condition for temperature.
31 SourceFiles
32     turbulentHeatFluxTemperatureFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef turbulentHeatFluxTemperatureFvPatchScalarFields_H
37 #define turbulentHeatFluxTemperatureFvPatchScalarFields_H
39 #include "fvPatchFields.H"
40 #include "fixedGradientFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
46 namespace compressible
49 /*---------------------------------------------------------------------------*\
50      Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
51 \*---------------------------------------------------------------------------*/
53 class turbulentHeatFluxTemperatureFvPatchScalarField
55     public fixedGradientFvPatchScalarField
57 // Private data
59     //- Heat flux [W]
60     scalarField q_;
62     //- Name of density field
63     word rhoName_;
66 public:
68     //- Runtime type information
69     TypeName("compressible::turbulentHeatFluxTemperature");
72     // Constructors
74         //- Construct from patch and internal field
75         turbulentHeatFluxTemperatureFvPatchScalarField
76         (
77             const fvPatch&,
78             const DimensionedField<scalar, volMesh>&
79         );
81         //- Construct from patch, internal field and dictionary
82         turbulentHeatFluxTemperatureFvPatchScalarField
83         (
84             const fvPatch&,
85             const DimensionedField<scalar, volMesh>&,
86             const dictionary&
87         );
89         //- Construct by mapping given
90         //  turbulentHeatFluxTemperatureFvPatchScalarField onto
91         //  a new patch
92         turbulentHeatFluxTemperatureFvPatchScalarField
93         (
94             const turbulentHeatFluxTemperatureFvPatchScalarField&,
95             const fvPatch&,
96             const DimensionedField<scalar, volMesh>&,
97             const fvPatchFieldMapper&
98         );
100         //- Construct as copy
101         turbulentHeatFluxTemperatureFvPatchScalarField
102         (
103             const turbulentHeatFluxTemperatureFvPatchScalarField&
104         );
106         //- Construct and return a clone
107         virtual tmp<fvPatchScalarField> clone() const
108         {
109             return tmp<fvPatchScalarField>
110             (
111                 new turbulentHeatFluxTemperatureFvPatchScalarField(*this)
112             );
113         }
115         //- Construct as copy setting internal field reference
116         turbulentHeatFluxTemperatureFvPatchScalarField
117         (
118             const turbulentHeatFluxTemperatureFvPatchScalarField&,
119             const DimensionedField<scalar, volMesh>&
120         );
122         //- Construct and return a clone setting internal field reference
123         virtual tmp<fvPatchScalarField> clone
124         (
125             const DimensionedField<scalar, volMesh>& iF
126         ) const
127         {
128             return tmp<fvPatchScalarField>
129             (
130                 new turbulentHeatFluxTemperatureFvPatchScalarField
131                 (
132                     *this,
133                     iF
134                 )
135             );
136         }
139     // Member functions
141         // Mapping functions
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
147             virtual void rmap
148             (
149                 const fvPatchScalarField&,
150                 const labelList&
151             );
154         // Evaluation functions
156             //- Update the coefficients associated with the patch field
157             virtual void updateCoeffs();
160         // I-O
162             //- Write
163             virtual void write(Ostream&) const;
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 } // End namespace compressible
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 #endif
176 // ************************************************************************* //