16#include <Modele_turbulence_scal_null.h>
17#include <Modele_turbulence_hyd_null.h>
18#include <Convection_Diffusion_std.h>
19#include <Discretisation_base.h>
20#include <Probleme_base.h>
35 const Nom& discr = mon_equation_->discretisation().que_suis_je();
36 const Probleme_base& le_pb = mon_equation_->probleme();
39 const Modele_turbulence_hyd_base& mod_turb_hydr = ref_cast(Modele_turbulence_hyd_base, modele_turbulence.
valeur());
40 if (!sub_type(Modele_turbulence_hyd_null, mod_turb_hydr))
42 Cerr <<
"Error in Modele_turbulence_scal_null::readOn !!!" << finl;
43 Cerr <<
"You use a Null turbulence model for the scalar equation " << mon_equation_->que_suis_je() <<
" together with a non Null turbulence model for " << le_pb.
equation(0).
que_suis_je() << finl;
44 Cerr <<
"This is impossible !!! Replace the model " << mod_turb_hydr.
que_suis_je() <<
" by the Null model !!!" << finl;
48 if (discr ==
"VEF" || discr ==
"VEFPreP1B") loipar_.typer(
"negligeable_scalaire_VEF");
49 else if (discr ==
"VDF") loipar_.typer(
"negligeable_scalaire_VDF");
50 else if (discr ==
"EF") loipar_.typer(
"negligeable_scalaire_EF");
53 Cerr <<
"Error in Modele_turbulence_scal_null::readOn: the discretization " << discr <<
" is not supported" << finl;
56 loipar_->associer_modele(*
this);
61 param.lire_avec_accolades_depuis(is);
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const RefObjU & get_modele(Type_modele type) const
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
Base class for scalar turbulence models coupled to a Navier-Stokes convection-diffusion equation.
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 const Nom & le_nom() const
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
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.
const Objet_U & valeur() const