Modernization and Statistical Validation of a Multilayer TRIM.SP Code for Low-Energy Muon and Ion Implantation
Zaher Salman, Ryan M. L. McFadden, Thomas Prokscha
Abstract
We describe the staged modernization of a local multilayer TRIM.SP implementation, denoted TRIM.SP-NL. The work included behavior-preserving refactoring, correction of localized bookkeeping and initialization defects, support for more than five elements per layer, reproducible build modes, and a runtime-selectable random-number-generator (RNG) interface. The RANLUX RNG remains the default reference backend, while PCG32 and xoshiro256** provide faster alternatives without changing the input-deck format. The code validation combined exact regression testing with statistical comparisons over 13 representative target multilayer configurations, comprising 143 energy-configuration points per backend and 429 simulations in total. Across the test suite, PCG32 and xoshiro256** reduced runtime by factors of 1.98 and 2.01, respectively. The implanted, backscattered, and transmitted fractions, as well as the mean implantation depths, range straggling, and representative depth profiles showed no systematic RNG dependence. Together with a Node.js-based graphical interface for setup, scans, and result collection, the Fortran engine forms the open-source TRIM.SP-NL Workbench.
Create a lesson
Related papers
A particle-in-cell model of beam dynamics in a dielectric wall accelerator
Christopher M. Lund, Paul M. Jung, Jamiel Nasser et al.
Magnetizing nonlinear plasma wakefields for positron acceleration
Yung-Kun Liu, Pisin Chen, Ching-En Lin et al.
Wakefield-Dressed Relativistic Vortex Electrons in Plasma Accelerators
Zhigang Bu, Lingang Zhang, Liangliang Ji
Large Magnet Structures for Fusion Technology: Lessons from ITER
Neil Mitchell
Muon acceleration at J-PARC
Shusei Kamioka, Masato Kimura, Yuga Nakazawa
Machine Learning Based ROI Segmentation for Beam Imaging Diagnostics at Accelerators
Prachiti Sujit Chandratreya, Frank Mayet, Sergey Tomin et al.