Skip to content

Commit

Permalink
remove Halpha self-broadening hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwheeler committed Jun 11, 2021
1 parent 558530c commit bb3cea8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/line_opacity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ function line_absorption(linelist, λs, temp, nₑ, n_densities::Dict, partition
nₑ*scaled_stark(line.gamma_stark, temp) +
(n_densities["H_I"] + 0.42n_densities["He_I"])*scaled_vdW(line.vdW, mass, temp))

#hack in Hα resonant broadening
if line.species == "H_I" && (6e-5 < line.wl < 7e-5)
Γauto = scaled_vdW((1180*bohr_radius_cgs^2, 0.677), mass, temp) * n_densities["H_I"]
Γstark = nₑ*scaled_stark(line.gamma_stark, temp)
Γ += Γauto - Γstark
end

#doing this involves an implicit aproximation that λ(ν) is linear over the line window
Δλ_L = Γ * line.wl^2 / c_cgs

Expand Down

0 comments on commit bb3cea8

Please sign in to comment.