SEVN
Loading...
Searching...
No Matches
Staremnant Class Referenceabstract

#include <remnant.h>

Inheritance diagram for Staremnant:
BHrem NSrem WDrem Zombierem NSCCrem NSECrem COWDrem HeWDrem ONeWDrem

Public Member Functions

 Staremnant (_UNUSED Star *s, double Mremnant, double time)
 
 Staremnant (Star *s, double Mremnant)
 
virtual ~Staremnant ()=default
 
double get_born_time () const
 
double get_Mremnant_at_born () const
 
virtual double Mass (_UNUSED Star *s) const
 
virtual double Radius (_UNUSED Star *s) const =0
 
virtual double Luminosity (_UNUSED Star *s) const =0
 
virtual double OmegaRem (_UNUSED Star *s) const =0
 
virtual double Inertia (_UNUSED Star *s) const =0
 
virtual double Bmag (_UNUSED Star *s) const =0
 
virtual double Xspin (_UNUSED Star *s) const =0
 
double get (Star *s, size_t ID) const
 
Lookup::Remnants get_remnant_type () const
 
double age (Star *s) const
 
double InertiaSphere (Star *s) const
 

Public Attributes

SevnLogging svlog
 

Protected Attributes

Lookup::Remnants remnant_type
 

Private Attributes

double born_time
 
double Mremnant_at_born
 

Constructor & Destructor Documentation

◆ Staremnant() [1/2]

Staremnant::Staremnant ( _UNUSED Star s,
double  Mremnant,
double  time 
)
inline

◆ Staremnant() [2/2]

Staremnant::Staremnant ( Star s,
double  Mremnant 
)

◆ ~Staremnant()

virtual Staremnant::~Staremnant ( )
virtualdefault

Member Function Documentation

◆ age()

double Staremnant::age ( Star s) const

Estimate the elapsed time from the remannt creation. It is estimated simply as Worldtime-creation time

Parameters
sPointe to the star
Returns
Age of the remnant in Myr.

◆ Bmag()

virtual double Staremnant::Bmag ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

◆ get()

double Staremnant::get ( Star s,
size_t  ID 
) const

Get the property with given ID. This a wrapper and a dispatcher to get the results of the various class methods.

Parameters
sPointer to the star
IDID of the Property
Returns
The value of the property as estimated for the remnant or throw a not_implemented_error if the property is not available in the class

◆ get_born_time()

double Staremnant::get_born_time ( ) const
inline

◆ get_Mremnant_at_born()

double Staremnant::get_Mremnant_at_born ( ) const
inline

◆ get_remnant_type()

Lookup::Remnants Staremnant::get_remnant_type ( ) const
inline

◆ Inertia()

virtual double Staremnant::Inertia ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

◆ InertiaSphere()

double Staremnant::InertiaSphere ( Star s) const

◆ Luminosity()

virtual double Staremnant::Luminosity ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

◆ Mass()

double Staremnant::Mass ( _UNUSED Star s) const
virtual

◆ OmegaRem()

virtual double Staremnant::OmegaRem ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

◆ Radius()

virtual double Staremnant::Radius ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

◆ Xspin()

virtual double Staremnant::Xspin ( _UNUSED Star s) const
pure virtual

Implemented in BHrem, NSrem, WDrem, and Zombierem.

Member Data Documentation

◆ born_time

double Staremnant::born_time
private

Time of remnant creation

◆ Mremnant_at_born

double Staremnant::Mremnant_at_born
private

Mass of the remnant at the moment of the creation

◆ remnant_type

Lookup::Remnants Staremnant::remnant_type
protected

◆ svlog

SevnLogging Staremnant::svlog

The documentation for this class was generated from the following files: