Skip to content

Level-resolved radiative recombination rate is overwritten by total radiative recombination rate in ch_load_2ion_rates #11

@wtbarnes

Description

@wtbarnes

When constructing the two-ion model, the level-resolved radiative recombination rates from the rrlvl files are added to the appropriate places in the radiative recombination matrix,

log_rr=interpol(alog10(rrec.rate[ii,*]), alog10(rrec.temp), alog10(t[ind2]) >0.)
rr[ind2, n1+rrec.initial_level[ii]-1, rrec.final_level[ii]-1]=$
10.^log_rr

Notably, this can include level-resolved ground-ground transitions, i.e. (n1,0) in the rate matrix is nonzero.

Additionally, the total radiative recombination rate of the recombining ion is used to calculate ground-ground rate,

tot_rr= total(rr[*, n1, 1:*],3)
;; if verbose then begin
;; print,'Total RR :', rr_rate_ground
;; print,'Total RR from level-resolved:', tot_rr
;; end
if min(rr_rate_ground- tot_rr) lt 0 then begin
print, 'ERROR ! the total of the level-resolved RR rates is greater than the total !?? '
print, 'total level-resolved RR rates: ', arr2str(string(tot_rr,format='(e8.2)'),/trim)
print, 'total RR rates: ',arr2str(string(rr_rate_ground,format='(e8.2)'),/trim)
rr[*, n1, 0]= ( rr_rate_ground- tot_rr) > 0.
wait,3
endif else rr[*, n1, 0]= rr_rate_ground- tot_rr

However, this is inserted into the matrix in such a way that overwrites the level-resolved ground-ground transition that was added above. Why is this? Is there a particular reason that the total rate is not added to the level-resolved rate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions