16#include <Champ_Generique_Divergence.h>
17#include <Champ_Generique_refChamp.h>
18#include <Discretisation_base.h>
19#include <Synonyme_info.h>
52 Op_Div_.l_op_base().associer_eqn(eqn);
68 espace_stockage = creer_espace_stockage(scalaire,1,es_tmp);
73 Cerr<<
"We can apply a Champ_Generique_Divergence only to the velocity field"<<finl;
76 return espace_stockage;
87 espace_stockage = creer_espace_stockage(scalaire,1,es_tmp);
93 Cerr<<
"We can apply a Champ_Generique_Divergence only to the velocity field"<<finl;
94 Cerr<<
"The field treated here "<<nom[0]<<
" concerns "<<source.
le_nom()<<finl;
98 DoubleTab& espace_valeurs = espace_stockage->
valeurs();
100 return espace_stockage;
108 if (((type_op==
"Op_Div_VEF_P1NC") || (type_op==
"Op_Div_VDF_Face")) && (index <= 0))
109 loc = Entity::ELEMENT;
112 Cerr <<
"Error of type : Divergence operator " << type_op <<
" is not possible for the defined field " <<
nom_post_ << finl;
121 motcles[0] =
"composantes";
122 motcles[1] =
"unites";
124 int rang = motcles.
search(query);
141 unites[0] = source_unites[0]+
"/m";
155 Nom nom_post_source, nom_champ_source;
157 nom_champ_source = nom[0];
158 nom_post_source =
"Divergence_";
159 nom_post_source += nom_champ_source;
167 directive =
"divergence_vitesse";
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
const Noms get_property(const Motcle &query) const override
Returns the requested property.
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
void completer(const Postraitement_base &post) override
const Probleme_base & get_ref_pb_base() const override
Returns the problem that carries the target field.
virtual const Champ_Generique_base & get_source(int i) const
class Champ_Generique_Divergence
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
Entity get_localisation(const int index=-1) const override
Returns the type of geometric entities on which the discrete values are attached (NODE for a P1 field...
void completer(const Postraitement_base &post) override
const Noms get_property(const Motcle &query) const override
Returns the requested property.
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
const Motcle get_directive_pour_discr() const override
Returns the directive (champ_elem, champ_sommets, champ_face or pression) to launch the discretizatio...
void nommer_source() override
Classe Champ_Generique_Operateur_base Base class for generic field classes dedicated to applying an o...
virtual const Noms get_property(const Motcle &query) const
Returns the requested property.
virtual const Champ_base & get_champ(OWN_PTR(Champ_base) &espace_stockage) const =0
void nommer(const Nom &nom) override
Assigns a name to the Objet_U. Virtual method to override.
Special field class that encapsulates a reference to a volume field of TRUST of type Champ_base.
virtual DoubleTab & valeurs()=0
class Champ_base This class is the base of the fields hierarchy.
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....
const Nom & le_nom() const override
Returns the name of the field.
A character string (Nom) in uppercase.
An array of Motcle objects.
int search(const Motcle &t) const
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 const Nom & le_nom() const
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Base class for all post-processing objects.
class Probleme_base It is a Probleme_U that is not a coupling.
virtual const Equation_base & equation(int) const =0
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")