Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
turbulenceModels
compressible
LES
derivedFvPatchFields
wallFunctions
muSgsWallFunctions
muSgsWallFunction
muSgsWallFunctionFvPatchScalarField.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) 1991-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::LESModels::muSgsWallFunctionFvPatchScalarField
26
27
Description
28
Spalart Allmaas wall function boundary condition for compressible flows
29
30
SourceFiles
31
muSgsWallFunctionFvPatchScalarField.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef muSgsWallFunctionFvPatchScalarField_H
36
#define muSgsWallFunctionFvPatchScalarField_H
37
38
#include <
finiteVolume/fixedValueFvPatchFields.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
namespace
compressible
45
{
46
namespace
LESModels
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Class muSgsWallFunctionFvPatchScalarField Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
muSgsWallFunctionFvPatchScalarField
54
:
55
public
fixedValueFvPatchScalarField
56
{
57
// Private data
58
59
//- Name of velocity field
60
word
UName_;
61
62
//- Name of density field
63
word
rhoName_;
64
65
//- Name of laminar viscosity field
66
word
muName_;
67
68
//- Von Karman constant
69
scalar kappa_;
70
71
//- E coefficient
72
scalar E_;
73
74
75
public
:
76
77
//- Runtime type information
78
TypeName
(
"muSgsWallFunction"
);
79
80
81
// Constructors
82
83
//- Construct from patch and internal field
84
muSgsWallFunctionFvPatchScalarField
85
(
86
const
fvPatch
&,
87
const
DimensionedField<scalar, volMesh>
&
88
);
89
90
//- Construct from patch, internal field and dictionary
91
muSgsWallFunctionFvPatchScalarField
92
(
93
const
fvPatch
&,
94
const
DimensionedField<scalar, volMesh>
&,
95
const
dictionary
&
96
);
97
98
//- Construct by mapping given
99
// muSgsWallFunctionFvPatchScalarField
100
// onto a new patch
101
muSgsWallFunctionFvPatchScalarField
102
(
103
const
muSgsWallFunctionFvPatchScalarField
&,
104
const
fvPatch
&,
105
const
DimensionedField<scalar, volMesh>
&,
106
const
fvPatchFieldMapper
&
107
);
108
109
//- Construct as copy
110
muSgsWallFunctionFvPatchScalarField
111
(
112
const
muSgsWallFunctionFvPatchScalarField
&
113
);
114
115
//- Construct and return a clone
116
virtual
tmp<fvPatchScalarField>
clone
()
const
117
{
118
return
tmp<fvPatchScalarField>
119
(
120
new
muSgsWallFunctionFvPatchScalarField
(*
this
)
121
);
122
}
123
124
//- Construct as copy setting internal field reference
125
muSgsWallFunctionFvPatchScalarField
126
(
127
const
muSgsWallFunctionFvPatchScalarField
&,
128
const
DimensionedField<scalar, volMesh>
&
129
);
130
131
//- Construct and return a clone setting internal field reference
132
virtual
tmp<fvPatchScalarField>
clone
133
(
134
const
DimensionedField<scalar, volMesh>
& iF
135
)
const
136
{
137
return
tmp<fvPatchScalarField>
138
(
139
new
muSgsWallFunctionFvPatchScalarField
140
(
141
*
this
,
142
iF
143
)
144
);
145
}
146
147
148
// Member functions
149
150
// Evaluation functions
151
152
//- Evaluate the patchField
153
virtual
void
evaluate
154
(
155
const
Pstream::commsTypes
commsType=
Pstream::blocking
156
);
157
158
// I-O
159
160
//- Write
161
void
write(
Ostream
&)
const
;
162
};
163
164
165
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166
167
}
// End namespace LESModels
168
}
// End namespace compressible
169
}
// End namespace Foam
170
171
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172
173
#endif
174
175
// ************************ vim: set sw=4 sts=4 et: ************************ //