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

#include <MTstability.h>

Inheritance diagram for MTstability:
MT_Qcrit MT_Stable MT_UnStable MT_Zeta Qcrit_Hurley Qcrit_StarTrack Qcrit_Hurley_Webbink Qcrit_COSMIC_Claeys Qcrit_COSMIC_Neijssel Qcrit_HRadiative_Stable Qcrit_Hurley_Webbink_Shao Qcrit_Radiative_Stable

Public Member Functions

virtual std::string name ()=0
 
virtual MTstabilityinstance ()
 
virtual bool mt_unstable (Star *donor, Star *accretor, _UNUSED Binstar *binary) const =0
 
virtual ~MTstability ()
 
virtual double get_tshold (_UNUSED Star *donor, _UNUSED Star *accretor, _UNUSED Binstar *binary) const =0
 
virtual double get (_UNUSED Star *donor, _UNUSED Star *accretor, _UNUSED Binstar *binary) const =0
 

Static Public Member Functions

static MTstabilityInstance (std::string const &name)
 

Protected Member Functions

void Register (MTstability *ptr, const std::string &_name)
 

Protected Attributes

SevnLogging svlog
 

Static Private Member Functions

static std::map< std::string, MTstability * > & GetStaticMap ()
 
static std::vector< int > & GetUsed ()
 

Detailed Description

Base pure virtual class

Constructor & Destructor Documentation

◆ ~MTstability()

virtual MTstability::~MTstability ( )
inlinevirtual

Member Function Documentation

◆ get()

virtual double MTstability::get ( _UNUSED Star donor,
_UNUSED Star accretor,
_UNUSED Binstar binary 
) const
pure virtual

Return the value used to make the comparison for mass stability

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
Return the value used to make the comparison for mass stability

Implemented in MT_Stable, and MT_UnStable.

◆ get_tshold()

virtual double MTstability::get_tshold ( _UNUSED Star donor,
_UNUSED Star accretor,
_UNUSED Binstar binary 
) const
pure virtual

Return the threshold value used to make the comparison for mass stability

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
Return the threshold value used to make the comparison for mass stability

Implemented in MT_Stable, and MT_UnStable.

◆ GetStaticMap()

static std::map< std::string, MTstability * > & MTstability::GetStaticMap ( )
inlinestaticprivate

◆ GetUsed()

static std::vector< int > & MTstability::GetUsed ( )
inlinestaticprivate

◆ instance()

◆ Instance()

MTstability * MTstability::Instance ( std::string const &  name)
static

◆ mt_unstable()

virtual bool MTstability::mt_unstable ( Star donor,
Star accretor,
_UNUSED Binstar binary 
) const
pure virtual

Check if the mass transfer is stable or not

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
true is the mass transfer is unstable, false otherwise

Implemented in MT_Qcrit, and MT_Zeta.

◆ name()

◆ Register()

void MTstability::Register ( MTstability ptr,
const std::string &  _name 
)
inlineprotected

Member Data Documentation

◆ svlog

SevnLogging MTstability::svlog
protected

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