mirror of
https://github.com/JHUAPL/kaiju.git
synced 2026-01-08 22:58:05 -05:00
Applying band-aid to fix dblfix
This commit is contained in:
@@ -263,21 +263,22 @@ submodule (volttypes) raijuCplTypesSub
|
||||
endif
|
||||
enddo
|
||||
|
||||
|
||||
! Mock up cold electrons balancing hot protons and see if it produces meaningful flux
|
||||
call InterpShellVar_TSC_pnt(sh, State%Den_avg(idx_proton) , th, ph, d_ion)
|
||||
call InterpShellVar_TSC_pnt(sh, State%Press_avg(idx_proton) , th, ph, p_ion)
|
||||
pie_frac = 0.05 ! Fraction of ion pressure contained by these neutralizing electrons
|
||||
pe_kT = DP2kT(d_ion, p_ion*pie_frac) ! [keV]
|
||||
pe_nflux = imP(RAI_ENFLX)*d_ion/d_hot ! Scale number flux to same loss processes except there were d_ion density instead of d_electron density
|
||||
pe_eflux = (pe_kT*kev2erg)*pe_nflux ! [erg/cm^2/s]
|
||||
if (pe_eflux > imP(RAI_EFLUX)) then ! Use in place of normal flux only if energy flux for these are greater than hot electron channel fluxes
|
||||
imP(RAI_EFLUX) = pe_eflux
|
||||
imP(RAI_ENFLX) = pe_nflux
|
||||
imP(RAI_EDEN ) = d_ion*1.0e6 ! [#/m^3]
|
||||
imP(RAI_EPRE ) = p_ion*pie_frac*1.0e-9 ! [Pa]
|
||||
endif
|
||||
endif
|
||||
!K: Removing this code for now, should be rewritten to use the MHD D,P => precip routines
|
||||
! call InterpShellVar_TSC_pnt(sh, State%Den_avg(idx_proton) , th, ph, d_ion)
|
||||
! call InterpShellVar_TSC_pnt(sh, State%Press_avg(idx_proton) , th, ph, p_ion)
|
||||
! pie_frac = 0.05 ! Fraction of ion pressure contained by these neutralizing electrons
|
||||
! pe_kT = DP2kT(d_ion, p_ion*pie_frac) ! [keV]
|
||||
! pe_nflux = imP(RAI_ENFLX)*d_ion/d_hot ! Scale number flux to same loss processes except there were d_ion density instead of d_electron density
|
||||
! pe_eflux = (pe_kT*kev2erg)*pe_nflux ! [erg/cm^2/s]
|
||||
! if (pe_eflux > imP(RAI_EFLUX)) then ! Use in place of normal flux only if energy flux for these are greater than hot electron channel fluxes
|
||||
! imP(RAI_EFLUX) = pe_eflux
|
||||
! imP(RAI_ENFLX) = pe_nflux
|
||||
! imP(RAI_EDEN ) = d_ion*1.0e6 ! [#/m^3]
|
||||
! imP(RAI_EPRE ) = p_ion*pie_frac*1.0e-9 ! [Pa]
|
||||
! endif
|
||||
|
||||
endif !spcList(s)%spcType == X
|
||||
enddo
|
||||
! derive mean energy where nflux is non-trivial.
|
||||
if (imP(RAI_ENFLX) > TINY) imP(RAI_EAVG) = imP(RAI_EFLUX)/imP(RAI_ENFLX) * erg2kev ! Avg E [keV]
|
||||
|
||||
Reference in New Issue
Block a user