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

#include <property.h>

Inheritance diagram for Radius:
R_object TableProperty Property

Public Types

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

Public Member Functions

 Radius (bool reg=true)
 
size_t TabID () const override
 
std::string name () const override
 
void set_remnant (_UNUSED Star *s) override
 
void evolve_remnant (_UNUSED Star *s) override
 
RadiusInstance () override
 
void evolve (_UNUSED Star *s) override
 
void evolve_fake (Star *s) override
 
void update_from_binary (_UNUSED Star *s, const double &DV, _UNUSED Binstar *b=nullptr) override
 
double get_fk (_UNUSED const Star *s=NULL) override
 
double get_0_fk (_UNUSED const Star *s=NULL) override
 
double get (_UNUSED const Star *s=NULL) override
 
double get_0 (_UNUSED const Star *s=NULL) override
 
void changed_track (_UNUSED Star *s, _UNUSED Star *s_jtrack) override
 
virtual size_t TabID ()
 
void set_refpointers (_UNUSED Star *s) override
 
bool are_table_loaded () const override
 
void set_w (_UNUSED Star *s) override
 
virtual bool amiderived ()
 
virtual void resynch (_UNUSED const double &dt, _UNUSED bool set0=true)
 
virtual void resynch (_UNUSED Star *s)
 
virtual void set_empty (_UNUSED Star *s)
 
virtual void set_empty_in_bse (_UNUSED Star *s, _UNUSED Binstar *b)
 
virtual void evolve_empty (_UNUSED Star *s)
 
virtual void set_remnant_in_bse (_UNUSED Star *s, _UNUSED Binstar *b)
 
virtual void evolve_nakedco (_UNUSED Star *s)
 
virtual void special_evolve (_UNUSED Star *s)
 
virtual void init (_UNUSED const double &a)
 
virtual void evolve_real ()
 
virtual void update_derived (_UNUSED Star *s)
 
virtual void update_variation ()
 
virtual void correct_interpolation_errors (_UNUSED Star *s)
 
virtual void correct_interpolation_errors_real (_UNUSED Star *s)
 
virtual void restore ()
 
virtual void synch ()
 
virtual void reset ()
 
double get_fk_raw (_UNUSED const Star *s=NULL) const
 
double get_0_fk_raw (_UNUSED const Star *s=NULL) const
 
double get_raw (_UNUSED const Star *s=NULL) const
 
double get_0_raw (_UNUSED const Star *s=NULL) const
 
virtual double get_Vlast (_UNUSED const Star *s) const
 
double * get_wm ()
 
double * get_wz ()
 

Static Public Member Functions

static size_t size ()
 

Public Attributes

double * val_ref [4]
 
double * val_in [4]
 

Static Public Attributes

static size_t ID
 
static Radius _radius
 
static _PrintMap PrintMap
 
static vector< Property * > all
 

Protected Member Functions

void set (const double &a) override
 
void set_0 (const double &a) override
 
void set_wM (_UNUSED Star *s) override
 
void evolve_fake_linear (Star *s)
 
virtual void safety_check ()
 
virtual void set_wZ (_UNUSED Star *s)
 
void set_wM_linear (_UNUSED Star *s)
 
void set_wM_rational (_UNUSED Star *s)
 
void set_wM_log (_UNUSED Star *s)
 
void set_fk (const double &a)
 
void set_0_fk (const double &a)
 
void set_VBIN (const size_t &id, const double &a)
 
void Register (Property *_p, size_t *id, const std::string &_name)
 

Protected Attributes

bool table_loaded =false
 
double value
 
double value0
 
double Dvalue
 
double V
 
double V0
 
vector< double > VBIN
 
double interpolating_values [4]
 
double wM [4]
 
double wZ [2]
 
SevnLogging svlog
 

Static Protected Attributes

static size_t _size = 0
 

Private Member Functions

std::string units () override
 
void copy_V_from (Property *p) override
 

Member Typedef Documentation

◆ _PrintMap

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

Constructor & Destructor Documentation

◆ Radius()

Radius::Radius ( bool  reg = true)
inline

Member Function Documentation

◆ amiderived()

virtual bool Property::amiderived ( )
inlinevirtualinherited

Check if this is a derived. A property is defined dervied if it is estimated by the combination of other properties and it is not the derivative of a property.

Returns
true if it is derived, false if it is not (overrided in the derived properties)

Reimplemented in Derived_Property, and OptionalTableProperty.

◆ are_table_loaded()

bool TableProperty::are_table_loaded ( ) const
inlineoverridevirtualinherited

Reimplemented from Property.

◆ changed_track()

void Radius::changed_track ( _UNUSED Star s,
_UNUSED Star s_jtrack 
)
overridevirtual

Handle the modification of the property after a track change. It does nothing by default.

