TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_hyd_2_eq_base.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 Modele_turbulence_hyd_2_eq_base_included
17#define Modele_turbulence_hyd_2_eq_base_included
18
19#include <Modele_turbulence_hyd_base.h>
20#include <Transport_2eq_base.h>
21#include <TRUST_Ref.h>
22
23class Equation_base;
25/*! @brief Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations
26 *
27 * @sa Modele_turbulence_hyd_base
28 */
30{
32public:
33 void set_param(Param& ) const override;
34 int lire_motcle_non_standard(const Motcle&, Entree&) override;
35 virtual void verifie_loi_paroi();
37
38 virtual int nombre_d_equations() const { return 1; }
39
40 void creer_champ(const Motcle& motlu) override;
41
42 inline double get_EPS_MIN() const { return EPS_MIN_; }
43 inline double get_EPS_MAX() const { return EPS_MAX_; }
44 inline double get_OMEGA_MIN() const { return OMEGA_MIN_; }
45 inline double get_OMEGA_MAX() const { return OMEGA_MAX_; }
46 inline double get_Sigma_K() const { return Sigma_K_; }
47 inline double get_Sigma_Eps() const { return Sigma_Eps_; }
48 inline double get_Sigma_Omega() const { return Sigma_Omega_; }
49 inline double get_K_MIN() const { return K_MIN_; }
50 inline int get_lquiet() const { return lquiet_; }
51 virtual inline Transport_2eq_base& get_set_eq_transport() { return ptr_eq_transport_.valeur(); }
52 virtual const Transport_2eq_base& get_eq_transport() const;
54 const Champ_Inc_base& get_unknown() const;
55 virtual void controler()=0;
56
57protected:
58 OWN_PTR(Transport_2eq_base) ptr_eq_transport_;
59 double Sigma_K_=1.;
60 double Sigma_Eps_=1.3;
61 double Sigma_Omega_=1./2.;
62
63 double K_MIN_ = 1.e-20;
64 double EPS_MIN_ = 1.e-20;
65 double EPS_MAX_ = 1.e+10;
66 double OMEGA_MIN_ = 1.e-5;
67 double OMEGA_MAX_ = 1.e+20;
68
69 bool lquiet_ = false;
70};
71
72#endif /* Modele_turbulence_hyd_2_eq_base_included */
Classe Champ_Inc_base.
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations.
virtual const Transport_2eq_base & get_eq_transport() const
OWN_PTR(Transport_2eq_base) ptr_eq_transport_
void creer_champ(const Motcle &motlu) override
virtual Transport_2eq_base & get_set_eq_transport()
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
Classe Modele_turbulence_hyd_base Cette classe sert de base a la hierarchie des classes.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe Transport_2eq_base Classe de base pour les equations.