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

#include <MTstability.h>

Inheritance diagram for MT_Qcrit:
MTstability 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

bool mt_unstable (Star *donor, Star *accretor, _UNUSED Binstar *binary) const override
 
double get_tshold (Star *donor, Star *accretor, _UNUSED Binstar *binary) const override
 
double get (Star *donor, Star *accretor, _UNUSED Binstar *binary) const override
 
virtual std::string name ()=0
 
virtual MTstabilityinstance ()
 
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

virtual double q (Star *donor, Star *accretor) const
 
virtual double qcrit (Star *donor, Star *accretor) const =0
 
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

MT stability implementation based on mass_ratio (q) and critical mass ratio (qc). The instability is check as q > qc. qc can be estimated with different formalism (they have to be implemented)

Member Function Documentation

◆ get() [1/2]

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

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() [2/2]

double MT_Qcrit::get ( Star donor,
Star accretor,
_UNUSED Binstar binary 
) const
inlineoverride

Return q, the critical mass-ratio, if q (get)>qcrit (get_tshold), the mst is unstable

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
qcrit

◆ get_tshold() [1/2]

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

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.

◆ get_tshold() [2/2]

double MT_Qcrit::get_tshold ( Star donor,
Star accretor,
_UNUSED Binstar binary 
) const
inlineoverride

Return qcrit, the critical mass-ratio, if q (get)>qcrit (get_tshold), the mst is unstable

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
qcrit

◆ GetStaticMap()

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

◆ GetUsed()

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

◆ instance()

◆ Instance()

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

◆ mt_unstable()

bool MT_Qcrit::mt_unstable ( Star donor,
Star accretor,
_UNUSED Binstar binary 
) const
overridevirtual

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

Implements MTstability.

◆ name()

◆ q()

double MT_Qcrit::q ( Star donor,
Star accretor 
) const
protectedvirtual

Mass ratio in the previuous step

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
Returns
Mass ratio between donor and accretor in the previous step

◆ qcrit()

virtual double MT_Qcrit::qcrit ( Star donor,
Star accretor 
) const
protectedpure virtual

Critical mass ratio

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
Returns
qcrit in the previous step

Implemented in Qcrit_Hurley, Qcrit_Hurley_Webbink_Shao, Qcrit_COSMIC_Neijssel, Qcrit_COSMIC_Claeys, Qcrit_Radiative_Stable, and Qcrit_HRadiative_Stable.

◆ Register()

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

Member Data Documentation

◆ svlog

SevnLogging MTstability::svlog
protectedinherited

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