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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField
28 
29 Group
30  grpSurfaceFilmBoundaryConditions grpCmpWallFunctions
31 
32 Description
33  This boundary condition provides a turbulent thermal diffusivity condition
34  when using wall functions, for use with surface film models. This
35  condition varies from the standard wall function by taking into account any
36  mass released from the film model.
37 
38 Usage
39  \table
40  Property | Description | Required | Default value
41  B | model coefficient | no | 5.5
42  yPlusCrit | critical y+ for transition to turbulent flow | no|11.05
43  Cmu | model coefficient | no | 0.09
44  kappa | Von-Karman constant | no | 0.41
45  Prt | turbulent Prandtl number | no | 0.85
46  \endtable
47 
48  Example of the boundary condition specification:
49  \verbatim
50  <patchName>
51  {
52  type alphatFilmWallFunction;
53  B 5.5;
54  yPlusCrit 11.05;
55  Cmu 0.09;
56  kappa 0.41;
57  Prt 0.85;
58  value uniform 0;
59  }
60  \endverbatim
61 
62 See also
63  Foam::fixedValueFvPatchField
64 
65 SourceFiles
66  alphatFilmWallFunctionFvPatchScalarField.C
67 
68 \*---------------------------------------------------------------------------*/
69 
70 #ifndef alphatFilmWallFunctionFvPatchScalarField_H
71 #define alphatFilmWallFunctionFvPatchScalarField_H
72 
74 
75 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76 
77 namespace Foam
78 {
79 namespace compressible
80 {
81 namespace RASModels
82 {
83 
84 /*---------------------------------------------------------------------------*\
85  Class alphatFilmWallFunctionFvPatchScalarField Declaration
86 \*---------------------------------------------------------------------------*/
87 
88 class alphatFilmWallFunctionFvPatchScalarField
89 :
90  public fixedValueFvPatchScalarField
91 {
92 protected:
93 
94  // Protected data
95 
96  //- Name of film region
97  word filmRegionName_;
98 
99  //- B Coefficient (default = 5.5)
100  scalar B_;
101 
102  //- y+ value for laminar -> turbulent transition (default = 11.05)
103  scalar yPlusCrit_;
104 
105  //- Turbulent Cmu coefficient (default = 0.09)
106  scalar Cmu_;
107 
108  //- Von-Karman constant (default = 0.41)
109  scalar kappa_;
110 
111  //- Turbulent Prandtl number (default = 0.85)
112  scalar Prt_;
113 
114 
115 public:
116 
117  //- Runtime type information
118  TypeName("alphatFilmWallFunction");
119 
120 
121  // Constructors
122 
123  //- Construct from patch and internal field
125  (
126  const fvPatch&,
128  );
129 
130  //- Construct from patch, internal field and dictionary
132  (
133  const fvPatch&,
135  const dictionary&
136  );
137 
138  //- Construct by mapping given
139  // alphatFilmWallFunctionFvPatchScalarField
140  // onto a new patch
142  (
144  const fvPatch&,
146  const fvPatchFieldMapper&
147  );
148 
149  //- Construct as copy
151  (
153  );
154 
155  //- Construct and return a clone
156  virtual tmp<fvPatchScalarField> clone() const
157  {
159  (
161  );
162  }
163 
164  //- Construct as copy setting internal field reference
166  (
169  );
170 
171  //- Construct and return a clone setting internal field reference
173  (
175  ) const
176  {
178  (
180  );
181  }
182 
183 
184  // Member functions
185 
186  // Evaluation functions
187 
188  //- Update the coefficients associated with the patch field
189  virtual void updateCoeffs();
190 
191 
192  // I-O
193 
194  //- Write
195  virtual void write(Ostream&) const;
196 };
197 
198 
199 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
200 
201 } // End namespace RASModels
202 } // End namespace compressible
203 } // End namespace Foam
204 
205 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
206 
207 #endif
208 
209 // ************************************************************************* //
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::yPlusCrit_
scalar yPlusCrit_
y+ value for laminar -> turbulent transition (default = 11.05)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:132
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
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:185
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::kappa_
scalar kappa_
Von-Karman constant (default = 0.41)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:138
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::alphatFilmWallFunctionFvPatchScalarField
alphatFilmWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:51
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions,...
Definition: alphatFilmWallFunctionFvPatchScalarField.H:117
compressible
bool compressible
Definition: pEqn.H:2
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::Prt_
scalar Prt_
Turbulent Prandtl number (default = 0.85)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:141
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::B_
scalar B_
B Coefficient (default = 5.5)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:129
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:240
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::filmRegionName_
word filmRegionName_
Name of film region.
Definition: alphatFilmWallFunctionFvPatchScalarField.H:126
fixedValueFvPatchFields.H
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::Cmu_
scalar Cmu_
Turbulent Cmu coefficient (default = 0.09)
Definition: alphatFilmWallFunctionFvPatchScalarField.H:135
Foam::compressible::RASModels::alphatFilmWallFunctionFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: alphatFilmWallFunctionFvPatchScalarField.C:141