We use cookies to enhance your experience on our website. By continuing to use our website, you are agreeing to our use of cookies. You can change your cookie settings at any time. Find out more
Oxford University Press
  OUP Worldwide
Search:
Advanced Search
Printer-Friendly View

Companion Website

Boudreau and Swanson: Applied Computational Physics

Chapter 15: Simulation

example code (.tgz)

  • BRANCH: randomly generates Higgs boson decays according to calculated branching ratios. See Table 15.1.
  • PHOTONSONALUMINUM: reads a data file in data/Aluminum.dat obtained from NIST and interpolates the differential cross section data for photon interactions with aluminum as a function of photon energy.
  • PAIRPRODUCTION: reads the file in data/Aluminum.dat obtained from NIST and interpolates the pair production cross sections for photons on aluminum.
  • COMPTONXS: plots the total and differential cross sections for photon scattering from free electrons. There are two flags that can be given on the command line: The "-p" flag generates scattering from polarized photons (default is unpolarized). The "-fast" flag plots the Klein-Nishina analytic formula (default is to compute the cross sections from Feynman diagrams).
  • BETHEBLOCH: computes and plots the Bethe-Bloch formula for ionization energy loss in materials. The density effect is ignored in the calculation. A class representing the Bethe-Bloch function is a separate compilation unit in this directory.

About this book
Price, bibliographic details, and more information on the book