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

Module Mdot

source code

Module for calculating mass loss structures as a function of radius.

Author: R. Lombaert

Classes [hide private]
  Mdot
An interface for the mass-loss rate profile as a function of radius.
Functions [hide private]
array
mdot_step(r, rate, r0, rate_inner=0.0)
Step function for the mass-loss rate.
source code
Variables [hide private]
  __package__ = 'ComboCode.cc.modeling.profilers'
Function Details [hide private]

mdot_step(r, rate, r0, rate_inner=0.0)

source code 

Step function for the mass-loss rate.

When used for the dust mass-loss rate, requires the inner radius of the dust shell to be given as r0.

Can be used also for the gas mass-loss rate with a step anywhere in the wind This is not a smooth transition.

At r < r0: rate_inner, at r >= r0: rate.

Parameters:
  • r (array/float) - r grid (can be array or float)
  • rate (float) - The dust mass-loss rate from r0 onward
  • r0 (float) - The dust condensation radius
  • rate_inner (float) - The mass-loss rate in the inner region at r<r0. Default typically used for the dust mass-loss rate, with r0 the condensation radius.

    (default: 0.0)

Returns: array
The dust mass-loss rate profile as a function of r