16#include <Champ_front_bruite.h>
17#include <Frontiere_dis_base.h>
43 os << tab.
size() <<
" ";
44 for(
int i=0; i<tab.
size(); i++)
66 les_mots[0]=
"moyenne";
67 les_mots[1]=
"amplitude";
73 Cerr <<
"Error while reading a Champ_front_bruite" << finl;
74 Cerr <<
"We expected a { instead of " << motlu << finl;
80 int rang=les_mots.search(motlu);
87 for(
int i=0; i<dim; i++)
94 for(
int i=0; i<dim; i++)
110 Cerr <<
"Error while reading a Champ_front_bruite" << finl;
111 Cerr << motlu <<
"is not understand here "<< finl;
112 Cerr <<
"We were expecting a word from " << les_mots << finl;
138 const Frontiere& front=la_frontiere_dis->frontiere();
147 double onde, bruit_blanc, pi, invx, d_x, tot_vel;
151 for(
int i=0; i<nb_faces; i++)
156 for (
int in_x=0; in_x<
nx; in_x++)
157 onde=onde+sin((2.*pi*temps/(4*d_x+in_x*d_x)+(10.2*i+5.3*j))*tot_vel+5.6*pi);
159 bruit_blanc=onde*invx;
167 for(
int i=0; i<nb_faces; i++)
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 DoubleTab & valeurs() override
Returns the array of field values.
class Champ_front_bruite Derived class of Champ_front_base representing noisy boundary fields:
void mettre_a_jour(double temps) override
Update time and randomly redraw the noise values.
Champ_front_base & affecter_(const Champ_front_base &ch) override
Not implemented !!
DoubleTab & valeurs_au_temps(double temps) override
Returns the values at the desired time.
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_t nb_faces() const
Returns the number of faces of the boundary.
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")