POLY File Format

Files in POLY format store HDF5 data describing a composite polytrope model. This format adheres to the following conventions:

  • All data objects are attached to the root HDF5 group (/)

  • Real values are written with type H5T_IEEE_F64LE when GYRE is compiled in double precision (the default), and type H5T_IEEE_F32LE otherwise

  • Integer values are written with type H5T_STD_I32LE

Data items in the root HDF5 group are as follows:

Data Item

Variable

Objtype

Datatype

Definition

n

\(N\)

attribute

integer

number of grid points

n_r

\(\nreg\)

attribute

integer

number of regions

n_poly

\(n_{i}\)

attribute

real (n_r)

polytropic indices of regions

z_b

\(z_{i-1/2}\)

attribute

real (n_r-1)

radial coordinates of region boundaries

Delta_b

\(\Delta_{i-1/2}\)

attribute

real (n_r-1)

log density jump of region boundaries

Gamma_1

\(\Gamma_{1}\)

attribute

real

first adiabatic exponent

z

\(z\)

dataset

real (n)

polytropic radial coordinate

theta

\(\theta\)

dataset

real (n)

Lane-Emden variable

dtheta

\(\theta'\)

dataset

real (n)

Derivative of Lane-Emden variable