16#include <Champ_front_softanalytique.h>
18#include <Domaine_VF.h>
43 os << tab.
size() <<
" ";
44 for(
int i=0; i<tab.
size(); i++)
65 fxyz.dimensionner(dim);
69 for (
int i = 0; i<dim; i++)
75 Cerr <<
"Reading and interpretation of the function " << tmp << finl;
78 fxyz[i].setString(tmp);
82 fxyz[i].parseString();
83 Cerr <<
"Interpretation of the function " << tmp <<
" Ok" << finl;
103 const DoubleTab& xv=domaine_vf.
xv();
107 for (
int ind_face=0; ind_face<nb_faces_bord_tot; ind_face++)
109 int face = le_bord.
num_face(ind_face);
117 for( k=0; k<dim; k++)
119 fxyz[k].setVar(
"x",x);
120 fxyz[k].setVar(
"y",y);
121 fxyz[k].setVar(
"z",z);
122 tab(ind_face,k)=fxyz[k].eval();
134 double x = position[0];
135 double y = position[1];
142 for (
int k=0; k<dim; k++)
144 fxyz[k].setVar(
"x",x);
145 fxyz[k].setVar(
"y",y);
146 fxyz[k].setVar(
"z",z);
147 valeur[k] = fxyz[k].eval();
class Ch_front_var_stationnaire 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.
virtual int initialiser(double temps, const Champ_Inc_base &inco)
Initialization at the beginning of calculation.
virtual const Frontiere_dis_base & frontiere_dis() const
Returns the discretized boundary associated with the field.
virtual const Domaine_dis_base & domaine_dis() const
virtual DoubleTab & valeurs() override
Returns the array of field values.
Champ_front_softanalytique Class derived from Champ_front_var representing boundary.
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialization at the beginning of calculation.
void valeur_a(DoubleVect &position, DoubleVect &valeur)
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
int num_face(const int) 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.
Base class for output streams.
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")