Shaft (class)

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

class Shaft(Lshaft=0.442, mat_type=-1, Drsh=0.045, init_dict=None)[source]

Bases: pyleecan.Classes.frozen.FrozenClass

VERSION = 1
build_geometry(sym=1, alpha=0, delta=0)

Build the geometry of the shaft

Parameters:
  • self (Shaft) – Shaft Object
  • sym (int) – Symmetry factor (1= full machine, 2= half of the machine…)
  • alpha (float) – Angle for rotation [rad]
  • delta (complex) – Complex value for translation
Returns:

surf_list – list of surfaces needed to draw the lamination

Return type:

list

comp_mass()

Computation of the Shaft mass

Parameters:self (Shaft) – A Shaft object
Returns:M_shaft – Mass of the Shaft [kg]
Return type:float
plot(fig=None, sym=1, alpha=0, delta=0)

Plot the Shaft in a matplotlib fig

Parameters:
  • self (Shaft) – A Shaft object
  • fig – if none, open a new fig and plot, else add to the current one (Default value = None)
  • sym (int) – Symmetry factor (1= full machine, 2= half of the machine…)
  • alpha (float) – Angle for rotation [rad]
  • delta (complex) – Complex value for translation
Returns:

Return type:

None

as_dict()[source]

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

Lshaft

length of the rotor shaft [m] (used for weight & cost estimation only)

mat_type

Shaft’s Material

Drsh

diameter of the rotor shaft [m], used to estimate bearing diameter for friction losses