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?
When constructing the two-ion model, the level-resolved radiative recombination rates from the
rrlvlfiles are added to the appropriate places in the radiative recombination matrix,chianti-idl/level_population/ch_load_2ion_rates.pro
Lines 271 to 273 in 6641fae
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,
chianti-idl/level_population/ch_load_2ion_rates.pro
Lines 297 to 316 in 6641fae
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?