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_base * | eos_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() . | |
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.
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.
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
x0
, x1
, x2
, x3
, a
, b
, and alpha
are directly read from the file,t0
, t1
, t2
, and t3
are presumed to be stored in the file with an extra factor of t0hc
, t1hc
, t2hc
, and t3hc
.Alternatively if dpfix
is present and greater than zero, then the values ,
,
,
and
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
Otherwise, it is assumed that the file contains a field named W0hc
which stores the value of W0
times .
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).