92 #include "eos_bifluid.h" 93 #include "utilitaires.h" 117 fread_be(&identificator,
sizeof(
int), 1, fich) ;
119 switch(identificator) {
132 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
133 cout <<
" identificator = " << identificator << endl ;
153 if (
read_variable (fname, const_cast<char*>(
"ident"), identificator) != 0)
155 cerr <<
"ERROR: Could not read the required variable 'ident' in " << fname << endl;
161 switch(identificator) {
174 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
175 cout <<
" identificator = " << identificator << endl ;
195 fich >> identificator ; fich.ignore(1000,
'\n') ;
199 switch(identificator) {
207 cout <<
"Eos_bifluid::eos_from_file : unknown type of EOS !" << endl ;
208 cout <<
" identificator = " << identificator << endl ;
Analytic equation of state for two fluids (relativistic case).
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
2-fluids equation of state base class.
static Eos_bifluid * eos_from_file(FILE *)
Construction of an EOS from a binary file.
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.
Analytic equation of state for two fluids (Newtonian case).
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
int read_variable(const char *fname, const char *var_name, char *fmt, void *varp)
Reads a variable from file.
Class for a two-fluid (tabulated) equation of state.
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.