Function skyrme_load (o2scl_hdf)¶
-
void o2scl_hdf::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.
If
externalisfalse(the default), then the model is loaded from the data directoryskdatawith the suffix.o2. Otherwise, the parametermodelis taken to be the full pathname of the HDF5 file containing the EOS model data to be loaded.The parameters
b4,b4pand the reference are directly read from the file.If the file does not contain an integer named
dpfix, or the value ofdpfixis false, thenthe parameters named
x0,x1,x2,x3,a,b, andalphaare directly read from the file,and the parameters named
t0,t1,t2, andt3are presumed to be stored in the file with an extra factor of \( \hbar c \) and stored in fields namedt0hc,t1hc,t2hc, andt3hc.
Alternatively if
dpfixis 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 valuesx0,x2, andx3are directly read and the valuest0,t2, andt3are computed from fields namedt0hc,t2hc, andt3hc.If the file contains an integer named
pdmodeand that integer is greater than zero, then the parameter namedW0is taken from the numbers namedpairfnandpairfpusing the relation\[ W_0 = \frac{(\mathrm{pairfn}+\mathrm{pairfp})}{4 \hbar c} \]Otherwise, it is assumed that the file contains a field namedW0hcwhich stores the value ofW0times \( \hbar c \) .