16#include <Fluide_MUSIG.h>
30 Cerr <<
"Fluide_MUSIG : { expected instead of " << mot << finl;
33 for (is >> mot; mot !=
"}"; is >> mot)
35 if(Motcle(mot) ==
"FLUIDE")
38 fluide.typer_lire_simple(is,
"Typing the fluid medium ...");
41 if (fluide->has_porosites())
43 Cerr <<
que_suis_je() +
" : porosity should be defined only once in the milieu_MUSIG block, not in " + fluide->
que_suis_je() << finl;
46 if (fluide->a_gravite())
48 Cerr <<
que_suis_je() +
" : gravity should be defined only once in the milieu_MUSIG block, not in " + fluide->
que_suis_je() << finl;
51 if (fluide->has_hydr_diam())
53 Cerr <<
que_suis_je() +
" : diametre_hyd_champ should be defined only once in the milieu_MUSIG block, not in " + fluide->
que_suis_je() << finl;
56 if (!sub_type(Fluide_base,fluide.valeur()))
58 Cerr <<
que_suis_je() +
" : only real fluids should be read and not a fluid of type " + fluide->
que_suis_je() << finl;
64 else if(Motcle(mot) ==
"NBPHASES")
68 else if(Motcle(mot) ==
"DIAMETRES" || Motcle(mot) ==
"DIAMETERS")
72 Cerr <<
"Fluide_MUSIG : you need to define nbPhases before " << mot << finl;
76 double dMin=-1, dMax=-1;
81 Cerr <<
"Fluide_MUSIG : { expected after the key word diametre instead of " << mot << finl;
84 for (is >> mot; mot !=
"}"; is >> mot)
86 if (Motcle(mot) ==
"DMIN")
90 if (Motcle(mot) ==
"DMAX")
94 if (Motcle(mot) ==
"LIN")
98 if (Motcle(mot) ==
"LOG")
103 if(dMin<0 || dMax <0 || dMin > dMax)
105 Cerr <<
"You need to define dMin and dMax with 0 < dMin < dMax " << mot << finl;
112 if(repartionType == 0)
116 else if(repartionType == 1)
118 double lnDiameter = log(dMin)+i*(log(dMax)-log(dMin))/(
nbSubPhases_);
123 Cout <<
"Fluide_MUSIG - Diametre : You need to choose between LIN - LOG for diameters repartitions" << finl;
133 Cerr <<
que_suis_je() +
": You need to define a fluid inside FLuide_MUSIG with parameter fluide" << finl;
136 else if (verifFluide > 1 )
138 Cerr <<
que_suis_je() +
": You need to define only one fluid inside Fluide_MUSIG" << finl;
143 Cerr <<
que_suis_je() +
": You need to precise the number of sub-phases with parameter nbPhases" << finl;
Class defining operators and methods for all reading operation in an input flow (file,...
int initialiser(const double temps) override
Initialise les parametres du fluide.
const OWN_PTR(Fluide_base) &get_Fluide() const
classe Fluide_base Cette classe represente un d'un fluide incompressible ainsi que
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Classe de base des flux de sortie.