Omplement CompOSE dataset

Functions to Implement CompOSE dataset.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

EOSgenerators.Compose_eos.read_Lal(filename, eosdir='./filesLaL/')[source]

Read the equation of state file in the LAL format, a number of tables is available at https://git.ligo.org/lscsoft/lalsuite/-/tree/master/lalsimulation/lib

Parameters:
  • eosdir (character string) – name of the directory where the EoS files are stored (default is filesCompose)

  • filename – name of the LAL format equation of state file with extension

Returns:

numpy array pressure (dyne/cm^2): numpy array eosname: character string with name of the EoS stored in the table

Return type:

energy density (g/cm^3)

EOSgenerators.Compose_eos.read_README(eosdir)[source]

Routine to read the information about the EoS model from the README(.txt) file

Args: eosdir: directory in which the README file is

Returns: eosname: name of the eos.

EOSgenerators.Compose_eos.read_compose(eosdir='./filesCompose', eos_prefix='/eos', nptsmin=100, eosname=None)[source]

Routine which reads the data from the original EoS model, Compose format is assumed

One first check is performed on the data: 1. Minimum number of grid points > nptsmin (default is 100)

Parameters:
  • eosdir (character string) – name of the directory where the EoS files are stored (default is filesCompose)

  • nptsmin (int) – required minimum number of grid points

  • eos_prefix (character string) – prefix of the eos file names, default is “eos”

Returns:

numpy array pressure (dyne/cm^2): numpy array eosname: character string with name of the EoS stored in the table

Return type:

energy density (g/cm^3)