MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fvransmodelconstants.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The m-AIA AUTHORS
2
//
3
// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4
//
5
// SPDX-License-Identifier: LGPL-3.0-only
6
7
#ifndef RANSMODELCONSTANTS_H
8
#define RANSMODELCONSTANTS_H
9
10
#include "
INCLUDE/maiatypes.h
"
11
#include "
enums.h
"
12
13
template
<RansMethod _>
14
struct
RANSModelConstants
{
15
static
constexpr
MInt
ransModel
=
NORANS
;
16
static
constexpr
MInt
noRansEquations
= 0;
17
};
18
19
template
<>
20
struct
RANSModelConstants
<
RANS_SA_DV
> {
21
static
constexpr
MInt
ransModel
=
RANS_SA_DV
;
// 1;
22
static
constexpr
MInt
noRansEquations
= 1;
23
static
constexpr
MFloat
chi = 0.1;
24
static
constexpr
MFloat
Fsigma = 1.5;
25
static
constexpr
MFloat
cb2 = 0.622;
26
static
constexpr
MFloat
Fkap2 = 5.94884;
27
static
constexpr
MFloat
cb1 = 0.208;
// for lower Reynolds numbers; // choose 0.1355 for higher Reynolds numbers
28
static
constexpr
MFloat
cw1 = 3.2391;
// choose 3.6704 for lower Reynolds numbers cb1/kappa^2+(1+cb2)/sigma
29
static
constexpr
MFloat
cw2 = 0.3;
30
static
constexpr
MFloat
cw3to6 = 64.0;
31
static
constexpr
MFloat
cv1to3 = 357.911;
// 220.0;
32
static
constexpr
MFloat
Ft2 = 0.0;
33
};
34
using
RM_SA_DV
=
RANSModelConstants<RANS_SA_DV>
;
35
36
template
<>
37
struct
RANSModelConstants
<
RANS_FS
> {
38
static
constexpr
MInt
ransModel
=
RANS_FS
;
39
static
constexpr
MInt
noRansEquations
= 1;
40
static
constexpr
MFloat
chi = 0.1;
41
static
constexpr
MFloat
fabetcs = 0.09;
42
static
constexpr
MFloat
fabetc = 0.072;
43
static
constexpr
MFloat
fapsik1 = 650.0;
44
static
constexpr
MFloat
fapsik2 = 100.0;
45
static
constexpr
MFloat
fapsio1 = 70.0;
// 85.0;
46
static
constexpr
MFloat
fapsio2 = 80.0;
// 100.0;
47
static
constexpr
MFloat
fasigma = 1.2;
// 1.2;
48
static
constexpr
MFloat
faalpha = 0.29;
// 0.26;
49
static
constexpr
MFloat
facv1 = 9.1;
50
static
constexpr
MFloat
facv1to3 = 753.571;
51
static
constexpr
MFloat
faphi = 0.018;
//(fabetcs-fabetc)
52
};
53
using
RM_FS
=
RANSModelConstants<RANS_FS>
;
54
55
template
<>
56
struct
RANSModelConstants
<
RANS_KOMEGA
> {
57
static
constexpr
MInt
ransModel
=
RANS_KOMEGA
;
58
static
constexpr
MInt
noRansEquations
= 3;
59
static
constexpr
MFloat
alpha = 5.0 / 9.0;
// 13.0/25.0;//;
60
static
constexpr
MFloat
beta = 0.075;
61
static
constexpr
MFloat
beta0 = 0.0708;
62
static
constexpr
MFloat
betas = 0.09;
63
static
constexpr
MFloat
sigma_k = 0.5;
64
static
constexpr
MFloat
sigma_o = 0.5;
65
static
constexpr
MFloat
sigma_d = 1.0 / 8.0;
66
static
constexpr
MFloat
fbeta1 = 85.0;
67
static
constexpr
MFloat
fbeta2 = 100.0;
68
static
constexpr
MFloat
C_lim = 7.0 / 8.0;
69
};
70
using
RM_KOMEGA
=
RANSModelConstants<RANS_KOMEGA>
;
71
72
template
<>
73
struct
RANSModelConstants
<
RANS_SST
> {
74
static
constexpr
MInt
ransModel
=
RANS_SST
;
75
static
constexpr
MInt
noRansEquations
= 2;
76
static
constexpr
MFloat
a1 = 0.31;
77
static
constexpr
MFloat
beta1 = 0.075;
78
static
constexpr
MFloat
betas = 0.09;
79
static
constexpr
MFloat
kappa = 0.41;
80
static
constexpr
MFloat
sigma_k1 = 0.85;
81
static
constexpr
MFloat
sigma_k2 = 1.0;
82
static
constexpr
MFloat
sigma_o1 = 0.5;
83
static
constexpr
MFloat
sigma_o2 = 0.856;
84
};
85
using
RM_SST
=
RANSModelConstants<RANS_SST>
;
86
87
template
<>
88
struct
RANSModelConstants
<
RANS_KEPSILON
> {
89
static
constexpr
MInt
noRansEquations
=
RANS_KEPSILON
;
90
static
constexpr
MFloat
rsigma_k = 1.0;
91
static
constexpr
MFloat
rsigma_eps = 0.7692307692;
//=1/1.3
92
static
constexpr
MFloat
C_mu = 0.09;
93
static
constexpr
MFloat
C1 = 1.35;
94
static
constexpr
MFloat
C2 = 1.8;
95
static
constexpr
MFloat
C3 = 0.0115;
96
static
constexpr
MFloat
C4 = 0.5;
97
};
98
using
RM_KEPS
=
RANSModelConstants<RANS_KEPSILON>
;
99
100
inline
MInt
noRansEquations
(
RansMethod
ransMethod) {
101
switch
(ransMethod) {
102
case
NORANS
:
103
return
RANSModelConstants<NORANS>::noRansEquations
;
104
case
RANS_SA_DV
:
105
return
RANSModelConstants<RANS_SA_DV>::noRansEquations
;
106
case
RANS_FS
:
107
return
RANSModelConstants<RANS_FS>::noRansEquations
;
108
case
RANS_KOMEGA
:
109
return
RANSModelConstants<RANS_KOMEGA>::noRansEquations
;
110
case
RANS_KEPSILON
:
111
return
RANSModelConstants<RANS_KEPSILON>::noRansEquations
;
112
default
:
113
return
0;
114
// mTerm(1, AT_, "");
115
}
116
}
117
#endif
enums.h
RansMethod
RansMethod
Definition:
enums.h:51
RANS_SA_DV
@ RANS_SA_DV
Definition:
enums.h:54
RANS_SST
@ RANS_SST
Definition:
enums.h:57
NORANS
@ NORANS
Definition:
enums.h:52
RANS_FS
@ RANS_FS
Definition:
enums.h:55
RANS_KEPSILON
@ RANS_KEPSILON
Definition:
enums.h:58
RANS_KOMEGA
@ RANS_KOMEGA
Definition:
enums.h:56
noRansEquations
MInt noRansEquations(RansMethod ransMethod)
Definition:
fvransmodelconstants.h:100
maiatypes.h
MInt
int32_t MInt
Definition:
maiatypes.h:62
MFloat
double MFloat
Definition:
maiatypes.h:52
RANSModelConstants< RANS_FS >
Definition:
fvransmodelconstants.h:37
RANSModelConstants< RANS_KEPSILON >
Definition:
fvransmodelconstants.h:88
RANSModelConstants< RANS_KOMEGA >
Definition:
fvransmodelconstants.h:56
RANSModelConstants< RANS_SA_DV >
Definition:
fvransmodelconstants.h:20
RANSModelConstants< RANS_SST >
Definition:
fvransmodelconstants.h:73
RANSModelConstants
Definition:
fvransmodelconstants.h:14
RANSModelConstants::ransModel
static constexpr MInt ransModel
Definition:
fvransmodelconstants.h:15
RANSModelConstants::noRansEquations
static constexpr MInt noRansEquations
Definition:
fvransmodelconstants.h:16
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
FV
fvransmodelconstants.h
Generated on Sun Jun 16 2024 23:44:40 for MAIA by
1.9.5