16#include <Transport_K_ou_Eps.h>
17#include <Modele_turbulence_hyd_K_Eps_Bicephale.h>
18#include <Les_Pb_Turb.h>
21#include <Fluide_Quasi_Compressible.h>
69 Cerr <<
"Construction and typing for the source term of the Transport_K equation." << finl;
72 Nom typ =
"Source_Transport_K";
73 Cerr <<
"TYPAGE DES SOURCES : this " << *
this << finl;
76 else if (sub_type(Pb_Thermohydraulique_Turbulent,pb))
78 Nom typ =
"Source_Transport_K_anisotherme";
81 else if (sub_type(Pb_Hydraulique_Concentration_Turbulent,pb))
83 Nom typ =
"Source_Transport_K_aniso_concen";
86 else if ( (sub_type(Pb_Thermohydraulique_Concentration_Turbulent,pb)) )
88 Nom typ =
"Source_Transport_K_aniso_therm_concen";
91 so->associer_eqn(*
this);
97 const Probleme_base& pb =
probleme();
98 Cerr <<
"Construction and typing for the source term of the Transport_Eps equation." << finl;
99 if (sub_type(Pb_Hydraulique_Turbulent,pb) ||
milieu().
que_suis_je()==
"Fluide_Quasi_Compressible")
101 Nom typ =
"Source_Transport_Eps";
102 Cerr <<
"TYPAGE DES SOURCES : this " << *
this << finl;
105 else if (sub_type(Pb_Thermohydraulique_Turbulent,pb))
107 Nom typ =
"Source_Transport_Eps_anisotherme";
110 else if (sub_type(Pb_Hydraulique_Concentration_Turbulent,pb))
112 Nom typ =
"Source_Transport_Eps_aniso_concen";
115 else if ( (sub_type(Pb_Thermohydraulique_Concentration_Turbulent,pb)) )
117 Nom typ =
"Source_Transport_Eps_aniso_therm_concen";
120 so->associer_eqn(*
this);
129 if (mot==
"diffusion")
131 Cerr <<
"Reading and typing of the diffusion operator : " << finl;
135 Cerr<<
" On associe le champ de diffusion nul afin de faire comme avant !!!!!! " <<finl;
136 EChaine tt(
"Champ_Uniforme 1 0");
151 else if (mot==
"convection")
153 Cerr <<
"Reading and typing of the convection operator : " << finl;
160 else if (mot==
"ecrire_fichier_xyz_valeur")
162 Cerr << mot <<
" is not understood by " <<
que_suis_je() << finl;
163 Cerr <<
"Use this keyword in the Navier Stokes equation, not in KEps equation, please." << finl;
183 le_modele = mon_modele.
valeur();
184 liste_modeles_.add_if_not(le_modele);
218 Cerr <<
"Error for Transport_K_ou_Eps::operateur("<<i<<
") !! " << finl;
220 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
245 Cerr <<
"Error for Transport_K_ou_Eps::operateur("<<i<<
") !! " << finl;
247 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
264 static Motcle domaine =
"Transport_Keps";
An input stream whose source is a character string.
Class defining operators and methods for all reading operation in an input flow (file,...
class Equation_base The role of an equation is the calculation of one or more fields....
virtual const Milieu_base & milieu() const =0
virtual const Champ_Inc_base & inconnue() const =0
Probleme_base & probleme()
Returns the problem associated with the equation.
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
virtual DoubleTab & corriger_derivee_impl(DoubleTab &)
Fluide_Quasi_Compressible class This class represents a quasi-compressible fluid,.
Base class for an incompressible fluid and its properties:
const Champ_Don_base & viscosite_dynamique() const
const Champ_Don_base & viscosite_cinematique() const
Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations.
const Turbulence_paroi_base & loi_paroi() const
Equation_base & equation()
Returns the equation associated with the turbulence model.
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
class Operateur Generic class of the operator hierarchy.
Helper class to factorize the readOn method of Objet_U classes.
void dictionnaire(const char *option_name, int value)
Add an (option name, integer value) entry to the dictionary attached to a previously registered integ...
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
Turbulent hydraulics problem.
class Probleme_base It is a Probleme_U that is not a coupling.
virtual const Equation_base & equation(int) const =0
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
Source Generic class of the source term hierarchy. A Source object can.
void typer(const Nom &, const Equation_base &)
Types the source by computing the required type name from the provided parameters.
const Objet_U & valeur() const
Operateur_Conv terme_convectif
void associer_vitesse(const Champ_base &)
Milieu_base & milieu() override
Renvoie le milieu (fluide) associe a l'equation.
const Modele_turbulence_hyd_2_eq_base & modele_turbulence() const
Renvoie le modele de turbulence associe a l'equation.
Operateur_Diff terme_diffusif
void associer(const Equation_base &)
void associer_milieu_base(const Milieu_base &) override
Associe un milieu physique a l'equation.
Entree & lire_op_diff_turbulent(Entree &is)
Classe de base pour l'equation de transport des modeles k_Epsilon dans une approche ou K et Epsilon s...
void discretiser() override
Discretizes the equation.
void set_param(Param ¶m) const override
classe Transport_K_ou_Eps Cette classe represente l'equation de transport de l'energie cinetique
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
DoubleTab & corriger_derivee_impl(DoubleTab &d) override
void set_param(Param ¶m) const override
void associer_modele_turbulence(const Modele_turbulence_hyd_2_eq_base &) override
Associe un modele de turbulence K-epsilon a l'equation.
const Motcle & domaine_application() const override
Renvoie le nom du domaine d'application de l'equation.
const Operateur & operateur(int) const override
Renvoie l'operateur specifie par son index: renvoie terme_diffusif si i = 0.
int nombre_d_operateurs() const override
Renvoie le nombre d'operateurs de l'equation.
Base class for the hierarchy of wall-law models computing turbulent quantities near walls....
virtual DoubleTab & corriger_derivee_impl(DoubleTab &d) const