Home | Trees | Indices | Help |
---|
|
An interface for the density profile as a function of radius.
|
|||
|
|||
float |
|
||
|
|||
array/float |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
Create an instance of the Density() class. Requires a radial grid, a function for calculating the density profile, and its arguments. The default is the mass-loss rate density profile. Requires mdot and v to be given either as constants or Profile()s.
|
Return the mean molecular weight for this Density profile. Requires calcNumberDensity to have been called before.
|
In case of gas, calculate the H_2, H, He and total number density profiles. In case of dust, calculate the dust number density. Takes into account fractional abundances of atomic hydrogen and helium, and the specific density/average grain size, respectively. Note the specific definitions of fH and fHe. These are implemented this way to work well with the energy balance calculation and the definition of dT/dR as well as H_dg.
|
Evaluate the density function at a coordinate point. r can be any value or array. If func is an interp1d object, it is in principle limited by the r-range of the interpolator. However, linear extrapolation is enabled, but it is advised not to extend much beyond the given r-range.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:58 2016 | http://epydoc.sourceforge.net |