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

#include <MTstability.h>

Inheritance diagram for MT_UnStable:
MTstability

Public Member Functions

 MT_UnStable (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_UnStableinstance () 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_UnStable _mt_unstable
 

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

MT_UnStable::MT_UnStable ( bool  reg = true)
inline

Member Function Documentation

◆ get()

double MT_UnStable::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_UnStable::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 always unstable, so this method is not used

Parameters
donorPointer to the donor star
accretorPointer to the accretor star
binaryPointer to the binary
Returns
Just a negative large value

Implements MTstability.

◆ GetStaticMap()

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

◆ GetUsed()

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

◆ instance()

MT_UnStable * MT_UnStable::instance ( )
inlineoverridevirtual

Reimplemented from MTstability.

◆ Instance()

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

◆ mt_unstable() [1/2]

bool MT_UnStable::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 unstable, therefore this method returns always true

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

◆ 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_UnStable::name ( )
inlineoverridevirtual

Implements MTstability.

◆ Register()

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

Member Data Documentation

◆ _mt_unstable

MT_UnStable MT_UnStable::_mt_unstable
static

◆ svlog

SevnLogging MTstability::svlog
protectedinherited

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