CoSimPy is a Python library designed to offer an interface between multi-port full-wave electromagnetic simulations and external circuitry analyses.


Umberto Zanovello1, Lukas Winter2, Luca Zilberti1, Frank Seifert2, Oriano Bottauscio1, Bernd Ittermann2

Estimated cost



Stable release (v. 1.3.2)
License: MIT License

CoSimPy is an open source Python library optimised for Magnetic Resonance Imaging radiofrequency coil design. In particular, the library aims to combine results from electromagnetic (EM) simulations with circuitry analysis offering a co-simulation environment.

In addition to the core methods aimed to perform the EM/Circuit cosimulations, many others are implemented both to simplify the standard workflow (e.g. input/output data management according to some standard and commonly adopted file formats) and evaluate the RF coils performance (e.g. Tx/Rx sensitivities computation, power balance analysis etc.).

CoSimPy has been developed with Python 3.7 and successfully tested down to Python 3.5 up to Python 3.10 on Linux, Windows and macOS.
The library can be easily installed from the Python Package Index (PyPI) repository through the “pip” package installer with the following command: pip install cosimpy.



1Istituto Nazionale di Ricerca Metrologica (INRiM), Torino, Italy

2Physikalisch-Technische Bundesanstalt (PTB), Braunschweig and Berlin, Germany