16#include <Echange_global_impose.h>
17#include <Champ_Uniforme.h>
18#include <Probleme_base.h>
19#include <Milieu_base.h>
20#include <Domaine_Cl_dis_base.h>
21#include <Equation_base.h>
33Echange_global_impose::Echange_global_impose()
62 derivee_phi_ext_->changer_temps_futur(temps, i);
63 phi_ext_->changer_temps_futur(temps, i);
71 derivee_phi_ext_->avancer(temps);
81 derivee_phi_ext_->reculer(temps);
92 derivee_phi_ext_->set_temps_defaut(temps);
102 derivee_phi_ext_->mettre_a_jour(temps);
113 derivee_phi_ext_->initialiser(temps,
domaine_Cl_dis().inconnue());
115 DoubleTab& vals_derphi = derivee_phi_ext_->valeurs();
117 DoubleTab& vals_phi =
phi_ext_->valeurs();
126 if (mon_dom_cl_dis->equation().que_suis_je()!=
"Convection_Diffusion_Concentration")
133 if ((nom_pb.
debute_par(
"Probleme_Interface")|| nom_pb==
Nom(
"Probleme_Thermo_Front_Tracking"))||!sub_type(
Champ_Uniforme,rho)||nom_pb==
Nom(
"Pb_Conduction"))
156 return champ_ext.
valeurs()(0,0)/(d_rho*d_Cp);
158 return champ_ext.
valeurs()(i,0)/(d_rho*d_Cp);
160 Cerr <<
"Echange_global_impose::flux_impose error" << finl;
167 return champ_ext.
valeurs()(0,0);
169 return champ_ext.
valeurs()(i,0);
171 Cerr <<
"Echange_global_impose::flux_impose error" << finl;
180 if (mon_dom_cl_dis->equation().que_suis_je()!=
"Convection_Diffusion_Concentration")
209 return champ_ext.
valeurs()(0,j)/(d_rho*d_Cp);
211 return champ_ext.
valeurs()(i,j)/(d_rho*d_Cp);
216 return champ_ext.
valeurs()(0,j);
218 return champ_ext.
valeurs()(i,j);
227 derivee_phi_ext_.typer(
"Ch_front_var_instationnaire_dep");
228 derivee_phi_ext_->fixer_nb_comp(1);
230 derivee_phi_ext_->fixer_nb_valeurs_temporelles(3);
232 phi_ext_.typer(
"Ch_front_var_instationnaire_dep");
235 phi_ext_->fixer_nb_valeurs_temporelles(3);
class Champ_Don_base base class of Given Fields (not calculated)
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
virtual DoubleTab & valeurs()=0
class Champ_base This class is the base of the fields hierarchy.
class Champ_front_base Base class for the hierarchy of boundary fields.
virtual DoubleTab & valeurs() override
Returns the array of field values.
Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the domain of discretized boundary conditions to which the object belongs.
virtual void completer()
DOES NOTHING must be overridden in derived classes.
virtual Frontiere_dis_base & frontiere_dis()
Returns the discretized boundary to which the boundary conditions apply.
Classe Echange_global_impose This class represents the special case of the class.
virtual double flux_exterieur_impose(int i) const
void set_temps_defaut(double temps) override
Changes the i-th future time of the BC.
void mettre_a_jour(double temps) override
Performs a time update of the boundary condition.
int reculer(double temps) override
Rotates the wheel of the BC.
Champ_front_base & derivee_phi_ext()
Champ_front_base & phi_ext()
void completer() override
DOES NOTHING must be overridden in derived classes.
int avancer(double temps) override
Rotates the wheel of the BC.
int initialiser(double temps) override
Initialization at the beginning of the calculation.
virtual double derivee_flux_exterieur_imposee(int i) const
virtual double champ_exterieur(int i, int j, const Champ_front_base &champ_ext) const
void changer_temps_futur(double temps, int i) override
Changes the i-th future time of the BC.
Echange_impose_base: This boundary condition is used only for the energy equation.
int avancer(double temps) override
Rotates the wheel of the BC.
int initialiser(double temps) override
Initialization at the beginning of the calculation.
void set_temps_defaut(double temps) override
Changes the i-th future time of the BC.
int reculer(double temps) override
Rotates the wheel of the BC.
void mettre_a_jour(double) override
Performs a time update of the boundary conditions.
void changer_temps_futur(double temps, int i) override
Changes the i-th future time of the BC.
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const Milieu_base & milieu() const =0
Milieu_base This class is the base of the (physical) medium hierarchy.
virtual const Equation_base & equation(const std::string &nom_inc) const
virtual const Champ_Don_base & capacite_calorifique() const
Returns the heat capacity of the medium (const version).
virtual const Champ_base & masse_volumique() const
Returns the mass density of the medium (const version).
class Nom: a character string for naming TRUST objects.
virtual int debute_par(const char *const n) 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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
_SIZE_ dimension(int d) const