FreeFOAM The Cross-Platform CFD Toolkit
alphatWallFunctionFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2008-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::compressible::RASModels::alphatWallFunctionFvPatchScalarField
26 
27 Description
28  Boundary condition for turbulent thermal diffusivity when using wall
29  functions
30  - replicates OpenFOAM v1.5 (and earlier) behaviour
31  - Turbulent Prandtl number defaults to 0.85 if unspecified
32 
33 SourceFiles
34  alphatWallFunctionFvPatchScalarField.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef compressibleAlphatWallFunctionFvPatchScalarField_H
39 #define compressibleAlphatWallFunctionFvPatchScalarField_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace compressible
48 {
49 namespace RASModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class alphatWallFunctionFvPatchScalarField Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public fixedValueFvPatchScalarField
59 {
60  // Private data
61 
62  //- Name of turbulent viscosity field
63  word mutName_;
64 
65  //- Turbulent Prandtl number
66  scalar Prt_;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("alphatWallFunction");
73 
74 
75  // Constructors
76 
77  //- Construct from patch and internal field
79  (
80  const fvPatch&,
82  );
83 
84  //- Construct from patch, internal field and dictionary
86  (
87  const fvPatch&,
89  const dictionary&
90  );
91 
92  //- Construct by mapping given
93  // alphatWallFunctionFvPatchScalarField
94  // onto a new patch
96  (
98  const fvPatch&,
100  const fvPatchFieldMapper&
101  );
102 
103  //- Construct as copy
105  (
107  );
108 
109  //- Construct and return a clone
111  {
113  (
115  );
116  }
117 
118  //- Construct as copy setting internal field reference
120  (
123  );
124 
125  //- Construct and return a clone setting internal field reference
126  virtual tmp<fvPatchScalarField> clone
127  (
129  ) const
130  {
132  (
134  );
135  }
136 
137 
138  // Member functions
139 
140  // Evaluation functions
141 
142  //- Update the coefficients associated with the patch field
143  virtual void updateCoeffs();
144 
145 
146  // I-O
147 
148  //- Write
149  void write(Ostream&) const;
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace RASModels
156 } // End namespace compressible
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #endif
162 
163 // ************************ vim: set sw=4 sts=4 et: ************************ //