Author: Shen, G.
Paper Title Page
THPAK049 Simulation Code Design for the Interpreted Language Using the Compiled Module 3327
 
  • K. Fukushima, M.A. Davidsaver, Z.Q. He, M. Ikegami, G. Shen, T. Yoshimoto, T. Zhang
    FRIB, East Lansing, USA
  • J. Qiang
    LBNL, Berkeley, California, USA
 
  Funding: Work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DESC0000661.
We are planning to use two types of the accelerator simulation codes for FRIB (Facility for Rare Isotope Beams). One is the linear envelope tracking code "FLAME" for fast simulations. FLAME can calculate the FRIB-linac beam envelope within an order of ms. This is useful in systematic surveys, wide range optimizations and so forth. This code, written in C++, was designed with Python interface from the beginning. On the other hand, "Advanced-IMPACT" is the particle tracking code dedicated for precise and realistic calculations, which can simulate the particle losses, nonlinear and space-charge effects. This code is refactored from the Fortran code IMPACT-Z developed in LBNL. Both codes provide the compiled modules for Python to support flexible inputs and direct outputs management in memory. In other words, they can be directly connected to the modern scientific tools through the Python interface without delay in the data transport. In addition, these modules can accomplish the interactive simulation processes without losing computational efficiency. We report the knowledges applicable for other accelerator simulation codes among those obtained through these developments and designs.
 
DOI • reference for this paper ※ https://doi.org/10.18429/JACoW-IPAC2018-THPAK049  
Export • reference for this paper using ※ BibTeX, ※ LaTeX, ※ Text/Word, ※ RIS, ※ EndNote (xml)