19#include <TRUSTArrays.h>
29#include <Domaine_forward.h>
42 Declare_instanciable_sans_constructeur_ni_destructeur(
Sonde);
59 inline const IntVect&
les_poly()
const;
61 inline double temps()
const;
171 return mon_champ.valeur();
class Champ_Generique_base
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,...
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
An array of character strings (VECT(Nom)).
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
class Operateur_Statistique_tps_base
class Postraitement. The class holds -a list of generic fields champs_post_complet_ containing
SFichier is to the C++ ofstream class what Sortie is to the C++ ostream class.
void fixer_periode(double)
Sets the period at which the field is probed.
void associer_post(const Postraitement &)
Associates the post-processing object with the probe.
OBS_PTR(Operateur_Statistique_tps_base) operateur_statistique_
virtual void create_champ_generique(Entree &is, const Motcle &motlu)
DoubleTab valeurs_locales
double periode
sampling period
virtual void mettre_a_jour_bords()
virtual int get_nb_compo_champ() const
IntTab rang_cl_
for a given face, index of the CL that this face bears
const DoubleTab & les_positions() const
virtual void validate_type(const Motcle &loc) const
DoubleTab les_positions_sondes_initiales_
coordinates of the initial point probes
const int & get_dim() const
void resetTime(double time)
void nommer(const Nom &n) override
Assigns a name to the Objet_U. Virtual method to override.
void fermer_fichier()
Closes the file to which the probe writes.
Nom nom_fichier_
the name of the file containing the probe
const DoubleTab & les_positions_sondes_initiales() const
Returns the array of positions of the field that are probed.
virtual void ajouter_bords(const DoubleTab &coords_bords)
OBS_PTR(Champ_Generique_base) mon_champ
DoubleTab les_positions_
coordinates of probes local to each proc
virtual void update_source(double un_temps)
virtual double get_temps_champ() const
const Champ_Generique_base & le_champ() const
Returns the associated field.
virtual const Noms get_noms_champ() const
int dim
the dimension of the probe (point:0,segment:1,plan:2,volume:3)
virtual void fix_probe_position()
const DoubleTab & les_positions_sondes() const
IntVect elem_
elements containing the local point probes
const IntVect & les_poly() const
Returns the array of elements that are probed.
virtual void validate_position() const
DoubleTab valeurs_sur_maitre
valeurs_locales: values on each proc, valeurs_sur_maitre: values gathered on the master
const Nom & get_nom() const
virtual void initialiser()
Initialises the probe.
double temps() const
The elapsed time.
int nbre_points3
used to create sonde_segment, sonde_plan, etc...
ArrOfInt faces_bords_
array containing the indices of the boundary faces hit by the probe
int numero_elem_
equals -1 if undefined, otherwise the element number on the master
virtual void fill_local_values()
~Sonde() override
Destructor.
SFichier & fichier()
Returns an output file stream pointing to the output file used by the probe.
virtual void fix_probe_position_grav()
virtual void postraiter()
Performs post-processing.
virtual const Domaine & get_domaine_geom() const
const Nom & get_type() const
virtual void init_bords()
DoubleTab les_positions_sondes_
coordinates of probes across the whole domain after displacement (master only)
Sonde()
Default constructor for a probe.
void ouvrir_fichier()
Opens the file associated with the probe.
virtual void mettre_a_jour(double temps, double tinit)
Updates the probe in time and performs the post-processing.
OBS_PTR(Postraitement) mon_post