OpenFOAM: API Guide
v2006
The open source CFD toolbox
hyperbolic.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 | www.openfoam.com
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
Copyright (C) 2014-2015 OpenFOAM Foundation
9
-------------------------------------------------------------------------------
10
License
11
This file is part of OpenFOAM.
12
13
OpenFOAM is free software: you can redistribute it and/or modify it
14
under the terms of the GNU General Public License as published by
15
the Free Software Foundation, either version 3 of the License, or
16
(at your option) any later version.
17
18
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
for more details.
22
23
You should have received a copy of the GNU General Public License
24
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26
Class
27
Foam::hyperbolic
28
29
Description
30
31
SourceFiles
32
hyperbolic.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef hyperbolic_H
37
#define hyperbolic_H
38
39
#include "blendingMethod.H"
40
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43
namespace
Foam
44
{
45
namespace
blendingMethods
46
{
47
48
/*---------------------------------------------------------------------------*\
49
Class hyperbolic Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
hyperbolic
53
:
54
public
blendingMethod
55
{
56
// Private data
57
58
//- Maximum fraction of phases which can be considered dispersed
59
HashTable<dimensionedScalar, word, word::hash> maxDispersedAlpha_;
60
61
//- Width of the transition
62
const
dimensionedScalar
transitionAlphaScale_;
63
64
65
public
:
66
67
//- Runtime type information
68
TypeName
(
"hyperbolic"
);
69
70
71
// Constructors
72
73
//- Construct from a dictionary and a list of phase names
74
hyperbolic
75
(
76
const
dictionary&
dict
,
77
const
wordList
& phaseNames
78
);
79
80
81
//- Destructor
82
~hyperbolic
() =
default
;
83
84
85
// Member Functions
86
87
//- Factor for first phase
88
virtual
tmp<volScalarField>
f1
89
(
90
const
phaseModel&
phase1
,
91
const
phaseModel&
phase2
92
)
const
;
93
94
//- Factor for second phase
95
virtual
tmp<volScalarField>
f2
96
(
97
const
phaseModel&
phase1
,
98
const
phaseModel&
phase2
99
)
const
;
100
};
101
102
103
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104
105
}
// End namespace blendingMethods
106
}
// End namespace Foam
107
108
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109
110
#endif
111
112
// ************************************************************************* //
hyperbolic
Foam::blendingMethods::hyperbolic::hyperbolic
hyperbolic(const dictionary &dict, const wordList &phaseNames)
Construct from a dictionary and a list of phase names.
Definition:
hyperbolic.C:51
Foam::blendingMethods::hyperbolic::f2
virtual tmp< volScalarField > f2(const phaseModel &phase1, const phaseModel &phase2) const
Factor for second phase.
Definition:
hyperbolic.C:96
Foam::blendingMethods::hyperbolic::f1
virtual tmp< volScalarField > f1(const phaseModel &phase1, const phaseModel &phase2) const
Factor for first phase.
Definition:
hyperbolic.C:78
Foam::wordList
List< word > wordList
A List of words.
Definition:
fileName.H:59
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition:
dimensionedScalarFwd.H:43
dict
dictionary dict
Definition:
searchingEngine.H:14
phase2
phaseModel & phase2
Definition:
setRegionFluidFields.H:6
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::blendingMethods::hyperbolic::TypeName
TypeName("hyperbolic")
Runtime type information.
phase1
phaseModel & phase1
Definition:
setRegionFluidFields.H:5
Foam::blendingMethods::hyperbolic::~hyperbolic
~hyperbolic()=default
Destructor.
applications
solvers
multiphase
twoPhaseEulerFoam
twoPhaseSystem
BlendedInterfacialModel
blendingMethods
hyperbolic
hyperbolic.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.