NUCLEAR DEEXCITATION GAMMA RAY LINE CODE
The code is written in fortran77. It needs an input file named g.inp. Download the code and compile it. Two sample input files are supplied, gthick.inp and gthin.inp. Copy one of these to g.inp and run.
The input file items are:
The output
is in g.spc. The 3 columns are photon energy in MeV, bin width in MeV, and photon production spectrum at the source. The photon energy is given at bin center. The code eint.for will integrate the spectrum over any given photon energy range. For the thick target the spectrum is in photons MeV-1 and it represents the total gamma ray production for 1 proton greater than 30 MeV. For the thin target the spectrum is in photons MeV-1 cm3 sec-1 and it represents the instantaneous production in an ambient medium of unit H density by accelerated particles normalized to 1 proton greater than 30 MeV. The postscript file figure shows the spectrum calculated with gthick.inp with 5x106 photons.Credit
for use of this code should be given to R. Ramaty, R.J. Murphy and B. Kozlovsky, mentioning the WEB page from where the downloading was done. The code is based on the paper by R. Ramaty, B. Kozlovsky and R. E. Lingenfelter, 1979, ApJ (Suppl.), 40, 487 with substantial updates (Kozlovsky, Murphy and Ramaty, 2001, in preparation).