16#include <Convection_Diffusion_Temperature_sensibility.h>
17#include <Probleme_base.h>
18#include <Schema_Temps_base.h>
21#include <LecFicDiffuse.h>
22#include <communications.h>
23#include <Interprete.h>
64 if (mot==
"velocity_state")
66 int lu_info_evaluateur = 0;
67 Cerr <<
"Reading and typing of the velocity state : " << finl;
68 Motcle motlu, accolade_fermee=
"}", accolade_ouverte=
"{";
70 if(motlu!=accolade_ouverte)
72 Cerr <<
"We expected a { while reading of " <<
que_suis_je() << finl;
73 Cerr <<
"and not : " << motlu << finl;
78 Cerr<<
"word read="<<motlu<<finl;
79 if(motlu==
"pb_champ_evaluateur")
82 lu_info_evaluateur = 1;
86 Cerr<<
"We expected the name of a problem and a fluid fild while reading of "<<motlu<< finl;
87 Cerr <<
"and not : " <<accolade_ouverte <<
" or "<< accolade_fermee << finl;
93 Cerr<<
"Convection_Diffusion_Temperature_sensibility::lire_motcle_non_standard: keyword "<<motlu<<
" is not recognized."<<finl;
94 Cerr<<
"The recognized keywords are :"<<
"pb_champ_evaluateur "<<finl;
98 if(motlu != accolade_fermee)
100 Cerr <<
"We expected a } while reading of " <<
que_suis_je() << finl;
101 Cerr <<
"and not : " << motlu << finl;
104 if (lu_info_evaluateur!=1)
106 Cerr<<
"Keyword pb_champ_evaluateur must be specified with associated data"<<finl;
107 Cerr<<
"when Convection_Diffusion_Temperature_sensibility is used."<<finl;
114 else if (mot==
"temperature_state")
116 int lu_info_evaluateur = 0;
117 Cerr <<
"Reading and typing of the temperature state : " << finl;
118 Motcle motlu, accolade_fermee=
"}", accolade_ouverte=
"{";
120 if(motlu!=accolade_ouverte)
122 Cerr <<
"We expected a { while reading of " <<
que_suis_je() << finl;
123 Cerr <<
"and not : " << motlu << finl;
128 Cerr<<
"word read="<<motlu<<finl;
129 if(motlu==
"pb_champ_evaluateur")
132 lu_info_evaluateur = 1;
136 Cerr<<
"We expected the name of a problem and a fluid fild while reading of "<<motlu<< finl;
137 Cerr <<
"and not : " <<accolade_ouverte <<
" or "<< accolade_fermee << finl;
143 Cerr<<
"Convection_Diffusion_Temperature_sensibility::lire_motcle_non_standard: keyword "<<motlu<<
" is not recognized."<<finl;
144 Cerr<<
"The recognized keywords are :"<<
"pb_champ_evaluateur "<<finl;
148 if(motlu != accolade_fermee)
150 Cerr <<
"We expected a } while reading of " <<
que_suis_je() << finl;
151 Cerr <<
"and not : " << motlu << finl;
154 if (lu_info_evaluateur!=1)
156 Cerr<<
"Keyword pb_champ_evaluateur must be specified with associated data"<<finl;
157 Cerr<<
"when Convection_Diffusion_Temperature_sensibility is used."<<finl;
163 else if (mot==
"uncertain_variable")
166 Cerr <<
"Reading and typing of the uncertain variable: " << finl;
167 Motcle motlu, accolade_fermee=
"}", accolade_ouverte=
"{";
169 if(motlu!=accolade_ouverte)
171 Cerr <<
"We expected a { while reading of " <<
que_suis_je() << finl;
172 Cerr <<
"and not : " << motlu << finl;
177 Cerr<<
"word read="<<motlu<<finl;
180 if(motlu != accolade_fermee)
182 Cerr <<
"We expected a } while reading of " <<
que_suis_je() << finl;
183 Cerr <<
"and not : " << motlu << finl;
195 Cerr <<
"Convection_Diffusion_Temperature_sensibility::get_state_field(): recoup state from "<<one_name_state_pb<< finl;
198 Cerr <<
"Convection_Diffusion_Temperature_sensibility: we expect here the nom of the state problem and not the name of the sensibility problem"<< finl;
211 Cerr <<
"No problem named "<< one_name_state_pb <<
" has been found."<< finl;
214 rch = pb->get_champ(one_name_state_field);
225 Cerr<<pb->le_nom()<<
" has no unknown field named "<<one_name_state_field<<finl;
232 Cerr <<
"Convection_Diffusion_Temperature_sensibility: update state from "<<one_name_state_pb<< finl;
239 rch = pb->get_champ(one_name_state_field);
267 return velocity_state_field->valeurs();
271 return temperature_state_field->valeurs();
276 return velocity_state_field.valeur();
280 return temperature_state_field.valeur();
class Champ_base This class is the base of the fields hierarchy.
: class Convection_Diffusion_Temperature_sensibility
void update_evaluator_field(const Nom &one_name_state_pb, const Motcle &one_name_state_field)
const Champ_Inc_base & get_temperature_state() const
const DoubleTab & get_temperature_state_field() const
const DoubleTab & get_velocity_state_field() const
void set_param(Param ¶m) const override
const double & get_poly_chaos_value() const
Motcle name_temperature_state_field
void mettre_a_jour(double temps) override
The value of the unknown at the time step has been calculated.
const Motcle & get_uncertain_variable_name() const
const Champ_Inc_base & get_velocity_state() const
int lire_motcle_non_standard(const Motcle &mot, Entree &is) override
Reads non-simple-type parameters of an Objet_U from an input stream.
OBS_PTR(Champ_Inc_base) velocity_state_field
void associate_evaluator_field(const Nom &one_name_state_pb, const Motcle &one_name_state_field)
Motcle name_velocity_state_field
Convection_Diffusion_Temperature Special case of Convection_Diffusion_std.
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
void set_param(Param &titi) const override
Class defining operators and methods for all reading operation in an input flow (file,...
const Nom & le_nom() const override
Returns the name of the equation.
virtual void mettre_a_jour(double temps)
The value of the unknown at the time step has been calculated.
Probleme_base & probleme()
Returns the problem associated with the equation.
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
Base class for TRUST objects (Objet_U).
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.
Helper class to factorize the readOn method of Objet_U classes.
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
void ajouter_non_std(const char *keyword, const Objet_U *value, Param::Nature nat=Param::OPTIONAL)
Register a keyword handled by Objet_U::lire_motcle_non_standard.
class Probleme_base It is a Probleme_U that is not a coupling.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.