initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / turbulenceModels / compressible / RAS / derivedFvPatchFields / wallFunctions / alphatWallFunctions / alphatWallFunction / alphatWallFunctionFvPatchScalarField.H
blob4f21ba6472e13b70e057bb874911659fe3d1c6ba
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2008-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::compressible::RASModels::alphatWallFunctionFvPatchScalarField
28 Description
29     Boundary condition for turbulent thermal diffusivity when using wall
30     functions
31     - replicates OpenFOAM v1.5 (and earlier) behaviour
32     - Turbulent Prandtl number defaults to 0.85 if unspecified
34 SourceFiles
35     alphatWallFunctionFvPatchScalarField.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef compressibleAlphatWallFunctionFvPatchScalarField_H
40 #define compressibleAlphatWallFunctionFvPatchScalarField_H
42 #include "fixedValueFvPatchFields.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace Foam
48 namespace compressible
50 namespace RASModels
53 /*---------------------------------------------------------------------------*\
54             Class alphatWallFunctionFvPatchScalarField Declaration
55 \*---------------------------------------------------------------------------*/
57 class alphatWallFunctionFvPatchScalarField
59     public fixedValueFvPatchScalarField
61     // Private data
63         //- Name of turbulent viscosity field
64         word mutName_;
66         //- Turbulent Prandtl number
67         scalar Prt_;
70 public:
72     //- Runtime type information
73     TypeName("compressible::alphatWallFunction");
76     // Constructors
78         //- Construct from patch and internal field
79         alphatWallFunctionFvPatchScalarField
80         (
81             const fvPatch&,
82             const DimensionedField<scalar, volMesh>&
83         );
85         //- Construct from patch, internal field and dictionary
86         alphatWallFunctionFvPatchScalarField
87         (
88             const fvPatch&,
89             const DimensionedField<scalar, volMesh>&,
90             const dictionary&
91         );
93         //- Construct by mapping given
94         //  alphatWallFunctionFvPatchScalarField
95         //  onto a new patch
96         alphatWallFunctionFvPatchScalarField
97         (
98             const alphatWallFunctionFvPatchScalarField&,
99             const fvPatch&,
100             const DimensionedField<scalar, volMesh>&,
101             const fvPatchFieldMapper&
102         );
104         //- Construct as copy
105         alphatWallFunctionFvPatchScalarField
106         (
107             const alphatWallFunctionFvPatchScalarField&
108         );
110         //- Construct and return a clone
111         virtual tmp<fvPatchScalarField> clone() const
112         {
113             return tmp<fvPatchScalarField>
114             (
115                 new alphatWallFunctionFvPatchScalarField(*this)
116             );
117         }
119         //- Construct as copy setting internal field reference
120         alphatWallFunctionFvPatchScalarField
121         (
122             const alphatWallFunctionFvPatchScalarField&,
123             const DimensionedField<scalar, volMesh>&
124         );
126         //- Construct and return a clone setting internal field reference
127         virtual tmp<fvPatchScalarField> clone
128         (
129             const DimensionedField<scalar, volMesh>& iF
130         ) const
131         {
132             return tmp<fvPatchScalarField>
133             (
134                 new alphatWallFunctionFvPatchScalarField(*this, iF)
135             );
136         }
139     // Member functions
141         // Evaluation functions
143             //- Update the coefficients associated with the patch field
144             virtual void updateCoeffs();
147         // I-O
149             //- Write
150             void write(Ostream&) const;
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace RASModels
157 } // End namespace compressible
158 } // End namespace Foam
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 #endif
164 // ************************************************************************* //