InputElec (class)

Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/InputElec

class InputElec(rot_dir=-1, Id_ref=None, Iq_ref=None, Ud_ref=None, Uq_ref=None, felec=None, time=None, angle=None, Nt_tot=2048, Nrev=1, Na_tot=2048, N0=None, 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

comp_felec()

Compute the electrical frequency

Parameters

felec (float) – Electrical frequency [Hz]

set_Id_Iq(I0, Phi0)

Set Id_ref and Iq_ref according to I0, Phi0

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(**kwargs)

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

compare(other, name='self')[source]

Compare two objects and return list of differences

as_dict(**kwargs)[source]

Convert this object in a json serializable dict (can be use in __init__). Optional keyword input parameter is for internal use only and may prevent json serializability.

property rot_dir

Rotation direction of the rotor 1 trigo, -1 clockwise

Type

float

Min

-1

Max

1

property Id_ref

d-axis current magnitude

Type

float

property Iq_ref

q-axis current magnitude

Type

float

property Ud_ref

d-axis voltage magnitude

Type

float

property Uq_ref

q-axis voltage magnitude

Type

float

property felec

electrical frequency

Type

float