TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
K_Omega_Eps_constants.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef K_Omega_Eps_constants_included
17#define K_Omega_Eps_constants_included
18
19#include <cmath>
20
21// Constants for the classic k-omega model Wilcox 1988
22// See https://turbmodels.larc.nasa.gov/wilcox.html
23static constexpr double BETA_K = 0.09; // Cmu or BETA_STAR, but clearer with _K
24static constexpr double BETA_OMEGA = 3./40.; // BETA
25static constexpr double PRANDTL_K = 1./2.; // SIGMA_STAR 1/Prandtl_K_ = sigma_k
26static constexpr double PRANDTL_OMEGA = 1./2.; // SIGMA
27static constexpr double SIGMA_K = PRANDTL_K;
28static constexpr double SIGMA_OMEGA = PRANDTL_OMEGA;
29static constexpr double ALPHA_OMEGA = 5./9.; // ALPHA
30
31// Constants for the k-omega SST model
32// See https://turbmodels.larc.nasa.gov/sst.html
33static constexpr double SIGMA_K1 = 0.85;
34static constexpr double SIGMA_K2 = 1.0;
35static constexpr double SIGMA_OMEGA1 = 0.5;
36static constexpr double SIGMA_OMEGA2 = 0.856;
37static constexpr double BETA1 = 0.075;
38static constexpr double BETA2 = 0.0828;
39static constexpr double KAPPA = 0.41;
40static const double GAMMA1_1994 = BETA1/BETA_K - SIGMA_OMEGA1*KAPPA*KAPPA/sqrt(BETA_K);
41static const double GAMMA2_1994 = BETA2/BETA_K - SIGMA_OMEGA2*KAPPA*KAPPA/sqrt(BETA_K);
42static constexpr double GAMMA1_2003 = 5./9.;// 5./9. -> Menter_2003. old : BETA1/BETA_K - SIGMA_OMEGA1*KAPPA*KAPPA/sqrt(BETA_K);
43static constexpr double GAMMA2_2003 = 0.44;// 0.44 -> Menter_2003. old :BETA2/BETA_K - SIGMA_OMEGA2*KAPPA*KAPPA/sqrt(BETA_K);
44static constexpr double CST_PRODUCTION_LIMITER_1994=20.;
45static constexpr double CST_PRODUCTION_LIMITER_2003=10.;
46static constexpr double CST_MIN_CD_KOMEGA_1994=1.e-20;
47static constexpr double CST_MIN_CD_KOMEGA_2003=1.e-10;
48
49// Constants for the k-epsilon model
50static constexpr double SIGMA_K_KEPS = 1.0;
51static constexpr double SIGMA_EPS_KEPS = 1.3;
52
53#endif