synthesizer.emission_models.generators.dust.draineli07

A submodule defining Draine & Li 2007 dust emission generators.

Functions

synthesizer.emission_models.generators.dust.draineli07.solve_umin(umin, umax, u_avg, gamma, alpha=2.0)[source]

Solve for Umin in the Draine and Li model.

Parameters:
  • umin (float) – Minimum radiation field.

  • umax (float) – Maximum radiation field.

  • u_avg (float) – Average radiation field.

  • gamma (float) – Fraction of dust mass in power-law component.

  • alpha (float) – The slope of the power-law component.

Returns:

The difference between calculated and target mean field.

Return type:

float

synthesizer.emission_models.generators.dust.draineli07.u_mean(umin, umax, gamma, alpha=2.0)[source]

Calculate the mean radiation field heating the dust.

In the Draine & Li (2007) model a fraction (1 - gamma) of the dust mass is heated by umin, and the rest by a power law dM/dU ~ U^-alpha between umin and umax.

Any of umin, gamma and alpha can be arrays (e.g. one value per particle).

Parameters:
  • umin (float/np.ndarray) – Minimum radiation field.

  • umax (float) – Maximum radiation field.

  • gamma (float/np.ndarray) – Fraction of dust mass in power-law component.

  • alpha (float/np.ndarray) – The slope of the power-law component.

Returns:

The mean radiation field.

Return type:

float/np.ndarray

synthesizer.emission_models.generators.dust.draineli07.u_mean_magdis12(dust_mass, ldust, p0)[source]

Calculate the mean radiation field heating the dust.

P0 value obtained from stacking analysis in Magdis+12 For alpha=2.0 https://ui.adsabs.harvard.edu/abs/2012ApJ…760….6M/abstract

Parameters:
  • dust_mass (float) – The dust mass.

  • ldust (float) – The dust luminosity.

  • p0 (float) – Power absorbed per unit dust mass in a radiation field with U = 1.

Returns:

The mean radiation field.

Return type:

float

Classes

class synthesizer.emission_models.generators.dust.draineli07.DraineLi07(grid_name, grid_dir=None, dust_mass=None, dust_to_gas_ratio=None, hydrogen_mass=None, template='DL07', gamma=None, qpah=None, umin=None, alpha=None, power_per_unit_mass=125.0, verbose=True, lam=None, intrinsic=None, attenuated=None, scaler=None)[source]

Draine and Li (2007) dust emission templates.

Draine and Li (2007) dust emission spectra obtained from pre-processing the DL07 templates onto a grid of the PAH mass fraction (qpah), the minimum radiation field (umin) and the slope of the power-law radiation field distribution (alpha). The default grid can be downloaded with synthesizer-download --dust-grid. The templates are linearly (CIC) interpolated to the parameters of each particle (or emitter) using the same grid extraction machinery as the stellar spectra, in the space of each grid axis (linear or log10), with values outside the grid clamped to its edges. The spectrum is normalised over the templates’ full wavelength range (so it does not depend on the wavelengths it is evaluated on) and then scaled by the energy absorbed by dust (the “energy balance” method), or by a scaler emission. For more details see the base DustEmission parent class.

This is based on the work of Draine & Li (2007): https://ui.adsabs.harvard.edu/abs/2007ApJ…657..810D/abstract

dust_to_gas_ratio, hydrogen_mass, qpah, gamma, umin and alpha are optional. A value set on the generator is a fixed override that takes priority over any value on the emitter (only an EmissionModel’s fixed_parameters take priority over it). If left as None they are read from the emitter, and each can be a single value or one value per particle (which requires a per-particle model). Particles with a non-positive or non-finite dust mass, a non-positive umin, or non-finite parameters produce no emission. If they are set nowhere, hydrogen_mass is derived from the dust mass and dust_to_gas_ratio (as 0.74 dust_mass / dust_to_gas_ratio), gamma falls back to 0.05, umin is derived from the Magdis+12 mean radiation field (for the given alpha), and dust_to_gas_ratio, qpah and alpha fall back to 0.01, 0.025 and 2.0.

grid_name

Name of the dust emission grid (without hdf5 extension).

Type:

string

grid_dir

Location of the grid.

Type:

string

grid

The dust emission grid containing the DL07 templates.

Type:

Grid

dust_mass

The mass of dust in the galaxy.

Type:

unyt_quantity

dust_to_gas_ratio

The dust-to-gas ratio of the galaxy.

Type:

float

hydrogen_mass

The mass in hydrogen of the galaxy.

Type:

unyt_quantity

template

The IR template model to be used.

Type:

str

gamma

Fraction of the dust mass that is associated with the power-law part of the starlight intensity distribution.

Type:

float

qpah

Fraction of dust mass in the form of PAHs.

Type:

float

umin

Radiation field heating majority of the dust.

Type:

float

alpha

The slope of the power-law part of the stellar emission intensity distribution.

Type:

float

power_per_unit_mass

Power absorbed per unit dust mass in a radiation field with U = 1.

Type:

float

verbose

Whether to print verbose output.

Type:

bool

get_spectra(lams, dust_mass=None, ldust=None, dust_components=False)[source]

Generate dust emission spectra for given wavelength grid.

This will return the scaling free spectra for a given wavelength grid. It will not consider any emitter or model, so the dust parameters must have been provided directly to the class or passed as arguments.

Parameters:
  • lams (unyt_array) – The wavelength grid on which to generate the spectra.

  • dust_mass (unyt_quantity, optional) – The dust mass. If not provided, uses the value from the class.

  • ldust (unyt_quantity, optional) – The dust luminosity for parameter calculation. If not provided, a default value will be used for parameter setup.

  • dust_components (bool) – If True, returns the constituent dust components separately.

Returns:

The generated dust emission SED(s).

Return type:

Sed or tuple[Sed, Sed]