Source code for pyleecan.Methods.Slot.HoleM58.comp_surface_magnet_id
# -*- coding: utf-8 -*-
[docs]def comp_surface_magnet_id(self, index):
"""Compute the surface of the hole magnet of the corresponding index
Parameters
----------
self : HoleM58
A HoleM58 object
index : int
Index of the magnet to compute the surface
Returns
-------
Smag: float
Surface of the Magnet [m**2]
"""
if index == 0 and self.magnet_0:
return self.H2 * self.W1
return 0