InputCurrent (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/InputCurrent
-
class
InputCurrent
(Is=None, Ir=None, angle_rotor=None, N0=None, rot_dir=None, angle_rotor_initial=0, Tem_av_ref=None, Id_ref=None, Iq_ref=None, felec=None, time=None, angle=None, Nt_tot=2048, Nrev=1, Na_tot=2048, init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes.Input.Input
Input to skip the electrical module and start with the magnetic one
-
VERSION
= 1¶
-
gen_input
()¶ Generate the input for the magnetic module (electrical output)
- Parameters
self (InputCurrent) – An InputCurrent object
-
set_Id_Iq
(I0, Phi0)¶ Set Id_ref and Iq_ref according to I0, Phi0
-
comp_felec
()¶ Compute the electrical frequency
- Parameters
felec (float) – Electrical frequency [Hz]
-
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
Is
¶ Stator currents as a function of time (each column correspond to one phase) to import
- Type
ImportMatrix
-
property
Ir
¶ Rotor currents as a function of time (each column correspond to one phase) to import
- Type
ImportMatrix
-
property
angle_rotor
¶ Rotor angular position as a function of time (if None computed according to Nr) to import
- Type
Import
-
property
N0
¶ Rotor speed
- Type
float
-
property
rot_dir
¶ Rotation direction of the rotor 1 trigo, -1 clockwise
- Type
float
- Min
-1
- Max
1
-
property
angle_rotor_initial
¶ Initial angular position of the rotor at t=0
- Type
float
-
property
Tem_av_ref
¶ Theorical Average Electromagnetic torque
- Type
float
-
property
Id_ref
¶ d-axis current RMS magnitude
- Type
float
-
property
Iq_ref
¶ q-axis current RMS magnitude
- Type
float
-
property
felec
¶ electrical frequency
- Type
float
-