16#include <Echange_contact_rayo_semi_transp_VDF.h>
17#include <Pb_Conduction.h>
18#include <Pb_rayo_semi_transp.h>
19#include <Champ_front_calc.h>
20#include <Milieu_base.h>
21#include <Domaine_VDF.h>
59 if (
T_autre_pb().valeurs_au_temps(temps).size() == 0)
64 if (domaine_dis1.
domaine().
raccord(nom_racc1)->que_suis_je() !=
"Raccord_distant_homogene")
69 DoubleTab& mon_h = h_imp_->valeurs();
73 double invhparoi = 1. /
h_paroi;
101 Cerr <<
"end of construction in " <<
que_suis_je() << finl;
125 Cerr <<
"big problem in " <<
que_suis_je() << finl;
135 if (domaine_dis1.
domaine().
raccord(nom_racc1)->que_suis_je() !=
"Raccord_distant_homogene")
140 assert(nb_comp == 1);
142 DoubleTab& mon_h = h_imp_->valeurs();
146 double invhparoi = 1. /
h_paroi;
150 int is_pb_fluide = 0;
155 for (
int ii = 0; ii < taille; ii++)
156 for (
int jj = 0; jj < nb_comp; jj++)
158 mon_h(ii, jj) = 1. / (1. /
autre_h(ii, jj) + 1. / mon_h(ii, jj));
167 Motcle Thermique =
"Thermique";
168 Motcle indetermine =
"indetermine";
169 if ((dom_app == Thermique) || (dom_app == indetermine))
186 T_paroi.typer(
"Champ_front_fonc");
187 T_paroi->fixer_nb_comp(nb_comp);
205 int nb_faces_bord = ma_front_vf.
nb_faces();
208 Teta_p.
resize(nb_faces_bord, 1);
213 for (
int numfa = 0; numfa < nb_faces_bord; numfa++)
215 ind_fac = numfa + ndeb;
221 double flux_radia = flux_radiatif(numfa, 0);
222 Teta_p(numfa, 0) = (mon_h(numfa, 0) * mon_inco(elem) + lautre_h(numfa, 0) * t_autre(numfa, 0) - flux_radia) / (mon_h(numfa, 0) + lautre_h(numfa, 0));
229 Cerr <<
"The boundary temperature should not need to be computed for the solid problem" << finl;
230 Cerr <<
"solid " << finl;
246 int nb_faces_bord = ma_front_vf.
nb_faces();
248 assert(Teta_eq.
dimension(0) == nb_faces_bord);
253 for (
int numfa = 0; numfa < nb_faces_bord; numfa++)
254 Teta_eq(numfa, 0) = t_autre(numfa, 0) - (1 / lautre_h(numfa, 0)) * flux_radiatif(numfa, 0);
275 Cerr <<
"Error while searching for the opposite boundary condition." << finl;
DoubleTab & valeurs() override
Returns the array of field values at the current time.
class Champ_front_base Base class for the hierarchy of boundary fields.
virtual void associer_fr_dis_base(const Frontiere_dis_base &)
Associates a discretized boundary with the field.
virtual DoubleTab & valeurs() override
Returns the array of field values.
virtual DoubleTab & valeurs_au_temps(double temps)=0
virtual void mettre_a_jour(double temps)
DOES NOTHING, to override.
class Champ_front_calc Derived class of Champ_front_var representing
const Domaine_Cl_dis_base & domaine_Cl_dis() const
Returns the domain of discretized boundary conditions carried by the equation carrying the unknown fi...
const Champ_Inc_base & inconnue() const
Returns the associated unknown field.
const Milieu_base & milieu() const
Returns the medium associated with the equation carrying the unknown field whose trace is taken.
class Cond_lim_base Base class for the hierarchy of classes that represent the different boundary con...
void err_pas_compatible(const Equation_base &) const
This method is called when the boundary condition is not compatible with the equation on which we try...
Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the domain of discretized boundary conditions to which the object belongs.
virtual Frontiere_dis_base & frontiere_dis()
Returns the discretized boundary to which the boundary conditions apply.
const Pb_rayo_semi_transp & pb_rayo_semi_transp() const
virtual void associer_pb_rayo_semi_transp(const Pb_rayo_semi_transp &)
virtual void recherche_emissivite_et_A()
class Cond_lim Generic class used to represent any class
Raccord_t & raccord(int i)
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
int nb_cond_lim() const
Returns the number of boundary conditions.
Domaine_dis_base & domaine_dis()
Returns a reference to the discretized domain associated with the boundary conditions.
const Cond_lim & les_conditions_limites(int) const
Returns the i-th boundary condition.
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
const Frontiere_dis_base & frontiere_dis(const Nom &) const
Returns the boundary of Name nom.
const Domaine & domaine() const
void mettre_a_jour(double temps) override
Performs a time update of the boundary condition.
virtual Champ_front_base & T_ext()
Returns the T_ext field of temperature imposed at the boundary.
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
Probleme_base & probleme()
Returns the problem associated with the equation.
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
virtual const Motcle & domaine_application() const
Returns "indeterminate" Navier_Stokes_standard for example overrides this method.
virtual int nb_comp() const
int num_premiere_face() const
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
const Frontiere & frontiere() const
Returns the associated geometric boundary.
Milieu_base This class is the base of the (physical) medium hierarchy.
virtual const Champ_Don_base & conductivite() const
Returns the conductivity of the medium (const version).
virtual bool is_rayo_semi_transp() const
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
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.
Class Pb_Conduction: represents a heat conduction problem with non-uniform rho and Cp:
Semi-transparent radiation problem. Pb_rayo_semi_transp is a Probleme_base with 4 specific features:
const Champ_front_base & flux_radiatif(const Nom &nom_bord) const
class Probleme_base It is a Probleme_U that is not a coupling.
virtual const Milieu_base & milieu() const
Returns the physical medium associated with the problem (const version).
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.
void resize(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
_SIZE_ dimension(int d) const
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")