scieee AI-readable full text Open interactive document viewer

New Capabilities of the FLUKA Multi-Purpose Code

Ahdida, C.,Ogállar Ruiz, Francisco

Abstract

We would like to deeply thank the CERN Knowledge Transfer and Legal Service teams for their essential and extended support. Our appreciation also goes to the FLUKA.CERN Collaboration Board members for their strong commitment.

Full text

New Capabilities of the FLUKA Multi-Purpose Code C. Ahdida 1 , D. Bozzato 1 , 2 , D. Calzolari 1 , F. Cerutti 1 *, N. Charitonidis 1 , A. Cimmino 3 , A. Coronetti 1 , 4 ,G.L.D’Alessandro 1 , A. Donadon Servelle 1 , 5 , L. S. Esposito 1 , R. Froeschl 1 , R. García Alía 1 , A. Gerbershagen 1 , S. Gilardoni 1 , D. Horváth 3 , G. Hugo 1 , A. Infantino 1 , V. Kouskoura 1 , A. Lechner 1 , B. Lefebvre 3 , G. Lerner 1 , M. Magistris 1 , A. Manousos 1 , 6 , G. Moryc 1 , F. Ogallar Ruiz 1 , 7 , F. Pozzi 1 , D. Prelipcean 1 , 8 , S. Roesler 1 , R. Rossi 1 , M. Sabaté Gilarte 1 , F. Salvat Pujol 1 , P. Schoofs 1 , V. Stránský 3 , C. Theis 1 , A. Tsinganis 9 , R. Versaci 3 , V. Vlachoudis 1 , A. Waets 1 and M. Widorski 1 1 European Organization for Nuclear Research (CERN), Geneva, Switzerland, 2 Karlsruhe Institute for Technology (KIT), Karlsruhe, Germany, 3 ELI Beamlines Centre, Institute of Physics, Czech Academy of Sciences, Dolní Břežany, Czech Republic, 4 Department of Physics, University of Jyväskylä, Jyväskylä, Finland, 5 Ecole Polytechnique Fédérale de Lausanne, Institute of Physics, Lausanne, Switzerland, 6 Department of Physics, Aristotle University of Thessaloniki, Thessaloniki, Greece, 7 Department of Atomic, Molecular and Nuclear Physics, University of Granada, Granada, Spain, 8 Department of Physics, Technical University of Munich (TUM), Munich, Germany, 9 European Commission, Joint Research Centre (JRC), Geel, Belgium FLUKA is a general purpose Monte Carlo code able to describe the transport and interaction of any particle and nucleus type in complex geometries over an energy range extending from thermal neutrons to ultrarelativistic hadron collisions. It has many different applications in accelerator design, detector studies, dosimetry, radiation protection, medical physics, and space research. In 2019, CERN and INFN, as FLUKA copyright holders, together decided to end their formal collaboration framework, allowing them henceforth to pursue different pathways aimed at meeting the evolving requirements of the FLUKA user community, and at ensuring the long term sustainability of the code. To this end, CERN set up the FLUKA.CERN Collaboration 1 . This paper illustrates the physics processes that have been newly released or are currently implemented in the code distributed by the FLUKA.CERN Collaboration 2 under new licensing conditions that are meant to further facilitate access to the code, as well as intercomparisons. The description of coherent effects experienced by high energy hadron beams in crystal devices, relevant to promising beam manipulation techniques, and the charged particle tracking in vacuum regions subject to an electric field, overcoming a former lack, have already been made available to the users. Other features, namely the different kinds of low energy deuteron interactions as well as the synchrotron radiation emission in the course of charged particle transport in vacuum regions subject to magnetic fields, are currently undergoing systematic testing and benchmarking prior to release. FLUKA is widely used to evaluate radiobiological effects, with the powerful support of the Flair graphical interface, whose new generation (Available at http://flair.cern) offers now additional capabilities, e.g., advanced 3D visualization with photorealistic rendering and support Edited by: Peter R. Hobson, Queen Mary University of London, United Kingdom Reviewed by: Fabrizio Ambrosino, University of Campania Luigi Vanvitelli, Italy Francesco Nozzoli, University of Trento, Italy *Correspondence: F. Cerutti [email protected] Specialty section: This article was submitted to Radiation Detectors and Imaging, a section of the journal Frontiers in Physics Received: 01 October 2021 Accepted: 08 November 2021 Published: 27 January 2022 Citation: Ahdida C, Bozzato D, Calzolari D, Cerutti F, Charitonidis N, Cimmino A, Coronetti A, D’Alessandro GL, Donadon Servelle A, Esposito LS, Froeschl R, García Alía R, Gerbershagen A, Gilardoni S, Horváth D, Hugo G, Infantino A, Kouskoura V, Lechner A, Lefebvre B, Lerner G, Magistris M, Manousos A, Moryc G, Ogallar Ruiz F, Pozzi F, Prelipcean D, Roesler S, Rossi R, Sabaté Gilarte M, Salvat Pujol F, Schoofs P, Stránský V, Theis C, Tsinganis A, Versaci R, Vlachoudis V, Waets A and Widorski M (2022) New Capabilities of the FLUKA Multi- Purpose Code. Front. Phys. 9:788253. doi: 10.3389/fphy.2021.788253 1 In this paper, depending on the context, references to FLUKA are to code developed jointly by INFN and CERN until 31 August 2019, or to further code developments performed after this date in the framework of the FLUKA.CERN Collaboration 2 At https://fluka.cern. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882531 ORIGINAL RESEARCH published: 27 January 2022 doi: 10.3389/fphy.2021.788253 for industry-standard volume visualization of medical phantoms. FLUKA has also been playing an extensive role in the characterization of radiation environments in which electronics operate. In parallel, it has been used to evaluate the response of electronics to a variety of conditions not included in radiation testing guidelines and standards for space and accelerators, and not accessible through conventional ground level testing. Instructive results have been obtained from Single Event Effects (SEE) simulations and benchmarks, when possible, for various radiation types and energies. The code has reached a high level of maturity, from which the FLUKA.CERN Collaboration is planning a substantial evolution of its present architecture. Moving towards a modern programming language allows to overcome fundamental constraints that limited development options. Our long term goal, in addition to improving and extending its physics performances with even more rigorous scientific oversight, is to modernize its structure to integrate independent contributions more easily and to formalize quality assurance through state-of-the-art software deployment techniques. This includes a continuous integration pipeline to automatically validate the codebase as well as automatic processing and analysis of a tailored physics-case test suite. With regard to the aforementioned objectives, several paths are currently envisaged, like finding synergies with Geant4, both at the core structure and interface level, this way offering the user the possibility to run with the same input different Monte Carlo codes and crosscheck the results. Keywords: FLUKA, Monte Carlo transport, beam-matter interaction, high energy physics, crystal channeling, medical physics, single event effects (SEE) 1 INTRODUCTION The FLUKA (FLUktuierende KAskade in German, i.e., fluctuating cascade) code was born at the European Organisation for Nuclear Research (CERN) from the work of J. Ranft, who in the mid nineteen-sixties developed several Monte Carlo programs for the determination of shielding thicknesses, estimation of induced radioactivity levels and prediction of dose absorption in critical components at high energy proton accelerators. As one of them, FLUKA was a purely analogue code simulating the particle cascade in a cylindrical block of a specified elemental material and calculating the spatial distribution of nuclear reaction (“star”) and energy deposition densities per incoming primary proton or charged pion. The user input was to be provided by means of formatted control and data cards, representing a lasting legacy. Building on that ground, the first generation of FLUKA versions spanned until the late seventies, relying again on the work of J. Ranft (then affiliated with the Karl Marx University of Leipzig) and his collaboration with J. Routti of Helsinki University of Technology (HUT). A second generation, addressing the reformulation of the hadron interaction model among other significant advances, can be identified across the eighties with the joint effort of CERN (G.R. Stevenson and A. Fassò), HUT (J. Sandberg and P. Aarnio) and the Leipzig University group (J. Ranft and H.-J. Moehring). The modern (third generation) FLUKA moved from a plan by A. Ferrari (initially INFN, then CERN) and A. Fassò to transform the code into a multi-purpose multi-particle tool and featured a substantial restructuring, improvement and extension, eventually increasing by one order of magnitude the Fortran source size, with the contribution of P. Sala (INFN). In 2000, dedicated support was provided by NASA to enable the treatment of heavy ion interactions, including the interface to external event generators. In 2003, a collaboration agreement between CERN and INFN was set up in order to develop, maintain and release FLUKA, integrating through the years the work of several other collaborators (see for instance [1] and references therein). In 2019, more than 15 years on, the formal collaborative framework between the two copyright holders was succeded by an arrangement aimed at ensuring FLUKA’s long-term sustainability and capability to meet the evolving requirements of its user community. This offered the opportunity to leverage lessons learned and current standards in the organization of software collaborations, while fostering the active involvement of both established FLUKA contributors as well as new partners. As a result, CERN recently put in place a multilateral collaboration framework, already joined by ELI Beamlines, and a new licensing scheme expanding the access to the source code and allowing for its customization as well as result intercomparison and physics model benchmarking. In parallel, a modern user support platform has been adopted 3 and a significantly higher distribution pace has materialized, with 3 https://fluka-forum.web.cern.ch/ Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882532 Ahdida et al. New Capabilities of FLUKA two major releases in 2020 and a third one planned to take place before the end of 2021. Selected physics developments that provide FLUKA with new capabilities are detailed in section 2. They are the description of coherent effects experienced by charged particles traversing crystals, the transport of charged particles in electric fields, the simulation of nuclear reactions by deuterons below 300 MeV, and the synchrotron radiation emission by charged particles in magnetic fields. Section 3 reports on advances of the FLUKA Advanced InteRface (Flair), whose restructuring in Python v3 integrated a new medical visualization module highly improving the volumetric rendering of voxelized phantoms and dose distributions. Section 4 focuses on another field of FLUKA applications, namely radiation to electronics, and, after reviewing relevant achievements of the last decade, includes new results regarding photon-induced Single Event Effects (SEE). Section 5 discusses the main quality assurance measures featuring the development, testing and benchmarking framework put in place for FLUKA v4 (that is currently distributed by the FLUKA.CERN Collaboration as fourth FLUKA generation) in order to properly validate the code evolution prior to release and indicate the improvement needs. Finally, section 6 introduces the long term perspective and the associated project stages towards a fifth FLUKA generation, the first of which already started in parallel with the steady investment on FLUKA v4. 2 NEW PHYSICS DEVELOPMENTS 2.1 Transport of Charged Particles in Electric Fields FLUKA has been able to track charged particles in magnetic fields since the late 1980s, thus allowing users from a relatively early stage on to model charged particle transport e.g. in complex particle accelerator components, such as dipole or quadrupole magnets and beam kickers. The availability of user routines provides full customization capabilities to tackle the transport of charged particles in arbitrary user-defined magnetic fields. Instead, the transport of charged particles in electric fields [2] was a longstanding pending ingredient in FLUKA’s transport algorithm. This lack prevented users from modelling electrostatic septa in particle accelerator extraction studies, for example. Users were forced to resort to a proxy magnetic field effectively providing the desired force (permissible whenever the change of the charged particle energy is negligible). To overcome this shortcoming, a dedicated module for charged particle transport in electric fields in vacuum has been recently included in FLUKA. The transport of charged particles in both magnetic and electric (static) fields relies on the same adaptive stepping algorithm to solve the resulting equation of motion, offering users an accurate control of both the particle step size and the tolerance with which boundaries to nearby regions can be intercepted by the (effectively curved) particle steps. FLUKA’s module for charged particle tracking in electric fields accounts for FIGURE 1 | Comparison between FLUKA (dots) and analytical (solid curves) electron (red) and positron (blue) trajectories starting at the origin of coordinates along the direction indicated by the respective arrows, in a 511 kV/cm electric field along the yaxis for energies ranging from 0.1 to 20 MeV as per the figure labels. FIGURE 2 | Energy loss distribution for 180 GeV protons on a 4 mmlong crystal in channeling regime (orange) and in amorphous regime (blue). Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882533 Ahdida et al. New Capabilities of FLUKA the variation (decrease or increase) of the particle’s kinetic energy, and it includes an algorithm which treats situations where the electrostatic force opposes the direction of motion, accurately resolving the trajectory turning point where relevant. Following the example proposed by A. Bielajew [3], Figure 1 displays the excellent agreement between the analytical (solid curves) and FLUKA (symbols) electron (red) and positron (blue) trajectories starting at the origin of coordinates along the direction indicated by the respective arrows in the yz plane, in an electric field of 511 kV/cm along the yaxis. 2.2 Coherent Effects in Crystals Coherent interactions of charged particles in bent crystals can be used for beam collimation or extraction purposes. Crystals have long been under study at CERN and in other research centers [4, 5] leading to very promising results for the Large Hadron Collider (LHC) collimation [6,7]. In this context, crystals are planned to be part of the collimation system for High Luminosity LHC Ion runs [8]. In parallel with this activity, a module able to reproduce the various coherent effects such as channeling, volume capture and volume reflection was added to FLUKA [9]. This module also accounts for the change in both interaction and energy loss rate in these regimes. In the following, relevant aspects of the model are introduced and the most recent developments are detailed. In a FLUKA geometry, a crystal is a region for which several characteristics such as torsion, temperature, radius of curvature and channel orientation are specified. These are set up independently and it is therefore the user’s responsibility to ensure that microscopic features of the device are consistent with its geometry. However, this decoupling offers an additional degree of freedom, for instance the possibility to introduce a deliberate mismatch between crystal edges and plane orientation to reproduce miscut 4 . As the crystal channel direction is defined, the incoming angle of each entering particle can be calculated. When the angle is small enough, the particle becomes trapped in between the transverse Molière potential barriers sitting at each atomic center. The particle enters the channeling regime and is transported along the channel. For a bent crystal, this implies tracking along an arc which is implemented through the use of a proxy magnetic field. In addition, the channeled particle oscillates transversally between the channeling planes with an amplitude depending on its transverse momentum. This oscillation is important for the computation of reduced interaction rate in channeling. Firstly, the electronic stopping power for channeled projectiles is reduced compared with the one of an amorphous medium. The FLUKA algorithm uses a prescription similar to that of Esbensen et al. [10], maintaining the contribution of distant FIGURE 3 | Left: Quasi-channeled particle trajectory through a crystal close to the tangency point as a function of the cumulative longitudinal coordinate. Oscillations are due to the Molière potential and volume reflection can be seen at the right-hand side of the chart. Right: Corresponding electric field along the particle trajectory. FIGURE 4 | Nuclear interaction rate as a function of the particle incoming angle, normalized to the interaction rate in amorphous mode. The dip corresponds to channeled particles, experiencing low interaction rate in the channel. The excess observed for small positive angles corresponds to the increased rate experienced by quasi-channeled particles when crossing multiple channels. Experimental data from [13]. 4 Miscut is a crystal manufacturing defect causing crystal edges to not be perfectly parallel to the channel planes. More information on miscut and its effects on channeling can be found in e.g., [11]. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882534 Ahdida et al. New Capabilities of FLUKA collisions to the stopping power unaltered and scaling that of close collisions 5 by the fraction of the channel electron density subtended by the oscillating trajectory of the particle. The reduction factor is typically of the order of 2, as shown in Figure 2 for the case of 180 GeV protons through a 4 mm-long Si crystal. Secondly, Coulomb scattering of channeled particles on the screened potential of target atoms is computed on a single event basis rather than in multiple scattering. Contributions from small impact parameter collisions are suppressed, with a cutoff corresponding to the minimum distance between the particle oscillatory path and the atomic centers. Thirdly, nuclear interactions are scaled to the average nuclear density along the particle oscillatory path. This leads to a substantial reduction of the nuclear interaction rate [11] for the channeled population at large. Coherent effects are not limited to channeling. Some particles can experience volume effects inside the crystal: a reflection on the crystal planes or a capture in their current channel after interaction. Both take place when the particle trajectory is almost tangent with the planes, which can only happen when their incoming angle has the same sign as the crystal bending. In order to reproduce these mechanisms, the equations of motion of the particle are solved in the potential of interest, inthiscaseanelectrostatic Molière potential to which a centrifugal term is added due to bending. The volume reflection naturally results from this tracking: on Figure 3 the trajectory of a quasi-channeled particle is displayed close to its tangency point with the planes, as a function of the longitudinal coordinate. After crossing several planes, the particle acquires a small angular deflection in the direction opposite to bending. While progressing through this region, quasi-channeled particles can undergo a disrupting scattering event, which can lead to the capture of the particle if its transverse momentum drops below the Molière potential energy. A captured particle becomes channeled from that point on until it is dechanneled or reaches the end of the crystal. Microscopic treatment of the coherent effects of quasichanneled particles is an important recent development of the model. The nuclear interaction rate is altered for quasichanneled particles, akin to what is implemented for channeled ones. However, quasi-channeled particles cross atomic planes and the resulting interaction rate is higher than in amorphous mode. This increase is apparent on Figure 4 displaying the nuclear interaction rate as a function of the incoming angle of the particle for a crystal bent towards positive angles. The main dip reflects the suppression of nuclear interactions for channeled particles. Next to it, the interaction rate comes back to amorphous regime values, with the excess on the right reflecting the increased interaction probability of quasi-channeled particles, in accordance with experimental data. The extent of the excess, however, remains slightly lower than the data shows and will be the focus of upcoming developments. 2.3 Low-Energy-Deuteron Nuclear Interactions Another longstanding shortcoming of FLUKA’s transport algorithm concerned the lack of a dedicated model for nuclear reactions of low energy deuterons (below 150 MeV/n). Up to version 4.1, FLUKA included a coarse tentative model to effectively split the deuteron into its constituent neutron and proton, each taking ∼50%of the kinetic energy of the deuteron. FLUKA was therefore not recommended for deuteron-beam applications. Recently, deuteron transport has gained increased attention, for applications as diverse as the production of radioisotopes for medical applications using deuteron beams [12,13], their radiobiological effects and associated radiation protection aspects [14], as well as for nuclear fusion studies [15]. Furthermore, deuteron production from hadron- and nucleusnucleus inelastic interactions is often far from negligible; an accurate description of their subsequent nuclear interactions is necessary. Consequently, a dedicated model for low energy deuteron nuclear reactions has been developed and will be included in FLUKA 4.2. The model consists of the following main components: deuteron stripping to the continuum is modelled on the basis of the Serber model [16] for the (uncorrelated) energy and angle distribution of the stripped nucleon, coupled to FLUKA’s hadron-nucleus interaction model PEANUT (Pre- Equilibrium Approach to NUclear Thermalization) [17]in order to properly describe the nuclear inelastic interaction of the remaining nucleon with the target nucleus; deuteron elastic break-up is described within the zero-range distorted wave Born approximation (DWBA) for nuclei with atomic number Z≥3[18]; deuteron stripping to discrete levels is also accounted for within the DWBA [19] for the (d,p) and (d,n) reaction channels on a selection of light isotopes for which this interaction mechanism is relevant, including 6,7 Li, 9 Be, and 12 C. More details and benchmarking of this model will be provided in an upcoming dedicated publication. Furthermore, a complete-fusion channel is included via the Boltzmann Master Equation (BME) event generator, already employed in FLUKA to describe nucleus-nucleus inelastic interactions up to 150 MeV/n [20]. Whereas the three model components described above imply at most one nucleon penetrating the nucleus, the complete-fusion channel effectively permits both nucleons to penetrate the target nucleus, thus providing a larger excitation energy and accounting for the experimentally observed emission of light nuclear fragments beyond a neutron or proton (d, t, 3 He, 4 He, etc.). As an example showcasing the performance of the new low-energy deuteron nuclear interaction model in FLUKA, Figure 5 displays the double-differential (energy and angle) cross section for the emission of protons from 58 Ni under 5 giving an otherwise equal contribution to the stopping power as per [12]. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882535 Ahdida et al. New Capabilities of FLUKA 99.6 MeV deuteron bombardment at various emission angles, resolved as a function of the proton energy, comparing in absolute units the FLUKA simulation results (solid curves) with available experimental data [21](insymbols).The simulated proton energy spectra exhibit a remarkably good agreement with the experimental data, reproducing their essential features: a peak at half the deuteron kinetic energy, particularly intense for forward emission angles and due to deuteron stripping to the continuum, as well as a peak at low proton energies from the evaporation stage of the conjugate neutron-nucleus inelastic interaction. Figure 5 shows that good agreement is preserved throughout the angular domain covered by the experimental data. 2.4 Synchrotron Radiation Emission During Charged Particle Tracking The emission of synchrotron radiation (SR) photons is possible in FLUKA by means of a special source term. This allows the user to define up to two arcs of a charged particle trajectory in a dipole field, along which SR photons are sampled as source particles for the simulation. The radiating charged particle itself is not explicitly tracked. Such a scheme is useful for applications where SR emission is dominated by beam particles, for example when modelling arcs of electron storage rings. This approach is however not suitable for cases where secondary and higher-generation particles lose a significant fraction of their energy through SR emission. This is for instance the case for high energy muon storage rings and colliders, where SR emission by decay electrons and positrons cannot be neglected when assessing the heat load distribution in magnets or the beaminduced background in detectors. To overcome this drawback, the FLUKA tracking algorithm for charged particles in a magnetic field in vacuum has been enhanced by including the emission of SR photons as a supplementary discrete process during tracking. SR photons are explicitly generated and the corresponding energy loss of the radiating charged particle is taken into account. The user can control the SR emission mechanism via dedicated production thresholds. The new feature is illustrated in Figure 6, showing the photon flux in a bending magnet of a 1.5 TeV muon storage ring. The two plots compare different FLUKA simulations with and without SR emission by decay electrons. In the latter case, without the new FIGURE 5 | Comparison in absolute units between FLUKA (solid curve) vs experimental (symbols) [21] double-differential (energy and angle) proton emission cross section from 58 Ni under bombardment with 99.6 MeV deuterons, resolved as a function of the proton energy E p for the various indicated emission angles in the lab frame. The curve for 6 deg emission is in absolute units; subsequent curves have been scaled down respectively by the indicated factors for clarity. FIGURE 6 | Photon flux distribution in the 10.2 T bending dipole of a 4.5 km ring accomodating a 1.5 TeV negative muon beam with a bunch intensity of 2 ×10 12 particles (transverse section). Bunches are injected with a 12 Hz frequency. Sychrotron radiation emitted by high energy electrons generated by muon decay is neglected on the left and accounted for on the right. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882536 Ahdida et al. New Capabilities of FLUKA emission model, the photon flux in the vacuum chamber, shielding and magnet is exclusively due to the impact of decay electrons on the machine aperture. The dipole field bends all decay electrons towards the center of the ring, which leads to a localized energy deposition hot spot on one side of the magnet. In the other case, SR photons are generated along the electron trajectories and can impact either on the inner or outer side of the vacuum chamber, resulting in a larger spread of the energy released in the decay of beam particles. At such or even higher energies, neglecting this phenomenon may lead to a non-faithful representation of the secondary particle distribution in the magnets, energy deposition and background to experiments. 3 FLAIR, THE FLUKA USER INTERFACE 3.1 Flair Version 3 Upgrade The FLUKA advanced graphical interface Flair 6 [22] made its first appearance in 2007. It is a fully integrated working environment that assists the user in all stages of a Monte Carlo simulation, from constructing the input and the geometry to running the simulation, processing the output files and plotting the results. Thanks to its advanced capabilities and intuitive use, it quickly became the most popular way of working with FLUKA. Flair is in constant evolution, continuously expanding its features. Up to version 2, Flair was based on Python v2, which the Python community decided to phase out in 2020 7 . Profiting from this opportunity, it was decided not only to migrate to v3, but also to restructure the code so as to facilitate its further cooperative development. The most notable improvement concerns the decoupling of the graphical interface from the underlying functionality, which was achieved by the introduction of an intermediate abstract layer allowing Flair to support other simulation packages besides FLUKA. While support for MCNP inputs [23] is partial, in the case of Geant4 it is in a quite advanced state, thanks to a dedicated Geant4 application called Moira (see Section 6). Particular attention has been paid to computational performance, to further optimize Flair both in terms of CPU- time and numerical precision. A considerable speedup (up to a factor 10) has been attained during the loading and displaying of large input files, thanks to the use of a tk:Text module replacing the previous use of a tk:Canvas 8 . Likewise, the performance and the numerical precision of the geometry editor has been greatly optimized. This has been achieved through the use of z-buffers for 3D rendering, the implementation of an adaptive anti-aliasing algorithm, and the storage of quadratic surfaces also in reduced form, in order to minimize numerical rounding errors introduced by geometric transformations, to name but a few. Among the new features of Flair v3, we highlight the graphical tool for planning radiation protection interventions: starting from a FLUKA Cartesian 3D dose map, the user can define a path which an operator will follow in space and time by means of a spline to obtain a report detailing the dose acquired along the path. In addition, short animated movies can be created displaying the 3D geometry (and the simulation results) by means of a camera object moving along a user-defined 3D spline. To reinforce the consistency of the input interpretation by FLUKA and Flair, the Flair input file now persistently embeds all the FLUKA input information, which can still be directly manipulated in the FLUKA input file. 3.2 Flair Developments for Medical Applications As high-throughput computational power is getting more accessible, the use of Monte Carlo-based treatment planning systems (TPS) becomes a viable option for clinical applications of radiation therapy. Codes like FLUKA have important advantages over classical treatment planning systems as they can take a wide range of physical effects (e.g., full secondary particle generation due to implants) accurately into account. Yet, the best physics results cannot be fully exploited if they are not put into an anatomic context which speaks to the medical practitioner. A dedicated effort has been invested in making Flair v3 a selfcontained working environment for the use of FLUKA in medical physics applications. Recent developments include an improved DICOM handling 9 , facilitating the generation of voxel geometries with built-in automatic conversion from Hounsfield units to material composition. For instance, boolean operations can now be applied on predefined regions of interest (ROI) to customize the material assignment in the simulation. Moreover, Flair now includes a DICOM editor to perform common tasks like anonymizing patient information and, in general, the editing of DICOM tags. The embedded RTViewer helps the user to compare the planned dose calculated by a treatment planning system with the dose simulated by FLUKA. An automatic dose-volume-histogram generator (DVH) is included. RTPLAN-modality DICOM files can be imported to generate the corresponding primary-source cards for FLUKA. Furthermore, RTDOSE-modality DICOM files can be converted to FLUKA’s standard 3D mesh scoring (USRBIN), which can not only be readily visualized in 2D and 3D in Flair, but also be used as a volumetric primary source for further simulations. The opposite conversion from USRBIN to RTDOSE is also implemented. While support for 3D visualization is becoming increasingly available in the domain of Monte Carlo transport codes, visual quality often trails behind current industry standards. In addition, common surface rendering techniques are not suitable for medical visualization due to the loss of contextual information in one dimension. This stems from the fact that there is no well-defined geometry but the input is a discrete cloud of density values obtained 6 https://flair.cern 7 See https://www.python.org/doc/sunset-python-2/ 8 https://www.tcl.tk 9 Details concerning the current version of the DICOM standard are available at https://www.dicomstandard.org/current. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882537 Ahdida et al. New Capabilities of FLUKA from CT or MRI scans. Consequently, there is no defined geometric surface that one can work with nor are the data continuous in space due to the discretization originating from the data acquisition. The most common way is to assign each point a proxy geometry, e.g. a small cube, and render these with standard techniques. However, this leads to the loss of crucial information as intricate 3D anatomic relationships are not presented anymore to the attending physician. To overcome this drawback, the completely new visualization module in Flair v3 now includes a number of volume rendering techniques for medical applications. These methods allow for proper reconstruction of a 3D function from the discrete dataset via raymarching based algorithms. Texture-based slicing methods would offer performance advantages due to the possibility of GPU implementation. Nonetheless, for large data sets one quickly reaches the limits of standard consumer hardware and, in addition, ray-casting methods seamlessly integrate with Flair’snew photorealistic, interactive ray tracer for standard geometries. Figures 7and 8illustrate the use of standard surface visualization methods versus Flair v3’s new medical visualization module using the same dataset. As can be seen, volumetric rendering retains 3D anatomic structures from the scans even on a very fine level and permits a superior evaluation of the dose distribution in a voxel geometry by the medical physicist or physician. Visualization of the geometry is immediate with progressive refinement based on so-called space FIGURE 7 | Classic surface-based visualization of a voxelized phantom and dose distribution from an exemplary photon beam irradiation. FIGURE 8 | Volumetric visualization of a voxelized phantom and dose distribution from a photon beam irradiation with the new renderer available in Flair v3. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882538 Ahdida et al. New Capabilities of FLUKA filling curves opening up real-time user feedback while profiting from optimized use of CPU cache lines. 4 RADIATION TO ELECTRONICS Radiation effects in electronic components and systems are a well-known threat for the reliable operation of electronics in space and can also be a risk for the successful operation of high energy accelerators [24]. In fact, during the LHC Run 1 (2010–2013), Radiation to Electronics (R2E) issues were one of the main causes of unavailability and downtime of the machine [25]. Monte Carlo transport codes constitute a powerful tool to predict and mitigate such effects, both with regards to the simulation of the radiation environment as well as to its effects on electronics. As will be shown, FLUKA is critical in the context of the R2E activities, where it is used for a variety of purposes and applications. 4.1 High Energy Accelerator Radiation Environment A key task carried out with FLUKA is the simulation of the radiation field in the CERN accelerator complex, as well as in experimental and test facilities. To this end, FLUKA is used to calculate 3D space distributions of the key radiation level quantities that are needed to assess radiation impact on electronic equipment, both in terms of lifetime degradation and stochastic SEEs. Lifetime effects are quantified with Total Ionising Dose (TID), i.e., the energy loss due to ionising radiation per unit mass, and the equivalent fluence of 1 MeV neutrons in Silicon, which is used to express Displacement Damage effects in material lattices. On the other hand, FLUKA provides the High Energy Hadronequivalent (HEH-eq) fluence, i.e., the fluence of all hadrons with E>20 MeV plus the neutrons in the 0.2–20 MeV range with energy-dependent Weibull weights, and the thermal neutron equivalent fluence, where neutrons are weighted proportionally to the inverse of their velocity. These quantities are directly linked to the SEE evaluation. Figure 9 shows a representative example of radiation environment characterization. It displays the HEH-eq fluence in a portion of LHC tunnel located between 216 and 260 m from Interaction Point (IP) 1, where beam collisions take place. In this case, FLUKA is employed to generate and transport products of inelastic proton-proton interactions from IP1, inducing radiation showers through machine elements, the LHC tunnel infrastructure and nearby underground areas. This way the space distribution of HEH-eq fluence can be obtained and 1D and 2D projections can be extracted for an area of interest (as shown in Figure 9), which in this case consists of the highlighted tunnel section and the nearby RR17 alcove hosting electronic equipment. The simulation is scaled to an integrated luminosity of 360 fb −1 , so as to represent annual radiation levels in the final years of LHC operation after the High-Luminosity LHC upgrade. These results, along with similar calculations in other LHC areas, serve as basis for the definition of radiation level specifications for electronics. They are essential to define qualification requirements in accordance with a standard Radiation Hardness Assurance procedure [26]. 4.2 Monte Carlo Simulation of Single Event Effects As introduced above, radiation effects can be classified as either cumulative or stochastic. Monte Carlo codes are particularly suited to the prediction and better understanding of the latter which are of random and single-event-like nature. This capability is especially relevant for high energy accelerator applications in which the related response to the passage of a broad range of particles and energies [27] needs to be derived from a relatively limited data set, typically consisting of experimental results from 200 MeV protons. In particular, codes like FLUKA can accurately simulate energy deposition distributions from single-particle events in sensitive volumes (SV) of microelectronic components. After the energy deposition step, additional dedicated simulations are performed to determine charge collection and related circuit response, which in turn are used to predict the SEE FIGURE 9 | Top view of the annual High Energy Hadron-equivalent fluence at beam height in a portion of the LHC Long Straight Section at Point 1, showing the main tunnel and the nearby RR17 alcove where electronic equipment is hosted. Frontiers in Physics | www.frontiersin.org January 2022 | Volume 9 | Article 7882539 Ahdida et al. New Capabilities of FLUKA