Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 47

Particle Termination Events

Recommended resources

Introduction

In our journey so far, we have assembled the core mechanics of a particle's life in a Monte Carlo simulation. We can determine its birth point, sample the distance it travels to its first interaction, identify the type of interaction, and, as of our last lesson, sample its new energy and direction after a Compton scatter. However, a particle's history is not infinite. To complete the simulation of a single particle's life, we must define the conditions under which its journey ends.

This lesson focuses on handling these particle termination events. We will explore the three primary ways a particle's history is concluded in a transport simulation: escaping the problem's physical boundaries, being absorbed by the medium, or having its energy fall below a computationally determined threshold. Understanding these "stopping rules" is essential for building a complete and efficient Monte Carlo code.


The Simulation Loop and Termination Logic

A Monte Carlo particle transport simulation can be thought of as a while loop that continues as long as the particle is "alive." Inside this loop, the particle is moved, and its state is updated. The termination events are the conditions that break this loop.

The following flowchart provides a high-level overview of a single photon's life cycle. Notice how after each step—moving the particle or determining an interaction—there is a decision point that can lead to the "Stop simulation" outcome.

A flowchart illustrating the logic for a single particle history in a Monte Carlo simulation. The process loops through position updates and interaction checks until a termination condition (exit, absorption, or scattering that leads to another check) is met.

Our goal in this lesson is to unpack the logic inside these decision boxes: "Did the photon exit?" and "Has the Photon been absorbed?", while also adding a third, implicit condition related to energy.


1. Geometric Escape

The most straightforward termination event is when a particle simply leaves the volume of space we are simulating.

The logic for handling this is tied to the transport step:

  1. A particle is at position and is set to travel in direction .
  2. We sample a distance to the next collision, , using the formula , which you've seen before.
  3. We calculate the potential position of the next interaction: .
  4. We then check if is still inside the defined simulation geometry.

If is outside the geometry, the particle has escaped. Its history is terminated, and it is considered "lost." The simulation then moves on to the next source particle.

In more complex codes dealing with multiple regions, this step is more sophisticated. Instead of just checking the final point, the code calculates the distance to the nearest geometric boundary along the particle's path. If this distance is less than the sampled distance to collision, the particle is moved to the boundary, its region index is updated, and the process continues. If the boundary is with a vacuum, the particle escapes.

The following resource gives a concise overview of the general Monte Carlo algorithm, explicitly noting geometric escape as a termination condition.

[PDF] Introduction to Monte-Carlo Methods - CERN Indico

These presentation slides from CERN provide a clear, high-level summary of the Monte Carlo simulation algorithm.

First, look at slide 14, titled "Simplified Monte Carlo simulation algorithm." Step 9 explicitly lists the two main termination conditions: energy dropping below a threshold or the particle exiting the geometry. Then, on slide 45, under the heading "Thresholds," the first bullet point reiterates that particles are tracked until they leave the geometry or their energy drops below a threshold.


2. Termination by Absorption

Unlike geometric escape, which occurs between interactions, absorption is a type of interaction itself. In photon transport, the primary absorption mechanism is the photoelectric effect. When a particle undergoes an absorption event, it vanishes, and its energy is fully deposited at the interaction site.

In our previous lesson on sampling the interaction type, we used a "roulette wheel" approach based on the relative probabilities of different interactions. Termination by absorption is a direct application of this:

  1. At a collision site, determine the total macroscopic cross section and the macroscopic cross section for absorption .
  2. Generate a random number .
  3. If , the interaction is absorption. The particle history is terminated.
  4. If not, the interaction is scattering (e.g., Compton), and we proceed to sample the post-scattering energy and angle as we did in the last lesson.

The following video provides a practical demonstration of implementing this logic in code.

Computational Physics Video 31 - Writing a Monte Carlo Radiation Transport Code

This video, "Writing a Monte Carlo Radiation Transport Code," walks through building a simple simulation in MATLAB. The logic for deciding between absorption and scattering is universal.

