16#include <Transport_Fluctuation_Temperature.h>
17#include <Modele_turbulence_scal_Fluctuation_Temperature.h>
18#include <Discret_Thermique.h>
19#include <Les_Pb_Turb.h>
21#include <Fluide_base.h>
54 const Probleme_base& pb =
probleme();
55 Cerr <<
"Construction and typing for the source term of the Transport_Fluctuation_Temperature transport equation." << finl;
56 if (sub_type(Pb_Thermohydraulique_Turbulent,pb))
58 Nom typ =
"Source_Transport_Fluctuation_Temperature";
61 so->associer_eqn(*
this);
75 Cerr <<
"Reading and typing of the diffusion operator : " << finl;
86 Cerr <<
"Transport_Fluctuation_Temperature equation discretization" << finl;
102 le_dom_Cl_dis->completer();
139 Cerr <<
"Error for Transport_Fluctuation_Temperature::operateur(int i)" << finl;
140 Cerr <<
"Transport_Fluctuation_Temperature has " <<
nombre_d_operateurs() <<
" operators "<<finl;
141 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
170 Cerr <<
"Error for Transport_Fluctuation_Temperature::operateur(int i)" << finl;
171 Cerr <<
"Transport_Fluctuation_Temperature has " <<
nombre_d_operateurs() <<
" operators "<<finl;
172 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
193 Cerr <<
"No fluid has been associated to"
194 <<
"Transport_Fluctuation_Temperature equation." << finl;
197 return le_fluide.valeur();
204 Cerr <<
"No fluid has been associated to"
205 <<
"Transport_Fluctuation_Temperature equation." << finl;
208 return le_fluide.valeur();
214 static Motcle domaine =
"Thermique";
225 mon_modele_Fluctu_Temp=modele;
231 static const double LIM = 1.e-10;
232 DoubleTab& fluctuation = le_champ_Fluctu_Temperature->valeurs();
234 for (
int n=0; n<size; n++)
236 if ( fluctuation(n,0) <= LIM)
237 fluctuation(n,0) = 0.;
238 if ( fluctuation(n,1) <= LIM)
239 fluctuation(n,1)= 0.;
virtual void associer_eqn(const Equation_base &)
Associates the field with the equation of which it represents an unknown.
Convection_Diffusion_std This class is the base for equations modelling the transport.
void set_param(Param &titi) const override
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
Operateur_Conv terme_convectif
Class Discret_Thermique: base class representing a spatial discretisation applied to thermal problems...
void Fluctu_Temperature(const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const
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 void associer_domaine_dis(const Domaine_dis_base &)
Associates the discretized domain with the equation.
virtual void associer_pb_base(const Probleme_base &)
Associates with the Problem passed as parameter.
const Discretisation_base & discretisation() const
Returns the discretization associated with the equation.
Probleme_base & probleme()
Returns the problem associated with the equation.
virtual void associer_sch_tps_base(const Schema_Temps_base &)
Associates the time scheme with the equation.
Schema_Temps_base & schema_temps()
Returns the time scheme associated with the equation.
virtual void discretiser()
Discretizes the equation.
Champs_compris champs_compris_
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
Base class for an incompressible fluid and its properties:
Milieu_base This class is the base of the (physical) medium hierarchy.
Convection_Diffusion_std & equation()
A character string (Nom) in uppercase.
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.
virtual void completer()
Updates the references of the objects associated with the operator.
Helper class to factorize the readOn method of Objet_U classes.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
void typer(const Nom &, const Equation_base &)
Types the source by computing the required type name from the provided parameters.
_SIZE_ dimension(int d) const
Op_Diff_Fluctu_Temp terme_diffusif
void discretiser() override
Discretizes the equation.
void associer_modele_turbulence(const Modele_turbulence_scal_Fluctuation_Temperature &)
void associer_milieu_base(const Milieu_base &) override
association entre Transport_Fluctuation_Temperature et Milieu_base.
const Operateur & operateur(int) const override
surcharge de la methode d'Equation_base.
int nombre_d_operateurs() const override
surcharge de la methode d'Equation_base.
const Milieu_base & milieu() const override
const Champ_Inc_base & inconnue() const override
renvoie le champ inconnue.
Transport_Fluctuation_Temperature()
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 &titi) const override
void completer() override
Completes the construction (initialization) of objects associated with the equation.
const Motcle & domaine_application() const override
Returns "indeterminate" Navier_Stokes_standard for example overrides this method.