SEVN
Loading...
Searching...
No Matches
Lookup Namespace Reference

Typedefs

typedef std::map< std::string, OutputOptionOUTPUTMAP
 
typedef std::pair< InputBinaryOption, int > _INPAIR
 
typedef std::map< InputBinaryOption, int > INPUTMAPBIN_NPARAM
 
typedef std::map< std::string, _INPAIRINPUTMAPBIN
 
typedef std::map< std::string, WindsModeWINDSMAP
 
typedef std::map< std::string, RLModeRLMAP
 
typedef std::map< std::string, TidesModeTIDESMAP
 
typedef std::map< std::string, GWModeGWMAP
 
typedef std::map< std::string, MixModeMIXMAP
 
typedef std::map< std::string, SNKickModeSNKMAP
 
typedef std::map< std::string, CEModeCEMAP
 
typedef std::map< WindsMode, std::string > WINDSMAP_NAME
 
typedef std::map< TidesMode, std::string > TIDESMAP_NAME
 
typedef std::map< GWMode, std::string > GW_NAME
 
typedef std::map< RLMode, std::string > RL_NAME
 
typedef std::map< MixMode, std::string > MIX_NAME
 
typedef std::map< SNKickMode, std::string > SNK_NAME
 
typedef std::map< CEMode, std::string > CE_NAME
 
typedef std::map< std::string, TablesFILEMAP
 

Enumerations

enum  Tables {
  _Time = 0 , _Mass , _Radius , _MHE ,
  _MCO , _RHE , _RCO , _Lumi ,
  _Phase , _Inertia , _Hsup , _HEsup ,
  _Csup , _Nsup , _Osup , _Qconv ,
  _Depthconv , _Tconv , _Ntables
}
 
enum  Phases {
  PreMainSequence = 0 , MainSequence , TerminalMainSequence , ShellHBurning ,
  CoreHeBurning , TerminalCoreHeBurning , ShellHeBurning , Remnant ,
  Nphases
}
 NOTICE: The order is important from less evolved to more evolved. More...
 
enum  SNExplosionType {
  Unknown = 0 , ElectronCapture , CoreCollapse , PPISN ,
  PISN , Ia , WDformation , NSNexplosiontypes
}
 
enum  Material {
  H = 0 , He , CO , ONe ,
  Neutron , BHmaterial , Unknownmaterial , Nmaterial
}
 
enum  Remnants {
  Zombie =-2 , Empty =-1 , NotARemnant , HeWD ,
  COWD , ONeWD , NS_ECSN , NS_CCSN ,
  BH , Nremnants
}
 NOTICE, the order is important (mass ordered): WD, NS, BH. More...
 
enum  OutputOption {
  _hdf5 = 0 , _ascii , _csv , _binary ,
  _Noption
}
 
enum  WindsMode { _WHurley = 0 , _WFaniAD , _WFaniDE , _Wdisabled }
 
enum  RLMode {
  _RLHurley = 0 , _RLHurleyBSE , _RLHurleymod , _RLHurleyprop ,
  _RLdisabled
}
 
enum  TidesMode { _Tsimple = 0 , _Tsimple_notab , _Tdisabled }
 
enum  GWMode { _GWPeters = 0 , _GWdisabled }
 
enum  MixMode { _Mixsimple = 0 , _Mixdisabled }
 
enum  SNKickMode { _SNKickHurley =0 , _SNKickdisabled }
 
enum  CEMode { _CEEnergy = 0 , _CEdisabled }
 
enum  InputBinaryOption { _new = 0 , _legacy , _Niop }
 
enum  EventsList {
  NoEvent = -1 , ChangePhase , ChangeRemnant , QHE ,
  GWBegin , RLOBegin , RLOEnd , Collision ,
  CE , Merger , CE_Merger , RLOB_Merger ,
  RLOB_CE , RLOB_CE_Merger , Collision_Merger , Collision_CE ,
  Collision_CE_Merger , Swallowed , RLOB_Swallowed , GW_Merger ,
  SNBroken , SNIa
}
 
enum  DTout_type : unsigned int {
  _DTUNKNOWN =0 , _DTVAL , _DTLIST , _DTGENINTERVAL ,
  _DTALL , _DTEND , _DTEVNT , _DTEVNTRLO
}
 

Functions

std::string literal (Phases A)
 
std::string literal (Remnants A)
 
