Work

Development of a python interface for a framework of cross-reference solar-terrestrial physics simulation

Year: 2026
Type: article
Abstract: Cross-reference simulation is a calculation model combining multiple simulation codes when some simulation codes need the data in other simulation codes to do their own calculation. 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, the development of a Python interface is performed. 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 are performed. As a result of the evaluation, using the library implementation has a close performance to C, while the direct implementation needs 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 visualize magnetohydrodynamics simulation results in real-time. Based on the application, the framework has shown the potential to enable direct integration with other Python tools, such as machine learning or artificial intelligence models.
Language: English
Open Access status: gold
Estimated APC paid: $1,640
OpenAlex ID: W7213757216
FWCI:
Cites: 8
Cited by:
Related to: