16#include <Perte_Charge_Directionnelle_VDF_Face.h>
28 Cerr <<
"Il faut definir le champ direction a " <<
dimension <<
" composantes" << finl;
41 double& coeff_long,
double& u_l, DoubleVect& v_valeur)
const
44 lambda.setVar(0, reynolds);
55 v->valeur_a(pos, v_valeur);
57 vcarre += v_valeur[dim] * v_valeur[dim];
58 v_valeur /= sqrt(vcarre);
62 scal += u[dim] * v_valeur[dim];
69 coeff_long =
lambda.eval() * norme_u / 2. / dh;
Class defining operators and methods for all reading operation in an input flow (file,...
virtual void set_param(Param &) const
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.
Helper class to factorize the readOn method of Objet_U classes.
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
Directional pressure loss (along a unit vector v).
void coeffs_perte_charge(const DoubleVect &u, const DoubleVect &pos, double t, double norme_u, double dh, double nu, double reynolds, double &coeff_ortho, double &coeff_long, double &u_l, DoubleVect &v_valeur) const override
Implements the effective pressure loss computation for a given location.
void set_param(Param &titi) const override
Factorizes the functionalities of several pressure drop terms in VEF, velocity at faces.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.