16#include <Echange_interne_global_impose.h>
17#include <Equation_base.h>
18#include <Champ_front_calc_interne.h>
19#include <Probleme_base.h>
20#include <Domaine_Cl_dis_base.h>
21#include <Domaine_VF.h>
22#include <DomaineAxi1d.h>
49 if (
app_domains.size() == 0)
app_domains = { Motcle(
"Thermique"), Motcle(
"Neutronique"), Motcle(
"fraction_massique"), Motcle(
"indetermine") };
52 Motcle motcle(
"h_gap");
59 Cerr <<
"Error when reading boundary condition with type Echange_interne_global_impose " << finl;
60 Cerr <<
"We expected " << motcle <<
" instead of " << motlu << finl;
71 le_champ_front.typer(
"Champ_front_calc_interne");
88 t_ext.
creer(nom_pb, nom_bord,
"temperature");
100 const DomaineAxi1d& domax = ref_cast(DomaineAxi1d,zvf.
domaine());
102 const DoubleTab& xv = zvf.
xv();
103 const IntVect& fmap = t_ext.
face_map();
104 for (
int i=0; i<fvf.
nb_faces(); i++)
109 int elem = face_voisins(face,0)==-1 ? face_voisins(face,1) : face_voisins(face,0);
112 double x1 = xv(face,0);
113 double y1 = xv(face,1);
114 double x2 = xv(face_opp,0);
115 double y2 = xv(face_opp,1);
116 double r1 = sqrt((x1-x0)*(x1-x0)+(y1-y0)*(y1-y0));
117 double r2 = sqrt((x2-x0)*(x2-x0)+(y2-y0)*(y2-y0));
123 for (
int i=0; i<fvf.
nb_faces(); i++)
class Champ_front_calc_interne Derived class of Champ_front_calc representing
const IntVect & face_map() const
void creer(const Nom &, const Nom &, const Motcle &)
Create the Champ_front_calc object representing the trace of an unknown field on a boundary from name...
Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the domain of discretized boundary conditions to which the object belongs.
std::vector< Motcle > app_domains
virtual Frontiere_dis_base & frontiere_dis()
Returns the discretized boundary to which the boundary conditions apply.
const DoubleTab_t & origine_repere()
double xv(int num_face, int k) const
virtual double surface(int i) const
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
const Domaine & domaine() const
Classe Echange_global_impose This class represents the special case of the class.
void completer() override
DOES NOTHING must be overridden in derived classes.
virtual Champ_front_base & T_ext()
Returns the T_ext field of temperature imposed at the boundary.
Class Echange_interne_global_impose: This class represents the special case of.
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...
void completer() override
DOES NOTHING must be overridden in derived classes.
Class defining operators and methods for all reading operation in an input flow (file,...
int num_face(const int) const
virtual void creer_tableau_faces(Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) const
Creates an array with one "row" per face of this boundary.
const Frontiere & frontiere() const
Returns the associated geometric boundary.
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.