16#include <Champ_Generique_base.h>
17#include <Champs_compris.h>
18#include <Probleme_base.h>
19#include <Interprete.h>
43 param.lire_avec_accolades_depuis(is);
320 nom_champ =
Motcle(nom_champ_post[0]);
321 if (nom_champ == nom)
325 for (
int i = 0; i < syno.size(); i++)
327 nom_champ =
Motcle(syno[i]);
328 if (nom_champ == nom)
333 for (
const auto &itr : composantes)
336 if (nom_champ == nom)
349 nom_champ =
Motcle(nom_champ_post[0]);
354 ref_champ->fixer_identifiant_appel(nom);
358 int nb_syno = syno.size();
359 for (
int i=0; i<nb_syno; i++)
361 nom_champ =
Motcle(syno[i]);
365 ref_champ->fixer_identifiant_appel(nom);
372 for (
const auto& itr : composantes)
378 ref_champ->fixer_identifiant_appel(nom);
384 throw std::runtime_error(std::string(
"Field ") + nom.
getString() + std::string(
" not found !"));
391 nom_champ =
Motcle(nom_champ_post[0]);
393 if (nom_champ==identifiant)
398 for (
const auto& itr : composantes)
401 if (nom_champ==identifiant)
class Champ_Generique_base
virtual const Noms get_property(const Motcle &query) const
Returns the requested property.
virtual const Domaine_dis_base & get_ref_domaine_dis_base() const
Returns a ref to the discretized domain on which the storage space will be evaluated.
virtual bool has_champ_post(const Motcle &nom) const
virtual void get_property_names(Motcles &list) const
Returns the list of possible "queries" for the field.
virtual const IntTab & get_ref_connectivity(Entity index1, Entity index2) const
Returns the connectivity array between the geometric entity index1 and entity index2.
virtual int comprend_champ_post(const Motcle &identifiant) const
virtual void get_copy_connectivity(Entity index1, Entity index2, IntTab &) const
virtual void set_param(Param ¶m) const override=0
virtual const Champ_Generique_base & get_champ_post(const Motcle &nom) const
virtual const Domaine_Cl_dis_base & get_ref_zcl_dis_base() const
Returns a ref to the discretized boundary conditions domain of the equation carrying the target field...
virtual double get_time() const
Returns the time of the Champ_Generique_base.
virtual int get_dimension() const
Returns the dimension of the space in which the field is defined.
virtual void get_copy_values(DoubleTab &) const
Fills the values array with the discrete values of the field (creates a copy).
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
virtual int get_nb_localisations() const
virtual void get_copy_domain(Domaine &) const
Creates a copy of the domain on which the storage space will be evaluated.
virtual const DoubleTab & get_ref_coordinates() const
Returns a reference to the array of coordinates of the vertices of the mesh supporting the field,...
virtual void get_xyz_values(const DoubleTab &coords, DoubleTab &values, ArrOfBit &validity_flag) const
Computes the point value of the field at the coordinates given in coords and puts them in values.
virtual const DoubleTab & get_ref_values() const
Returns a reference to the array of discrete values if it exists in memory.
virtual const Nom & get_nom_post() const
virtual const Probleme_base & get_ref_pb_base() const
Returns the problem that carries the target field.
virtual Entity get_localisation(const int index=-1) const
Returns the type of geometric entities on which the discrete values are attached (NODE for a P1 field...
virtual void get_copy_coordinates(DoubleTab &) const
void nommer(const Nom &nom) override
Assigns a name to the Objet_U. Virtual method to override.
virtual const Domaine & get_ref_domain() const
Returns a ref to the domain on which the storage space will be evaluated.
virtual const Motcle get_directive_pour_discr() const
Returns the directive (champ_elem, champ_sommets, champ_face or pression) to launch the discretizatio...
virtual const Discretisation_base & get_discretisation() const
Returns the discretization associated with the problem.
OBS_PTR(Probleme_base) ref_pb_
class Discretisation_base This class represents a spatial discretization scheme, which
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
const Domaine & domaine() const
Class defining operators and methods for all reading operation in an input flow (file,...
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
A character string (Nom) in uppercase.
An array of Motcle objects.
class Nom: a character string for naming TRUST objects.
const std::string & getString() const
An array of character strings (VECT(Nom)).
Base class for TRUST objects (Objet_U).
const Interprete & interprete() const
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.
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
class Probleme_base It is a Probleme_U that is not a coupling.
const Discretisation_base & discretisation() const
Returns the discretization associated with the problem.
const Domaine_dis_base & domaine_dis() const
Returns the discretized domain associated with the problem (const version).
static Sortie & Journal(int message_level=0)
Returns a static Sortie object used as an event journal.
Base class for output streams.