xdust.graindist

This module contains:

This is tied together by the GrainDist superclass.

GrainDist

class xdust.graindist.GrainDist(dtype, cmtype, shape='Sphere', md=0.0001, rho=None, **kwargs)[source]

Bases: object

Graindist ties together the size distribution (which has no set column density) and composition (which contains optical constants and density) and anchors them with dust mass density and a series of convenience functions to get at some of the frequently needed information.

Parameters:
  • dtype (str or xdust.graindist.sizedist object) – Grain radius distribution. String options: 'Grain', 'Powerlaw', 'ExpCutoff', 'Astrodust', 'WD01'.

  • cmtype (str or xdust.graindist.composition object) – Optical constants and compound density. String options: 'Drude', 'Silicate', 'Graphite'.

  • shape (str) – Grain shape. 'Sphere' is the only supported option.

  • md (float) – Dust mass column [g cm^-2].

  • rho (float, optional) – If provided, passed to the rho keyword of the composition object.

  • **kwargs – Extra inputs passed to sizedist.__init__.

size

Grain size distribution.

Type:

xdust.graindist.sizedist object

comp

Optical constants and material density.

Type:

xdust.graindist.composition object

shape

Grain shape object.

Type:

xdust.graindist.shape object

md

Dust mass column density [g cm^-2].

Type:

float

property a

Grain radius grid

Return type:

astropy.units.Quantity

property cgeo

Geometric cross section of the grains [float, cm^2].

Return type:

numpy.ndarray

property mdens

Mass column density of dust grains as a function of radius [g cm^-2 um^-1], using the dust mass column density in self.md and the grain material density in self.comp.rho.

Return type:

numpy.ndarray

property ndens

Number column density of dust grains as a function of radius [cm^-2 um^-1], using the dust mass column density in self.md and the grain material density in self.comp.rho.

Return type:

numpy.ndarray

plot(ax, **kwargs)[source]

Plots the grain size distribution on a given matplotlib axis

Parameters:

ax (matplotlib.axes.Axes) – Axes on which to plot the grain size distribution

property rho

Grain material density [g cm^-3]

Return type:

float

property vol

Volume of the grains [float, cm^3].

Return type:

numpy.ndarray

Supporting modules