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
13template <RansMethod _>
15 static constexpr MInt ransModel = NORANS;
16 static constexpr MInt noRansEquations = 0;
17};
18
19template <>
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};
35
36template <>
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};
54
55template <>
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};
71
72template <>
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};
86
87template <>
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};
99
100inline MInt noRansEquations(RansMethod ransMethod) {
101 switch(ransMethod) {
102 case NORANS:
104 case RANS_SA_DV:
106 case RANS_FS:
108 case RANS_KOMEGA:
110 case RANS_KEPSILON:
112 default:
113 return 0;
114 // mTerm(1, AT_, "");
115 }
116}
117#endif
RansMethod
Definition: enums.h:51
@ RANS_SA_DV
Definition: enums.h:54
@ RANS_SST
Definition: enums.h:57
@ NORANS
Definition: enums.h:52
@ RANS_FS
Definition: enums.h:55
@ RANS_KEPSILON
Definition: enums.h:58
@ RANS_KOMEGA
Definition: enums.h:56
MInt noRansEquations(RansMethod ransMethod)
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52
static constexpr MInt ransModel
static constexpr MInt noRansEquations