SEVN
Loading...
Searching...
No Matches
RL1 Class Reference

#include <BinaryProperty.h>

Inheritance diagram for RL1:
_RL Derived_Property_Binary BinaryProperty

Public Types

typedef std::map< std::string, size_t > _PrintMap
 

Public Member Functions

 RL1 (bool reg=true)
 
RL1Instance () override
 
std::string name () override
 
int getID () const override
 
int evolve (_UNUSED Binstar *binstar) override
 
std::string units () override
 
virtual double RL_Eg (Star *primary, Star *secondary, Binstar *b)
 
virtual void resynch (_UNUSED const double &dt, _UNUSED bool set0=true)
 
virtual void check_boundaries (_UNUSED double *val, _UNUSED Binstar *binstar)
 
virtual int special_evolve (_UNUSED Binstar *binstar)
 
double get_variation (Binstar *binstar) const
 
virtual int set_broken (_UNUSED Binstar *binstar)
 
virtual double get (_UNUSED const Binstar *b=nullptr)
 
double get_0 (_UNUSED const Binstar *b=nullptr)
 
virtual void restore ()
 

Static Public Attributes

static size_t ID
 
static RL1 _rl1
 
static std::vector< BinaryProperty * > all
 
static _PrintMap PrintMap
 

Protected Member Functions

void Register (BinaryProperty *_p, size_t *id, const std::string &_name)
 
bool isbad (const double &val)
 
virtual void set (const double &a)
 
virtual void set_0 (const double &a)
 

Protected Attributes

std::uniform_real_distribution< double > _uniform_real
 
SevnLogging svlog
 
double V
 
double V0
 

Private Member Functions

void init_derived (_UNUSED Binstar *binstar) override
 
void init (_UNUSED const double par) override
 
virtual bool amiderived ()
 

Static Private Attributes

static size_t size = 0
 

Member Typedef Documentation

◆ _PrintMap

typedef std::map<std::string,size_t> BinaryProperty::_PrintMap
inherited

Constructor & Destructor Documentation

◆ RL1()

RL1::RL1 ( bool  reg = true)
inline

Member Function Documentation

◆ amiderived()

virtual bool Derived_Property_Binary::amiderived ( )
inlineprivatevirtualinherited

◆ check_boundaries()

virtual void BinaryProperty::check_boundaries ( _UNUSED double *  val,
_UNUSED Binstar binstar 
)
inlinevirtualinherited

◆ evolve()

int RL1::evolve ( _UNUSED Binstar binstar)
overridevirtual

Reimplemented from _RL.

◆ get()

virtual double BinaryProperty::get ( _UNUSED const Binstar b = nullptr)
inlinevirtualinherited

Reimplemented in BJIT_Property.

◆ get_0()

double BinaryProperty::get_0 ( _UNUSED const Binstar b = nullptr)
inlineinherited

◆ get_variation()

double BinaryProperty::get_variation ( Binstar binstar) const
inherited

Get the variation expected for a given property just summing all the DVs due to all processes. This is equivalent to evolve, but without checks and without changing V0 and V

Parameters
binstarPointer to the binary from wich to take the processes variations
Returns
The DV for this property considering all the DV from the processes

◆ getID()

int RL1::getID ( ) const
inlineoverridevirtual

Reimplemented from BinaryProperty.

◆ init()

void Derived_Property_Binary::init ( _UNUSED const double  par)
inlineoverrideprivatevirtualinherited

Reimplemented from BinaryProperty.

◆ init_derived()

void Derived_Property_Binary::init_derived ( _UNUSED Binstar binstar)
inlineoverrideprivatevirtualinherited

Reimplemented from BinaryProperty.

◆ Instance()

RL1 * RL1::Instance ( )
inlineoverridevirtual

Reimplemented from _RL.

◆ isbad()

bool BinaryProperty::isbad ( const double &  val)
inlineprotectedinherited

◆ name()

std::string RL1::name ( )
inlineoverridevirtual

Reimplemented from _RL.

◆ Register()

void BinaryProperty::Register ( BinaryProperty _p,
size_t *  id,
const std::string &  _name 
)
inlineprotectedinherited

◆ restore()

virtual void BinaryProperty::restore ( )
inlinevirtualinherited

Reimplemented in BJIT_Property.

◆ resynch()

virtual void BinaryProperty::resynch ( _UNUSED const double &  dt,
_UNUSED bool  set0 = true 
)
inlinevirtualinherited

◆ RL_Eg()

double _RL::RL_Eg ( Star primary,
Star secondary,
Binstar b 
)
virtualinherited

Estimate the RL follwing the Eggleton formalism (Eq. 53 Hurley02)

Parameters
primaryPointer to the primary star (the star for which we are estimating the RL)
secondaryPointer to the secondary star.
bPointer to the binary object
Returns
Roche Lobe radius in Rsun

◆ set()

virtual void BinaryProperty::set ( const double &  a)
inlineprotectedvirtualinherited

Reimplemented in BJIT_Property.

◆ set_0()

virtual void BinaryProperty::set_0 ( const double &  a)
inlineprotectedvirtualinherited

◆ set_broken()

virtual int BinaryProperty::set_broken ( _UNUSED Binstar binstar)
inlinevirtualinherited

Reimplemented in BWorldtime, and BTimestep.

◆ special_evolve()

virtual int BinaryProperty::special_evolve ( _UNUSED Binstar binstar)
inlinevirtualinherited

Reimplemented in BWorldtime, BTimestep, and BEvent.

◆ units()

std::string _RL::units ( )
inlineoverridevirtualinherited

Reimplemented from BinaryProperty.

Member Data Documentation

◆ _rl1

RL1 RL1::_rl1
static

◆ _uniform_real

std::uniform_real_distribution<double> BinaryProperty::_uniform_real
protectedinherited

◆ all

std::vector< BinaryProperty * > BinaryProperty::all
staticinherited

◆ ID

size_t RL1::ID
static

◆ PrintMap

BinaryProperty::_PrintMap BinaryProperty::PrintMap
staticinherited

◆ size

size_t BinaryProperty::size = 0
staticprivateinherited

Instruction for adding new property BPROP 1- Add the size_t BPROP::ID 2- Initialise the static (fake) instance BPROP BPROP::_bprop. NB: take care of the order of initilisation. The properties will be evolved exactly in the same order in which they are initialised here Define: @size: total number of instances of BinaryProperty and derived classes (both fake and real). @all: vector containing all the (pointers) to the BinaryProperty. @PrintMap: map containing the pair (BinaryProperty_name, BinaryProperty_id) for output purpose. Note all and PrintMap are filled during the instantiation of the fake Processes (see below)

◆ svlog

SevnLogging BinaryProperty::svlog
protectedinherited

◆ V

double BinaryProperty::V
protectedinherited

◆ V0

double BinaryProperty::V0
protectedinherited

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