Commit a74a640c authored by Chris Pankow's avatar Chris Pankow
Browse files

LALSimNeutronStarEOSTabular.c: make new EoS available

parent bebe378e
......@@ -363,11 +363,51 @@ LALSimNeutronStarEOS *XLALSimNeutronStarEOSFromFile(const char *fname)
* @brief Creates an equation of state structure from tabulated equation
* of state data of a known name.
* @details A known, installed, named tabulated equation of state data file is
* read and the used to create the equation of state structure. Presently
* the known equations of state are:
* read and the used to create the equation of state structure.
* The equations of state available are the representative sample drawn from
* http://xtreme.as.arizona.edu/NeutronStars/ they are:
* - ALF1
* - ALF2
* - ALF3
* - ALF4
* - AP1
* - AP2
* - AP3
* - AP4
* - BBB2
* - BGN1H1
* - BPAL12
* - BSK19
* - BSK20
* - BSK21
* - ENG
* - FPS
* - GNH3
* - GS1
* - GS2
* - H1
* - H2
* - H3
* - H4
* - H5
* - H6
* - H7
* - MPA1
* - MS1B
* - MS1
* - MS2
* - PAL6
* - PCL2
* - PS
* - QMC700
* - SLY4
* - SLY
* - SQM1
* - SQM2
* - SQM3
* - WFF1
* - WFF2
* - WFF3
* @param[in] name The name of the equation of state.
* @return A pointer to neutron star equation of state structure.
*/
......@@ -376,9 +416,19 @@ LALSimNeutronStarEOS *XLALSimNeutronStarEOSByName(const char *name)
static const char fname_base[] = "LALSimNeutronStarEOS_";
static const char fname_extn[] = ".dat";
static const char *eos_names[] = {
"FPS",
"SLY4",
"AP4"
"ALF1", "ALF2", "ALF3", "ALF4",
"AP1", "AP2", "AP3", "AP4",
"BBB2", "BGN1H1", "BPAL12",
"BSK19", "BSK20", "BSK21",
"ENG", "FPS", "GNH3",
"GS1", "GS2",
"H1", "H2", "H3", "H4", "H5", "H6", "H7",
"MPA1", "MS1B", "MS1", "MS2",
"PAL6", "PCL2", "PS",
"QMC700",
"SLY4", "SLY",
"SQM1", "SQM2", "SQM3",
"WFF1", "WFF2", "WFF3"
};
size_t n = XLAL_NUM_ELEM(eos_names);
size_t i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment