Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
NSBHPropertiesTest.c File Reference

Prototypes

bool approximatelyEqual (REAL8 a, REAL8 b, REAL8 epsilon)
 
void print_difference (const char *name, REAL8 u, REAL8 u_expected)
 
static void Test_fGWinKerr (void)
 
static void Test_rKerrISCO (void)
 
static void Test_xi_tide (void)
 
static void Test_compactness_from_lambda (void)
 
static void Test_torus_mass_fit (void)
 
int main (int argc, char *argv[])
 

Go to the source code of this file.

Macros

#define MYUNUSED(expr)   do { (void)(expr); } while (0)
 
#define COUNT_FGWINKERR   9
 
#define TOLERANCE_FGWINKERR   1e-8
 
#define COUNT_RKERRISCO   7
 
#define TOLERANCE_RKERRISCO   1e-8
 
#define COUNT_XI_TIDE   36
 
#define TOLERANCE_XI_TIDE   1e-8
 
#define COUNT_COMPACTNESS_FROM_LAMBDA   21
 
#define TOLERANCE_COMPACTNESS_FROM_LAMBDA   1e-8
 
#define COUNT_TORUS_MASS_FIT   36
 
#define TOLERANCE_TORUS_MASS_FIT   1e-8
 

Variables

double input_fGWinKerr [COUNT_FGWINKERR][3]
 
double expected_fGWinKerr [COUNT_FGWINKERR]
 
double input_rKerrISCO [COUNT_RKERRISCO][1]
 
double expected_rKerrISCO [COUNT_RKERRISCO]
 
double input_xi_tide [COUNT_XI_TIDE][3]
 
double expected_xi_tide [COUNT_XI_TIDE]
 
double input_compactness_from_lambda [COUNT_COMPACTNESS_FROM_LAMBDA][1]
 
double expected_compactness_from_lambda [COUNT_COMPACTNESS_FROM_LAMBDA]
 
double input_torus_mass_fit [COUNT_TORUS_MASS_FIT][3]
 
double expected_torus_mass_fit [COUNT_TORUS_MASS_FIT]
 

Macro Definition Documentation

◆ MYUNUSED

#define MYUNUSED (   expr)    do { (void)(expr); } while (0)

Definition at line 42 of file NSBHPropertiesTest.c.

◆ COUNT_FGWINKERR

#define COUNT_FGWINKERR   9

Definition at line 59 of file NSBHPropertiesTest.c.

◆ TOLERANCE_FGWINKERR

#define TOLERANCE_FGWINKERR   1e-8

Definition at line 60 of file NSBHPropertiesTest.c.

◆ COUNT_RKERRISCO

#define COUNT_RKERRISCO   7

Definition at line 84 of file NSBHPropertiesTest.c.

◆ TOLERANCE_RKERRISCO

#define TOLERANCE_RKERRISCO   1e-8

Definition at line 85 of file NSBHPropertiesTest.c.

◆ COUNT_XI_TIDE

#define COUNT_XI_TIDE   36

Definition at line 102 of file NSBHPropertiesTest.c.

◆ TOLERANCE_XI_TIDE

#define TOLERANCE_XI_TIDE   1e-8

Definition at line 103 of file NSBHPropertiesTest.c.

◆ COUNT_COMPACTNESS_FROM_LAMBDA

#define COUNT_COMPACTNESS_FROM_LAMBDA   21

Definition at line 136 of file NSBHPropertiesTest.c.

◆ TOLERANCE_COMPACTNESS_FROM_LAMBDA

#define TOLERANCE_COMPACTNESS_FROM_LAMBDA   1e-8

Definition at line 137 of file NSBHPropertiesTest.c.

◆ COUNT_TORUS_MASS_FIT

#define COUNT_TORUS_MASS_FIT   36

Definition at line 161 of file NSBHPropertiesTest.c.

◆ TOLERANCE_TORUS_MASS_FIT

#define TOLERANCE_TORUS_MASS_FIT   1e-8

Definition at line 162 of file NSBHPropertiesTest.c.

Function Documentation

◆ approximatelyEqual()

bool approximatelyEqual ( REAL8  a,
REAL8  b,
REAL8  epsilon 
)

Definition at line 45 of file NSBHPropertiesTest.c.

◆ print_difference()

void print_difference ( const char name,
REAL8  u,
REAL8  u_expected 
)

Definition at line 55 of file NSBHPropertiesTest.c.

◆ Test_fGWinKerr()

static void Test_fGWinKerr ( void  )
static

Definition at line 72 of file NSBHPropertiesTest.c.

◆ Test_rKerrISCO()

static void Test_rKerrISCO ( void  )
static

Definition at line 92 of file NSBHPropertiesTest.c.

◆ Test_xi_tide()

static void Test_xi_tide ( void  )
static

Definition at line 124 of file NSBHPropertiesTest.c.

◆ Test_compactness_from_lambda()

static void Test_compactness_from_lambda ( void  )
static

Definition at line 151 of file NSBHPropertiesTest.c.

◆ Test_torus_mass_fit()

static void Test_torus_mass_fit ( void  )
static

Definition at line 180 of file NSBHPropertiesTest.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 192 of file NSBHPropertiesTest.c.

Variable Documentation

◆ input_fGWinKerr

double input_fGWinKerr[COUNT_FGWINKERR][3]
Initial value:
= {
{8.7173522796064891, 1.0, -0.900}, {13.0760284194097345, 1.0, -0.900},
{17.4347045592129781, 1.0, -0.900}, {6.0000000000000000, 1.0, 0.000},
{9.0000000000000000, 1.0, 0.000}, {12.0000000000000000, 1.0, 0.000},
{2.3208830417618871, 1.0, 0.900}, {3.4813245626428309, 1.0, 0.900},
{4.6417660835237742, 1.0, 0.900}}

Definition at line 61 of file NSBHPropertiesTest.c.

◆ expected_fGWinKerr

double expected_fGWinKerr[COUNT_FGWINKERR]
Initial value:
= {
0.01281537532531727, 0.00686250007959751, 0.00442721737694587,
0.02165824447871323, 0.0117892550438441, 0.007657345769747112,
0.07176032468044616, 0.04304065885628561, 0.0292012072733511}

Definition at line 67 of file NSBHPropertiesTest.c.

◆ input_rKerrISCO

double input_rKerrISCO[COUNT_RKERRISCO][1]
Initial value:
= {
{-0.90}, {-0.60}, {-0.30}, {-0.00}, {0.30}, {0.60}, {0.90}}

Definition at line 86 of file NSBHPropertiesTest.c.

◆ expected_rKerrISCO

double expected_rKerrISCO[COUNT_RKERRISCO]
Initial value:
= {
8.717352279606489, 7.850686185306578, 6.949272527004718, 6, 4.97861683057595,
3.829069418813151, 2.320883041761887}

Definition at line 88 of file NSBHPropertiesTest.c.

◆ input_xi_tide

double input_xi_tide[COUNT_XI_TIDE][3]
Initial value:
= {
{2.00, -0.90, 0.28}, {2.00, -0.90, 0.34}, {2.00, -0.90, 0.4}, {2.00, 0.00, 0.28},
{2.00, 0.00, 0.34}, {2.00, 0.00, 0.4}, {2.00, 0.90, 0.28}, {2.00, 0.90, 0.34}, {2.00, 0.90, 0.4},
{3.00, -0.90, 0.42}, {3.00, -0.90, 0.51}, {3.00, -0.90, 0.6}, {3.00, 0.00, 0.42},
{3.00, 0.00, 0.51}, {3.00, 0.00, 0.6}, {3.00, 0.90, 0.42}, {3.00, 0.90, 0.51}, {3.00, 0.90, 0.6},
{4.00, -0.90, 0.56}, {4.00, -0.90, 0.68}, {4.00, -0.90, 0.8}, {4.00, 0.00, 0.56},
{4.00, 0.00, 0.68}, {4.00, 0.00, 0.8}, {4.00, 0.90, 0.56}, {4.00, 0.90, 0.68}, {4.00, 0.90, 0.8},
{5.00, -0.90, 0.7}, {5.00, -0.90, 0.85}, {5.00, -0.90, 1}, {5.00, 0.00, 0.7}, {5.00, 0.00, 0.85},
{5.00, 0.00, 1}, {5.00, 0.90, 0.7}, {5.00, 0.90, 0.85}, {5.00, 0.90, 1}}

Definition at line 104 of file NSBHPropertiesTest.c.

◆ expected_xi_tide

