changa 3.5
Loading...
Searching...
No Matches
IMF Class Referenceabstract

Interface class for initial mass function. More...

#include <imf.h>

Inheritance diagram for IMF:
Chabrier Kroupa01 Kroupa93 MillerScalo

Public Member Functions

virtual double returnimf (double mass) const =0
 return stars per unit logarithmic mass
 
 PUPable_abstract (IMF)
 Charm++ requirement for passing polymorphic objects.
 
 IMF (CkMigrateMessage *m)
 Charm++ migrate constructor.
 
virtual void pup (PUP::er &p)=0
 Charm++ Pack-UnPack method.
 
virtual double CumNumber (double mass)=0
 Cumulative number of stars with mass greater than mass.
 
virtual double CumNumberStoch (double mass, double lownorm, double *hmstars, double cutmass)=0
 CumNumber for use with stochastic IMF. NOTA BENE - CumNumber for stochastic use returns the actual number for the star particle - no renormalization necessary.
 
virtual double CumMass (double mass)=0
 Cumulative mass of stars with mass greater than mass.
 
virtual double CumMassStoch (double mass, double lownorm, double *hmstars, double cutmass)=0
 CumMass for use with stochastic IMF. NOTA BENE - CumMass for stochastic use returns the actual mass for the star particle - no renormalization necessary.
 
virtual double DrawStar (double num)=0
 inverse CDF of IMF to draw stars stochastically from the IMF
 
virtual IMFclone () const =0
 copy IMF object
 

Detailed Description

Interface class for initial mass function.

Modified by Elaad Applebaum to implement a stochastic IMF. Added DrawStar methods NB: So far, only added for Kroupa01

Member Function Documentation

◆ clone()

virtual IMF * IMF::clone ( ) const
pure virtual

copy IMF object

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ CumMass()

virtual double IMF::CumMass ( double mass)
pure virtual

Cumulative mass of stars with mass greater than mass.

Parameters
massin solar masses

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ CumMassStoch()

virtual double IMF::CumMassStoch ( double mass,
double lownorm,
double * hmstars,
double cutmass )
pure virtual

CumMass for use with stochastic IMF. NOTA BENE - CumMass for stochastic use returns the actual mass for the star particle - no renormalization necessary.

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ CumNumber()

virtual double IMF::CumNumber ( double mass)
pure virtual

Cumulative number of stars with mass greater than mass.

Parameters
massin solar masses

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ CumNumberStoch()

virtual double IMF::CumNumberStoch ( double mass,
double lownorm,
double * hmstars,
double cutmass )
pure virtual

CumNumber for use with stochastic IMF. NOTA BENE - CumNumber for stochastic use returns the actual number for the star particle - no renormalization necessary.

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ DrawStar()

virtual double IMF::DrawStar ( double num)
pure virtual

inverse CDF of IMF to draw stars stochastically from the IMF

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ pup()

virtual void IMF::pup ( PUP::er & p)
pure virtual

Charm++ Pack-UnPack method.

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.

◆ returnimf()

virtual double IMF::returnimf ( double mass) const
pure virtual

return stars per unit logarithmic mass

Parameters
massin solar masses.

Implemented in Chabrier, Kroupa01, Kroupa93, and MillerScalo.


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