16#include <Fluide_Diphasique.h>
17#include <Champ_Uniforme.h>
18#include <Interprete.h>
32 if sub_type(Solid_Particle_base, phase0_.valeur())
37 else if sub_type(Solid_Particle_base,
phase1_.valeur())
54 param.
ajouter(
"chaleur_latente", &chaleur_latente_);
66 msg +=
"Both phases defined in the bloc Fluide_Diphasique must be of type Fluide_Incompressible. \n";
70 if (phase0_->a_gravite() ||
phase1_->a_gravite())
72 msg +=
"The gravity field should be defined in the Fluide_Diphasique bloc and not inside the Incompressible fluids bloc. \n";
78 msg +=
"The surface tension sigma must be specify with a Champ_Uniforme type field. \n";
83 if (sigma_->valeurs()(0, 0) < 0)
85 msg +=
"The surface tension sigma is not positive. \n";
93 msg +=
"The latent heat chaleur_latente must be specify with a Champ_Uniforme type field. \n";
102 assert(phase == 0 || phase == 1);
108 return sigma_->valeurs()(0, 0);
113 if (!chaleur_latente_)
115 Cerr <<
"Fluide_Diphasique::chaleur_latente() : The latent heat has not been specified." << finl;
118 return chaleur_latente_->valeurs()(0, 0);
136 phase0_->initialiser(temps);
145 phase0_->mettre_a_jour(temps);
150 phase0_->discretiser(pb, dis);
class Discretisation_base This class represents a spatial discretization scheme, which
Class defining operators and methods for all reading operation in an input flow (file,...
double chaleur_latente() const
int initialiser(const double temps) override
const Fluide_Incompressible & fluide_phase(int la_phase) const
void set_param(Param ¶m) const override
void verifier_coherence_champs(int &err, Nom &message) override
void mettre_a_jour(double temps) override
void discretiser(const Probleme_base &pb, const Discretisation_base &dis) override
Represents an incompressible fluid and its properties:
Milieu_base This class is the base of the (physical) medium hierarchy.
void discretiser_porosite(const Probleme_base &pb, const Discretisation_base &dis)
virtual void mettre_a_jour(double temps)
int initialiser_porosite(const double temps)
void discretiser_diametre_hydro(const Probleme_base &pb, const Discretisation_base &dis)
virtual void verifier_coherence_champs(int &err, Nom &message)
virtual void set_additional_params(Param ¶m) const
class Nom: a character string for naming TRUST objects.
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.
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.