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
applications
solvers
multiphase
twoPhaseEulerFoam
kineticTheoryModels
viscosityModel
viscosityModel
viscosityModel.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::viscosityModel
26
27
Description
28
29
SourceFiles
30
viscosityModel.C
31
32
\*---------------------------------------------------------------------------*/
33
34
#ifndef viscosityModel_H
35
#define viscosityModel_H
36
37
#include <
OpenFOAM/dictionary.H
>
38
#include <
finiteVolume/volFields.H
>
39
#include <
OpenFOAM/dimensionedTypes.H
>
40
#include <
OpenFOAM/runTimeSelectionTables.H
>
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
namespace
kineticTheoryModels
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Class viscosityModel Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
viscosityModel
54
{
55
// Private member functions
56
57
//- Disallow default bitwise copy construct
58
viscosityModel
(
const
viscosityModel
&);
59
60
//- Disallow default bitwise assignment
61
void
operator=(
const
viscosityModel
&);
62
63
64
protected
:
65
66
// Protected data
67
68
const
dictionary
&
dict_
;
69
70
71
public
:
72
73
//- Runtime type information
74
TypeName
(
"viscosityModel"
);
75
76
// Declare runtime constructor selection table
77
declareRunTimeSelectionTable
78
(
79
autoPtr
,
80
viscosityModel
,
81
dictionary
,
82
(
83
const
dictionary
& dict
84
),
85
(dict)
86
);
87
88
89
// Constructors
90
91
//- Construct from components
92
viscosityModel
(
const
dictionary
& dict);
93
94
95
// Selectors
96
97
static
autoPtr<viscosityModel>
New
98
(
99
const
dictionary
& dict
100
);
101
102
103
//- Destructor
104
virtual
~viscosityModel
();
105
106
107
// Member Functions
108
109
virtual
tmp<volScalarField>
mua
110
(
111
const
volScalarField
& alpha,
112
const
volScalarField
& Theta,
113
const
volScalarField
&
g0
,
114
const
dimensionedScalar
&
rhoa
,
115
const
dimensionedScalar
& da,
116
const
dimensionedScalar
&
e
117
)
const
= 0;
118
};
119
120
121
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123
}
// End namespace kineticTheoryModels
124
}
// End namespace Foam
125
126
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128
#endif
129
130
// ************************ vim: set sw=4 sts=4 et: ************************ //