From a74a640c1720bfa26fce30fad1b42f972b3a024f Mon Sep 17 00:00:00 2001 From: Chris Pankow <chris.pankow@ligo.org> Date: Wed, 18 Oct 2017 12:31:36 -0400 Subject: [PATCH] LALSimNeutronStarEOSTabular.c: make new EoS available --- .../src/LALSimNeutronStarEOSTabular.c | 60 +++++++++++++++++-- 1 file changed, 55 insertions(+), 5 deletions(-) diff --git a/lalsimulation/src/LALSimNeutronStarEOSTabular.c b/lalsimulation/src/LALSimNeutronStarEOSTabular.c index 136b595b7f..3d174eb38a 100644 --- a/lalsimulation/src/LALSimNeutronStarEOSTabular.c +++ b/lalsimulation/src/LALSimNeutronStarEOSTabular.c @@ -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; -- GitLab