Source code for pyleecan.Methods.Slot.SlotMFlat.comp_W0m
# -*- coding: utf-8 -*-
from numpy import sin
[docs]def comp_W0m(self):
"""Compute (or return) W0 in [m]
Parameters
----------
self : SlotMFlat
A SlotMFlat object
Returns
-------
W0m: float
W0 in [m]
"""
Rbo = self.get_Rbo()
if self.W0_is_rad: # Convert W0 to m
return 2 * Rbo * sin((self.W0 / 2))
else:
return self.W0