PolarArc (class)

Warning : this file has been generated, you shouldn’t edit it

class PolarArc(angle=1, height=1, point_ref=0, label='', init_dict=None)[source]

Bases: pyleecan.Classes.Surface.Surface

PolarArc define by the center of object(point_ref), the label, the angle and the height

VERSION = 1
get_lines()

return the list of lines that delimits the PolarArc

Parameters:self (PolarArc) – a PolarArc object
Returns:line_list – List of line need to draw the slot (2 Segment + 2 Arc1)
Return type:list
rotate(angle)

Do the rotation of the PolarArc

Parameters:
  • self (PolarArc) – a PolarArc
  • angle (float) – the angle for rotation [rad]
Returns:

Return type:

None

translate(Zt)

Do the translation of the PolarArc

Parameters:
  • self (PolarArc) – a PolarArc object
  • Zt (complex) – Complex value for translation
Returns:

Return type:

None

check()

check if the PolarArc object is correct

Parameters:self (PolarArc) – a PolarArc Object
Returns:
Return type:None
Raises:AnglePolarArcError – The angle of a polar arc must be different to 0
comp_length()

Returns the length of the PolarArc

Parameters:self (PolarArc) – a PolarArc object
Returns:length – length of the PolarArc [m]
Return type:float
discretize(nb_point)

Returns the discretize version of the PolarArc

Parameters:nb_point (int) – number of points wanted per line
Returns:point_list – List of complex coordinate of the points
Return type:list
get_patch(color='w', edgecolor='K')

Returns the PolarArc Patch to be display in matplotlib :param self: a PolarArc object :type self: PolarArc :param color: The color of the patch (Default value = PATCH_COLOR) :param edgecolor: The color of the edgecolor (Default value = PATCH_EDGE)

Returns:patch – The patch corresponding to the surface
Return type:matplotlib.patches.Polygon
comp_surface()

Compute the PolarArc surface

Parameters:self (PolarArc) – A PolarArc object
Returns:surf – The PolarArc surface [m**2]
Return type:float
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

angle

Polar angle

height

The Heigth of the PolarAngle