test58 is the reference example for NIEL and nuclear stopping power calculations in Geant4. It is a Geant4-based application developed to investigate and evaluate radiation-induced displacement damage in materials through the calculation of non-ionizing energy loss (NIEL).
Two complementary approaches are implemented to calculate NIEL:
- Single Scattering approach: based on the explicit simulation of Coulomb scattering interactions between incident particles and target nuclei..
- Table-based approach: based on pre-calculated SR-NIEL data, integrated into Geant4 through newly developed classes for table management and NIEL scoring.
These approaches provide two distinct ways of evaluating displacement damage: the first describes the underlying microscopic interactions, while the second offers a more efficient evaluation based on reference NIEL data.
1. Single Scattering approach
The original test58 implementation calculates NIEL by simulating single Coulomb scattering interactions between incident particles and target nuclei.
It relies on two Geant4 physics models:
- G4IonCoulombScatteringModel for protons and ions.
- G4eSingleScatteringModel for electrons.
The energy transferred to target nuclei is evaluated on an event-by-event basis and compared with the selected displacement threshold energy. The scattering angles are generated according to the cross sections included in the model classes. The corresponding contribution to displacement damage is then accumulated.
Since the energy transferred to target nuclei is sampled event by event, it can require significant computational resources, and the resulting NIEL estimate is affected by statistical fluctuations associated with the Monte Carlo simulation. A sufficiently large number of primary particles and scattering interactions is therefore necessary to obtain stable and statistically significant results. In particular, the convergence of the calculated NIEL may require substantial statistics, since individual nuclear recoil events can contribute differently to the overall energy transfer, depending on the incident particle energy and the scattering kinematics (see the webpage about the accuracy of test58 for NIEL deposition using single scattering models in GEANT4 simulations).
More information is available on the "Single Scattering models for test58" webpage.
2. Table-based NIEL approach
The newly introduced approach calculates NIEL using pre-calculated data tables provided by the SR-NIEL database.
Instead of explicitly simulating individual nuclear scattering events for NIEL evaluation, the method interpolates the tabulated NIEL value as a function of the particle kinetic energy and material, and integrates its contribution along the particle track.
The implementation relies on two new classes:
- G4NIELProcess: a Geant4 process derived from G4VContinuousDiscreteProcess, responsible for identifying the particle, energy, material, and scoring volume, retrieving the appropriate NIEL table, and calculating the damage contribution at each simulation step.
- NIELManager: a centralized manager responsible for loading and validating tables, handling metadata, collecting NIEL contributions, and organizing the final results.
The NIEL contribution for each step is calculated as:
ΔENIEL = NIEL(E) · ρ · Δx
where NIEL(E), interpolated from the generated table, is expressed in MeV cm²/g, ρ is the material density, and Δx is the particle path length inside the scoring volume.
More information about the use of the classes and details of the results is available in the "How to generaste SR-NIEL tables in test58" webpage.



