16#include <Champ_Fonc_Elem_PolyMAC_MPFA_TC.h>
17#include <grad_Champ_Face_PolyMAC_MPFA.h>
18#include <Navier_Stokes_std.h>
19#include <Domaine_Cl_PolyMAC_family.h>
45 const DoubleTab& tab_grad = grad.
valeurs();
47 for (e = 0; e < ne; e++)
48 for (n = 0; n < N; n++)
51 for (d_U = 0; d_U < D; d_U++)
52 for (d_X = 0; d_X < D; d_X++)
54 double Sij = 0.5 * (tab_grad(nf_tot + d_X + e * D, D * n + d_U) + tab_grad(nf_tot + d_U + e * D, D * n + d_X));
56 for (
int i = 0; i < D; i++)
57 Sij += -1. / D * tab_grad(nf_tot + i + e * D, D * n + i);
58 tab_tc(e, n) += Sij * Sij;
60 tab_tc(e, n) = sqrt(2 * tab_tc(e, n));
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
: class Champ_Face_PolyMAC_MPFA
class Champ_Fonc_Elem_PolyMAC_MPFA_TC for the calculation of the shear rate
virtual Champ_Face_PolyMAC_MPFA & champ_a_deriver()
void mettre_a_jour(double) override
Time update of the field.
void me_calculer(double tps)
virtual const Domaine & domaine() const
void mettre_a_jour(double temps) override
Time update of the field.
DoubleTab & valeurs() override
Returns the array of field values at the current time.
const Domaine_VF & domaine_vf() const
double temps() const
Returns the time of the field.
Class defining operators and methods for all reading operation in an input flow (file,...
const Nom & le_nom() const override
Returns the name of the field.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Navier_Stokes_std This class carries the terms of the momentum equation.
const Champ_base & get_champ(const Motcle &nom) const override
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")
class grad_Champ_Face_PolyMAC_MPFA for the calculation of the gradient.