16#include <Diametre_bulles_musig.h>
17#include <Pb_Multiphase.h>
19#include <Discret_Thyd.h>
20#include <Champ_base.h>
21#include <Milieu_MUSIG.h>
31 param.lire_avec_accolades_depuis(is);
33 Pb_Multiphase& pb = ref_cast(Pb_Multiphase, pb_.valeur());
34 const Milieu_MUSIG *milMusig = sub_type(Milieu_MUSIG, pb.
milieu()) ? &ref_cast(Milieu_MUSIG, pb.
milieu()) : nullptr;
38 const Discret_Thyd& dis = ref_cast(Discret_Thyd, pb.
discretisation());
39 Noms noms(N), unites(N);
40 noms[0] =
"diametre_bulles";
42 Motcle typeChamp =
"champ_elem";
52 for (
int k = 0; k < N; k++)
59 DoubleTab& tab_diametres = diametres_->valeurs();
61 for (
int k = 0; k < N; k++)
73 if (nom ==
"diametre_bulles")
81 if (nom ==
"diametre_bulles")
89 if (nom ==
"diametre_bulles")
92 throw std::runtime_error(std::string(
"Field ") + nom.
getString() + std::string(
" not found !"));
class Champ_base This class is the base of the fields hierarchy.
Champs_compris champs_compris_
OBS_PTR(Probleme_base) pb_
Diametre_bulles_musig class: Contains the Sauter diameters of the bubble/droplet field (dispersed pha...
const Champ_base & get_champ(const Motcle &nom) const override
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
void discretiser_champ(const Motcle &directive, const Domaine_dis_base &z, const Nom &nom, const Nom &unite, int nb_comp, int nb_pas_dt, double temps, OWN_PTR(Champ_Inc_base)&champ, const Nom &sous_type=NOM_VIDE) const
Class defining operators and methods for all reading operation in an input flow (file,...
double get_Diameter_Sup(int iPhaseMilieu) const
bool has_dispersed_gas(int k) const
double get_Diameter_Inf(int iPhaseMilieu) const
bool has_dispersed_liquid(int k) const
double get_Diameter_Sauter(int iPhaseMilieu) const
A character string (Nom) in uppercase.
const std::string & getString() const
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.
const Discretisation_base & discretisation() const
Returns the discretization associated with the problem.
virtual const Milieu_base & milieu() const
Returns the physical medium associated with the problem (const version).
const Domaine_dis_base & domaine_dis() const
Returns the discretized domain associated with the problem (const version).
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
Base class for output streams.
_SIZE_ dimension_tot(int) const override