3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
dumux
freeflow
turbulencemodel.hh
Go to the documentation of this file.
1
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
// vi: set et ts=4 sw=4 sts=4:
3
/*****************************************************************************
4
* See the file COPYING for full copying permissions. *
5
* *
6
* This program is free software: you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation, either version 2 of the License, or *
9
* (at your option) any later version. *
10
* *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
18
*****************************************************************************/
24
#ifndef DUMUX_FREEFLOW_TURBLENCEMODEL_HH
25
#define DUMUX_FREEFLOW_TURBLENCEMODEL_HH
26
27
#include <string>
28
29
namespace
Dumux
{
30
36
enum class
TurbulenceModel
37
{
38
none
,
zeroeq
,
oneeq
,
kepsilon
,
lowrekepsilon
,
komega
39
};
40
41
constexpr
unsigned
int
numTurbulenceEq
(
TurbulenceModel
model)
42
{
43
if
(model ==
TurbulenceModel::none
|| model ==
TurbulenceModel::zeroeq
)
44
return
0;
45
else
if
(model ==
TurbulenceModel::oneeq
)
46
return
1;
47
else
48
return
2;
49
}
50
54
std::string
turbulenceModelToString
(
TurbulenceModel
turbulenceModel)
55
{
56
switch
(turbulenceModel)
57
{
58
case
TurbulenceModel::none
:
return
"No_TurbModel"
;
59
case
TurbulenceModel::zeroeq
:
return
"ZeroEq"
;
60
case
TurbulenceModel::oneeq
:
return
"OneEq"
;
61
case
TurbulenceModel::kepsilon
:
return
"KEpsilon"
;
62
case
TurbulenceModel::lowrekepsilon
:
return
"LowReKEpsilon"
;
63
case
TurbulenceModel::komega
:
return
"KOmega"
;
64
default
:
return
"Invalid"
;
// should never be reached
65
}
66
}
67
68
69
70
}
// end namespace Dumux
71
72
#endif
Dumux::TurbulenceModel
TurbulenceModel
The available free flow turbulence models in Dumux.
Definition:
turbulencemodel.hh:37
Dumux::TurbulenceModel::zeroeq
@ zeroeq
Dumux::TurbulenceModel::none
@ none
Dumux::TurbulenceModel::oneeq
@ oneeq
Dumux::TurbulenceModel::lowrekepsilon
@ lowrekepsilon
Dumux::TurbulenceModel::kepsilon
@ kepsilon
Dumux::TurbulenceModel::komega
@ komega
Dumux::DiscretizationMethod::none
@ none
Dumux
Definition:
adapt.hh:29
Dumux::turbulenceModelToString
std::string turbulenceModelToString(TurbulenceModel turbulenceModel)
return the name of the Turbulence Model
Definition:
turbulencemodel.hh:54
Dumux::numTurbulenceEq
constexpr unsigned int numTurbulenceEq(TurbulenceModel model)
Definition:
turbulencemodel.hh:41
Generated by
1.9.3