std::string literal (EventsList A)
 

Variables

const std::vector< std::string > xspinmodes = {"geneva", "mesa", "fuller", "maxwellian", "zeros", "accretion", "disabled"}
 
const OUTPUTMAP outputmap
 
const INPUTMAPBIN inputmapbin
 
const INPUTMAPBIN_NPARAM inputmapbin_nparam
 
const WINDSMAP windsmap
 
const RLMAP rlmap
 
const TIDESMAP tidesmap
 
const GWMAP gwmap
 
const MIXMAP mixmap
 
const SNKMAP snkmap
 
const CEMAP cemap
 
const WINDSMAP_NAME windsmap_name
 
const TIDESMAP_NAME tidesmap_name
 Tides. More...
 
const GW_NAME gwmap_name
 GW. More...
 
const RL_NAME rlmap_name
 
const MIX_NAME mixmap_name
 
const SNK_NAME snkmap_name
 
const CE_NAME cemap_name
 
const FILEMAP filemap
 
const FILEMAP filemap_optional
 

Typedef Documentation

◆ _INPAIR

typedef std::pair<InputBinaryOption,int> Lookup::_INPAIR

◆ CE_NAME

typedef std::map<CEMode , std::string> Lookup::CE_NAME

◆ CEMAP

typedef std::map<std::string, CEMode > Lookup::CEMAP

◆ FILEMAP

typedef std::map<std::string, Tables> Lookup::FILEMAP

◆ GW_NAME

typedef std::map<GWMode, std::string> Lookup::GW_NAME

◆ GWMAP

typedef std::map<std::string, GWMode > Lookup::GWMAP

◆ INPUTMAPBIN

typedef std::map<std::string, _INPAIR> Lookup::INPUTMAPBIN

◆ INPUTMAPBIN_NPARAM

◆ MIX_NAME

typedef std::map<MixMode, std::string> Lookup::MIX_NAME

◆ MIXMAP

typedef std::map<std::string, MixMode > Lookup::MIXMAP

◆ OUTPUTMAP

typedef std::map<std::string, OutputOption > Lookup::OUTPUTMAP

◆ RL_NAME

typedef std::map<RLMode, std::string> Lookup::RL_NAME

◆ RLMAP

typedef std::map< std::string, RLMode > Lookup::RLMAP

◆ SNK_NAME

typedef std::map<SNKickMode, std::string> Lookup::SNK_NAME

◆ SNKMAP

typedef std::map<std::string, SNKickMode > Lookup::SNKMAP

◆ TIDESMAP

typedef std::map<std::string, TidesMode > Lookup::TIDESMAP

◆ TIDESMAP_NAME

typedef std::map<TidesMode, std::string> Lookup::TIDESMAP_NAME

◆ WINDSMAP

typedef std::map<std::string, WindsMode > Lookup::WINDSMAP

◆ WINDSMAP_NAME

typedef std::map<WindsMode, std::string> Lookup::WINDSMAP_NAME

Enumeration Type Documentation

◆ CEMode

Enumerator
_CEEnergy 
_CEdisabled 

◆ DTout_type

enum Lookup::DTout_type : unsigned int

Store the DTout type:

Enumerator
_DTUNKNOWN 

not know

_DTVAL 

just a number

_DTLIST 

just of values

_DTGENINTERVAL 

three numbers setting an interval

_DTALL 

print all

_DTEND 

prìnt only end

_DTEVNT 

prìnt events

_DTEVNTRLO 

print events + all steps during a RLO

◆ EventsList

This enum stores the Events code

Enumerator
NoEvent 
ChangePhase 
ChangeRemnant 
QHE 
GWBegin 
RLOBegin 
RLOEnd 
Collision 
CE 
Merger 
CE_Merger 
RLOB_Merger 
RLOB_CE 
RLOB_CE_Merger 
Collision_Merger 
Collision_CE 
Collision_CE_Merger 
Swallowed 
RLOB_Swallowed 
GW_Merger 
SNBroken 
SNIa 

◆ GWMode

Enumerator
_GWPeters 
_GWdisabled 

◆ InputBinaryOption

