17#include <Champ_front_txyz.h>
19#include <Frontiere_dis_base.h>
20#include <Domaine_VF.h>
40 os << tab.
size() <<
" ";
41 for(
int i=0; i<tab.
size(); i++)
62 fxyz.dimensionner(dim);
66 for (
int i = 0; i<dim; i++)
72 Cerr <<
"Reading and interpretation of the function " << tmp << finl;
74 fxyz[i].setString(tmp);
79 fxyz[i].parseString();
80 Cerr <<
"Interpretation of function " << tmp <<
" Ok" << finl;
105 int nb_faces=ref_cast(
Front_VF, fr_dis).nb_faces();
106 int premiere_face = ref_cast(
Front_VF, fr_dis).num_premiere_face();
108 for(
int i=0; i<nb_faces; i++)
110 for(
int k=0; k<dim; k++)
112 fxyz[k].setVar(0,temps);
113 fxyz[k].setVar(1,zvf.
xv(premiere_face + i, 0));
114 fxyz[k].setVar(2,zvf.
xv(premiere_face + i, 1));
116 fxyz[k].setVar(3,zvf.
xv(premiere_face + i, 2));
117 tab(i,k)=fxyz[k].eval();
class Ch_front_var_instationnaire_indep This abstract class represents a field on a boundary,
int lire_dimension(Entree &, const Nom &)
Verification of the field dimension Returns the dimension of the field.
class Champ_front_base Base class for the hierarchy of boundary fields.
virtual const Frontiere_dis_base & frontiere_dis() const
Returns the discretized boundary associated with the field.
virtual DoubleTab & valeurs() override
Returns the array of field values.
class Champ_front_txyz Derived class of Champ_front_var representing
Champ_front_base & affecter_(const Champ_front_base &ch) override
Returns the object upcast to Champ_front_base&.
void mettre_a_jour(double temps) override
DOES NOTHING, to override.
double valeur_au_temps_et_au_point(double temps, int som, double x, double y, double z, int comp) const override
DoubleTab & valeurs_au_temps(double temps) override
Returns the values at the desired time.
double xv(int num_face, int k) const
Class defining operators and methods for all reading operation in an input flow (file,...
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
virtual int nb_comp() const
class Frontiere_dis_base Class representing a discretized boundary.
const Domaine_dis_base & domaine_dis() 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.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
class Parser_U Version of the Parser class, deriving from Objet_U.
void setVar(const char *sv, double val)
Base class for output streams.
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")