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