COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetMFP.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cgetmfp (sigma, rhoNabyA, mfp)
 
subroutine cgetsigmai (A, Elab, code, sigmai)
 

Function/Subroutine Documentation

◆ cgetmfp()

subroutine cgetmfp ( real*8  sigma,
real*8  rhoNabyA,
real*8  mfp 
)

Definition at line 2 of file cgetMFP.f.

References d0.

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
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5

◆ cgetsigmai()

subroutine cgetsigmai (   A,
  Elab,
  code,
  sigmai 
)

Definition at line 18 of file cgetMFP.f.