This Enum match the kind of input for binaries with the expected length of the input param vectors:

  • Option standard: new formalism in SEVN2 (len 14) -> Mass1, Z1, Spin1, t_1 initial, Mass2, Z2, Spin2, t_2 initial, sn_type, t final, dt_out, bin_separation, bin_eccentricity
  • Standard formalism in SEVN1 (len 13) -> Mass1, Mass2, Z1, Z2, Spin1, Spin2, bin_separation, bin_eccentricity, t_final, t_ini, tstep sn_type1, sn_type2, dt_out
Enumerator
_new 
_legacy 
_Niop 

◆ Material

Enumerator
He 
CO 
ONe 
Neutron 
BHmaterial 
Unknownmaterial 
Nmaterial 

◆ MixMode

Enumerator
_Mixsimple 
_Mixdisabled 

◆ OutputOption

Enumerator
_hdf5 
_ascii 
_csv 
_binary 
_Noption 

◆ Phases

NOTICE: The order is important from less evolved to more evolved.

Enumerator
PreMainSequence 
MainSequence 
TerminalMainSequence 
ShellHBurning 
CoreHeBurning 
TerminalCoreHeBurning 
ShellHeBurning 
Remnant 
Nphases 

◆ Remnants

NOTICE, the order is important (mass ordered): WD, NS, BH.

Enumerator
Zombie 
Empty 
NotARemnant 
HeWD 
COWD 
ONeWD 
NS_ECSN 
NS_CCSN 
BH 
Nremnants 

◆ RLMode

Enumerator
_RLHurley 
_RLHurleyBSE 
_RLHurleymod 
_RLHurleyprop 
_RLdisabled 

◆ SNExplosionType

Enumerator
Unknown 
ElectronCapture 
CoreCollapse 
PPISN 
PISN 
Ia 
WDformation 
NSNexplosiontypes 

◆ SNKickMode

Enumerator
_SNKickHurley 
_SNKickdisabled 

◆ Tables

Enumerator
_Time 
_Mass 
_Radius 
_MHE 
_MCO 
_RHE 
_RCO 
_Lumi 
_Phase 
_Inertia 
_Hsup 
_HEsup 
_Csup 
_Nsup 
_Osup 
_Qconv 
_Depthconv 
_Tconv 
_Ntables 

◆ TidesMode

Enumerator
_Tsimple 
_Tsimple_notab 
_Tdisabled 

◆ WindsMode

Enumerator
_WHurley 
_WFaniAD 
_WFaniDE 
_Wdisabled 

Function Documentation

◆ literal() [1/3]

std::string Lookup::literal ( Lookup::EventsList  A)

◆ literal() [2/3]

std::string Lookup::literal ( Lookup::Phases  A)

◆ literal() [3/3]

std::string Lookup::literal ( Lookup::Remnants  A)

Variable Documentation

◆ cemap

const Lookup::CEMAP Lookup::cemap
extern
Initial value:
{
{"disabled", CEMode::_CEdisabled},
{"d", CEMode::_CEdisabled},
{"hurley",CEMode::_CEEnergy},
{"h",CEMode::_CEEnergy},
{"hurley_ce",CEMode::_CEEnergy},
{"hce",CEMode::_CEEnergy},
{"default",CEMode::_CEEnergy},
{"energy",CEMode::_CEEnergy},
}

◆ cemap_name

const Lookup::CE_NAME Lookup::cemap_name
extern
Initial value:
{
{CEMode::_CEdisabled,"disabled_ce"},
{CEMode::_CEEnergy,"energy_ce"},
}

◆ filemap

const Lookup::FILEMAP Lookup::filemap
extern
Initial value:
= {
{"mass.dat", Lookup::Tables::_Mass},
{"lumi.dat", Lookup::Tables::_Lumi},
{"mco.dat", Lookup::Tables::_MCO},
{"mhe.dat", Lookup::Tables::_MHE},
{"phase.dat", Lookup::Tables::_Phase},
{"radius.dat", Lookup::Tables::_Radius},
{"time.dat", Lookup::Tables::_Time}}
@ _Phase
Definition: lookup_and_phases.h:28
@ _MHE
Definition: lookup_and_phases.h:23
@ _MCO
Definition: lookup_and_phases.h:24
@ _Time
Definition: lookup_and_phases.h:20
@ _Radius
Definition: lookup_and_phases.h:22
@ _Mass
Definition: lookup_and_phases.h:21
@ _Lumi
Definition: lookup_and_phases.h:27

◆ filemap_optional

