COSMOS v7.655
COSMOSv7655
(AirShowerMC)
Functions/Subroutines
kexpot.f File Reference
Go to the source code of this file.
Functions/Subroutines
subroutine
kexpot
(za, aa, rela,
n
, zi, ai, ep)
Function/Subroutine Documentation
◆
kexpot()
subroutine kexpot
(
real
*8, dimension(
n
)
za
,
real
*8, dimension(
n
)
aa
,
real
*8, dimension(
n
)
rela
,
integer
n
,
real
*8
zi
,
real
*8
ai
,
real
*8
ep
)
Definition at line
21
of file
kexpot.f
.
21
implicit none
22
integer
n
23
real*8
za(
n
)
! input. za(i) is the charge of the i-th atom
24
real*8
aa(
n
)
! input. aa(i) the mass # of i-th atom
25
real*8
rela(
n
)
! input. rela(i) the relative number of i-th atom
26
real*8
zi
! output. weighted sum of za
27
real*8
ai
! output. weighted sum of aa
28
real*8
ep
! output. Excitention potential in eV
29
30
!
31
integer
i
32
real*8
sumli, expi
33
34
ai = 0.
35
zi = 0.
36
do
i
= 1,
n
37
ai = ai + aa(
i
)*rela(
i
)
38
zi = zi + za(
i
)*rela(
i
)
39
enddo
40
!
41
sumli=0.
42
do
i
=1,
n
43
if
(za(
i
) .eq. 1)
then
44
expi=18.7
45
elseif
(za(
i
) .lt. 13.)
then
46
expi=13.*za(
i
)
47
else
48
expi=za(
i
) *( 9.76 + 58.8*za(
i
)**(-1.19))
49
endif
50
sumli=sumli + za(
i
)*rela(
i
)/zi * log(expi)
51
enddo
52
ep=exp(sumli)
i
nodes i
Definition:
cstdatmos0.fNew2.h:93
n
integer n
Definition:
Zcinippxc.h:1
KKlib
kexpot.f
Generated by
1.8.13