17#include <Boundary_field_keps_from_ud.h>
18#include <Boundary_field_uniform_keps_from_ud.h>
21#include <Champ_front_uniforme.h>
22#include <Champ_Inc_base.h>
23#include <Equation_base.h>
24#include <Schema_Temps_base.h>
25#include <Champ_front_calc.h>
45 param.lire_avec_accolades(is);
48 Cerr <<
"Turbulence intensity is a number between 0 and 1. For instance, 0.05 means 5%." << finl;
95 for (
int face=0; face<nb_faces; face++)
98 double u = (vit.
line_size() == 1) ? std::fabs(vit(i, 0)) : sqrt(vit(i, 0)*vit(i, 0)+vit(i, 1)*vit(i, 1));
101 keps(face, 0) = val.
k;
102 keps(face, 1) = val.
eps;
105 Cerr <<
"Provisoire t=" << tps <<
" " <<
" U(t)=" << 2+tps <<
" u(t)=" << u <<
" k=" << val.
k <<
" eps=" << val.
eps << finl;
void mettre_a_jour(double temps) override
DOES NOTHING, to override.
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialization at the beginning of calculation.
class Ch_front_var_instationnaire_dep This abstract class represents a field on a boundary,
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialization at the beginning of calculation.
class Champ_front_base Base class for the hierarchy of boundary fields.
virtual int initialiser(double temps, const Champ_Inc_base &inco)
Initialization at the beginning of calculation.
virtual void associer_fr_dis_base(const Frontiere_dis_base &)
Associates a discretized boundary with the field.
virtual void changer_temps_futur(double temps, int i)
Changes the time value for the i-th temporal value after the present.
virtual const Frontiere_dis_base & frontiere_dis() const
Returns the discretized boundary associated with the field.
virtual DoubleTab & valeurs_au_temps(double temps)=0
virtual void fixer_nb_valeurs_temporelles(int nb_cases)
Called by Conds_lim::completer. By default does nothing.
virtual void mettre_a_jour(double temps)
DOES NOTHING, to override.
class Champ_front_calc Derived class of Champ_front_var representing
Class defining operators and methods for all reading operation in an input flow (file,...
Schema_Temps_base & schema_temps()
Returns the time scheme associated with the equation.
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
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.
virtual int nb_valeurs_temporelles() const =0
Base class for output streams.
void resize(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
_SIZE_ dimension(int d) const