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 ;
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.
Eos_bf_poly_newt(double kappa1, double kappa2, double kappa3, double beta)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to.
Eos_bf_poly(double kappa1, double kappa2, double kappa3, double beta)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_bf_tabul(const char *name_i, const char *table, const char *path, double mass1, double mass2)
Standard constructor.
static Eos_bifluid * eos_from_file(FILE *)
Construction of an EOS from a binary file.
Eos_bifluid()
Standard constructor.
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.