Command-line examples

EOS at a single point with nuclei

Taken from examples/A_point_nuc.scr.

# ----------------------------------------------------------------
# Evaluate the EOS (with nuclei) at a particular point.
# Note that the code needs to be read a few data files so we begin
# by setting the "data_dir" parameter.
# ----------------------------------------------------------------

# This is the "fiducial" model from Du et al. (2022)

../eos_nuclei -set data_dir "../data" \
-select-model 470 738 0.5 13.0 62.4 32.8 0.9 \
-set include_detail 1 \
-point-nuclei 0.08 0.5 5.0

# Pure Skyrme model

../eos_nuclei -set data_dir "../data" -alt-model Skyrme NRAPR \
-point-nuclei 0.08 0.5 5.0

# RMF support is still experimental

../eos_nuclei -set data_dir "../data" -alt-model RMF SFHo \
-point-nuclei 0.08 0.5 5.0

EOS at a single point

Taken from examples/B_point.scr.

# ----------------------------------------------------------------
# Evaluate the EOS (without nuclei) at a particular point.
# Note that the code needs to be read a few data files so we begin
# by setting the "data_dir" parameter.
# ----------------------------------------------------------------

# This is the "fiducial" model from Du et al. (2022)

../eos -set data_dir "../data" \
-select-model 470 738 0.5 13.0 62.4 32.8 0.9 -point 0.08 0.5 5.0

# Pure Skyrme model

../eos -set data_dir "../data" -alt-model Skyrme NRAPR \
-point 0.08 0.5 5.0

# RMF support is still experimental

../eos -set data_dir "../data" -alt-model RMF SFHo \
-point 0.08 0.5 5.0

# For non-RMF models, the code without nuclei also works at T=0
  
../eos -set data_dir "../data" \
-select-model 470 738 0.5 13.0 62.4 32.8 0.9 -point 0.08 0.5 0.0
../eos -set data_dir "../data" -alt-model Skyrme NRAPR \
-point 0.08 0.5 0.0

Help

Taken from examples/C_help.scr.

# ----------------------------------------------------------------
# Show how to use the command-line help
# ----------------------------------------------------------------

../eos -set data_dir "../data" -help

../eos -set data_dir "../data" -help select-model

../eos_nuclei -set data_dir "../data" -help point-nuclei

Small table

Taken from examples/D_table.scr.

# ----------------------------------------------------------------
# Create a small table based on an initial guess
# ----------------------------------------------------------------

# Download the initial guess. The file is compared with the SHA256
# hash and only downloaded if the current file doesn't match the hash.
# The 'acol' command is part of O2scl (one of the e4mma dependencies).
# Instead of acol, you can just use, e.g. 'curl' to download the file
# and 'openssl dgst -sha256' to obtain the hash.

acol -download ../output/fid_3_5_22.o2 \
https://isospin.roam.utk.edu/public_data/eos_tables/du21/fid_3_5_22.o2 \
840f6f171f05081deed53fd8bf50bad1b16a865418c37b1b630817ae10ad6736

# Select a random EOS parameterization and then create the table
# and store it in D_table.o2. This table does not have derivatives
# (i.e. no chemical potentials and no pressure) and does not include
# leptons.

../eos_nuclei -set data_dir "../data" -random \
-set nB_grid_spec "5,0.01*(i+1)" -set Ye_grid_spec "1,0.4" \
-set T_grid_spec "1,5" -generate-table \
"out_file=../output/D_table.o2,ext_guess=../output/fid_3_5_22.o2"

Small table with derivatives

Taken from examples/E_table_deriv.scr.

# ----------------------------------------------------------------
# Create a small table with derivatives based on an initial guess
# ----------------------------------------------------------------

# Download the initial guess. The file is compared with the SHA256
# hash and only downloaded if the current file doesn't match the hash.
# The 'acol' command is part of O2scl (one of the e4mma dependencies).
# Instead of acol, you can just use, e.g. 'curl' to download the file
# and 'openssl dgst -sha256' to obtain the hash.

acol -download ../output/fid_3_5_22.o2 \
https://isospin.roam.utk.edu/public_data/eos_tables/du21/fid_3_5_22.o2 \
840f6f171f05081deed53fd8bf50bad1b16a865418c37b1b630817ae10ad6736

# Select a random EOS parameterization, create the table, and then
# compute derivatives and store it in E_table_deriv.o2. This table
# does not include leptons.

../eos_nuclei -set data_dir "../data" -random \
-set nB_grid_spec "5,0.01*(i+1)" -set Ye_grid_spec "3,0.4+0.01*i" \
-set T_grid_spec "3,5+i" -generate-table \
"ext_guess=../output/fid_3_5_22.o2" -eos-deriv \
-output ../output/E_table_deriv.o2

Single point or small table with more detail

Taken from examples/F_pn_detail.scr

# ----------------------------------------------------------------
# Compute a point or small table with the "include_detail" option
# ----------------------------------------------------------------

# Download the initial guess. The file is compared with the SHA256
# hash and only downloaded if the current file doesn't match the hash.
# The 'acol' command is part of O2scl (one of the e4mma dependencies).
# Instead of acol, you can just use, e.g. 'curl' to download the file
# and 'openssl dgst -sha256' to obtain the hash.

acol -download ../output/fid_3_5_22.o2 \
https://isospin.roam.utk.edu/public_data/eos_tables/du21/fid_3_5_22.o2 \
840f6f171f05081deed53fd8bf50bad1b16a865418c37b1b630817ae10ad6736

# Evaluate an EOS at a single point and output the detail quantities

../eos_nuclei -set data_dir "../data" \
-select-model 470 738 0.5 13.0 62.4 32.8 0.9 \
-set include_detail 1 \
-point-nuclei 0.08 0.5 5.0

# Create an EOS table including the detail quantities

../eos_nuclei -set include_detail 1 -set data_dir "../data" -random \
-set nB_grid_spec "5,0.01*(i+1)" -set Ye_grid_spec "3,0.4+0.01*i" \
-set T_grid_spec "3,5+i" -generate-table \
"ext_guess=../output/fid_3_5_22.o2" -eos-deriv \
-output ../output/F_pn_detail.o2