128#include "eos_multi_poly.h"
129#include "eos_compose_fit.h"
130#include "eos_fitting.h"
131#include "utilitaires.h"
199 fread_be(&identificator,
sizeof(
int), 1, fich) ;
201 switch(identificator) {
304 p_eos =
new MEos(fich) ;
329 cout <<
"Eos::eos_from_file : unknown type of EOS !" << endl ;
330 cout <<
" identificator = " << identificator << endl ;
350 fich >> identificator ; fich.ignore(1000,
'\n') ;
354 switch(identificator) {
429 fich.ignore(1000,
'\n') ;
431 cout <<
"Reading tabulated EoS, with "
432 << ( (format == 0) ?
"standard LORENE " :
"original CompOSE ")
433 <<
"format." << endl ;
436 fich.ignore(1000,
'\n') ;
459 fich.ignore(1000,
'\n') ;
461 cout <<
"Reading tabulated EoS, with "
462 << ( (format == 0) ?
"standard LORENE " :
"original CompOSE ")
463 <<
"format." << endl ;
466 fich.ignore(1000,
'\n') ;
487 p_eos =
new MEos(fich) ;
512 cout <<
"Eos::eos_from_file : unknown type of EOS !" << endl ;
513 cout <<
" identificator = " << identificator << endl ;
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_AkmalPR(const char *path)
Standard constructor.
Eos_BBB2(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_BPAL12(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_BalbN1H1(const char *path)
Standard constructor.
Eos_CompOSE(const string &files_path)
Constructor from CompOSE data.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_FPS(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_Fermi(double mass)
Standard constructor (sets g_s to 2).
Eos_GlendNH3(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_SLy4(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_compose_fit(const string ¶m_file)
Constructor from a parameter file.
Eos_consistent(const string &files_path)
Constructor from CompOSE data.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_fit_AkmalPR(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_fit_FPS(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_fit_SLy4(const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_incomp_newt(double rho_c)
Standard constructor.
Eos_incomp(double rho_c)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_mag(const char *name_i, const char *table, const char *path)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_multi_poly(int npoly, double *gamma_i, double kappa0_i, double logP1_i, double *logRho_i, double *decInc_i)
Standard constructor (sets m0 to 1).
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_poly_newt(double gamma, double kappa)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_poly(double gamma, double kappa)
Standard constructor (sets both m_0 and mu_0 to 1).
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Eos_strange_cr(double n0_b60_i, double b60_i, double ent0_i, double eps_fit_i, double rho0_b60_i, double ent_nd_i, double rho_nd_i, double gam_i)
Standard constructor.
Eos_strange(double n0_b60_i, double b60_i, double ent0_i, double eps_fit_i, double rho0_b60_i)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
static Eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.
Eos()
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
MEos(int ndom_i, const Eos **mono_eos_i)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Piecewise_polytrope_1D(const Tbl &, const Tbl &, const Tbl &, const Tbl &, const Tbl &, const Tbl &, double, double, double)
Standard constructor.
Pseudo_polytrope_1D(const Tbl &, double, double)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.