16#include <Multiplicateur_diphasique_base.h>
17#include <EcritureLectureSpecial.h>
18#include <Fluide_Incompressible.h>
19#include <Perte_Charge_Gen.h>
20#include <Pb_Multiphase.h>
36 param.lire_avec_accolades_depuis(is);
37 Cerr <<
"Interpreting the function " <<
lambda.getString() <<
" ... ";
39 Cerr <<
" Ok" << finl;
40 if (diam_hydr->nb_comp() != 1)
42 Cerr <<
"The diam_hydr field must be defined with one component" << finl;
65 os << ident_k << finl;
66 os <<
"constante" << finl;
69 Cerr <<
"Saving K at time : " <<
Nom(temps,
"%e") <<
" with value " <<
K_ << finl;
77 avancer_fichier(is, ident_k);
79 Cerr <<
"Resuming with the value K = " <<
K_ << finl;
99 else if (mot ==
"sous_domaine")
105 else if (mot ==
"regul")
114 Cerr <<
"Keyword \"" << mot <<
"\" not understood while reading a " <<
que_suis_je() << finl;
131 col_names.add(
"Flow_rate");
132 col_names.add(
"Target_Flow_rate");
153 le_dom_vf_ = ref_cast(
Domaine_VF, domaine_dis);
154 le_dom_Cl_dis_ = domaine_Cl_dis;
double temps() const
Returns the time of the field.
const Sous_Domaine_t & ss_domaine(int i) const
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
static int is_ecriture_special(int &special, int &a_faire)
Indicates whether the special format was requested in active writing by xyz save.
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const Champ_Inc_base & inconnue() const =0
Probleme_base & probleme()
Returns the problem associated with the equation.
Base class for an incompressible fluid and its properties:
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.
An array of character strings (VECT(Nom)).
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.
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
virtual void set_param(Param ¶m) const override
void associer_pb(const Probleme_base &) override
associates le_fluide and la_vitesse
void mettre_a_jour(double t) override
DOES NOTHING - to override in derived classes.
int reprendre(Entree &is) override
Restores an Objet_U from an input stream. Virtual method to override.
void completer() override
Updates internal references of the Source_base object.
bool sous_domaine
Is the term limited to a sub-domain?
int sauvegarder(Sortie &os) const override
Saves an Objet_U to an output stream. Virtual method to override.
Nom nom_sous_domaine
Name of the sub-domain, initialized in readOn().
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
void update_K(const Equation_base &eqn, double deb, DoubleVect &bilan)
double calculate_Q(const Equation_base &eqn, const IntVect &num_faces, const IntVect &sgn) const
virtual void lire_surfaces(Entree &, const Domaine &, const Domaine_dis_base &, IntVect &, IntVect &, int lire_derniere_accolade=1)
Entree & lire_regul(Entree &)
Reads the specifications of a singular pressure drop from an input stream.
int direction_perte_charge_
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
class Probleme_base It is a Probleme_U that is not a coupling.
const Domaine & domaine() const
Returns the domain associated with the problem.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
Source_base A Source_base object is a term appearing on the right-hand side of an.
void set_fichier(const Nom &)
void set_col_names(const Noms &col_names)
void set_description(const Nom &nom)
virtual void completer()
Updates internal references of the Source_base object.
void resize(_SIZE_, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)