TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_hyd_RANS_K_Omega_base.h
1/****************************************************************************
2* Copyright (c) 2023, 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
17#ifndef Modele_turbulence_hyd_RANS_K_Omega_base_included
18#define Modele_turbulence_hyd_RANS_K_Omega_base_included
19
20#include <Modele_turbulence_hyd_2_eq_base.h>
21#include <Modele_turbulence_hyd_RANS_Gen.h>
22#include <K_Omega_Eps_constants.h>
23#include <Expert_mode_K_Omega.h>
25
26/*! @brief Classe Modele_turbulence_hyd_RANS_K_Omega_base Classe de base des modeles de type RANS_komega
27 *
28 * @sa Modele_turbulence_hyd_base
29 */
31{
32 Declare_base_sans_constructeur(Modele_turbulence_hyd_RANS_K_Omega_base);
33public:
34
36 {
37 model_variant_ = "SST";
38 Sigma_K_ = SIGMA_K;
39 Sigma_Omega_ = SIGMA_OMEGA;
40 Sigma_K1_ = SIGMA_K1;
41 Sigma_K2_ = SIGMA_K2;
42 Sigma_OMEGA1_ = SIGMA_OMEGA1;
43 Sigma_OMEGA2_ = SIGMA_OMEGA2;
44 }
45
46 void set_param(Param& param) const override;
47 void completer() override;
48 int sauvegarder(Sortie& os) const override;
49 int reprendre(Entree& is) override;
50 void verifie_loi_paroi() override { };
51 std::vector<YAML_data> data_a_sauvegarder() const override;
52
53 const Champ_base& get_champ(const Motcle& nom) const override;
54 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
55 bool has_champ(const Motcle& nom) const override;
56 void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const override;
57
58 inline const Motcle& get_model_variant() const { return model_variant_; }
59
60 const double& get_Sigma_K() const { return Sigma_K_; }
61 const double& get_Sigma_Omega() const { return Sigma_Omega_; }
62 const double& get_Sigma_K1() const { return Sigma_K1_; }
63 const double& get_Sigma_K2() const { return Sigma_K2_; }
64 const double& get_Sigma_Omega1() const { return Sigma_OMEGA1_; }
65 const double& get_Sigma_Omega2() const { return Sigma_OMEGA2_; }
66 const double& get_CST_A1() const { return CST_A1; }
68
69protected:
70 Motcle model_variant_; // default model will be k-omega STD
71 static constexpr double CST_A1 = 0.31;
75
76};
77
78#endif /* Modele_turbulence_hyd_RANS_K_Omega_base_included */
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations.
int reprendre(Entree &is) override
Reprise du modele a partir d'un flot d'entree.
const Champ_base & get_champ(const Motcle &nom) const override
int sauvegarder(Sortie &os) const override
Sauvegarde le modele de turbulence sur un flot de sortie.
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
std::vector< YAML_data > data_a_sauvegarder() const override
for PDI IO: retrieve name, type and dimensions of the fields to save/restore
OBS_PTR(Equation_base) mon_equation_
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe de base des flux de sortie.
Definition Sortie.h:52
Classe Transport_K_Omega_base Classe de base pour les equations.