Classes | Functions
o2scl_hdf Namespace Reference

Additional functions to read and write EOS data to HDF5 files.

Classes

class  cloud_file
 
class  hdf_file
 

Functions

void hdf_input (hdf_file &hf, o2scl::table< vec_t > &t, std::string name)
 
void hdf_input_data (hdf_file &hf, o2scl::table< vec_t > &t)
 
void hdf_input (hdf_file &hf, o2scl::table3d &h, std::string name="")
 
void hdf_input (hdf_file &hf, o2scl::table_units< vec_t > &t, std::string name)
 
void hdf_input_data (hdf_file &hf, o2scl::table_units< vec_t > &t)
 
void hdf_input (hdf_file &hf, o2scl::uniform_grid< double > &h, std::string name="")
 
void hdf_output (hdf_file &hf, o2scl::uniform_grid< double > &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::prob_dens_mdim_amr< vec_t, mat_t > &p, std::string name)
 
void hdf_output (hdf_file &hf, o2scl::prob_dens_mdim_amr< vec_t, mat_t > &p, std::string name)
 
void hdf_output (hdf_file &hf, o2scl::table<> &t, std::string name)
 
void hdf_output_data (hdf_file &hf, o2scl::table<> &t)
 
void hdf_output (hdf_file &hf, o2scl::table_units<> &t, std::string name)
 
void hdf_output_data (hdf_file &hf, o2scl::table_units<> &t)
 
void hdf_output (hdf_file &hf, o2scl::hist &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::hist &h, std::string name="")
 
void hdf_output (hdf_file &hf, const o2scl::hist_2d &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::hist_2d &h, std::string name="")
 
void hdf_output (hdf_file &hf, const o2scl::table3d &h, std::string name)
 
void hdf_output (hdf_file &hf, o2scl::expval_scalar &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::expval_scalar &h, std::string name="")
 
void hdf_output (hdf_file &hf, o2scl::expval_vector &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::expval_vector &h, std::string name="")
 
void hdf_output (hdf_file &hf, o2scl::expval_matrix &h, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::expval_matrix &h, std::string name="")
 
void hdf_output (hdf_file &hf, const std::vector< o2scl::contour_line > &cl, std::string name)
 
void hdf_input (hdf_file &hf, std::vector< o2scl::contour_line > &cl, std::string name="")
 
void hdf_output (hdf_file &hf, const std::vector< o2scl::edge_crossings > &ec, std::string name)
 
void hdf_input (hdf_file &hf, std::vector< o2scl::edge_crossings > &ec, std::string name="")
 
void hdf_output (hdf_file &hf, o2scl::tensor_grid< std::vector< double >, std::vector< size_t > > &t, std::string name)
 
void hdf_input (hdf_file &hf, o2scl::tensor_grid< std::vector< double >, std::vector< size_t > > &t, std::string name="")
 
int value_spec (std::string spec, double &d, int verbose=0, bool err_on_fail=true)
 
int vector_spec (std::string spec, vec_t &v, int verbose=0, bool err_on_fail=true)
 
int strings_spec (std::string spec, vec_t &v, int verbose=0, bool err_on_fail=true)
 
std::vector< double > vector_spec (std::string spec)
 
int mult_vector_spec (std::string spec, std::vector< vec_t > &v, int verbose=0, bool err_on_fail=true)
 
void gogny_load (o2scl::eos_had_gogny &ge, std::string model, std::string filename="")
 Read the Gogny EOS from a data file. More...
 
void rmf_load (o2scl::eos_had_rmf &rmf, std::string model, bool external=false)
 Input a o2scl::eos_had_rmf object from an HDF file. More...
 
void skyrme_load (o2scl::eos_had_skyrme &sk, std::string model, bool external=false, int verbose=0)
 Input a o2scl::eos_had_skyrme object from an HDF file. More...
 
void skyrme_write (hdf_file &hf, o2scl::eos_had_skyrme &sk, std::string name)
 Write a o2scl::eos_had_skyrme object to an HDF file.
 
void skyrme_write (o2scl::eos_had_skyrme &sk, std::string model)
 Write a o2scl::eos_had_skyrme object to an HDF file in the O2scl data directory.
 
o2scl::eos_had_baseeos_had_strings (std::string type, std::string name="")
 Return a pointer to an eos_had_base object from two strings specifying type and name.
 
void eos_had_strings_list ()
 List EOSs understood by eos_had_strings() .
 

Function Documentation

◆ gogny_load()

void o2scl_hdf::gogny_load ( o2scl::eos_had_gogny ge,
std::string  model,
std::string  filename = "" 
)

If external is false (the default), then the model (either "d1n" or "d1s" is loaded from the O2scl data directory in file gogny.o2. Otherwise, the parameter model is taken to be the full pathname of the HDF5 file containing the EOS model data to be loaded.

◆ rmf_load()

void o2scl_hdf::rmf_load ( o2scl::eos_had_rmf rmf,
std::string  model,
bool  external = false 
)

If external is false (the default), then the model is loaded from the O2scl data directory rmfdata with the suffix .o2. Otherwise, the parameter model is taken to be the full pathname of the HDF5 file containing the EOS model data to be loaded.

◆ skyrme_load()

void o2scl_hdf::skyrme_load ( o2scl::eos_had_skyrme sk,
std::string  model,
bool  external = false,
int  verbose = 0 
)

If external is false (the default), then the model is loaded from the O2scl data directory skdata with the suffix .o2. Otherwise, the parameter model is taken to be the full pathname of the HDF5 file containing the EOS model data to be loaded.

The parameters b4, b4p and the reference are directly read from the file.

If the file does not contain an integer named dpfix, or the value of dpfix is false, then

  • the parameters named x0, x1, x2, x3, a, b, and alpha are directly read from the file,
  • and the parameters named t0, t1, t2, and t3 are presumed to be stored in the file with an extra factor of $ \hbar c $ and stored in fields named t0hc, t1hc, t2hc, and t3hc .

Alternatively if dpfix is present and greater than zero, then the values $ t_1=-t_2/3(5+4 x_2) $, $ x_1 = -(4+5 x_2)/ (5+4 x_2) $, $ \alpha=1/3 $, $ a=1 $ and $ b=0 $ are assumed. The values x0, x2, and x3 are directly read and the values t0, t2, and t3 are computed from fields named t0hc, t2hc, and t3hc .

If the file contains an integer named pdmode and that integer is greater than zero, then the parameter named W0 is taken from the numbers named pairfn and pairfp using the relation

\[ W_0 = \frac{(\mathrm{pairfn}+\mathrm{pairfp})}{4 \hbar c} \]

Otherwise, it is assumed that the file contains a field named W0hc which stores the value of W0 times $ \hbar c $ .

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).