16#include <Champ_Fonc_Elem_PolyMAC_MPFA_rot.h>
17#include <grad_Champ_Face_PolyMAC_MPFA.h>
18#include <Champ_Face_PolyMAC_MPFA.h>
19#include <Navier_Stokes_std.h>
20#include <Domaine_Cl_PolyMAC_family.h>
51 const DoubleTab& tab_grad = grad.
passe();
53 for (n = 0; n < N; n++)
54 for (e = 0; e < ne; e++)
56 tab_rot(e, n) = tab_grad(nf_tot + D * e + 0, 1 + n * D) - tab_grad(nf_tot + D * e + 1, 0 + n * D);
73 const DoubleTab& tab_grad = grad.
passe();
75 for (n = 0; n < N; n++)
76 for (e = 0; e < ne; e++)
78 tab_rot(e, N*0 + n) = tab_grad(nf_tot + D * e + 1, 2 + n * D) - tab_grad(nf_tot + D * e + 2, 1 + n * D);
79 tab_rot(e, N*1 + n) = tab_grad(nf_tot + D * e + 2, 0 + n * D) - tab_grad(nf_tot + D * e + 0, 2 + n * D);
80 tab_rot(e, N*2 + n) = tab_grad(nf_tot + D * e + 0, 1 + n * D) - tab_grad(nf_tot + D * e + 1, 0 + n * D);
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
: class Champ_Face_PolyMAC_MPFA
class Champ_Fonc_Elem_PolyMAC_MPFA_rot for the calculation of the vorticity.
void mettre_a_jour(double tps) override
Time update of the field.
virtual Champ_Face_PolyMAC_MPFA & champ_a_deriver()
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
virtual DoubleTab & passe(int i=1)
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.