Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Module LALSimNeutronStarTOV.c

Detailed Description

Provides routines for solving the Tolman-Oppenheimer-Volkov equation.

Author
Jolien Creighton, Benjamin Lackey

Prototypes

static double tidal_Love_number_k2 (double c, double y)
 
static struct tov_ode_varstov_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_varstov_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)
 

Data Structures

struct  tov_ode_vars
 
struct  tov_virial_ode_vars
 

Macros

#define TOV_ODE_VARS_DIM   (sizeof(struct tov_ode_vars)/sizeof(double))
 
#define TOV_VIRIAL_ODE_VARS_DIM   (sizeof(struct tov_virial_ode_vars)/sizeof(double))
 

Function Documentation

◆ tidal_Love_number_k2()

static double tidal_Love_number_k2 ( double  c,
double  y 
)
static

Definition at line 36 of file LALSimNeutronStarTOV.c.

◆ tov_ode_vars_cast()

static struct tov_ode_vars * tov_ode_vars_cast ( const double *  y)
static

Definition at line 63 of file LALSimNeutronStarTOV.c.

◆ tov_ode()

static int tov_ode ( double  h,
const double *  y,
double *  dy,
void *  params 
)
static

Definition at line 79 of file LALSimNeutronStarTOV.c.

◆ 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]radiusThe radius of the star in m.
[out]massThe mass of the star in kg.
[out]love_number_k2The k_2 tidal love number of the star.
[in]central_pressure_siThe central pressure of the star in Pa.
eosPointer to the Equation of State structure.
[in]epsrelThe relative error for the TOV solver routine
Return values
0Success.
<0Failure.

Definition at line 133 of file LALSimNeutronStarTOV.c.

◆ tov_virial_ode_vars_cast()

static struct tov_virial_ode_vars * tov_virial_ode_vars_cast ( const double *  y)
static

Definition at line 231 of file LALSimNeutronStarTOV.c.

◆ tov_virial_ode()

static int tov_virial_ode ( double  h,
const double *  y,
double *  dy,
void *  params 
)
static

Definition at line 248 of file LALSimNeutronStarTOV.c.

◆ 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]radiusThe radius of the star in m.
[out]massThe mass of the star in kg.
[out]int1Virial parameter.
[out]int2Virial parameter.
[out]int3Virial parameter.
[out]int4Virial parameter.
[out]int5Virial parameter.
[out]int6Virial parameter.
[out]love_number_k2The k_2 tidal love number of the star.
[in]central_pressure_siThe central pressure of the star in Pa.
eosPointer to the Equation of State structure.
[in]epsrelThe relative error in the TOV solver routine.
Return values
0Success.
<0Failure.

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 
)

Definition at line 436 of file LALSimNeutronStarTOV.c.

◆ 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 
)

Definition at line 443 of file LALSimNeutronStarTOV.c.

Macro Definition Documentation

◆ TOV_ODE_VARS_DIM

#define TOV_ODE_VARS_DIM   (sizeof(struct tov_ode_vars)/sizeof(double))

Definition at line 60 of file LALSimNeutronStarTOV.c.

◆ TOV_VIRIAL_ODE_VARS_DIM

#define TOV_VIRIAL_ODE_VARS_DIM   (sizeof(struct tov_virial_ode_vars)/sizeof(double))

Definition at line 228 of file LALSimNeutronStarTOV.c.