First, watch the segment from macroscopic cross-sections to understand how the absorption (\Sigma_a), scattering (\Sigma_s), and total (\Sigma_t) cross sections are defined and related. Next, focus on the core logic from at the end of that distance. The key line of code is if a random number is less than Sigma a / Sigma t. This is the direct implementation of the absorption check. If the condition is true, a flag is set, and the particle's while loop terminates.

When an absorption event occurs, the simulation effectively stops tracking that particle and considers its energy deposited at that location. This energy deposition is a crucial piece of information for "scoring" physical quantities like kerma and dose, which we will cover in a future module.


3. Termination by Energy Cutoff

A particle, particularly a photon, can undergo a vast number of Compton scattering events, losing a small fraction of its energy each time. At very low energies, the particle may continue to travel and scatter for a long time while having a negligible impact on the final result (e.g., dose deposition far away), yet consuming significant computation time.

To maintain efficiency, Monte Carlo codes employ a transport energy cutoff, often denoted ECUT for electrons or PCUT for photons. This is not a physical process but a variance reduction technique.

The logic is simple:

  • After a scattering event reduces a particle's energy from to , the code checks if .
  • If it is, the particle's history is terminated.

A crucial question arises: what happens to the particle's remaining energy, ?

  • Analog approach: The particle is simply killed, and its energy is discarded. This is simple but not energy-conserving.
  • Implicit Capture: A more sophisticated and common approach is to deposit the particle's remaining energy, , at the location of the final interaction before terminating its history. The particle is "captured" and its energy is added to the local energy deposition tally. This conserves energy and is generally more accurate.

The choice of cutoff energy is a trade-off. As noted in the CERN slides, the cutoff should be chosen such that the particle's remaining range in the medium is smaller than the desired spatial resolution of your calculation.

Your background in medical physics makes you familiar with codes like EGSnrc and MCNP. The foundational papers for these codes discuss these termination procedures in great detail. The following resource is from one of the pioneers in the field and provides deeper context.

[PDF] Monte Carlo Techniques of Electron and Photon Transport for ...

This review by Rogers and Bielajew is a foundational text in the field, detailing the physics and algorithms behind the EGS and ETRAN codes.

First, read the paragraph in Section II.A.3 starting "Photon histories are terminated". This confirms the three termination reasons we've discussed: absorption, energy cutoff, and geometric escape. Next, look at Table 1 on page 437. This table formally defines the energy cutoffs (ECUT, PCUT) and distinguishes them from production thresholds (AE, AP) used in class II algorithms. This formalism is central to production-level codes. Finally, read the paragraph at the end of the document on page 488, which starts "In the ETRAN-based codes". This passage highlights a subtle but important difference in how ETRAN and EGS handle the final energy deposition when a particle's history is terminated by the energy cutoff, which has implications for the choice of cutoff value.

This last point illustrates that even a seemingly simple concept like an energy cutoff has nuances in its implementation that can affect simulation accuracy and efficiency. For our purposes, we will assume an implicit capture model: when a particle's energy drops below , its remaining energy is deposited at the last interaction site, and its history ends.


Conclusion

We have now defined the three essential conditions that end a particle's random walk: physical absorption, escape from the problem geometry, and falling below a user-defined energy cutoff. These checks are integrated directly into the main simulation loop, providing the "stop" conditions for each particle's history.

Key Takeaways:

  • A particle's history terminates if it escapes the geometry, is absorbed, or its energy falls below a cutoff.
  • Geometric Escape is checked after sampling the step length, by determining if the new position lies outside the simulation boundaries.
  • Absorption is handled at the interaction site. It is chosen probabilistically based on the ratio of the absorption cross section to the total cross section ().
  • Energy Cutoff is a computational choice for efficiency. It is checked after a scattering event. To conserve energy, the particle's remaining energy is typically deposited at the termination point (implicit capture).

Preview of the Next Lesson:
We have now covered all the individual logical components needed to simulate a full particle history. In the next lesson, "Implement particle tracking through a slab geometry with material boundaries," we will begin to assemble these pieces into a working Python implementation. We will focus on the practical details of tracking a particle's state (position, direction, energy) as it moves through a simple one-dimensional slab, including how to handle crossing from one material to another.