const Lookup::FILEMAP Lookup::filemap_optional
extern
Initial value:
= {
{"rco.dat", Lookup::Tables::_RCO},
{"rhe.dat", Lookup::Tables::_RHE},
{"inertia.dat", Lookup::Tables::_Inertia},
{"hsup.dat", Lookup::Tables::_Hsup},
{"hesup.dat", Lookup::Tables::_HEsup},
{"csup.dat", Lookup::Tables::_Csup},
{"nsup.dat", Lookup::Tables::_Nsup},
{"osup.dat", Lookup::Tables::_Osup},
{"qconv.dat", Lookup::Tables::_Qconv},
{"depthconv.dat", Lookup::Tables::_Depthconv},
{"tconv.dat", Lookup::Tables::_Tconv}}
@ _Nsup
Definition: lookup_and_phases.h:33
@ _HEsup
Definition: lookup_and_phases.h:31
@ _Osup
Definition: lookup_and_phases.h:34
@ _Hsup
Definition: lookup_and_phases.h:30
@ _Qconv
Definition: lookup_and_phases.h:35
@ _Tconv
Definition: lookup_and_phases.h:37
@ _Inertia
Definition: lookup_and_phases.h:29
@ _Depthconv
Definition: lookup_and_phases.h:36
@ _RHE
Definition: lookup_and_phases.h:25
@ _RCO
Definition: lookup_and_phases.h:26
@ _Csup
Definition: lookup_and_phases.h:32

◆ gwmap

const Lookup::GWMAP Lookup::gwmap
extern
Initial value:
{
{"disabled", GWMode::_GWdisabled},
{"d", GWMode::_GWdisabled},
{"standard",GWMode::_GWPeters},
{"s",GWMode::_GWPeters},
{"peters",GWMode::_GWPeters},
{"p",GWMode::_GWPeters}
}

◆ gwmap_name

const Lookup::GW_NAME Lookup::gwmap_name
extern
Initial value:
{
{GWMode::_GWdisabled, "disabled_GW"},
{GWMode::_GWPeters, "Peters_GW"}
}

GW.

◆ inputmapbin

const Lookup::INPUTMAPBIN Lookup::inputmapbin
extern
Initial value:
{
{"new", std::make_pair (InputBinaryOption::_new, inputmapbin_nparam.at(InputBinaryOption::_new)) },
{"legacy", std::make_pair (InputBinaryOption::_legacy, inputmapbin_nparam.at(InputBinaryOption::_legacy))},
{"sevn1", std::make_pair (InputBinaryOption::_legacy, inputmapbin_nparam.at(InputBinaryOption::_legacy))},
{"old", std::make_pair (InputBinaryOption::_legacy, inputmapbin_nparam.at(InputBinaryOption::_legacy))}
}
const INPUTMAPBIN_NPARAM inputmapbin_nparam
Definition: lookup_and_phases.cpp:106

◆ inputmapbin_nparam

const Lookup::INPUTMAPBIN_NPARAM Lookup::inputmapbin_nparam
extern
Initial value:
{
{InputBinaryOption::_new, 14},
{InputBinaryOption::_legacy, 14}
}

◆ mixmap

const Lookup::MIXMAP Lookup::mixmap
extern
Initial value:
{
{"disabled", MixMode::_Mixdisabled},
{"d", MixMode::_Mixdisabled},
{"simple",MixMode::_Mixsimple},
{"s",MixMode::_Mixsimple},
}

◆ mixmap_name

const Lookup::MIX_NAME Lookup::mixmap_name
extern
Initial value:
{
{MixMode::_Mixdisabled,"disabled_mix"},
{MixMode::_Mixsimple,"simple_mix"},
}

◆ outputmap

const Lookup::OUTPUTMAP Lookup::outputmap
extern
Initial value:
{
{"h5", OutputOption::_hdf5},
{"hdf5", OutputOption::_hdf5},
{"hf5", OutputOption::_hdf5},
{"hd5", OutputOption::_hdf5},
{"txt", OutputOption::_ascii},
{"dat", OutputOption::_ascii},
{"text", OutputOption::_ascii},
{"ascii", OutputOption::_ascii},
{"asci", OutputOption::_ascii},
{"csv", OutputOption::_csv},
{"binary", OutputOption::_binary}}

◆ rlmap

