16#include <Perte_Charge_Reguliere.h>
88 for (
int i =0; i<dimension; i++ )
dir[i] = 0 ;
100 les_motcles[5] =
"CF";
103 if (motlu ==
"longitudinale")
106 int rang = les_motcles.
search(motlu);
109 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
110 Cerr <<
"Expected one of the keywords" << les_motcles << finl;
111 Cerr <<
"instead of " << motlu << finl;
118 Cerr <<
"D_ " <<
D_ << finl;
122 else if (motlu ==
"transversale")
125 int rang = les_motcles.
search(motlu);
128 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
129 Cerr <<
"Expected one of the keywords" << les_motcles << finl;
130 Cerr <<
"instead of " << motlu << finl;
141 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
142 Cerr <<
"Expected keyword d instead of " << motlu << finl;
150 else if (motlu ==
"couronne")
157 Cerr <<
"A ring (couronne) is in 2D only: in 3D use Tube "<< finl;
161 if(motlu!=
Motcle(
"Origine"))
163 Cerr <<
"Expected keyword ORIGINE" << finl;
171 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
172 Cerr <<
"Expected keyword d instead of " << motlu << finl;
184 else if (motlu ==
"tube")
190 Cerr <<
"A tube is in 3D only: in 2D use couronne "<< finl;
194 if(motlu!=
Motcle(
"Origine"))
196 Cerr <<
"Expected keyword ORIGINE" << finl;
203 Cerr <<
"Expected the tube direction keyword: DIR" << finl;
227 Cerr <<
"DIR is 0 for tube // OX ; 1 for a tube // OY and 2 for a tube // OZ " << finl;
233 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
234 Cerr <<
"Expected keyword d instead of " << motlu << finl;
246 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
247 Cerr <<
"Expected keyword longitudinale or transversale or couronne (2D) or tube (3D)" << finl;
248 Cerr <<
"instead of " << motlu << finl;
265 Cerr <<
" Cf_ " <<
Cf_ << finl;
281 Cerr <<
"Error reading Perte_Charge_Reguliere data" << finl;
282 Cerr <<
"You must now specify the values of the pressure drop law:" << finl;
283 Cerr <<
"Example: Perte_Charge_Reguliere longitudinale X val A val B val" << finl;
284 Cerr <<
"With A and B, for a pressure drop law A.Re**(-B)" << finl;
285 Cerr <<
"For Blasius law: A=0.316, B=0.25" << finl;
290 Cerr <<
a_ <<
" " <<
b_ << finl;
Class defining operators and methods for all reading operation in an input flow (file,...
A character string (Nom) in uppercase.
An array of Motcle objects.
int search(const Motcle &t) const
Entree & lire_donnees(Entree &)
Reads the specifications of a regular pressure drop from an input stream.
Classe Perte_Charge This class represents a pressure drop term that is introduced.
int direction_perte_charge_
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.