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
RAS
laminar
laminar.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::RASModels::laminar
26
27
Description
28
Dummy turbulence model for laminar compressible flow.
29
30
SourceFiles
31
laminar.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef compressibleRasLaminar_H
36
#define compressibleRasLaminar_H
37
38
#include <
compressibleRASModels/RASModel.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
namespace
compressible
45
{
46
namespace
RASModels
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Class laminar Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
laminar
54
:
55
public
RASModel
56
{
57
58
public
:
59
60
//- Runtime type information
61
TypeName
(
"laminar"
);
62
63
// Constructors
64
65
//- Construct from components
66
laminar
67
(
68
const
volScalarField
&
rho
,
69
const
volVectorField
&
U
,
70
const
surfaceScalarField
&
phi
,
71
const
basicThermo
& thermophysicalModel
72
);
73
74
75
//- Destructor
76
virtual
~
laminar
()
77
{}
78
79
80
// Member Functions
81
82
//- Return the turbulence viscosity, i.e. 0 for laminar flow
83
virtual
tmp<volScalarField>
mut()
const
;
84
85
//- Return the effective viscosity, i.e. the laminar viscosity
86
virtual
tmp<volScalarField>
muEff
()
const
87
{
88
return
tmp<volScalarField>
(
new
volScalarField
(
"muEff"
,
mu
()));
89
}
90
91
//- Return the effective turbulent thermal diffusivity,
92
// i.e. the laminar thermal diffusivity
93
virtual
tmp<volScalarField>
alphaEff
()
const
94
{
95
return
tmp<volScalarField>
(
new
volScalarField
(
"alphaEff"
,
alpha
()));
96
}
97
98
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
99
virtual
tmp<volScalarField>
k
()
const
;
100
101
//- Return the turbulence kinetic energy dissipation rate,
102
// i.e. 0 for laminar flow
103
virtual
tmp<volScalarField>
epsilon()
const
;
104
105
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
106
virtual
tmp<volSymmTensorField>
R()
const
;
107
108
//- Return the effective stress tensor, i.e. the laminar stress
109
virtual
tmp<volSymmTensorField>
devRhoReff()
const
;
110
111
//- Return the source term for the momentum equation
112
virtual
tmp<fvVectorMatrix>
divDevRhoReff(
volVectorField
& U)
const
;
113
114
//- Correct the laminar viscosity
115
virtual
void
correct
();
116
117
//- Read RASProperties dictionary
118
virtual
bool
read();
119
};
120
121
122
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124
}
// End namespace RASModels
125
}
// End namespace compressible
126
}
// End namespace Foam
127
128
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129
130
#endif
131
132
// ************************ vim: set sw=4 sts=4 et: ************************ //