16#include <Convection_Diffusion_std.h>
17#include <Probleme_base.h>
18#include <Milieu_base.h>
62 Cerr <<
"Reading and typing of the diffusion operator : " << finl;
68 else if (mot==
"convection")
70 Cerr <<
"Reading and typing of the convection operator : " << finl;
108 Cerr <<
"Error for Convection_Diffusion_std::operateur(int i)" << finl;
110 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
135 Cerr <<
"Error for Convection_Diffusion_std::operateur(int i)" << finl;
137 Cerr <<
"and you are trying to access the " << i <<
" th one."<< finl;
class Champ_Don_base base class of Given Fields (not calculated)
class Champ_base This class is the base of the fields hierarchy.
Convection_Diffusion_std This class is the base for equations modelling the transport.
std::vector< YAML_data > data_a_sauvegarder_base() const
void associer_vitesse(const Champ_base &)
Associates the transporting velocity with the equation.
virtual const Champ_Don_base & diffusivite_pour_transport() const
Operateur_Diff terme_diffusif
virtual const Champ_base & diffusivite_pour_pas_de_temps() const
int idx_phase_transportante_
int reprendre_base(Entree &)
int sauvegarder_base(Sortie &) const
const Operateur & operateur(int) const override
Returns the operator at the given index: returns terme_diffusif if i = 0,.
void set_param(Param &titi) const override
int nombre_d_operateurs() const override
Returns the number of operators in the equation: 2 for a diffusion equation.
virtual const Champ_base & vitesse_pour_transport() const
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
Operateur_Conv terme_convectif
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 void set_param(Param &titi) const override
int reprendre(Entree &) override
We resume the unknown from an input stream.
virtual const Milieu_base & milieu() const =0
virtual std::vector< YAML_data > data_a_sauvegarder() const
for PDI IO: retrieve name, type and dimensions of the data to save/restore. This has to be overrode f...
int sauvegarder(Sortie &) const override
We save the unknown, then the source terms to an output stream.
Probleme_base & probleme()
Returns the problem associated with the equation.
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
virtual const Champ_Don_base & diffusivite() const
Returns the diffusivity of the medium (const version).
A character string (Nom) in uppercase.
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.
class Operateur Generic class of the operator hierarchy.
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.
const Champ_base & get_champ(const Motcle &nom) const override
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.