17#include <Neumann_sortie_libre.h>
18#include <Navier_Stokes_std.h>
19#include <Equation_base.h>
44 app_domains = {Motcle(
"Thermique"), Motcle(
"Thermique_H"),
45 Motcle(
"Transport_Keps"), Motcle(
"Transport_Keps_V2"),
46 Motcle(
"Transport_Keps_Bas_Re"), Motcle(
"Transport_Keps_Rea"),
47 Motcle(
"Concentration"), Motcle(
"Fraction_massique"),
48 Motcle(
"Fraction_volumique"), Motcle(
"Transport_V2"),
49 Motcle(
"Turbulence"), Motcle(
"Interfacial_area"),
50 Motcle(
"indetermine"), Motcle(
"Transport_Komega")
54 Motcles les_motcles(16);
56 les_motcles[0] =
"T_ext";
57 les_motcles[1] =
"C_ext";
58 les_motcles[2] =
"K_Eps_ext";
59 les_motcles[3] =
"F_M_ext";
60 les_motcles[4] =
"Fluctu_Temperature_ext";
61 les_motcles[5] =
"Flux_Chaleur_Turb_ext";
62 les_motcles[6] =
"V2_ext";
63 les_motcles[7] =
"Y_ext";
64 les_motcles[8] =
"A_ext";
65 les_motcles[9] =
"k_ext";
66 les_motcles[10] =
"tau_ext";
67 les_motcles[11] =
"omega_ext";
68 les_motcles[12] =
"k_WIT_ext";
69 les_motcles[13] =
"a_i_ext";
70 les_motcles[14] =
"K_Omega_ext";
71 les_motcles[15] =
"H_ext";
74 int rang = les_motcles.search(motlu);
79 Cerr <<
"Error reading boundary condition of type: " << finl;
81 Cerr <<
"Expected " << les_motcles <<
" instead of " << motlu << finl;
85 le_champ_front = le_champ_ext;
99 const int nb_comp = le_champ_front->nb_comp();
102 (
que_suis_je() ==
"Frontiere_ouverte_rayo_semi_transp") ||
103 (
que_suis_je() ==
"Frontiere_ouverte_rayo_transp") ||
104 (
que_suis_je() ==
"Sortie_libre_temperature_imposee_H"))
122 if (le_champ_ext->valeurs().size() == 1)
123 return le_champ_ext->valeurs()(0, 0);
124 else if (le_champ_ext->valeurs().dimension(1) == 1)
125 return le_champ_ext->valeurs()(i, 0);
128 Cerr <<
"Neumann_sortie_libre::val_ext" << finl;
129 Cerr << le_champ_ext << finl;
138 assert(le_champ_ext);
139 return le_champ_ext->initialiser(temps,
domaine_Cl_dis().equation().inconnue());
145 assert(le_champ_ext);
146 le_champ_ext->associer_fr_dis_base(fr);
158 if (le_champ_ext->valeurs().dimension(0) == 1)
159 return le_champ_ext->valeurs()(0, j);
161 return le_champ_ext->valeurs()(i, j);
170 if (
val_ext_.dimension(0) != nb_faces_tot)
171 val_ext_.resize(nb_faces_tot, le_champ_ext->valeurs().dimension(1));
173 int nb_comp =
val_ext_.dimension(1);
174 for (
int i = 0; i < size; i++)
175 for (
int j = 0; j < nb_comp; j++)
183 return le_champ_ext->valeurs();
188 return le_champ_ext->valeurs();
194 le_champ_ext->fixer_nb_valeurs_temporelles(nb_cases);
200 le_champ_ext->mettre_a_jour(temps);
206 le_champ_ext->set_temps_defaut(temps);
212 le_champ_ext->changer_temps_futur(temps, i);
virtual void changer_temps_futur(double temps, int i)
Changes the i-th future time of the BC.
virtual void mettre_a_jour(double temps)
Performs a time update of the boundary condition.
virtual void fixer_nb_valeurs_temporelles(int nb_cases)
Called by Conds_lim::completer. Calls cha_front_base::fixer_nb_valeurs_temporelles.
virtual void associer_fr_dis_base(const Frontiere_dis_base &)
Associates the boundary with the object.
virtual int avancer(double temps)
Rotates the wheel of the BC.
Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the domain of discretized boundary conditions to which the object belongs.
virtual int reculer(double temps)
Rotates the wheel of the BC.
std::vector< Motcle > app_domains
virtual int initialiser(double temps)
Initialization at the beginning of the calculation.
virtual Frontiere_dis_base & frontiere_dis()
Returns the discretized boundary to which the boundary conditions apply.
virtual void set_temps_defaut(double temps)
Changes the i-th future time of the BC.
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 Champ_Inc_base & inconnue() const =0
virtual void verifie_ch_init_nb_comp_cl(const Champ_Inc_base &ch_ref, const int nb_comp, const Cond_lim_base &cl) const
class Frontiere_dis_base Class representing a discretized boundary.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Navier_Stokes_std This class carries the terms of the momentum equation.
Champ_Inc_base & pression()
Neumann_sortie_libre This class represents an open boundary without imposed velocity.
int avancer(double temps) override
Rotates the wheel of the BC.
void mettre_a_jour(double temps) override
Performs a time update of the boundary condition.
const DoubleTab & val_ext() const
void changer_temps_futur(double temps, int i) override
Changes the i-th future time of the BC.
int initialiser(double temps) override
Initialization at the beginning of the calculation.
void associer_fr_dis_base(const Frontiere_dis_base &) override
Associates the boundary with the object.
const DoubleTab & tab_ext() const override
void verifie_ch_init_nb_comp() const override
Calls the verification of the field read through the equation for which the boundary condition is con...
int reculer(double temps) override
Rotates the wheel of the BC.
void set_temps_defaut(double temps) override
Changes the i-th future time of the BC.
void fixer_nb_valeurs_temporelles(int nb_cases) override
Called by Conds_lim::completer. Calls cha_front_base::fixer_nb_valeurs_temporelles.
Classe Neumann_val_ext This class is the base class of the hierarchy of.
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.