16#include <Cond_lim_rayo_milieu_transp.h>
17#include <Pb_Fluide_base.h>
18#include <Fluide_base.h>
27 assert (mot ==
"Modele_rayonnement_milieu_transparent" || mot ==
"Transparent_medium_radiation_model");
32 Cerr <<
"The transparent medium radiation model is not yet tested with a problem of type " <<
que_suis_je() << finl;
33 Cerr <<
"Please contact the TRUST team." << finl;
38 bool flag_set =
false;
42 ref_cast(
Fluide_base, itr.valeur()).set_rayo_transp_flag();
49 Cerr <<
"Using a transparent medium radiation model with a problem of type " <<
que_suis_je() <<
" that dont have a fluid medium is forbidden !!!" << finl;
54 mod_rayo_transp_.typer(mot.
getChar());
55 is >> mod_rayo_transp_.valeur();
56 mod_rayo_transp_->associer_pb_fluide_rayo(*
this);
66 mod_rayo_transp_->completer();
77 mod_rayo_transp_->postraiter();
92 if (motlu==
"ENERGIE_CINETIQUE_TOTALE")
94 expression =
"predefini { pb_champ ";
96 expression +=
" energie_cinetique_totale } ";
99 else if (motlu==
"ENERGIE_CINETIQUE_ELEM")
101 expression =
"predefini { pb_champ ";
103 expression +=
" energie_cinetique_elem } ";
106 else if (motlu==
"VISCOUS_FORCE_X")
108 expression =
"predefini { pb_champ ";
110 expression +=
" viscous_force_X } ";
113 else if (motlu==
"VISCOUS_FORCE_Y")
115 expression =
"predefini { pb_champ ";
117 expression +=
" viscous_force_y } ";
120 else if (motlu==
"VISCOUS_FORCE_Z")
122 expression =
"predefini { pb_champ ";
124 expression +=
" viscous_force_z } ";
127 else if (motlu==
"VISCOUS_FORCE")
129 expression =
"predefini { pb_champ ";
131 expression +=
" viscous_force } ";
134 else if (motlu==
"PRESSURE_FORCE_X")
136 expression =
"predefini { pb_champ ";
138 expression +=
" pressure_force_x } ";
141 else if (motlu==
"PRESSURE_FORCE_Y")
143 expression =
"predefini { pb_champ ";
145 expression +=
" pressure_force_y } ";
148 else if (motlu==
"PRESSURE_FORCE_Z")
150 expression =
"predefini { pb_champ ";
152 expression +=
" pressure_force_z } ";
155 else if (motlu==
"PRESSURE_FORCE")
157 expression =
"predefini { pb_champ ";
159 expression +=
" pressure_force } ";
162 else if (motlu==
"TOTAL_FORCE_X")
164 expression =
"predefini { pb_champ ";
166 expression +=
" total_force_x } ";
169 else if (motlu==
"TOTAL_FORCE_Y")
171 expression =
"predefini { pb_champ ";
173 expression +=
" total_force_y } ";
176 else if (motlu==
"TOTAL_FORCE_Z")
178 expression =
"predefini { pb_champ ";
180 expression +=
" total_force_z } ";
183 else if (motlu==
"TOTAL_FORCE")
185 expression =
"predefini { pb_champ ";
187 expression +=
" total_force } ";
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for an incompressible fluid and its properties:
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
const char * getChar() 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.
Pb_Fluide_base This class provides a base class for.
void validateTimeStep() override
Validates the calculated unknown by moving the present time at the end of the time step.
int postraiter(int force=1) override
Asks the problem to post-process its fields, probes, etc.
int expression_predefini(const Motcle &motlu, Nom &expression) override
void completer() override
Completes the equations associated with the problem.
Entree & lire_radiation_models(Entree &is, Motcle &mot) override final
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
class Probleme_base It is a Probleme_U that is not a coupling.
double presentTime() const override
Returns the present time.
int postraiter(int force=1) override
If force=1, performs post-processing regardless of the post-processing frequencies.
std::vector< OWN_PTR(Milieu_base)> le_milieu_
virtual void completer()
Completes the equations associated with the problem.
virtual int expression_predefini(const Motcle &motlu, Nom &expression)
void validateTimeStep() override
Validates the calculated unknown by moving the present time at the end of the time step.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.