xdust.graindist.shape

The superclass Shape describes the geometric properties of the dust grains.

Note

At this time, only spherical dust grains are supported (see Sphere).

For non-spherical dust grains, the grain size distribution can be specified using the effective grain radius \(a_{\rm eff}\), defined as \(V_g = \frac{4}{3} \pi a_{\rm eff}^3\) where \(V_g\) is the volume of the grain.

Shape

class xdust.graindist.shape.Shape[source]

Bases: object

Abstract class for grain shape.

cgeo(a)[source]

Geometric cross-section of the grain as a function of grain size.

Parameters:

a (astropy.units.Quantity or float) – Grain size; plain floats are assumed to be in microns.

Returns:

Geometric cross-section of the grain [cm^2]

Return type:

float or numpy.ndarray

vol(a)[source]

Volume of the grain as a function of grain size.

Parameters:

a (astropy.units.Quantity or float) – Grain size; plain floats are assumed to be in microns.

Returns:

Volume of the grain [cm^-3]

Return type:

numpy.ndarray

Sphere

class xdust.graindist.shape.Sphere[source]

Bases: Shape

shape
Type:

string : Describes the shape (‘sphere’)

cgeo(a)[source]

Return the geometric cross-section of a spherical particle, in units of cm^2

Parameters:

a (astropy.units.Quantity or float) – Grain radius; plain floats are assumed to be in microns.

Returns:

Geometric cross-section \(\pi a^2\) [cm^2].

Return type:

numpy.ndarray

vol(a)[source]

Return the grain’s volume in units of cm^3

Parameters:

a (astropy.units.Quantity or float) – Grain radius; plain floats are assumed to be in microns.

Returns:

Grain volume \(\frac{4}{3}\pi a^3\) [cm^3].

Return type:

numpy.ndarray