Research Article Volume 11 Issue 4
Laboratório de Ciências Radiologicas LCR-UERJ, Brasil
Correspondence: Carlos E. de Almeida Ph.D. FAAPM FIOMP FIUPESM, Laboratório de Ciências Radiologicas LCR-UERJ, 20550-900, Rio de Janeiro, Brasil
Received: June 13, 2024 | Published: July 1, 2024
Citation: Aguirre E, de Almeida CE. Monte Carlo simulations of x-ray energy spectra in kilovoltage radiotherapy using the PENELOPE code. Int J Radiol Radiat Ther. 2024;11(4):82-88. DOI: 10.15406/ijrrt.2024.11.00391
The Monte Carlo method was applied using the PENELOPE code to simulate the transport of particles in two different x-ray tubes. This method is considered the most important and accurate for simulations and calculations in different branches of science, including medical physics. The tubes were modeled according to the manufacturer’s specifications, and the simulations were divided into two stages due to the computational time. The scope of the work was to obtain in greater detail photon spectra of different qualities of beams in the orthovoltage range used in radiotherapy, since few works have, yet been developed for this energy range. A detailed analysis was carried out by comparing to the spectra results obtained using the SpekCalc software for the different qualities of radiation in the two stages. Mean energy values along with the first and second half-value layers (HVLs) of each energy were determined with the respective differences between them. Different discrepancies were found in most cases, and so it is vitally important to consider each situation independently. Finally, secondary electron energy spectra in the second stage of each quality were presented with their respective mean energies, an important parameter considered in the dose deposition of the different experimental geometries that use such qualities.
Keywords: radiotherapy, energy spectrum, monte carlo simulations
MC, monte carlo; BIPM, bureau international des poids et mesures; HVLs, half-value layers; LNHB, laboratorie national henri becquerel; IRD, instituto de radioproteção e dosimetria; LNE-LNHB, laboratoire national henri becquerel
Superficial and orthovoltage radiotherapy treatments have been available for many years.1,2 They use x-ray energies between 50 and 500 kV, making them an effective treatment for superficial tumors, such as skin cancers and keloids.
The study of x-ray spectra is of vital importance for radiation therapy, radiodiagnosis and mammography so that the dose delivered to the patient can be estimated, whether that be during the treatment of some disease or through the process of acquiring an image of a specific region of the body.3,4 Experimentally, different spectra are obtained, that requires data post-processing dependent on the instrument’s measurement; however, these methods are still inaccessible to some laboratories.5-7 In the last decades, spectra reported by different groups for different energy bands, following the post-processing of experimentally obtained data,8,9 have highlighted the degree of difficulty and considerable time of acquisition. Thus, alternative methods to obtain such spectra have also been reported in the literature, some with empirical and semi-empirical approximations, including mixed methods, which require a low computational cost for the calculation.10 The most accurate of these methods though is the Monte Carlo (MC) method.11-14
The MC method uses probability functions of the different processes of interaction between radiation and matter, and thus provides, through simulations of such processes, expected values of macroscopic quantities to reach an approximate solution of a problem.15 That is, this method makes use of statistics and computers to reproduce the behavior of real systems using mathematical models.16 Although it takes a lot of computation time, modern computers have reduced this time and made this solution feasible.
In contrast, the SpekCalc software is a commercial program widely used to obtain photon spectra in the range between 40 kVp and 300 kVp from specific x-ray tubes with tungsten target for different anode angulations and different combinations of additional filtrations obtained under known conditions as “good geometry”, that is, without scattering. It is based on mixing deterministic equations to calculate the Bremsstrahlung X-ray production together with electron distributions pre-calculated using the MC method.17
Due to the need to accurately determine different photon spectra in the energy range of orthovoltage radiotherapy, this work used the MC method for radiation transport to simulate electron beams in four qualities defined by the Bureau International des Poids et Mesures (BIPM). The spectra obtained were compared to those of the SpekCalc software. This work was divided into two stages of MC simulations. First, two x-ray tubes were modeled, registering the spectrum for each energy at the exit of both X-ray tubes. Then, different filtrations were simulated for each beam quality, obtaining the spectrum of photons one meter from the target. In this second stage, the first and second half-value layers (HVLs) were calculated using MC simulations and experimental data. Average energy values for each quality were calculated and compared with results from the Laboratorie National Henri Becquerel (LNHB). Finally, spectra of secondary electrons for each quality from the second stage, as well as their average energies were determined, both of which are considered the novelties of this study.
In the first part of this work, two x-ray tubes were modeled for simulation using the PENELOPE code.18 The simulations were divided into two stages: simulating each tube for different qualities and, simulating the experimental arrangement using different filtrations to obtain the photon spectra at one meter from the source. In the second part of this work, spectra were obtained for different qualities of radiation from one of the modeled tubes and the HVLs of these spectra were calculated.
Monte Carlo (MC) simulations
MC simulations were performed with the PENELOPE code (v. 2018) at the LCR-UERJ cluster. In both stages, different methods of variance reduction were used as well as parallel simulation. The order of magnitude of the number of particles in the primary beam was 109 and 1011 in the first and second stages, respectively. The x-ray tubes of models MXR160 and MXR450 from COMET X-ray19 were modeled in the Pengeom package following the manufacturer's specifications (Figure 1). The main difference between these tubes is the thickness of the beryllium window, and so MXR160 is represented in Figure 1, as viewed in gview3D and gview2D of the PENELOPE package.
Figure 1 Simulation of the X-ray tube, model MXR160: Beryllium exit window with thickness of 0.8 mm and lead shield. a) 3D view and, b) Y-axis point of view (2D).
Simulations stage 1: The tubes were modeled, and the electron beam was simulated reaching the tungsten. The photon spectra generated at the exit of the beryllium window were recorded. All the geometric details of the tube provided in the manufacturer's specifications were considered using the thick focal point of 5.5 mm in diameter. Every simulation has an air layer involving the region of interest, even the results from SpekCalc software. For each energy, 100 parallel simulations were performed,20 with 107 as the number of histories for each. Interaction forcing and splitting for radiative events were used as methods of variance reduction to optimize the simulation time. A script (executable from the penmain-sum file of the PENELOPE package) was used to condense the parallel simulation results and obtain spectra with reduced uncertainty. The values of the intrinsic transport parameters of the PENELOPE code used in all simulations, such as local absorption energy of particles, cutoff energy for inelastic collision and Bremsstrahlung interaction, were respectively: Eabs=1 keV; C1=C2=0.2; Wcc=10 keV and Wcr=1 keV (see Table 1 for more details). The energy discretization of all spectra was 0.5 keV resolution, thus obtaining several bins for each spectrum equal to twice the peak energy. The different qualities simulated in this work have a nominal energy of 100, 135, 180 and 250 kVp. For the two lowest energies, the MXR160 tube model was used and, for the two highest energies, the MXR450 was used.
Item name |
Description |
Code version/ release date |
PENELOPE code/ 2018 |
Source description |
Square source of 5.5 mm2 |
Cross sections |
A combination of analytical DCSs and numerical tables of total cross sections |
Transport parameters |
Eabs=1 keV; C1=C2=0.2; Wcc=10 keV and Wcr=1 keV |
VRT |
Interaction forcing and splitting for radiative events |
Scored quantities |
Photon and electron spectrum for each bin |
# Histories/ statistical uncertainties |
107 / <1% |
Table 1 Details of the Monte Carlo simulations performed in this work
Simulations stage 2: By using the spectra obtained from the simulations of stage 1 as inputs for the next stage, different filtrations were simulated as shown in Table 2. The values of aluminum and copper thicknesses, used as additional filters, implemented at the Brazilian National Ionizing Radiation Metrology Laboratory LNMRI21 were considered. Along with the additional filter, the beam is collimated by two lead collimators in such a way that at one meter from the source, the field is circular, with diameter equal to 10 cm, that is, the beam was considered as a broad beam.
Radiation quality |
Voltage (kV) |
Filtration (mm Al) |
Filtration (mm Cu) |
BIPM-100 |
100 |
4 |
- |
BIPM-135 |
135 |
4 |
0.2 |
BIPM-180 |
180 |
4 |
0.45 |
BIPM-250 |
250 |
3.5 |
1.45 |
Table 2 Qualities of X-rays implemented at the LNMRI and their main parameters
For each energy, between 50 and 100 parallel simulations were performed, with 5x108 primary particles. The same variance reduction methods were also used and added to the results in parallel with the same script as stage 1. The values of the intrinsic transport parameters did not change in relation to the previous stage. The main feature of the photon beam is that it was always modeled with the same size for the thick focal spot and the same angle of the exit window. In this way, the beam is divergent, projecting a 10 cm diameter of circumference, one meter away from the source after the set of filtrations and collimators, recording the final spectrum through an air detector located in that region (Figure 2).
Figure 2 Modeled array used in stage 2 of the simulations. Lead collimator at 30 cm from the source, radius of 1.5 cm and thickness of 5 mm, and another lead collimator at 50 cm from the source, radius of 2.5 cm and thickness of 4 mm, and air detector at 1 m. The photon beam is illustrative only.
Experimental measures
The calibrated ionization chamber model NE 2571 and the electrometer model Keithley 6517ª at the Instituto de Radioproteção e Dosimetria (IRD) were used to measure the charge readings to calculate the HVLs (Figure 3). The ionization chamber was placed one meter away from the source so that, the projection was a circular beam of 10 cm diameter. Two collimator and filters with 99.99% purity before the ionization chamber completed the arrangement.
For each filter thickness, five measurements were collected in the ionization chamber and temperature and pressure corrections were applied. Charge readings relative to the value without additional filter were plotted against the different copper thicknesses to calculate the HVLs. Results are shown in Tables 3 and 4.
Radiation quality |
58 keV (%) |
59.5 keV (%) |
67 keV (%) |
BIPM-100 |
36.92 |
37.32 |
27.89 |
BIPM-135 |
45.48 |
45.44 |
33.17 |
BIPM-180 |
47.38 |
48.47 |
37.02 |
BIPM-250 |
56.70 |
57.48 |
43.37 |
Table 3 Differences in main peak intensities between MC and SpekCalc in stage 2
Radiation quality |
58 keV (%) |
59.5 keV (%) |
67 keV (%) |
BIPM-100 |
3.10 |
3.20 |
-3.67 |
BIPM-135 |
13.35 |
12.22 |
3.83 |
BIPM-180 |
16.42 |
15.06 |
8.34 |
BIPM-250 |
25.99 |
20.01 |
15.13 |
Table 4 Differences in main peak intensities between MC and SpekCalc in stage 2
Determination of mean energy values, half-value layer (HVLs), associated uncertainties and statistical tests.
Formally, the kerma calculation is defined through an integral,22 however, it can be discretized into “n” segments or small bins and a good approximation of this value can be obtained,23 as determined by equation 1:
(1)
Where e are the kerma, photon energy, fluence, and mass energy-absorption coefficient in air corresponding to the ith bin of the spectrum, respectively. In this way, since the HVL is the thickness necessary to obtain half the intensity of the incident beam when passing through a specific material, and the intensity being proportional to kerma, this can be expressed as follows:
(2)
The previous expression was used as an equation, so five thickness values of the absorbent material close to the HVL reported by the BIPM were sampled,24 and a straight line was generated through linear regression with these points. From this, the thickness value that satisfied expression 2 could be estimated. The attenuation coefficients of air and copper were taken from the website of the National Institute of Standards and Technology (NIST).25 It’s worth mentioning that equation 2 is strictly applicable only for a narrow beam geometry but was used for our broad beam results as the only way to estimate the HVL.
The mean energy was calculated by multiplying the normalized frequency of x-ray times the corresponding energy value (Y-axis from spectra figures), using equation 3. Mean energy values were compared with those found by the Laboratoire National Henri Becquerel (LNE-LNHB).26
(3)
In the calculation of uncertainties, for the case of the simulated spectrum, equation 4 was used, and for the HVL calculation, the values of the standard deviations of 5 charge readings as uncertainty type A and those of type B related to the equipment were determined.27
(4)
The overall uncertainties calculated in this work are reported for a confidence level of 95% with a coverage factor of k = 2.
The t-student test was used to compare the spectra, which quantitatively analyzes whether there are statistically relevant differences between them (two-tailed test). This was performed in the GraphPad Prism software (v. 6). So, if the calculated t value is greater than the critical value (p= 0.05) the null hypothesis which states there is a difference between the samples is rejected for a confidence level of 95%.
All energy spectra obtained with the MC simulations present different peaks that refer to the characteristic x-rays of the different materials involved in both stages, as well as continuous values of energy product of the Bremsstrahlung interaction with the tungsten target, as found in previous studies.28 The standard deviation of each energy bin is less than 1% in all simulations. The different spectra are shown in Figures 4-7 and compared with the spectra obtained from the SpekCalc software with the same energy resolution. In stage 1, there were peaks at 8.5, 9.5 and 10 keV from the characteristic x-rays of tungsten L-shell transitions: 8.39, 9.67 and 9.96 keV, respectively. The K-shell transitions are the ones with the highest energy values at 58, 59.5 and 67 keV, corresponding to the theoretical values of 57.98, 59.31 and 67.24 keV. In the case of the SpekCalc spectra, only the peaks of the K-shell transitions are found, since one of the software's limitations is that the L-shell transitions are not modelled, being the lower spectrum limit as 10% of the tube voltage value. In this way, the simulations were divided into two groups, those that had a lower spectrum limit equal to SpekCalc (denoted with *), and those that had a lower spectrum limit with an uncertainty lower than 1%, that is, initial values of 6.0, 6.5, 7.0 and 7.5 keV corresponding to the energies of 100, 135, 180 and 250 kVp, respectively. Note that there is a systematic difference in peak intensities in the first stage, increasing as the tube voltage increases (Table 3). This difference has a great influence on normalization, since when considering low energies in the spectrum with energy intensity peaks like 60 keV, the total sum of intensities increases, thus reducing the relative intensity values, being more accentuated for the discrete energies (peaks) in the spectrum.
In the second stage, a quantitative evaluation was made between the results obtained through the MC simulations and the SpekCalc values. The spectra obtained in this stage are shown in Figures 8-11. Normality tests for the MC results were not performed prior to the statistical tests since the behavior of the data for many particles guarantees that the results are represented by a normal distribution.29 The paired t-student test was chosen, using the difference between the intensities of corresponding bin pairs. The p-values obtained from the test were in the range of 0.77 to 0.90, with no statistically significant differences between the spectra.
In addition to the particles interacting with the additional filtrations, there are interactions with the lead collimators, which is evidenced in the peaks at 73, 75 and 85 keV, corresponding to the emission lines of the K-shell with values of 72.80, 74.97 and 84.94 keV, although they have much smaller amplitudes compared to tungsten.
Differences in peaks decreased between MC simulations and SpekCalc results, shown in Table 4, but still with differences. There were also slight differences in the continuous part of the spectra, which is expected since in the MC simulations the beam is approximated as close to reality as possible, to give a broad beam (also known as wide beam), so that the contribution of scattered radiation is included in the measurement. Moreover, additional filters reduced the low energies, but peaks in the range of 8 to 10 keV were still found, although they are not perceptible in Figures 8-11.
The systematic difference still prevails in the amplitudes of the peaks of the second stage in relation to the SpekCalc data. This behavior is found in other studies with a similar energy range30 where the energy peaks for values above 100 kV simulated with MC are superior to those of SpekCalc. This difference would have an important contribution to the difference in HVL values compared to the software, since in the HVL calculation these intensities are proportional to kerma (equation 1). Equation 2 was used to calculate the HVLs from the MC simulation, SpekCalc values and the readings from experimental measurements, presented in Tables 5 and 6. The results given in Table 9 were obtained from equation 3.
Radiation quality |
Simulations (Broad beam) |
Simulations* (Broad beam) |
SpekCalc |
Experimental |
BIPM |
BIPM-100 |
0.1470 ± 0.0011 |
0.1615 ± 0.0014 |
0.1530 |
4.282 ± 0.103** |
0.149 |
BIPM-135 |
0.4330 ± 0.0031 |
0.4995 ± 0.0037 |
0.4875 |
0.491 ± 0.012 |
0.489 |
BIPM-180 |
0.8745 ± 0.0047 |
0.9565 ± 0.0054 |
0.9800 |
1.043 ± 0.025 |
0.977 |
BIPM-250 |
2.1880 ± 0.0171 |
2.3370 ± 0.0188 |
2.4045 |
2.483 ± 0.060 |
2.484 |
Table 5 Values of the first copper half-value layer (HVL) in mm, for each BIPM quality
*Lower spectrum limit equal to SpekCalc.
**mm Al
Radiation quality |
Simulations (Broad-beam) |
Simulations* (Broad-beam) |
SpekCalc (Narrow-beam) |
Experimental |
BIPM-100 |
0.4393 ± 0.0033 |
0.4670 ± 0.0027 |
0.4367 |
10.517 ± 0.252 ** |
BIPM-135 |
1.2280 ± 0.0082 |
1.3245 ± 0.0071 |
1.3078 |
1.310 ± 0.031 |
BIPM-180 |
2.4123 ± 0.0116 |
2.5343 ± 0.0104 |
2.6100 |
2.671 ± 0.064 |
BIPM-250 |
5.3380 ± 0.0393 |
5.5213 ± 0.0366 |
5.6810 |
5.898 ± 0.142 |
Table 6 Values of the second copper half-value layer (HVL) in mm, for each BIPM quality
*Lower spectrum limit equal to SpekCalc.
**mm Al
In summary, the differences in the peaks, the low energy region where there is still contribution of the peaks smaller than 10 keV as well as the difference in the scattering of the broad beam, in relation to the beam with good geometry modeled in SpekCalc, have a final impact on the calculation of the first and second HVL for each quality (Tables 5 and 6). Disregarding intensities lower than 10 keV, differences of less than 3% were obtained in relation to SpekCalc for the 3 highest energies in terms of the values of the first HVLs (Table 7). In the case of the second HVLs, the impact of this range below 10 keV had the same behavior as that of the first HVLs, since the equation for calculating this other parameter follows equation 2, changing only the factor two for four in the denominator on the left side.
Radiation quality |
SpekCalc (%)/* |
Experimental (%)/* |
BIPM (%)/* |
BIPM-100 |
-4.08 / 5.26 |
- |
-1.36 / -7.74 |
BIPM-135 |
-12.59 / 2.40 |
-13.39 / 1.70 |
-12.93 / -2.10 |
BIPM-180 |
-12.06 / -2.46 |
-19.26 / -9.04 |
-11.72 / 2.14 |
BIPM-250 |
-9.89 / -2.89 |
-13.48 / -6.24 |
-13.53 / 6.29 |
Table 7 Differences in the first HVL values in relation to the simulations/ simulations*
*Lower spectrum limit equal to SpekCalc.
Regarding the measurements used to calculate the HVLs of the second tube (with maximum peak kilovoltage of 250 kVp), there were relevant differences of less than 20% in relation to the simulations, with these being reduced to around 10% or less for the reduced spectrum (Table 8). However, there are studies where the HVL values were calculated by different laboratories26 and differences between 5 and 10% were reported, even with additional filters of similar values. There is still no consensus on the tolerance value of the HVL for qualities in this energy range.
Radiation quality |
SpekCalc (%) |
SpekCalc* (%) |
Experimental (%) |
Experimental* (%) |
BIPM-100 |
0.58 |
-6.48 |
- |
- |
BIPM-135 |
-6.49 |
1.26 |
-6.68 |
1.09 |
BIPM-180 |
-8.20 |
-2.99 |
-10.71 |
-5.38 |
BIPM-250 |
-6.43 |
-2.89 |
-10.50 |
-6.83 |
Table 8 Differences in the second HVL values in relation to the simulations
*Lower spectra limit equal to SpekCalc.
The differences between the mean energy values did not have the same order of discrepancy as those of the HVL, shown in Table 9, where differences of less than 2.5% were obtained. (Tables 10&11)
Radiation quality |
Simulations (Broad-beam) |
Simulations* (Broad-beam) |
Spekcalc (Narrow-beam) |
LNHB (keV) |
BIPM-100 |
51.67 ± 0.10 |
51.76 ± 0.10 |
50.91 |
50.97 |
BIPM-135 |
67.91 ± 0.18 |
68.07 ± 0.18 |
67.72 |
67.81 |
BIPM-180 |
83.30 ± 0.20 |
83.46 ± 0.20 |
84.12 |
85.33 |
BIPM-250 |
117.63 ± 0.46 |
117.94 ± 0.46 |
119.42 |
129.21 |
Table 9 Mean energy values for each quality (in keV)
*Lower spectra limit equal to SpekCalc.
Radiation quality |
SpekCalc (%) |
SpekCalc* (%) |
LNHB (%) |
LNHB* (%) |
BIPM-100 |
1.47 |
1.64 |
1.35 |
1.53 |
BIPM-135 |
0.28 |
0.51 |
0.15 |
0.38 |
BIPM-180 |
-0.98 |
-0.79 |
2.44 |
-2.24 |
BIPM-250 |
-1.52 |
-1.25 |
- |
- |
Table 10 Differences in mean energy values of the different qualities in relation to the simulations from Table IX
*Lower spectrum limit equal to SpekCalc.
Peak energy (kVp) |
Mean energy (keV) |
100 kVp |
13.55 ± 0.07 |
135 kVp |
27.46 ± 0.30 |
180 kVp |
29.07 ± 0.44 |
250 kVp |
36.65 ± 0.73 |
Table 11 Mean energy secondary electron values for each quality
As expected, those photons that interact along their path with the different materials involved for each one of those qualities, produce secondary electrons. These were recorded in the same detector as the primary particles, and their spectra are shown in Figures 12-15, and the corresponding mean energy values are given in Table 12. Thus, in the second stage, the number of simulated histories was required to be much higher compared to stage 1 to acquire a result with an uncertainty of less than 2% for each energy bin of the electron spectrum.
The beam qualities with maximum nominal energies of 100, 135, 180 and 250 kVp were studied in detail, with differences for two different simulation scenarios identified in relation to HVL values reported in the literature. However, the t-student statistical test applied between the spectra for each quality did not show statistically relevant differences, as the study reported by Ay et al.30 In the case of mean energies, similar values were found with other works, without a significant impact on HVL values for these energies.
The computational requirement involved in the present study was high complex to produce more accurate results with low uncertainty, especially in the second stage, which required variance reduction techniques and parallel simulations. Interesting to observe the difference between the SpekCalc data obtained for narrow beam geometry with the data generated by Monte Carlo for broad beam geometry.
The results of the energy spectra of the secondary electrons obtained in the second stage of the simulations is a new contribution to the area of medical physics, since the related studies neglect these particles, focusing exclusively on the primary particles and their interactions with the different materials of the simulations.
Since electrons are directly ionizing particles, they deliver their energy locally to the medium, and their characterization is of vital dosimetric importance. In fact, future works should consider the contribution of these particles to obtain more accurate results, especially those that support direct interactions with the media. This is the case for instance of the Fricke dosimetry since the chemical reaction are provoked by the electron and the mean energy of the electrons may become a parameter of normalization and not the mean energy of the photons.
We thank the technical staff of the Instituto de Radioproteção e Dosimetria – IRD for carrying out the measurements of the first and second HVL. This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior – Brasil (CAPES) – Finance Code 001.
None.
©2024 Aguirre, et al. This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, and build upon your work non-commercially.