16#include <Sortie_libre_pression_imposee.h>
17#include <Fluide_Incompressible.h>
18#include <Navier_Stokes_std.h>
19#include <Champ_Uniforme.h>
20#include <Equation_base.h>
28Sortie_libre_pression_imposee::Sortie_libre_pression_imposee() : d_rho(-123.) { }
37 le_champ_ext.typer(
"Champ_front_uniforme");
38 le_champ_ext->valeurs().resize(1,
dimension);
51 if (sub_type(
Fluide_Incompressible,mil) && mon_dom_cl_dis->equation().que_suis_je() !=
"QDM_Multiphase")
97 assert(!est_egal(
d_rho, -123.));
106 if (le_champ_front->valeurs().dimension(0) == 1)
107 return le_champ_front->valeurs()(0, j) / rho_;
108 else if (j < le_champ_front->valeurs().
dimension(1))
109 return le_champ_front->valeurs()(i, j) / rho_;
111 Cerr <<
"Sortie_libre_pression_imposee::flux_impose error" << finl;
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
virtual DoubleTab & valeurs()=0
class Champ_base This class is the base of the fields hierarchy.
std::vector< Motcle > app_domains
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const Milieu_base & milieu() const =0
Represents an incompressible fluid and its properties:
Milieu_base This class is the base of the (physical) medium hierarchy.
virtual const Equation_base & equation(const std::string &nom_inc) const
virtual const Champ_base & masse_volumique() const
Returns the mass density of the medium (const version).
Neumann_sortie_libre This class represents an open boundary without imposed velocity.
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Sortie_libre_pression_imposee This class derives from Neumann_sortie_libre.
void completer() override
Completes the boundary conditions.
double flux_impose(int i) const override
Returns the value of the imposed flux on the i-th component of the field representing the flux at the...
Base class for output streams.