alphatFilmWallFunctionFvPatchScalarField.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) 2011-2014 OpenFOAM Foundation
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::alphatFilmWallFunctionFvPatchScalarField
26 
27 Group
28  grpSurfaceFilmBoundaryConditions grpCmpWallFunctions
29 
30 Description
31  This boundary condition provides a turbulent thermal diffusivity condition
32  when using wall functions, for use with surface film models. This
33  condition varies from the standard wall function by taking into account any
34  mass released from the film model.
35 
36  \heading Patch usage
37 
38  \table
39  Property | Description | Required | Default value
40  B | model coefficient | no | 5.5
41  yPlusCrit | critical y+ for transition to turbulent flow | no|11.05
42  Cmu | model coefficient | no | 0.09
43  kappa | Von-Karman constant | no | 0.41
44  Prt | turbulent Prandtl number | no | 0.85
45  \endtable
46 
47  Example of the boundary condition specification:
48  \verbatim
49  myPatch
50  {
51  type alphatFilmWallFunction;
52  B 5.5;
53  yPlusCrit 11.05;
54  Cmu 0.09;
55  kappa 0.41;
56  Prt 0.85;
57  value uniform 0;
58  }
59  \endverbatim
60 
61 SeeAlso
62  Foam::fixedValueFvPatchField
63 
64 SourceFiles
65  alphatFilmWallFunctionFvPatchScalarField.C
66 
67 \*---------------------------------------------------------------------------*/
68 
69 #ifndef compressibleMutRoughWallFunctionFvPatchScalarField_H
70 #define compressibleMutRoughWallFunctionFvPatchScalarField_H
71 
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 namespace Foam
77 {
78 namespace compressible
79 {
80 namespace RASModels
81 {
82 
83 /*---------------------------------------------------------------------------*\
84  Class alphatFilmWallFunctionFvPatchScalarField Declaration
85 \*---------------------------------------------------------------------------*/
86 
87 class alphatFilmWallFunctionFvPatchScalarField
88 :
89  public fixedValueFvPatchScalarField
90 {
91 protected:
92 
93  // Protected data
94 
95  //- Name of film region
96  word filmRegionName_;
97 
98  //- B Coefficient (default = 5.5)
99  scalar B_;
100 
101  //- y+ value for laminar -> turbulent transition (default = 11.05)
102  scalar yPlusCrit_;
103 
104  //- Turbulent Cmu coefficient (default = 0.09)
105  scalar Cmu_;
106 
107  //- Von-Karman constant (default = 0.41)
108  scalar kappa_;
109 
110  //- Turbulent Prandtl number (default = 0.85)
111  scalar Prt_;
112 
113 
114 public:
115 
116  //- Runtime type information
117  TypeName("alphatFilmWallFunction");
118 
119 
120  // Constructors
121 
122  //- Construct from patch and internal field
124  (
125  const fvPatch&,
127  );
128 
129  //- Construct from patch, internal field and dictionary
131  (
132  const fvPatch&,
134  const dictionary&
135  );
136 
137  //- Construct by mapping given
138  // alphatFilmWallFunctionFvPatchScalarField
139  // onto a new patch
141  (
143  const fvPatch&,
145  const fvPatchFieldMapper&
146  );
147 
148  //- Construct as copy
150  (
152  );
153 
154  //- Construct and return a clone
155  virtual tmp<fvPatchScalarField> clone() const
156  {
158  (
160  );
161  }
162 
163  //- Construct as copy setting internal field reference
165  (
168  );
169 
170  //- Construct and return a clone setting internal field reference
172  (
174  ) const
175  {
177  (
179  );
180  }
181 
182 
183  // Member functions
184 
185  // Evaluation functions
186 
187  //- Update the coefficients associated with the patch field
188  virtual void updateCoeffs();
189 
190 
191  // I-O
192 
193  //- Write
194  virtual void write(Ostream&) const;
195 };
196 
197 
198 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 
200 } // End namespace RASModels
201 } // End namespace compressible
202 } // End namespace Foam
203 
204 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
205 
206 #endif
207 
208 // ************************************************************************* //
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::yPlusCrit_
scalar yPlusCrit_
y+ value for laminar -> turbulent transition (default = 11.05)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:131
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::TypeName
TypeName("alphatFilmWallFunction")
Runtime type information.
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: alphatFilmWallFunctionFvPatchScalarField.H:184
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::kappa_
scalar kappa_
Von-Karman constant (default = 0.41)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:137
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::alphatFilmWallFunctionFvPatchScalarField
alphatFilmWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:48
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions,...
Definition: alphatFilmWallFunctionFvPatchScalarField.H:116
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::Prt_
scalar Prt_
Turbulent Prandtl number (default = 0.85)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:140
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::B_
scalar B_
B Coefficient (default = 5.5)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:128
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:237
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::filmRegionName_
word filmRegionName_
Name of film region.
Definition: alphatFilmWallFunctionFvPatchScalarField.H:125
fixedValueFvPatchFields.H
compressible
bool compressible
Definition: pEqn.H:40
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::Cmu_
scalar Cmu_
Turbulent Cmu coefficient (default = 0.09)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:134
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:138