driftRPDF(r,
a,
l,
v,
mdot,
opac,
sd,
radiance,
T=None,
P=0,
alpha=0.0,
mu=2.0,
w_thermal=' none ' )
| source code
|
Calculate the drift velocity as a function of radius and grain size by
equating the radiation pressure force and drag force.
If the grain size is given as a constant value, the profile is
calculated only for an average grain size, and is essentially 1d, in
which case the drift does not depend on grain size.
For now in the approximation that the thermal velocities are small
compared to the drift. This is only valid in the outer, cool regions of
the wind.
The function integrates the luminosity and the opacity over the
wavelength grid to estimate the component for the radiation pressure.
Note that the opacities are assumed to be independent of grain size for
this to work, hence the Rayleigh regime should be applicable.
Inclusion of the thermal velocity requires T profile. Mean molecular
weight assumed to be one in that case.
- Parameters:
r (array/float) - The radial points (cm)
a (array/float) - The grain size grid (cm)
l (array/float) - The wavelength grid (cm)
v (float/Velocity()) - The velocity profile (cm/s)
mdot (float/Mdot()) - The mass-loss profile (Msun/yr)
opac (Opacity()) - The opacity profile (cm2/g), must include l-dependence. Can be
extinction, absorption, or scattering, but note that the
calculation assumes this is an absorption opacity.
sd (float) - The specific density of the dust species
radiance (Radiance()) - The luminosity profile (ergs/s), must include l-dependence
T (Temperature()) - The temperature profile. Only relevant if w_thermal is not none.
(default: None)
P (float) - The porosity of the grain (or equivalent, to represent effective
grain surface). Default is the spherical case. Is given as the
ratio of vacuum per unit volume of a grain.
(default: 0)
alpha (float) - Sticking coefficient (Kwok 1975, Van Marle 2011). Default is
current value in MCP/GASTRoNOoM. Should be 0.25 according to Kwok
and van Marle. 1-alpha gives the fraction of elastic collisions.
(default: 0.)
mu (float) - The mean molecular weight. Default is a wind with purely H2. To
get the GASTRoNOoM value of 1.4, set fH to 1.5.
(default: 2.0)
w_thermal (str) - Type of thermal velocity.
-
sqrt(2kT/m): most probably speed df(v)/dr = 0
-
sqrt(8/pi kT/m): mean speed (f(v) * v dv)/f(v) dv
-
sqrt(3kT/m): rms speed sqrt((f(v) * v2 dv)/f(v) dv)
-
Kwok version: 3/4 sqrt(3kT/m)
-
Epstein: 4/3 sqrt(8kT/mpi)
Choose from: epstein, kwok, prob, mean, rms, none
(default: none)
- Returns: array/float
- The drift velocity (cm/s) as a function of r and a
|