Data structure representing an \(\mathrm{EOS}\)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | ALLOCATABLE | :: | eos_name |
The \(\mathrm{EOS}\) name |
||
double precision, | public, | DIMENSION(:), ALLOCATABLE | :: | eos_parameters |
Array containing the \(\mathrm{EOS}\) parameters, in the following order:
is the adimensional polytropic exponent, is the polytropic constant in units of . Pressure and baryon mass density have the same units since . |
||
double precision, | public, | DIMENSION(:,:), ALLOCATABLE | :: | table_eos |
Array containing the tabulated \(\mathrm{EOS}\). Its size is determined when reading the tabulated \(\mathrm{EOS}\) from file. The first index runs over the field, the second over its values. |
TYPE:: eos
!! Data structure representing an |eos|
CHARACTER(LEN=:), ALLOCATABLE:: eos_name
!! The |eos| name
DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE:: eos_parameters
!# Array containing the |eos| parameters, in the following order:
!
! - For a polytropic |eos|:
! [ eos identification number, \(\gamma\),\(\kappa\) ]
! - For a piecewise polytropic |eos|:
! [ eos identification number, number of polytropic pieces, \(\gamma_0\),
! \(\gamma_1\), \(\gamma_2\), \(\gamma_3\), \(\kappa_0\), \(\kappa_1\),
! \(\kappa_2\), \(\kappa_3\), \(\log_{10}(p_1)\), \(\log_{10}(\rho_0)\),
! \(\log_{10}(\rho_1)\), \(\log_{10}(\rho_2)\) ]
! - For a tabulated |eos|: [ eos identification number ]
!
! \(\gamma\) is the adimensional polytropic exponent, \(\kappa\) is the
! polytropic constant in units of
! \(\left(M_\odot L_\odot^{-3}\right)^{1-\gamma}\). Pressure and baryon
! mass density have the same units \(M_\odot L_\odot^{-3}\) since \(c^2=1\).
DOUBLE PRECISION, PUBLIC, DIMENSION(:,:), ALLOCATABLE:: table_eos
!# Array containing the tabulated |eos|.
! Its size is determined when reading the tabulated |eos| from file.
! The first index runs over the field, the second over its values.
END TYPE eos