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

#include <MTstability.h>

Inheritance diagram for MT_Stable:
MTstability

Public Member Functions

 MT_Stable (bool reg=true)
 
std::string name () override
 
bool mt_unstable (_UNUSED Star *donor, _UNUSED Star *accretor, _UNUSED Binstar *binary) const override
 
double get_tshold (_UNUSED Star *donor, _UNUSED Star *accretor, _UNUSED Binstar *binary) const override
 
double get (_UNUSED Star *donor, _UNUSED Star *accretor, _UNUSED Binstar *binary) const override
 
MT_Stableinstance () override
 
virtual bool mt_unstable (Star *donor, Star *accretor, _UNUSED Binstar *binary) const =0
 

Static Public Member Functions

static MTstabilityInstance (std::string const &name)
 

Static Public Attributes

static MT_Stable _mt_stable
 

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 ()
 

Constructor & Destructor Documentation

◆ MT_Stable()

MT_Stable::MT_Stable ( bool  reg = true)
inline

Member Function Documentation

◆ get()

double MT_Stable::get ( _UNUSED Star donor,
_UNUSED Star accretor,
_UNUSED Binstar binary 
) const
inlineoverridevirtual

Return the value used to make the comparison for mass stability NOTICE: in this case the mass transfer is always stable, so wr are not checking any property. This method returns just 0

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

Implements MTstability.

◆ get_tshold()

double MT_Stable::get_tshold ( _UNUSED Star donor,
_UNUSED Star accretor,
_UNUSED Binstar binary 
) const
inlineoverridevirtual

Return the threshold value used to make the comparison for mass stability NOTICE: In this option all the mass transfer are stable, so this method is not used

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
Just a large value (1E30)

Implements MTstability.

◆ GetStaticMap()

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

◆ GetUsed()

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

◆ instance()

MT_Stable * MT_Stable::instance ( )
inlineoverridevirtual

Reimplemented from MTstability.

◆ Instance()

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

◆ mt_unstable() [1/2]

bool MT_Stable::mt_unstable ( _UNUSED Star donor,
_UNUSED Star accretor,
_UNUSED Binstar binary 
) const
inlineoverride

Check if mass transfer is unstable NOTICE: in this option mass transfer is always stable, therefore this method returns always false

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
Just a large value (1E30)

◆ mt_unstable() [2/2]

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

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()

std::string MT_Stable::name ( )
inlineoverridevirtual

Implements MTstability.

◆ Register()

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

Member Data Documentation

◆ _mt_stable

MT_Stable MT_Stable::_mt_stable
static

◆ svlog

SevnLogging MTstability::svlog
protectedinherited

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