SEVN
Loading...
Searching...
No Matches
pimapelli20.h
Go to the documentation of this file.
1/*
2 Created by iorio on 7/25/22.
3 it includes:
4- Class PIMapelli20: Pair instability model from Appendix A of Mapelli+20, based on the fit (Spera+17) of the Woosley+17 tables
5*/
6
7#ifndef SEVN_PIMAPELLI20_H
8#define SEVN_PIMAPELLI20_H
9
10#include <pairinstability.h>
11
28
29public:
30 //Ctor
31 explicit PIMapelli20(bool reg=true);
32
33 //Static instance
35
36 //name
37 inline std::string name() const override { return "mapelli20";}
38
39 //return an heap allocated instance
40 PIMapelli20* instance() override {
41 return (new PIMapelli20(false));
42 }
43
44 //Main function to call
57 PISNreturn apply_afterSN(_UNUSED Star* s, _UNUSED double mremnant) const override;
58
59protected:
60
73 static double pisn_correction(const double mass, Star *s, Lookup::SNExplosionType& sntype) ;
74
75};
76
77#endif //SEVN_PIMAPELLI20_H
#define _UNUSED
Definition: BinaryProperty.h:20
Definition: pimapelli20.h:27
static PIMapelli20 _pimapelli20
Definition: pimapelli20.h:34
PIMapelli20 * instance() override
Definition: pimapelli20.h:40
std::string name() const override
Definition: pimapelli20.h:37
PISNreturn apply_afterSN(_UNUSED Star *s, _UNUSED double mremnant) const override
Definition: pimapelli20.cpp:18
static double pisn_correction(const double mass, Star *s, Lookup::SNExplosionType &sntype)
Definition: pimapelli20.cpp:25
Definition: pairinstability.h:129
Definition: star.h:39
SNExplosionType
Definition: lookup_and_phases.h:54
Definition: pairinstability.h:120