16#include <Champ_Ostwald_VDF.h>
17#include <Champ_Uniforme.h>
18#include <Fluide_Ostwald.h>
42 const double d_n = mon_fluide_->indice_struct().valeurs()(0, 0);
48 const double d_k = mon_fluide_->consistance().valeurs()(0, 0);
49 if (mu_tab[i] < 1.E-4)
50 mu_tab[i] = d_k * pow(0.5 * 1.E-4, (d_n - 1.) / 2.);
51 else if (mu_tab[i] > 1.E16)
52 mu_tab[i] = d_k * pow(0.5 * 1.E16, (d_n - 1.) / 2.);
54 mu_tab[i] = d_k * pow(0.5 * mu_tab[i], (d_n - 1.) / 2.);
58 const DoubleTab& K_tab = mon_fluide_->consistance().valeurs();
59 if (mu_tab[i] < 1.E-4)
60 mu_tab[i] = K_tab[i] * pow(0.5 * 1.E-4, (d_n - 1.) / 2.);
61 else if (mu_tab[i] > 1.E16)
62 mu_tab[i] = K_tab[i] * pow(0.5 * 1.E16, (d_n - 1.) / 2.);
64 mu_tab[i] = K_tab[i] * pow(0.5 * mu_tab[i], (d_n - 1.) / 2.);
79 mon_champ_->calculer_dscald_centre_element(
valeurs());
void mettre_a_jour(double temps) override
Time update.
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
int nb_valeurs_nodales() const override
Returns the number of degrees of freedom per component: the number of nodes.
void mettre_a_jour(double temps) override
Time update of the field.
void me_calculer(double tps) override
Computes the Ostwald field: computes D::D then computes mu.
int initialiser(const double temps) override
Initializes the field.
void calculer_mu(DoubleTab &)
Computes the viscosity mu as a function of consistency and structural index using the Ostwald law.
Champ_Ostwald Represents a field that varies as a function of consistency and.
virtual double changer_temps(const double t)
Sets the time at which the field is defined.
Class defining operators and methods for all reading operation in an input flow (file,...
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.