const RLMAP Lookup::rlmap
extern
Initial value:
{
{"hurley", RLMode::_RLHurley},
{"hurley_rl", RLMode::_RLHurley},
{"h", RLMode::_RLHurley},
{"hurley_rl_prop", RLMode::_RLHurleyprop},
{"hurley_rl_propeller", RLMode::_RLHurleyprop},
{"hurley_bse", RLMode::_RLHurleyBSE},
{"hurley_rl_bse", RLMode::_RLHurleyBSE},
{"hbse", RLMode::_RLHurleyBSE},
{"hurleymod", RLMode::_RLHurleymod},
{"hurleymod_rl", RLMode::_RLHurleymod},
{"hm", RLMode::_RLHurleymod},
{"disabled", RLMode::_RLdisabled},
{"disabled_rl", RLMode::_RLdisabled},
{"d", RLMode::_RLdisabled}
}

◆ rlmap_name

const Lookup::RL_NAME Lookup::rlmap_name
extern
Initial value:
{
{RLMode::_RLdisabled,"disabled_RL"},
{RLMode::_RLHurley,"Hurley_RL"},
{RLMode::_RLHurleyBSE,"Hurley_RL_BSE"},
{RLMode::_RLHurleymod,"Hurley_mod_RL"},
{RLMode::_RLHurleyprop,"Hurley_RL_prop"},
}

◆ snkmap

const Lookup::SNKMAP Lookup::snkmap
extern
Initial value:
{
{"disabled", SNKickMode::_SNKickdisabled},
{"d", SNKickMode::_SNKickdisabled},
{"hurley",SNKickMode::_SNKickHurley},
{"h",SNKickMode::_SNKickHurley},
{"hurley_kick",SNKickMode::_SNKickHurley},
{"hk",SNKickMode::_SNKickHurley},
}

◆ snkmap_name

const Lookup::SNK_NAME Lookup::snkmap_name
extern
Initial value:
{
{SNKickMode::_SNKickdisabled,"disabled_snk"},
{SNKickMode::_SNKickHurley,"hurley_snk"},
}

◆ tidesmap

const Lookup::TIDESMAP Lookup::tidesmap
extern
Initial value:
{
{"tides_simple", TidesMode::_Tsimple},
{"simple", TidesMode::_Tsimple},
{"s", TidesMode::_Tsimple},
{"ts", TidesMode::_Tsimple},
{"tides_simple_notab", TidesMode::_Tsimple_notab},
{"simple_notab", TidesMode::_Tsimple_notab},
{"snt", TidesMode::_Tsimple_notab},
{"tsnt", TidesMode::_Tsimple_notab},
{"disabled", TidesMode::_Tdisabled},
{"d", TidesMode::_Tdisabled}
}

◆ tidesmap_name

const Lookup::TIDESMAP_NAME Lookup::tidesmap_name
extern
Initial value:
{
{TidesMode::_Tsimple, "simple"},
{TidesMode::_Tsimple_notab, "simple_notab"},
{TidesMode::_Tdisabled, "disabled_tides"}
}

Tides.

Instruction for adding new orbit changes ORBC Note this is a bit different with respect to Properties, BinaryProperties and Processes. 1- Just call ORBC ORBC::_orbc 2- Add the name of the new orb_change in the related map name (follow the windsmap_name example)

◆ windsmap

const Lookup::WINDSMAP Lookup::windsmap
extern
Initial value:
{
{"hurley", WindsMode::_WHurley},
{"hurley_wind", WindsMode::_WHurley},
{"h", WindsMode::_WHurley},
{"faniad", WindsMode::_WFaniAD},
{"fani_ad", WindsMode::_WFaniAD},
{"fad", WindsMode::_WFaniAD},
{"f_ad", WindsMode::_WFaniAD},
{"fanide", WindsMode::_WFaniDE},
{"fani_de", WindsMode::_WFaniDE},
{"fde", WindsMode::_WFaniDE},
{"f_de", WindsMode::_WFaniDE},
{"d", WindsMode::_Wdisabled},
{"disabled", WindsMode::_Wdisabled},
{"disabled_wind", WindsMode::_Wdisabled}
}

◆ windsmap_name

const WINDSMAP_NAME Lookup::windsmap_name
extern

◆ xspinmodes

const std::vector<std::string> Lookup::xspinmodes = {"geneva", "mesa", "fuller", "maxwellian", "zeros", "accretion", "disabled"}