Parameters
sThe star for which we are changing the tracks.
s_jtrackThe star that we are using to get info of the new tracks.

Reimplemented from Property.

◆ copy_V_from()

void R_object::copy_V_from ( Property p)
inlineoverrideprivatevirtualinherited

Allow copy from/to R_obejct properties

Parameters
p

Reimplemented from Property.

◆ correct_interpolation_errors()

virtual void Property::correct_interpolation_errors ( _UNUSED Star s)
inlinevirtualinherited

Reimplemented in Mass, MHE, MCO, RHE, and RCO.

◆ correct_interpolation_errors_real()

virtual void Property::correct_interpolation_errors_real ( _UNUSED Star s)
inlinevirtualinherited

Reimplemented in Mass, MHE, MCO, Inertia, RHE, and RCO.

◆ evolve()

void Radius::evolve ( _UNUSED Star s)
overridevirtual

Radius

Reimplemented from Property.

◆ evolve_empty()

virtual void Property::evolve_empty ( _UNUSED Star s)
inlinevirtualinherited

Reimplemented in Time_object, Timestep, Phase, RemnantType, and JIT_Property.

◆ evolve_fake()

void Radius::evolve_fake ( Star s)
overridevirtual

Set v0=v

Move to new value in the interpolating track

Find new values at times t for the interpolating tracks using linear interpolation

Find the interpolating z value, M1*v1 + M2*v2

Find the final interpolated value, v=Z1*v1 + Z2*v2

Reimplemented from Property.

◆ evolve_fake_linear()

void Radius::evolve_fake_linear ( Star s)
protected

◆ evolve_nakedco()

virtual void Property::evolve_nakedco ( _UNUSED Star s)
inlinevirtualinherited

◆ evolve_real()

virtual void Property::evolve_real ( )
inlinevirtualinherited

◆ evolve_remnant()

void Radius::evolve_remnant ( _UNUSED Star s)
overridevirtual

Reimplemented from Property.

◆ get()

double Radius::get ( _UNUSED const Star s = NULL)
inlineoverridevirtual

Reimplemented from Property.

◆ get_0()

double Radius::get_0 ( _UNUSED const Star s = NULL)
inlineoverridevirtual

Reimplemented from Property.

◆ get_0_fk()

double Radius::get_0_fk ( _UNUSED const Star s = NULL)
inlineoverridevirtual

Reimplemented from Property.

◆ get_0_fk_raw()

double Property::get_0_fk_raw ( _UNUSED const Star s = NULL) const
inlineinherited

◆ get_0_raw()

double Property::get_0_raw ( _UNUSED const Star s = NULL) const
inlineinherited

◆ get_fk()

double Radius::get_fk ( _UNUSED const Star s = NULL)
inlineoverridevirtual

Here Star is optional, because it is needed only by property that have to estimate V on the fly. Notice that const Star*s means that inside the function we can only call method that we are sure will not change the Star s.

Reimplemented from Property.

◆ get_fk_raw()

double Property::get_fk_raw ( _UNUSED const Star s = NULL) const
inlineinherited

◆ get_raw()

double Property::get_raw ( _UNUSED const Star s = NULL) const
inlineinherited

◆ get_Vlast()

virtual double Property::get_Vlast ( _UNUSED const Star s) const
inlinevirtualinherited

Get the value of the property expected at the end of the evolution (before becoming a remnant). It is based on the last values of the tables.

Parameters
sPointer to the star
Returns
The value of the property at the end of the evolution estimated as the weighted mean of the interpolating track values

◆ get_wm()

double * Property::get_wm ( )
inlineinherited

◆ get_wz()

double * Property::get_wz ( )
inlineinherited

◆ init()

virtual void Property::init ( _UNUSED const double &  a)
inlinevirtualinherited

◆ Instance()

Radius * Radius::Instance ( )
inlineoverridevirtual

Implements Property.

◆ name()

std::string Radius::name ( ) const
inlineoverridevirtual

Reimplemented from Property.

◆ Register()

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

◆ reset()

virtual void Property::reset ( )
inlinevirtualinherited

Reset to 0

◆ restore()

virtual void Property::restore ( )
inlinevirtualinherited

Reimplemented in NextOutput, and JIT_Property.

◆ resynch() [1/2]

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

◆ resynch() [2/2]

virtual void Property::resynch ( _UNUSED Star s)
inlinevirtualinherited

◆ safety_check()

virtual void Radius::safety_check ( )
inlineprotectedvirtual

Reimplemented from Property.

◆ set()

void Radius::set ( const double &  a)
inlineoverrideprotectedvirtual

Reimplemented from Property.

◆ set_0()

void Radius::set_0 ( const double &  a)
inlineoverrideprotectedvirtual

Reimplemented from Property.

◆ set_0_fk()

void Property::set_0_fk ( const double &  a)
inlineprotectedinherited

