16#include <Perte_Charge_Directionnelle_VEF_P1NC.h>
18#include <Equation_base.h>
39 Cerr <<
"The direction field must be defined with " <<
dimension <<
" components" << finl;
58 double t,
double norme_u,
double dh,
double nu,
double reynolds,
double& coeff_ortho,
double& coeff_long,
double& u_l, DoubleVect& v_valeur)
const
73 v->valeur_a(pos,v_valeur);
75 vcarre+=v_valeur[dim]*v_valeur[dim];
76 v_valeur/=sqrt(vcarre);
80 scal+=u[dim]*v_valeur[dim];
87 coeff_long=
lambda.eval()*norme_u/2./dh;
Class defining operators and methods for all reading operation in an input flow (file,...
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 drop (along a unit vector v).
void set_param(Param &titi) const override
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 computation of the pressure drop at a given location.
Factorizes the common functionality of several pressure drop operators in VEF, velocity at faces.
virtual void set_param(Param ¶m) const override
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.