16#include <Champ_Don_Fonc_txyz.h>
17#include <TRUST_Vector.h>
32 double t0 = 0., T = 1;
38 if (motlu ==
"impulsion_t0")
42 if (motlu ==
"impulsion_perio")
54 else if (motlu ==
"impulsion_perio")
58 if (motlu ==
"impulsion_t0")
78 VECT(Parser_U) &fxyz = fonction();
79 fxyz.dimensionner(dim);
81 for (
int i = 0; i < dim; i++)
85 Cerr <<
"Reading and interpretation of the function " << tmp << finl;
87 fxyz[i].setString(tmp);
92 fxyz[i].setImpulsion(t0, T);
93 fxyz[i].parseString();
94 Cerr <<
"Interpretation of function " << tmp <<
" Ok" << finl;
99 int nb_elems = domaine.nb_elem();
100 DoubleTab& mes_val =
valeurs();
102 domaine.creer_tableau_elements(mes_val);
class Champ_Don_Fonc_txyz This class represents a data field that is a function
void dimensionner(int, int)
Sets the number of components and the number of nodal values.
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
int lire_dimension(Entree &, const Nom &)
Verification of the field dimension Returns the dimension of the field.
double temps() const
Returns the time of the field.
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.
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.
VECT(Parser_U) &fonction()
Base class for output streams.
void mettre_a_jour(double) override
Domaine & interprete_get_domaine(const Nom &nom)
Sortie & printOn(Sortie &os) const override
Writes the object to an output stream. Virtual method to override.