16#include <Loi_Etat_Mono_GP_base.h>
26 double Cv_ = -1, gamma_ = -1;
30 param.ajouter(
"Cv",&Cv_);
31 param.ajouter(
"gamma",&gamma_);
32 param.ajouter(
"rho_constant_pour_debug",&rho_constant_pour_debug_);
33 param.lire_avec_accolades_depuis(is);
35 debug = gamma_<0 ? 1 : 0;
37 if (gamma_<0) gamma_ = -gamma_;
39 if (Cv_!=-1)
R_ =
Cp_ - Cv_;
40 else if (gamma_!=-1)
R_ =
Cp_ *(1.-1./gamma_);
43 Cerr<<
"ERROR: expected the definition of Cv (perfect gas constant)"<<finl;
44 Cerr<<
"or the gamma constant (perfect gas constant)"<<finl;
Class defining operators and methods for all reading operation in an input flow (file,...
Base state law class for ideal gases, defining a dilatable fluid with the equation of state: Pth = rh...
Base state law class for mono-species ideal gases.
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.
static void abort()
Abort routine for TRUST on a fatal error.
Base class for output streams.