◆ set_empty()

virtual void Property::set_empty ( _UNUSED Star s)
inlinevirtualinherited

Reimplemented in Time_object, Timestep, Phase, RemnantType, and JIT_Property.

◆ set_empty_in_bse()

virtual void Property::set_empty_in_bse ( _UNUSED Star s,
_UNUSED Binstar b 
)
inlinevirtualinherited

Set empty method to be used during BSE evolution

Parameters
spointer to Star
bpointer to Binary

Reimplemented in Timestep.

◆ set_fk()

void Property::set_fk ( const double &  a)
inlineprotectedinherited

◆ set_refpointers()

void TableProperty::set_refpointers ( _UNUSED Star s)
overridevirtualinherited

Table properties

Reimplemented from Property.

Reimplemented in OptionalTableProperty, Inertia, RHE, RCO, SurfaceAbundanceTable, and ConvectiveTable.

◆ set_remnant()

void Radius::set_remnant ( _UNUSED Star s)
overridevirtual

Reimplemented from Property.

◆ set_remnant_in_bse()

virtual void Property::set_remnant_in_bse ( _UNUSED Star s,
_UNUSED Binstar b 
)
inlinevirtualinherited

Set remnant method to be used during BSE evolution

Parameters
spointer to Star
bpointer to Binary

Reimplemented in Timestep.

◆ set_VBIN()

void Property::set_VBIN ( const size_t &  id,
const double &  a 
)
inlineprotectedinherited

◆ set_w()

void TableProperty::set_w ( _UNUSED Star s)
overridevirtualinherited

Reimplemented from Property.

◆ set_wM()

void Radius::set_wM ( _UNUSED Star s)
overrideprotectedvirtual

Reimplemented from TableProperty.

◆ set_wM_linear()

void TableProperty::set_wM_linear ( _UNUSED Star s)
protectedinherited

Simple linear interpolation in Mass.

Parameters
s

◆ set_wM_log()

void TableProperty::set_wM_log ( _UNUSED Star s)
protectedinherited

Log weights

Parameters
s

◆ set_wM_rational()

void TableProperty::set_wM_rational ( _UNUSED Star s)
protectedinherited

Linear interpolation with an additional weighting correction

Parameters
s

◆ set_wZ()

void TableProperty::set_wZ ( _UNUSED Star s)
protectedvirtualinherited

◆ size()

static size_t Property::size ( )
inlinestaticinherited

◆ special_evolve()

virtual void Property::special_evolve ( _UNUSED Star s)
inlinevirtualinherited

Reimplemented in Localtime, Worldtime, and Phase.

◆ synch()

virtual void Property::synch ( )
inlinevirtualinherited

◆ TabID() [1/2]

virtual size_t Property::TabID ( )
inlinevirtualinherited

◆ TabID() [2/2]

size_t Radius::TabID ( ) const
inlineoverridevirtual

Implements TableProperty.

◆ units()

std::string R_object::units ( )
inlineoverrideprivatevirtualinherited

Reimplemented from Property.

◆ update_derived()

virtual void Property::update_derived ( _UNUSED Star s)
inlinevirtualinherited

This function can be called to update the value of V in derived proprties (without setting V0) It is empty for all the others. This is needed since after a binary evolution, the derived properties have to be updated without setting V0 (same as update_from_binary).

Reimplemented in JIT_Property.

◆ update_from_binary()

void Radius::update_from_binary ( _UNUSED Star s,
const double &  DV,
_UNUSED Binstar b = nullptr 
)
overridevirtual

Reimplemented from Property.

◆ update_variation()

virtual void Property::update_variation ( )
inlinevirtualinherited

Member Data Documentation

◆ _radius

Radius Radius::_radius
static

◆ _size

size_t Property::_size = 0
staticprotectedinherited

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

◆ all

vector< Property * > Property::all
staticinherited

◆ Dvalue

double Property::Dvalue
protectedinherited

◆ ID

size_t Radius::ID
static

◆ interpolating_values

double Property::interpolating_values[4]
protectedinherited

◆ PrintMap

Property::_PrintMap Property::PrintMap
staticinherited

◆ svlog

SevnLogging Property::svlog
protectedinherited

◆ table_loaded

bool TableProperty::table_loaded =false
protectedinherited

◆ V

double Property::V
protectedinherited

◆ V0

double Property::V0
protectedinherited

◆ val_in

double* Property::val_in[4]
inherited

◆ val_ref

double* Property::val_ref[4]
inherited

◆ value

double Property::value
protectedinherited

◆ value0

double Property::value0
protectedinherited

◆ VBIN

vector<double> Property::VBIN
protectedinherited

◆ wM

double Property::wM[4]
protectedinherited

◆ wZ

double Property::wZ[2]
protectedinherited

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