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