Provides routines for solving the Tolman-Oppenheimer-Volkov equation.
- Author
- Jolien Creighton, Benjamin Lackey
|
static double | tidal_Love_number_k2 (double c, double y) |
|
static struct tov_ode_vars * | tov_ode_vars_cast (const double *y) |
|
static int | tov_ode (double h, const double *y, double *dy, void *params) |
|
int | XLALSimNeutronStarTOVODEIntegrateWithTolerance (double *radius, double *mass, double *love_number_k2, double central_pressure_si, LALSimNeutronStarEOS *eos, double epsrel) |
| Integrates the Tolman-Oppenheimer-Volkov stellar structure equations. More...
|
|
static struct tov_virial_ode_vars * | tov_virial_ode_vars_cast (const double *y) |
|
static int | tov_virial_ode (double h, const double *y, double *dy, void *params) |
|
int | XLALSimNeutronStarVirialODEIntegrateWithTolerance (double *radius, double *mass, double *int1, double *int2, double *int3, double *int4, double *int5, double *int6, double *love_number_k2, double central_pressure_si, LALSimNeutronStarEOS *eos, double epsrel) |
| Integrates the Tolman-Oppenheimer-Volkov stellar structure equations and the Virial Equations. More...
|
|
int | XLALSimNeutronStarTOVODEIntegrate (double *radius, double *mass, double *love_number_k2, double central_pressure_si, LALSimNeutronStarEOS *eos) |
|
int | XLALSimNeutronStarVirialODEIntegrate (double *radius, double *mass, double *int1, double *int2, double *int3, double *int4, double *int5, double *int6, double *love_number_k2, double central_pressure_si, LALSimNeutronStarEOS *eos) |
|
◆ tidal_Love_number_k2()
static double tidal_Love_number_k2 |
( |
double |
c, |
|
|
double |
y |
|
) |
| |
|
static |
◆ tov_ode_vars_cast()
static struct tov_ode_vars * tov_ode_vars_cast |
( |
const double * |
y | ) |
|
|
static |
◆ tov_ode()
static int tov_ode |
( |
double |
h, |
|
|
const double * |
y, |
|
|
double * |
dy, |
|
|
void * |
params |
|
) |
| |
|
static |
◆ XLALSimNeutronStarTOVODEIntegrateWithTolerance()
int XLALSimNeutronStarTOVODEIntegrateWithTolerance |
( |
double * |
radius, |
|
|
double * |
mass, |
|
|
double * |
love_number_k2, |
|
|
double |
central_pressure_si, |
|
|
LALSimNeutronStarEOS * |
eos, |
|
|
double |
epsrel |
|
) |
| |
Integrates the Tolman-Oppenheimer-Volkov stellar structure equations.
Solves the Tolman-Oppenheimer-Volkov stellar structure equations using the pseudo-enthalpy formalism introduced in: Lindblom (1992) "Determining the Nuclear Equation of State from Neutron-Star
Masses and Radii", Astrophys. J. 398 569.
- Parameters
-
[out] | radius | The radius of the star in m. |
[out] | mass | The mass of the star in kg. |
[out] | love_number_k2 | The k_2 tidal love number of the star. |
[in] | central_pressure_si | The central pressure of the star in Pa. |
| eos | Pointer to the Equation of State structure. |
[in] | epsrel | The relative error for the TOV solver routine |
- Return values
-
Definition at line 133 of file LALSimNeutronStarTOV.c.
◆ tov_virial_ode_vars_cast()
◆ tov_virial_ode()
static int tov_virial_ode |
( |
double |
h, |
|
|
const double * |
y, |
|
|
double * |
dy, |
|
|
void * |
params |
|
) |
| |
|
static |
◆ XLALSimNeutronStarVirialODEIntegrateWithTolerance()
int XLALSimNeutronStarVirialODEIntegrateWithTolerance |
( |
double * |
radius, |
|
|
double * |
mass, |
|
|
double * |
int1, |
|
|
double * |
int2, |
|
|
double * |
int3, |
|
|
double * |
int4, |
|
|
double * |
int5, |
|
|
double * |
int6, |
|
|
double * |
love_number_k2, |
|
|
double |
central_pressure_si, |
|
|
LALSimNeutronStarEOS * |
eos, |
|
|
double |
epsrel |
|
) |
| |
Integrates the Tolman-Oppenheimer-Volkov stellar structure equations and the Virial Equations.
Solves the Tolman-Oppenheimer-Volkov stellar structure equations using the pseudo-enthalpy formalism introduced in: Lindblom (1992) "Determining the Nuclear Equation of State from Neutron-Star
Masses and Radii", Astrophys. J. 398 569.
- Parameters
-
[out] | radius | The radius of the star in m. |
[out] | mass | The mass of the star in kg. |
[out] | int1 | Virial parameter. |
[out] | int2 | Virial parameter. |
[out] | int3 | Virial parameter. |
[out] | int4 | Virial parameter. |
[out] | int5 | Virial parameter. |
[out] | int6 | Virial parameter. |
[out] | love_number_k2 | The k_2 tidal love number of the star. |
[in] | central_pressure_si | The central pressure of the star in Pa. |
| eos | Pointer to the Equation of State structure. |
[in] | epsrel | The relative error in the TOV solver routine. |
- Return values
-
Definition at line 321 of file LALSimNeutronStarTOV.c.
◆ XLALSimNeutronStarTOVODEIntegrate()
int XLALSimNeutronStarTOVODEIntegrate |
( |
double * |
radius, |
|
|
double * |
mass, |
|
|
double * |
love_number_k2, |
|
|
double |
central_pressure_si, |
|
|
LALSimNeutronStarEOS * |
eos |
|
) |
| |
◆ XLALSimNeutronStarVirialODEIntegrate()
int XLALSimNeutronStarVirialODEIntegrate |
( |
double * |
radius, |
|
|
double * |
mass, |
|
|
double * |
int1, |
|
|
double * |
int2, |
|
|
double * |
int3, |
|
|
double * |
int4, |
|
|
double * |
int5, |
|
|
double * |
int6, |
|
|
double * |
love_number_k2, |
|
|
double |
central_pressure_si, |
|
|
LALSimNeutronStarEOS * |
eos |
|
) |
| |
◆ TOV_ODE_VARS_DIM
#define TOV_ODE_VARS_DIM (sizeof(struct tov_ode_vars)/sizeof(double)) |
◆ TOV_VIRIAL_ODE_VARS_DIM