Loading...
Searching...
No Matches
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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 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::alphatWallFunctionFvPatchScalarField
29
30Group
31 grpCmpWallFunctions
32
33Description
34 This boundary condition provides a turbulent thermal diffusivity condition
35 when using wall functions
36 - replicates OpenFOAM v1.5 (and earlier) behaviour
37
38 The turbulent thermal diffusivity calculated using:
39
40 \f[
41 \alpha_t = \frac{\mu_t}{Pr_t}
42 \f]
43
44 where
45
46 \vartable
47 \alpha_t| Turbulence thermal diffusivity
48 \mu_t | Turbulence viscosity
49 Pr_t | Turbulent Prandtl number
50 \endvartable
51
52Usage
53 Example of the boundary condition specification:
54 \verbatim
55 <patchName>
56 {
57 // Mandatory entries
58 type alphatWallFunction;
59
60 // Optional entries
61 Prt <scalar>;
62
63 // Inherited entries
64 ...
65 }
66 \endverbatim
67
68 where the entries mean:
69 \table
70 Property | Description | Type | Reqd | Deflt
71 type | Type name: alphatWallFunction | word | yes | -
72 Prt | Turbulent Prandtl number | scalar | no | 0.85
73 \endtable
74
75 The inherited entries are elaborated in:
76 - \link fixedValueFvPatchFields.H \endlink
77
78SourceFiles
79 alphatWallFunctionFvPatchScalarField.C
80
81\*---------------------------------------------------------------------------*/
82
83#ifndef compressible_alphatWallFunctionFvPatchScalarField_H
84#define compressible_alphatWallFunctionFvPatchScalarField_H
85
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90namespace Foam
91{
92namespace compressible
93{
94
95/*---------------------------------------------------------------------------*\
96 Class alphatWallFunctionFvPatchScalarField Declaration
97\*---------------------------------------------------------------------------*/
98
100:
101 public fixedValueFvPatchScalarField
102{
103 // Private Data
104
105 //- Turbulent Prandtl number
106 scalar Prt_;
107
108
109public:
110
111 //- Runtime type information
112 TypeName("compressible::alphatWallFunction");
113
114
115 // Constructors
116
117 //- Construct from patch and internal field
119 (
120 const fvPatch&,
121 const DimensionedField<scalar, volMesh>&
122 );
123
124 //- Construct from patch, internal field and dictionary
126 (
127 const fvPatch&,
129 const dictionary&
130 );
131
132 //- Construct by mapping given
133 //- alphatWallFunctionFvPatchScalarField
134 //- onto a new patch
136 (
138 const fvPatch&,
140 const fvPatchFieldMapper&
141 );
142
143 //- Construct as copy
145 (
147 );
148
149 //- Construct as copy setting internal field reference
151 (
154 );
155
156 //- Return a clone
157 virtual tmp<fvPatchField<scalar>> clone() const
158 {
159 return fvPatchField<scalar>::Clone(*this);
160 }
161
162 //- Clone with an internal field reference
164 (
166 ) const
167 {
168 return fvPatchField<scalar>::Clone(*this, iF);
169 }
170
171
172 // Member Functions
173
174 // Evaluation
175
176 //- Update the coefficients associated with the patch field
177 virtual void updateCoeffs();
178
179
180 // I-O
181
182 //- Write
183 virtual void write(Ostream&) const;
184};
185
186
187// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
188
189} // End namespace compressible
190} // End namespace Foam
191
192// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
193
194#endif
195
196// ************************************************************************* //
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:59
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions.
TypeName("compressible::alphatWallFunction")
Runtime type information.
virtual tmp< fvPatchField< scalar > > clone(const DimensionedField< scalar, volMesh > &iF) const
Clone with an internal field reference.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
alphatWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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:133
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
A class for managing temporary objects.
Definition tmp.H:75
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68