59 #include "utilitaires.h" 84 fread_be(&identificator,
sizeof(
int), 1, fich) ;
86 switch(identificator) {
104 cout <<
"Hot_eos::hoteos_from_file : unknown type of EOS !" << endl ;
105 cout <<
" identificator = " << identificator << endl ;
124 cerr <<
"Hot_eos::hoteos_from_file: file cannot be opened!" << endl ;
129 fich >> identificator ; fich.ignore(1000,
'\n') ;
133 switch(identificator) {
146 cout <<
"Hot_eos::hoteos_from_file : unknown type of EOS !" << endl ;
147 cout <<
" identificator = " << identificator << endl ;
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
Ideal-gas (temperature-dependent) equation of state, with mass-term in the energy density...
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
Hot (temperature-dependent) tabulated equation of state, read from a file.
Out of beta-equilibrium tabulated equation of state, read from a file.
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
Base class for 2-parameters equations of state (abstract class).
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
static Hot_eos * hoteos_from_file(FILE *)
Construction of an EOS from a binary file.