Transient effects occurring in a superconducting accelerator circuit can be correctly simulated only if the models consistently account for the electrothermodynamic coupling between the magnets, the protection systems, and the remaining network. We present a framework based on the idea of cosimulation. The core component is a coupling interface exchanging information between the independent models. Within the framework, we simulate selected parts of a magnet and the electrical network, combining appropriately different commercial tools. This modularity gives the possibility of integrating new tools in the framework, to provide further insights on different physical domains as mechanics or fluid dynamics. The workflow is applied to the field-circuit coupling of an LHC main dipole magnet.