SEVN
Loading...
Searching...
No Matches
piiorio22.h
Go to the documentation of this file.
1/*
2 Created by iorio on 7/26/22.
3 it includes:
4- Class PIIorio22: Simple prescription presented in Iorio+22 (in prep.) based on the Farmer+19 results
5- Class PIIorio22Limited: Same as PIIorio22, but the BH mass is limited using Eq. 2 in Farmer+19
6*/
7
8#ifndef SEVN_PIIORIO22_H
9#define SEVN_PIIORIO22_H
10
11#include <pairinstability.h>
12
32
33public:
34 //Ctor
35 explicit PIIorio22(bool reg=true);
36
37 //Static instance
39
40 //name
41 inline std::string name() const override { return "iorio22";}
42
43 //return an heap allocated instance
44 PIIorio22* instance() override {
45 return (new PIIorio22(false));
46 }
47
49
50 PISNreturn apply_afterSN(_UNUSED Star* s, _UNUSED double mremnant) const override;
51
52protected:
53
61 virtual double ppisn_mass_limitation(_UNUSED double Mremnant, _UNUSED Star* s) const {return Mremnant;}
62
63
64};
65
66
86
87public:
88 //Ctor
89 explicit PIIorio22Limited(bool reg=true);
90
91 //Static instance
93
94 //name
95 inline std::string name() const override { return "iorio22_limited";}
96
97 //return an heap allocated instance
99 return (new PIIorio22Limited(false));
100 }
101
102protected:
103
112 double ppisn_mass_limitation(_UNUSED double Mremnant, _UNUSED Star* s) const override;
113
114};
115
116#endif //SEVN_PIIORIO22_H
#define _UNUSED
Definition: BinaryProperty.h:20
Definition: piiorio22.h:31
PISNreturn apply_afterSN(_UNUSED Star *s, _UNUSED double mremnant) const override
Definition: piiorio22.cpp:32
utilities::MassContainer apply_beforeSN(_UNUSED Star *s) const override
Definition: piiorio22.cpp:18
virtual double ppisn_mass_limitation(_UNUSED double Mremnant, _UNUSED Star *s) const
Definition: piiorio22.h:61
static PIIorio22 _piiorio22
Definition: piiorio22.h:38
PIIorio22 * instance() override
Definition: piiorio22.h:44
std::string name() const override
Definition: piiorio22.h:41
Definition: piiorio22.h:85
PIIorio22Limited * instance() override
Definition: piiorio22.h:98
static PIIorio22Limited _piiorio22limited
Definition: piiorio22.h:92
double ppisn_mass_limitation(_UNUSED double Mremnant, _UNUSED Star *s) const override
Definition: piiorio22.cpp:80
std::string name() const override
Definition: piiorio22.h:95
Definition: pairinstability.h:129
Definition: star.h:39
Definition: pairinstability.h:120
Definition: utilities.h:163