16#include <Viscosite_turbulente_base.h>
17#include <Pb_Multiphase.h>
33 const DoubleTab& rho = pb_->get_champ(
"masse_volumique").passe(),
34 *alpha = pb_->has_champ(
"alpha") ? &(pb_->get_champ(
"alpha").passe()) :
nullptr;
36 DoubleTrav nu_t(nl, N);
39 for (i = 0; i < nl; i++)
40 for (n = 0; n < N; n++) mu(i, n) += (alpha ? (*alpha)(i, n) * rho(!cR * i, n) : 1) * nu_t(i, n);
42 for (i = 0; i < nl; i++)
43 for (n = 0; n < N; n++)
44 for (d = 0; d < D; d++) mu(i, n, d) += (alpha ? (*alpha)(i, n) : 1) * rho(!cR * i, n) * nu_t(i, n);
46 for (i = 0; i < nl; i++)
47 for (n = 0; n < N; n++)
48 for (d = 0; d < D; d++) mu(i, n, d, d) += (alpha ? (*alpha)(i, n) : 1) * rho(!cR * i, n) * nu_t(i, n);
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.
static void abort()
Abort routine for TRUST on a fatal error.
Base class for output streams.
_SIZE_ dimension(int d) const
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")
Turbulent viscosity correlations describing the Reynolds stress tensor R_{ij} = - <u'_i u'_j>.
virtual void modifier_mu(DoubleTab &nu_t) const
virtual void eddy_viscosity(DoubleTab &nu_t) const =0