OutElec (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Output/OutElec
-
class
OutElec
(Time=None, Angle=None, Is=None, Ir=None, angle_rotor=None, N0=None, angle_rotor_initial=0, logger_name='Pyleecan.OutElec', Tem_av_ref=None, Id_ref=None, Iq_ref=None, felec=None, Ud_ref=None, Uq_ref=None, Pj_losses=None, Pem_av_ref=None, Us=None, init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes._frozen.FrozenClass
Gather the electric module outputs
-
VERSION
= 1¶
-
get_Nr
()¶ Create speed in function of time vector Nr
- Parameters
self (OutElec) – An OutElec object
- Returns
Nr – speed in function of time
- Return type
ndarray
-
get_Us
()¶ Return the stator voltage
-
comp_I_mag
(time, is_stator, phase=None)¶ Compute the current on the given lamination and time vector to use it in Magnetics model Phase currents are divided by the number of parallel circuits per pole and per phase to account for actual current in slot conductors
- Parameters
self (OutElec) – an OutElec object
time (ndarray) – Time vector on which to interpolate currents stored in OutElec
is_stator (bool) – True if lamination is stator
per_a (int) – (Anti-)periodicity factor
- Returns
I – Current matrix accounting for periodicities [q_pera,len(time)]
- Return type
ndarray
-
save
(save_path='', is_folder=False)¶ Save the object to the save_path
- Parameters
self – A pyleecan object
save_path (str) – path to the folder to save the object
is_folder (bool) – to split the object in different files: separate simulation machine and materials
-
copy
()¶ Return a copy of the class
-
get_logger
()¶ Get the object logger or its parent’s one
- Parameters
obj – A pyleecan object
- Returns
logger – Pyleecan object dedicated logger
- Return type
logging.Logger
-
property
Time
¶ Electrical time Data object
- Type
SciDataTool.Classes.DataND.Data
-
property
Angle
¶ Electrical position Data object
- Type
SciDataTool.Classes.DataND.Data
-
property
Is
¶ Stator currents DataTime object
- Type
SciDataTool.Classes.DataND.DataND
-
property
Ir
¶ Rotor currents as a function of time (each column correspond to one phase)
- Type
SciDataTool.Classes.DataND.DataND
-
property
angle_rotor
¶ Rotor angular position as a function of time (if None computed according to Nr)
- Type
ndarray
-
property
N0
¶ Rotor speed
- Type
float
-
property
angle_rotor_initial
¶ Initial angular position of the rotor at t=0
- Type
float
-
property
logger_name
¶ Name of the logger to use
- Type
str
-
property
Tem_av_ref
¶ Theorical Average Electromagnetic torque
- Type
float
-
property
Id_ref
¶ Electrical time vector (no symmetry)
- Type
float
-
property
Iq_ref
¶ q-axis current magnitude
- Type
float
-
property
felec
¶ Electrical Frequency
- Type
float
-
property
Ud_ref
¶ d-axis voltage magnitude
- Type
float
-
property
Uq_ref
¶ q-axis voltage magnitude
- Type
float
-
property
Pj_losses
¶ Electrical Joule losses
- Type
float
-
property
Pem_av_ref
¶ Average Electromagnetic power
- Type
float
-
property
Us
¶ Stator voltage as a function of time (each column correspond to one phase)
- Type
SciDataTool.Classes.DataND.DataND
-