COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetMFP.f
Go to the documentation of this file.
1  subroutine cgetmfp(sigma, rhoNabyA, mfp)
2  implicit none
3  real*8 sigma ! input sum r_i sigma_i. r_i is the normalzied relatvie numer
4  ! of target elments. sigma_i the cross-section of i-th element
5  ! ( cm^2)
6  real*8 rhoNabyA !input. rho*Na/<A>. in /cm^3.
7  ! <A>= sum of r_i A_i
8  real*8 mfp ! output. mean free path of collision. in cm.
9 
10  if(sigma .gt. 0.0d0) then
11  mfp = 1.d0/(rhonabya*sigma)
12  else
13  mfp = 1.d35
14  endif
15  end
16 
17  subroutine cgetsigmai(A, Elab, code, sigmai)
18  end
19 
20 
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine cgetmfp(sigma, rhoNabyA, mfp)
Definition: cgetMFP.f:2
subroutine cgetsigmai(A, Elab, code, sigmai)
Definition: cgetMFP.f:18