16#include <Transport_K_Eps.h>
17#include <Modele_turbulence_hyd_K_Eps.h>
18#include <Les_Pb_Turb.h>
21#include <Fluide_Quasi_Compressible.h>
24#include <Discretisation_base.h>
25#include <Probleme_base.h>
26#include <Equation_base.h>
96 Cerr <<
"Construction and typing for the source term of the Transport_K_Eps equation." << finl;
102 Nom typ =
"Source_Transport_K_Eps";
103 Cerr <<
"TYPAGE DES SOURCES : this " << *
this << finl;
104 so.
typer(typ, *
this);
106 else if (sub_type(Pb_Thermohydraulique_Turbulent, pb))
108 Nom typ =
"Source_Transport_K_Eps_anisotherme";
109 so.
typer(typ, *
this);
111 else if (sub_type(Pb_Hydraulique_Concentration_Turbulent, pb))
113 Nom typ =
"Source_Transport_K_Eps_aniso_concen";
114 so.
typer(typ, *
this);
116 else if ((sub_type(Pb_Thermohydraulique_Concentration_Turbulent, pb)))
118 Nom typ =
"Source_Transport_K_Eps_aniso_therm_concen";
119 so.
typer(typ, *
this);
121 so->associer_eqn(*
this);
130 if (mot ==
"diffusion")
132 Cerr <<
"Reading and typing of the diffusion operator : " << finl;
136 Cerr <<
" On associe le champ de diffusion nul afin de faire comme avant !!!!!! " << finl;
137 EChaine tt(
"Champ_Uniforme 1 0");
138 tt >> Champ_don_nul_;
152 else if (mot ==
"convection")
154 Cerr <<
"Reading and typing of the convection operator : " << finl;
161 else if (mot ==
"ecrire_fichier_xyz_valeur")
163 Cerr << mot <<
" is not understood by " <<
que_suis_je() << finl;
164 Cerr <<
"Use this keyword in the Navier Stokes equation, not in KEps equation, please." << finl;
185 le_modele = mon_modele.
valeur();
186 liste_modeles_.add_if_not(le_modele);
220 Cerr <<
"Error for Transport_K_Eps::operateur(" << i <<
") !! " << finl;
222 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
247 Cerr <<
"Error for Transport_K_Eps::operateur(" << i <<
") !! " << finl;
249 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
265 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.
Classe Modele_turbulence_hyd_K_Eps Cette classe represente le modele de turbulence (k,...
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.
bool contient(const Nom &nom) const
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 Transport_K_Eps_base Classe de base pour les equations.
void discretiser() override
Discretizes the equation.
virtual void set_param(Param &) const override
classe Transport_K_Eps Cette classe represente l'equation de transport de l'energie cinetique
const Motcle & domaine_application() const override
Renvoie le nom du domaine d'application de l'equation.
void associer_modele_turbulence(const Modele_turbulence_hyd_2_eq_base &) override
Associe un modele de turbulence K-epsilon a 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.
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
void set_param(Param ¶m) const override
DoubleTab & corriger_derivee_impl(DoubleTab &d) override
Base class for the hierarchy of wall-law models computing turbulent quantities near walls....
virtual DoubleTab & corriger_derivee_impl(DoubleTab &d) const