Package ComboCode :: Package cc :: Package modeling :: Package profilers :: Module Mdot :: Class Mdot
[hide private]
[frames] | no frames]

Class Mdot

source code


An interface for the mass-loss rate profile as a function of radius.

Instance Methods [hide private]
 
__init__(self, r, func=<function constant at 0x10a1298c0>, dfunc=None, order=3, *args, **kwargs)
Create an instance of the Mdot() class.
source code

Inherited from cc.modeling.profilers.Profiler.Profiler: __call__, diff, eval

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, r, func=<function constant at 0x10a1298c0>, dfunc=None, order=3, *args, **kwargs)
(Constructor)

source code 

Create an instance of the Mdot() class. Requires a radial grid, a function, and its arguments.

Default is a constant mass-loss rate, in which case mdot must be given in Msun/yr.

Parameters:
  • r (array) - The radial points (cm)
  • func (func) - The function for calculating the density profile.

    (default: dens_mdot)

  • dfunc (function/interp1d object) - The function that describes the derivative of the profile with respect to r. Can be given as an interp1d object. If None, a generic central difference is taken and interpolated.

    (default: None)

  • order (int) - Order of the spline interpolation. Default is cubic.

    (default: 3)

  • args (tuple) - Additional parameters passed to the functions when eval or diff are called.

    (default: [])

  • kwargs (dict) - Additional keywords passed to the functions when eval or diff are called.

    (default: {})

Overrides: object.__init__