16#include <Source_rayo_semi_transp_base.h>
17#include <Pb_Couple_rayo_semi_transp.h>
18#include <Pb_rayo_semi_transp.h>
19#include <Fluide_base.h>
43 Cerr <<
"Pb_Couple_rayo_semi_transp::initialize - We can only treat 1 semi-transparent problem at present. You defined " << nb_pb_ray <<
" !!!" << finl;
46 else if (nb_pb_ray == 0)
47 Process::exit(
"Pb_Couple_rayo_semi_transp::initialize - It seems you forgot to define the radiation properties in your medium !!!\n");
58 pb_rayo_semi_transp_->associer_probleme_fluide(le_pb);
63 pb_rayo_semi_transp_->discretise_longueur_rayo();
66 Probleme_base& le_pb = pb_rayo_semi_transp_->probleme_fluide();
71 for (
int j = 0; j < les_sources.size(); j++)
73 Source& la_source = les_sources[j];
77 Cerr <<
"Association pb rayo semi transp au terme source rayo" << finl;
83 pb_rayo_semi_transp_->eq_rayo().resoudre(
presentTime());
84 pb_rayo_semi_transp_->calculer_flux_radiatif();
98 Cerr <<
"associating the semi-transparent radiation problem with the coupled problem" << finl;
99 if (pb_rayo_semi_transp_)
100 Process::exit(
"Attention : on ne peut associer qu'un pb de rayonnement a un Pb_Couple_rayo_semi_transp !!! \n");
103 ajouter(pb_rayo_semi_transp_.valeur());
double presentTime() const override
Returns the present time.
const Probleme_U & probleme(int i) const
virtual int calculer_coeffs_echange(double temps)
Computes the exchange coefficients for thermally coupled problems.
Class defining operators and methods for all reading operation in an input flow (file,...
Sources & sources()
Returns the source terms associated with the equation.
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Base class for an incompressible fluid and its properties:
Base class for TRUST objects (Objet_U).
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.
Coupled problem class for semi-transparent radiation.
int associer_(Objet_U &) override
Associates the Objet_U with another Objet_U. Virtual method to override.
void initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
Semi-transparent radiation problem. Pb_rayo_semi_transp is a Probleme_base with 4 specific features:
Probleme_Couple This is the historical coupling class of TRUST.
void initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
int associer_(Objet_U &) override
Overrides Objet_U::associer_(Objet_U&): associates an object with the coupled problem,...
void ajouter(Probleme_base &)
Adds a problem to the list of coupled problems.
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 int nombre_d_equations() const =0
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.
Source_rayo_semi_transp_base Base class of the source term hierarchy for the temperature.
virtual void associer_pb_rayo_semi_transp(Pb_rayo_semi_transp &)
Source Generic class of the source term hierarchy. A Source object can.
class Sources Sources represents a list of Source objects.