16#include <Estimateur_Aposteriori_P0_VEF.h>
17#include <Navier_Stokes_Aposteriori.h>
18#include <Champ_P1_isoP1Bulle.h>
19#include <Discretisation_base.h>
20#include <Schema_Temps_base.h>
21#include <Postraitements.h>
22#include <Probleme_base.h>
23#include <Champ_P1NC.h>
40 Cerr <<
"Error : Pb_Hydraulique_Aposteriori is currently only available for the discretization VEFPreP1B !" << finl;
41 Cerr <<
"Please update your data file ..." << finl;
51 if (motlu ==
"estimateur_aposteriori")
53 if (!estimateur_aposteriori_)
55 estimateur_aposteriori();
58 Nom chaine =
"{ numero_source 0 sources { refChamp { pb_champ ";
60 chaine +=
" vitesse } } }";
62 echaine >> champ_src_;
63 champ_src_.completer(
probleme().postraitements().front());
73 noms_compris.add(
"estimateur_aposteriori");
75 Cerr<<
" Navier_Stokes_Aposteriori : "<< noms_compris <<finl;
77 nom.add(noms_compris);
82 if (nom ==
"estimateur_aposteriori")
93 if (nom ==
"estimateur_aposteriori")
103 if (nom ==
"estimateur_aposteriori")
106 if (((ch.
temps() != la_vitesse->temps()) || (ch.
temps() == temps_init)) && (la_vitesse->mon_equation_non_nul()))
115void Navier_Stokes_Aposteriori::estimateur_aposteriori()
119 estimateur_aposteriori_.typer(
"Estimateur_Aposteriori_P0_VEF");
125 ch.
nommer(
"estimateur_aposteriori");
int fixer_nb_valeurs_nodales(int n) override
Sets the number of degrees of freedom per component.
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
void associer_domaine_dis_base(const Domaine_dis_base &) override
void mettre_a_jour(double temps) override
Time update of the field.
class Champ_base This class is the base of the fields hierarchy.
virtual double changer_temps(const double t)
Sets the time at which the field is defined.
double temps() const
Returns the time of the field.
An input stream whose source is a character string.
Class defining operators and methods for all reading operation in an input flow (file,...
const Discretisation_base & discretisation() const
Returns the discretization associated with the equation.
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Probleme_base & probleme()
Returns the problem associated with the equation.
Schema_Temps_base & schema_temps()
Returns the time scheme associated with the equation.
Champs_compris champs_compris_
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
void associer_champ(const Champ_P1NC &, const Champ_P1_isoP1Bulle &, const Champ_Don_base &, const Domaine_Cl_dis_base &)
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
void nommer(const Nom &) override
Gives a name to the field.
virtual const Nom & fixer_unite(const Nom &)
Specifies the unit of a scalar field or whose all components have the same unit.
A character string (Nom) in uppercase.
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
void creer_champ(const Motcle &motlu) override
const Champ_base & get_champ(const Motcle &nom) const override
void discretiser() override
Discretizes the equation.
Navier_Stokes_std This class carries the terms of the momentum equation.
void creer_champ(const Motcle &motlu) override
const Champ_base & get_champ(const Motcle &nom) const override
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
void discretiser() override
Discretizes the equation.
virtual const Champ_Don_base & diffusivite_pour_transport() const
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
class Nom: a character string for naming TRUST objects.
An array of character strings (VECT(Nom)).
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 Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
double temps_init() const
Returns the initial time.
Base class for output streams.