double expected_xi_tide[COUNT_XI_TIDE]
Initial value:
= {
2.06871189988092, 2.165647459230484, 2.279729557247444, 1.957702074572125,
2.005770585734644, 2.063058314326985, 1.874012683952472, 1.884478196440186,
1.894984431945135, 2.535178557740413, 2.72161470061767, 2.939474255173244,
2.324039062239011, 2.419350068761182, 2.5369293431522, 2.162563923478413,
2.178495207637674, 2.19511940553916, 2.992537647891789, 3.286528350419773,
3.623185704395681, 2.661277126455292, 2.820959995701167, 3.018859346483027,
2.397505338613715, 2.419802208282962, 2.444234246009384, 3.455945198308276,
3.868295212767634, 4.330079575392291, 2.991668576796354, 3.230879137923294,
3.522510111613574, 2.600443557587901, 2.630444772711848, 2.665283137995229}

Definition at line 113 of file NSBHPropertiesTest.c.

◆ input_compactness_from_lambda

double input_compactness_from_lambda[COUNT_COMPACTNESS_FROM_LAMBDA][1]
Initial value:
= {
{0.0}, {200.0}, {400.0}, {600.0}, {800.0}, {1000.0}, {1200.0}, {1400.0}, {1600.0}, {1800.0},
{2000.0}, {2200.0}, {2400.0}, {2600.0}, {2800.0}, {3000.0}, {3200.0}, {3400.0}, {3600.0}, {3800.0},
{4000.0}}

Definition at line 138 of file NSBHPropertiesTest.c.

◆ expected_compactness_from_lambda

double expected_compactness_from_lambda[COUNT_COMPACTNESS_FROM_LAMBDA]
Initial value:
= {
0.5, 0.1917006111637932, 0.1726108500082392, 0.1617580970945444,
0.1541985276023099, 0.1484152311071196, 0.1437420509536809,
0.1398274999660475, 0.1364636439460052, 0.1335173810600413,
0.1308984340168845, 0.1285427920411775, 0.1264034435624421,
0.1244448606165661, 0.1226395498186449, 0.1209658060963831,
0.1194061990393252, 0.1179465229202867, 0.1165750499338684,
0.1152819874103816, 0.114059075676274}

Definition at line 142 of file NSBHPropertiesTest.c.

◆ input_torus_mass_fit

double input_torus_mass_fit[COUNT_TORUS_MASS_FIT][3]
Initial value:
= {
{2.00, -0.90, 0.14}, {2.00, -0.90, 0.17}, {2.00, -0.90, 0.20}, {2.00, 0.00, 0.14},
{2.00, 0.00, 0.17}, {2.00, 0.00, 0.20}, {2.00, 0.90, 0.14}, {2.00, 0.90, 0.17}, {2.00, 0.90, 0.20},
{3.00, -0.90, 0.14}, {3.00, -0.90, 0.17}, {3.00, -0.90, 0.20}, {3.00, 0.00, 0.14},
{3.00, 0.00, 0.17}, {3.00, 0.00, 0.20}, {3.00, 0.90, 0.14}, {3.00, 0.90, 0.17}, {3.00, 0.90, 0.20},
{4.00, -0.90, 0.14}, {4.00, -0.90, 0.17}, {4.00, -0.90, 0.20}, {4.00, 0.00, 0.14},
{4.00, 0.00, 0.17}, {4.00, 0.00, 0.20}, {4.00, 0.90, 0.14}, {4.00, 0.90, 0.17}, {4.00, 0.90, 0.20},
{5.00, -0.90, 0.14}, {5.00, -0.90, 0.17}, {5.00, -0.90, 0.20}, {5.00, 0.00, 0.14},
{5.00, 0.00, 0.17}, {5.00, 0.00, 0.20}, {5.00, 0.90, 0.14}, {5.00, 0.90, 0.17}, {5.00, 0.90, 0.20}}

Definition at line 163 of file NSBHPropertiesTest.c.

◆ expected_torus_mass_fit

double expected_torus_mass_fit[COUNT_TORUS_MASS_FIT]
Initial value:
= {
0.02349705295506288, 0, 0, 0.1299454661328111, 0.0430073416291199, 0,
0.2882657031643916, 0.2332155204085186, 0.1778008350569429, 0, 0, 0,
0.06437920494437788, 0, 0, 0.2941998033123807, 0.2231866136920418,
0.1517306063389851, 0, 0, 0, 0, 0, 0, 0.2887085776862365, 0.2028602793140871,
0.1165992019782404, 0, 0, 0, 0, 0, 0, 0.2763968308942356, 0.1765433406768961,
0.07648328516666991}

Definition at line 172 of file NSBHPropertiesTest.c.