changa 3.5
Loading...
Searching...
No Matches
MillerScalo Class Reference

Implement Miller-Scalo IMF Uses the 3 segment power law fit for the Miller-Scalo IMF (Ap.J. Supp., 41,1979). More...

#include <imf.h>

Inheritance diagram for MillerScalo:
IMF

Public Member Functions

 PUPable_decl (MillerScalo)
 Charm++ method for migrating derived classes.
 
 MillerScalo (CkMigrateMessage *m)
 Charm++ migration constructor.
 
virtual double returnimf (double mass) const
 return stars per unit logarithmic mass
 
virtual double CumNumber (double mass)
 Cumulative number of stars with mass greater than mass.
 
virtual double CumMass (double mass)
 Cumulative mass of stars with mass greater than mass.
 
virtual double CumNumberStoch (double mass, double lownorm, double *hmstars, double cutmass)
 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 CumMassStoch (double mass, double lownorm, double *hmstars, double cutmass)
 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)
 inverse CDF of IMF to draw stars stochastically from the IMF
 
virtual MillerScaloclone () const
 copy IMF object
 
virtual void pup (PUP::er &p)
 Charm++ Pack-UnPack method.
 
- Public Member Functions inherited from IMF
 PUPable_abstract (IMF)
 Charm++ requirement for passing polymorphic objects.
 
 IMF (CkMigrateMessage *m)
 Charm++ migrate constructor.
 

Detailed Description

Implement Miller-Scalo IMF Uses the 3 segment power law fit for the Miller-Scalo IMF (Ap.J. Supp., 41,1979).

                        a1*(M**(b1))          0.1<M<1.
      IMF(Log10(M))=    a2*(M**(b2))         1.<M<10.
                        a3*(M**(b3))         10.<M

Miller-Scalo IMF (Miller & Scalo, Ap.J. Supp., 41, 513, 1979) in stars per unit logarithmic mass. Divide by M (mass) for IMF in stars per unit mass. Also IMF is defined per yer per pc^2, integrated over a cylinder that extends "several hundred parsecs on either side of the plane of the galaxy"

Member Function Documentation

◆ clone()

MillerScalo * MillerScalo::clone ( ) const
virtual

copy IMF object

Implements IMF.

◆ CumMass()

double MillerScalo::CumMass ( double mass)
virtual

Cumulative mass of stars with mass greater than mass.

Parameters
massin solar masses

Implements IMF.

◆ CumMassStoch()

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

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

Implements IMF.

◆ CumNumber()

double MillerScalo::CumNumber ( double mass)
virtual

Cumulative number of stars with mass greater than mass.

Parameters
massin solar masses

Implements IMF.

◆ CumNumberStoch()

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

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

Implements IMF.

◆ DrawStar()

double MillerScalo::DrawStar ( double num)
virtual

inverse CDF of IMF to draw stars stochastically from the IMF

Implements IMF.

◆ pup()

virtual void MillerScalo::pup ( PUP::er & p)
inlinevirtual

Charm++ Pack-UnPack method.

Implements IMF.

◆ returnimf()

double MillerScalo::returnimf ( double mass) const
virtual

return stars per unit logarithmic mass

Parameters
massin solar masses.

Implements IMF.


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