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
thermophysicalModels
barotropicCompressibilityModel
barotropicCompressibilityModel
barotropicCompressibilityModel.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
Namespace
25
Foam::compressibilityModels
26
27
Description
28
Namespace for compressibility models.
29
30
31
Class
32
Foam::barotropicCompressibilityModel
33
34
Description
35
Abstract class for barotropic compressibility models
36
37
SourceFiles
38
barotropicCompressibilityModel.C
39
newbarotropicCompressibilityModel.C
40
41
\*---------------------------------------------------------------------------*/
42
43
#ifndef barotropicCompressibilityModel_H
44
#define barotropicCompressibilityModel_H
45
46
#include <
OpenFOAM/IOdictionary.H
>
47
#include <
OpenFOAM/typeInfo.H
>
48
#include <
OpenFOAM/runTimeSelectionTables.H
>
49
#include <
finiteVolume/volFields.H
>
50
#include <
OpenFOAM/dimensionedScalar.H
>
51
#include <
OpenFOAM/autoPtr.H
>
52
53
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54
55
namespace
Foam
56
{
57
58
/*---------------------------------------------------------------------------*\
59
Class barotropicCompressibilityModel Declaration
60
\*---------------------------------------------------------------------------*/
61
62
class
barotropicCompressibilityModel
63
{
64
65
protected
:
66
67
// Protected data
68
69
dictionary
compressibilityProperties_
;
70
71
volScalarField
psi_
;
72
const
volScalarField
&
gamma_
;
73
74
75
// Private Member Functions
76
77
//- Disallow copy construct
78
barotropicCompressibilityModel
(
const
barotropicCompressibilityModel
&);
79
80
//- Disallow default bitwise assignment
81
void
operator=
(
const
barotropicCompressibilityModel
&);
82
83
84
public
:
85
86
//- Runtime type information
87
TypeName
(
"barotropicCompressibilityModel"
);
88
89
90
// Declare run-time constructor selection table
91
92
declareRunTimeSelectionTable
93
(
94
autoPtr
,
95
barotropicCompressibilityModel
,
96
dictionary
,
97
(
98
const
dictionary
&
compressibilityProperties
,
99
const
volScalarField
& gamma,
100
const
word
& psiName
101
),
102
(compressibilityProperties, gamma, psiName)
103
);
104
105
106
// Selectors
107
108
//- Return a reference to the selected compressibility model
109
static
autoPtr<barotropicCompressibilityModel>
New
110
(
111
const
dictionary
& compressibilityProperties,
112
const
volScalarField
& gamma,
113
const
word
& psiName =
"psi"
114
);
115
116
117
// Constructors
118
119
//- Construct from components
120
barotropicCompressibilityModel
121
(
122
const
dictionary
& compressibilityProperties,
123
const
volScalarField
& gamma,
124
const
word
& psiName =
"psi"
125
);
126
127
128
// Destructor
129
130
virtual
~barotropicCompressibilityModel
()
131
{}
132
133
134
// Member Functions
135
136
//- Return the phase transport properties dictionary
137
const
dictionary
&
compressibilityProperties
()
const
138
{
139
return
compressibilityProperties_
;
140
}
141
142
//- Return the compressibility
143
const
volScalarField
&
psi
()
const
144
{
145
return
psi_
;
146
}
147
148
//- Correct the compressibility
149
virtual
void
correct
() = 0;
150
151
//- Read compressibilityProperties dictionary
152
virtual
bool
read
(
const
dictionary
& compressibilityProperties) = 0;
153
};
154
155
156
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157
158
}
// End namespace Foam
159
160
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161
162
#endif
163
164
// ************************ vim: set sw=4 sts=4 et: ************************ //