Allen CDNE

Computational Design in Nuclear Engineering · Allen

Download the PDF

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E.

Download the PDF

Chapter 2 · Introduction to Computation

Video Tutorials and Problems

On this page

Chapter 2 · 5 / 52 min readPDF page 67

These are the end-of-chapter problems from the book, reproduced as written. Work them with the programs this chapter uses. Try it yourself at the bottom of the page loads every input listing from the chapter into an editor.

Video Tutorials

The following video tutorials are available to assist your understanding of the material from this chapter.

  • Number Density in Julia and C++
  • Using Julia to Read in a Data File

Problems

  1. Use Julia in a Jupyter Notebook to calculate the velocity of a 2 MeV α\alpha particle, a 2 MeV neutron, and a 2 MeV β\beta particle.

  2. Total mean free path (λtotal\lambda_{total}) of a neutron is the inverse of its macroscopic cross section (λtotal\lambda_{total} =1Σtotal\frac{1}{\Sigma_{total}} ) and has units of cm. Draw a logical flowchart for an algorithm that calculates the mean free path for 0.0253 eV neutrons traveling in room temperature through H2_2O, D2_2O, and graphite. Assume nominal density for each material.

  3. Write a program in Julia that performs the algorithm designed in problem 2.

  4. Basic shielding of neutrons through materials is given by the exponential equation N=N0e−λtN=N_0 e^{-\lambda t} where NN represents the number of neutrons, λ\lambda is the mean free path of neutrons in the material and t is the thickness of the material. Draw a logical flowchart for an algorithm that calculates the thickness required to reduce the initial number of neutrons by one-half for 0.0253 eV neutrons traveling in room temperature through H2_2O, D2_2O, and graphite. Assume nominal density for each material.

  5. Write a program in Julia that performs the algorithm designed in problem 4.

  6. Using the half-thicknesses calculated in problem 5, calculate the total thickness of H2_2O, D2_2O, and graphite, in cm, required to shield 0.0253 eV neutrons to 1% of their initial number.

  7. Write a batch file that renames files with a .txt file extension to a file with no file extension. For example rename the file input.txt to just input.

  8. Rewrite the Julia program for plotting the Klein-Nishina differential cross section presented in Example 2.2 using a while loop in place of a for loop.

  9. Radioisotopes ingested in the body are subject to both radioactive decay and natural removal from the body. The natural remove process has its own half-life known as the biological half-life. The effective half-life accounts for both the radiological decay process and the biological half-life and is given by the equation 1t1/2e=1t1/2+1t1/2b\frac{1}{t_{1/2e}} =\frac{1}{t_{1/2}} +\frac{1}{t_{1/2b}} . Write a program that calculates the effective half-life for a radioisotope given the radiological and biological half-lives.

  10. Radioactive iodine, 131^{131}I has a radioactive half-life of around 8.0 days and a biological half-life of 5.5 days in the thyroid. Using the formula in Problem 9 for effective half-life, write a program that plots the decay rate for 1 gram of 131^{131}I using the radiological, biological and effective half-lives for a period of 30 days and compare the results.

Try it yourself

Every input listing in Chapter 2 (8, in Julia, Batch file) is loaded below. Pick the one a problem builds on, edit it, and take it to your machine to run.

Try it yourself — Julia, Example 2.2, listing 5
Edit here, then run it in a Julia REPL or notebook. Nothing is checked in the browser.

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E. — the complete book as a 394-page PDF.

Download the PDF