Magneto-thermal model for the optimal design of a high-frequency fault-tolerant generator | Synapse