Several routines have been written to read CompOSE data files, provide an interpolation scheme and allow to generate output.
The usage is described in Section 7.4 of the CompOSE manual: Handling and transforming EoS data .
The code is available at compose gitlab.
Prerequisites:
- Fortran compiler (the actual Makefile uses the gnu compiler, gfortran)
- GNU Make utility
The code contains routines, too, to write the output generated from the compose code in HDF5-format. In the Makefile a flag has to be set to enable HDF5 output. If HDF5 doesn’t mean anything to you, it is very likely that you don’t need it. However, many people do. You should be familiar with HDF5 and be able to use it on your computer. This means in particular that the HDF5 library is installed. On many Linux distributions, it exists as pre-compiled package. For more information visit www.hdfgroup.org
In addition to the compose code, the Makefile allows to build two sample codes, one test_read_hdf5 reading an EoS data from the HDF5 table generated by the compose code and another one test_read_opacities showing how to extract charged current neutrino-nucleon opacities (electron neutrinos and anti-neutrinos) from the data provided together with some EoS (under development).
Prerequisites:
- HDF5 with Fortran enabled, runtime library and helper tools (serial version)
- Fortran compiler (the actual Makefile uses h5fc, a compile script for HDF5 F90 programs)
- GNU Make utility
We recommend in either case, with or without HDF5-support, to carefully read the manual.
Under the following links you can download the complete files of the old version of the Compose software code_v1.zip, codehdf5_v1.zip, code_ns_v1.zip
Four examples are available showing how to use the CompOSE software, please see the quick guide for users from the manual section for more details.
- Generating a table for β-equilibrated matter from a general purpose EoS: eos_beta.zip
- Generating a table at fixed entropy per baryon from a general purpose EoS eos_s.zip
- Extracting composition information from a general purpose table eos_3d.zip
- Extracting sound speed and adiabatic index from a cold neutron star table eos_ns.zip
A tool (CUTER) proposed by the LUTH-Caen group to calculate a unified, thermodynamically consistent crust from a given beta-equilibrium equation of state (EoS) and a few nuclear matter parameters (if known) is available here