The SKIRT project
advanced radiative transfer for astrophysics
Thermal motion and line profiles

When particles in a medium (atoms, molecules, electrons) emit or absorb photons, their random thermal motion causes Doppler shifts that result in broadening of the intrinsic emission and absorption lines. This page presents the formulas involved in this process as they are used in the SKIRT implementation. This is especially useful because the notation and definitions sometimes differ between authors.

Gaussian profiles

The normalized Gaussian probability distribution of a variable x with center x0 and dispersion xs can be written as

g(x;x0,xs)=1xs2πexp(12(xx0)2xs2)withg(x;x0,xs)dx=1,

where x, x0, xs and 1/g(x;x0,xs) all have the same units.

A Gaussian line profile can be written as a function of frequency, g(ν;ν0,νs), or as a function of wavelength, g(λ;λ0,λs). Given that νλ=c and ν0λ0=c, and assuming that the profile is narrow ( νsν0 or λsλ0), the dispersions are related as

νs=cλ02λsandλs=cν02νs.

We now consider the Doppler shift velocity v corresponding to the frequency or wavelength displacement. For narrow profiles and thus vc, this velocity is defined through

λ=(1+vc)λ0andν=(1vc)ν0,

so that the line profile can also be written as g(v;0,vs) with

vs=cλ0λsandvs=cν0νs.

Thermal motion

The velocity probability distribution of particles with mass m in a medium at temperature T is given by the Maxwell-Boltzmann law,

f(v)d3v=(m2πkT)3/2exp(mv22kT)d3v=g(vx;0,vs)g(vy;0,vs)g(vz;0,vs)dxdydz,

where k is the Boltzmann constant and we derived the velocity dispersion to be

vs=kTm.

In other words, each of the velocity vector components is distributed as a Gaussian with dispersion vs. Now consider observing a medium where the particles, in their local rest frame, isotropically emit photons at wavelength λ0 (or frequency ν0). The thermal motion is isotropic as well, so we select the x-axis as the line of sight without loss of generality. Because the particle velocity projected on the x-axis is distributed as g(vx;0,vs), it follows from the equations in the previous section that the observed line profile is given by g(λ;λ0,λ0vs/c) or g(ν;ν0,ν0vs/c).

We further define the thermal velocity in a medium of particles with mass m at temperature T as

vth=2kTm=2vs.

This value corresponds to the most probable particle speed, i.e. the point where the probability distribution of the velocity vector norm reaches its maximum value. This result is easily derived, see e.g. Wikipedia.

Subgrid turbulence

One often considers an additional source of line broadening caused by subgrid processes other than those corresponding to the macroscopic temperature. This motion is characterized by the turbulent velocity vturb, and the total velocity dispersion is then defined as

vth2+vturb2=2vs.

We can also represent subgrid turbulence as an artifical second term in an effective temperature, Teff, that can be plugged into the regular equations for macroscopic thermal motion. Indeed, according to our treatment above, we have

vs2=12(vth2+vturb2)=12(2kTm+vturb2),

which leads to

Teff=T+mvturb22k.

Implementation in SKIRT

The SKIRT implementation is consistent with the analysis in the previous sections. This includes the following areas in the code:

  • Primary emission by imported sources (ImportedSource): the optionally imported velocity dispersion value is used as vs.
  • Gaussian Lyman-alpha SEDs (LyaGaussianSED, LyaGaussianSEDFamily): the user-configured velocity dispersion value is used as vs.
  • Absorption cross section and secondary emission (SpinFlipHydrogenGasMix): the temperature of the medium and the particle mass are used to calculate vs.
  • Absorption cross section and secondary emission (NonLTELineGasMix): the temperature and subgrid turbulence of the medium are combined into an efffective temperature Teff, which is then used together with the particle mass to calculate vs.
  • Scattering cross section (ElectronMix, XRayAtomicGasMix): the temperature of the medium and the mass of its constituents is used to calculate vs.

Comparison to literature

Many authors in this field omit the factor 1/2 in the exponent of the Gaussian-like distribution (adjusting the normalization accordingly) and use vth as the dispersion-like quantity instead of vs. While this is equivalent to our treatment, it can be confusing, especially in combination with variations in the definitions or names of the involved variables.