Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions unstructured/kprad.f90
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,27 @@ subroutine KPRAD_ENERGY_LOSSES(N,Z,TE,NE,SION, &
call DPOLY_VAL(M1,N,C(:,L),LOG10(TE*1.0e-3),impradt)

IMP_RAD(:,L) = (10.0**impradt)*(NE/1.0E13)*NZ(:,L-1)
if(ikprad_min_option.eq.2 .or. ikprad_min_option.eq.3) then
where(ne.lt.kprad_nemin .or. te.lt.kprad_temin) IMP_RAD(:,L) = 0.
end if

PION(:,L)= SION(:,L-1)*NZ(:,L-1)*Z_EI(L)*1.6E-19
nZeff(:,1)=nZeff(:,1)+real(L)*NZ(:,L-1)/SNZ
nZeff(:,2)=nZeff(:,2)+real((L**2-L))*NZ(:,L-1)/NE

PRECK(:,L) = SREC(:,L)*NZ(:,L)*TE*1.6E-19
PRECP(:,L) = SREC(:,L)*NZ(:,L)*Z_EI(L)*1.6E-19

if(ikprad_min_option.eq.2 .or. ikprad_min_option.eq.3) then
where(ne.lt.kprad_nemin .or. te.lt.kprad_temin)
IMP_RAD(:,L) = 0.
PION(:,L) = 0.
PRECK(:,L) = 0.
endwhere
end if
if (ikprad_min_option.eq.3) then
where(ne.lt.kprad_nemin .or. te.lt.kprad_temin)
PRECP(:,L) = 0.
end where
end if

end do

PION(:,Z+1) = sum(PION(:,1:Z),2)
Expand Down