A Python interface using the CoToCoA framework enables efficient data transfer from both C- and Fortran-based STP simulation programs to Python for advanced data analysis and processing and was applied to low-latency online visualization of magnetohydrodynamics simulation results.
Abstract
Cross-reference simulation combines multiple simulation codes when one code requires data produced by another. To provide an efficient and convenient solution for cross-reference Solar-Terrestrial Physics (STP) simulation, a framework called Code-To-Code Adapter (CoToCoA) Library has been developed. CoToCoA was designed to implement cross-reference simulation with minimal modifications to the simulation codes while maintaining low overhead and currently supports only C and Fortran. To further enhance its usability by integrating CoToCoA with Python, we developed a Python interface. Two development approaches were conducted: (1) direct development of CoToCoA in Python and (2) the use of a library to call C functions of CoToCoA from Python. To evaluate the performance of the Python interfaces, experiments of data transfer methods in CoToCoA were performed. As a result of the evaluation, the library-based implementation showed performance comparable to the native C implementation, while the direct implementation required more additional time. The results show that the Python interface using the library enables efficient data transfer from both C- and Fortran-based STP simulation programs to Python for advanced data analysis and processing. Furthermore, the developed Python interface was applied to low-latency online visualization of magnetohydrodynamics simulation results. The framework has the potential of extension to integration with other Python tools, such as machine-learning or artificial intelligence models.
Monte Carlo simulations are an essential tool for data modeling and experimental design in low-background physics. These simulations typically demand a considerable effort, with each collaboration developing and maintaining its own complex Geant4 application. In this paper we present the design and validation of remage...
T. Dixon, Eric W. Esch, R. Henning et al.· 0 citations
This proceeding highlights some of the design choices used during the refactoring as well as its effects on maintenance and new feature development one year after release of the refactored code base.
Christian Kirsch, M. Lorenz, L. Dauner et al.· 0 citations
Astrometric calculations require authoritative algorithms so that every result is correct and reproducible. The Standards of Fundamental Astronomy (SOFA) service of the International Astronomical Union (IAU) provides such algorithms, officially released only in Fortran 77 and ANSI C. In an earlier paper we presented th...
Dong-Jie Tan, Jiang-Hui Ji, Jia-Cheng Liu· 0 citations
The Analysis Grand Challenge (AGC) showcases an example of HEP analysis. Its reference implementation uses modern Python packages to realize the main steps, from data access to statistical model building and fitting. The packages used for data handling and processing (coffea, uproot, awkward-array) have recently underg...
P. Fackeldey, Massimiliano Galli, Hannah Havel et al.· 0 citations
The rapidsim is a Python package for the RAPID (Representative Approach for Particle-Integrated Disks) numerical simulation code, which is a modular one-dimensional hydrodynamic simulation code for modelling the evolution of protoplanetary discs and embedded dust particles written in C language. The package was develop...
Open Data Analysis Tool for Science and Engineering (ODAT-SE) is an open-source Python framework for inverse problems that are solved by repeated forward simulations. It succeeds 2DMAT, which was developed for surface-structure analysis with quantum-beam diffraction and has since been applied to other fields. In versio...
Tatsumi Aoyama, K. Yoshimi, Yuichi Motoyama et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.