16#include <Sortie_libre_Gradient_Pression_impose_VEFPreP1B.h>
17#include <Domaine_Cl_dis_base.h>
18#include <Champ_P1_isoP1Bulle.h>
19#include <Navier_Stokes_std.h>
20#include <distances_VEF.h>
21#include <Milieu_base.h>
47 pression_interne = pression;
50 coeff.resize(nb_faces_loc);
51 for (
int ind_face = 0; ind_face < nb_faces_loc; ind_face++)
53 int face = le_bord.
num_face(ind_face);
54 int elem = face_voisins(face, 0);
56 coeff[ind_face] = distance_2D(face, elem, mon_dom_VEF) * 3.;
58 coeff[ind_face] = distance_3D(face, elem, mon_dom_VEF) * 4.;
69 Cerr <<
"Error in Sortie_libre_Gradient_Pression_impose_VEFPreP1B::mettre_a_jour" << finl;
77 if (!pression_interne)
79 Cerr <<
"Sortie_libre_Gradient_Pression_impose_VEFPreP1B::calculer_trace_pression() : pressure is not defined!" << finl;
85 for (
int ind_face = 0; ind_face < nb_faces_loc; ind_face++)
87 int face = le_bord.
num_face(ind_face);
std::vector< Nom > supp_discs
virtual void mettre_a_jour(double temps)
Performs a time update of the boundary condition.
Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the domain of discretized boundary conditions to which the object belongs.
virtual int initialiser(double temps)
Initialization at the beginning of the calculation.
virtual Frontiere_dis_base & frontiere_dis()
Returns the discretized boundary to which the boundary conditions apply.
static void verifier(const char *const msg, double)
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
Class defining operators and methods for all reading operation in an input flow (file,...
class Equation_base The role of an equation is the calculation of one or more fields....
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
int num_face(const int) const
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Navier_Stokes_std This class carries the terms of the momentum equation.
Champ_Inc_base & pression()
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_Gradient_Pression_impose_VEFPreP1B.
int initialiser(double temps) override
Initialization at the beginning of the calculation.
void mettre_a_jour(double) override
Performs a time update of the boundary condition.
virtual int calculer_trace_pression()
Sortie_libre_Gradient_Pression_impose_VEF.
DoubleVect trace_pression_int
Base class for output streams.