Skip to content

Commit

Permalink
Correction for Gamma argument in ABO broadening
Browse files Browse the repository at this point in the history
  • Loading branch information
Goobley committed Mar 28, 2024
1 parent 1882df4 commit de34332
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lightweaver/barklem.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,13 @@ def get_active_cross_section(cls, atom: 'AtomicModel',

reducedMass = Const.Amu / (1.0 / PeriodicTable[1].mass + 1.0 / atom.element.mass)
meanVel = np.sqrt(8.0 * Const.KBoltzmann / (np.pi * reducedMass))
meanCross = Const.RBohr**2 * (meanVel / 1.0e4)**(-result[1])
sigma = result[0]
alpha = result[1]
crossSection = sigma * Const.RBohr**2 * (meanVel / 1.0e4)**(-alpha)

result[0] = (result[0] * 2.0 * (4.0 / np.pi)**(result[1]/2.0)
* gamma(4.0 - result[1] / 2.0) * meanVel * meanCross)
# NOTE(cmo): This is w/N/T^(0.5*(1.0-alpha)) (eq 3 without temperature contrib, multiplied by 2 for half-width)
result[0] = 2.0 * ((4.0 / np.pi)**(alpha / 2.0)
* gamma(2.0 - alpha / 2.0) * meanVel * crossSection)

# Use Unsold for Helium contribution
result[2] = 1.0
Expand Down

0 comments on commit de34332

Please sign in to comment.