pyleecan.Classes.EEC_SCIM module

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

class EEC_SCIM(Rfe=None, L1=None, R2=None, L2=None, K21Z=None, K21I=None, Im_table=None, Lm_table=None, I1=None, I2=None, U1=None, U2=None, If=None, Lm=None, Im=None, type_skin_effect=1, OP=None, Tsta=20, Trot=20, Xkr_skinS=1, Xke_skinS=1, Xkr_skinR=1, Xke_skinR=1, R1=None, fluxlink=None, init_dict=None, init_str=None)[source]

Bases: EEC

Electric module: Electrical Equivalent Circuit for Squirrel Cage Induction Machine

VERSION = 1
clear_parameters()

Clear all the parameters of an EEC_SCIM

Parameters:

self (EEC_SCIM) – An EEC_SCIM object

comp_joule_losses(out_dict, machine)

Compute the electrical Joule losses

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • out_dict (dict) – Dict containing all magnetic quantities that have been calculated in comp_parameters of EEC

  • machine (Machine) – a Machine object

Returns:

out_dict – Dict containing all magnetic quantities that have been calculated in EEC

Return type:

dict

comp_K21()

Compute and set winding transformation ratios

Parameters:

self (EEC_SCIM) – An EEC_SCIM objects

comp_L1(L1_ref=None)

Compute and set the Stator phase inductance for the equivalent electrical circuit

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • L1_ref (float) – reference inductance

comp_L2(L2_ref=None)

Compute and set the Rotor phase inductance for the equivalent electrical circuit

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • L2_ref (float) – reference inductance

comp_parameters()

Compute and set the parameter attributes of the equivalent electrical circuit: resistance, skin effect factors and inductance according to OP/T

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • machine (Machine) – a Machine object

  • OP (OP) – an OP object

  • Tsta (float) – Average stator temperature

  • Trot (float) – Average rotor temperature

comp_R2(R2_ref=None, T_ref=None)

Compute and set the rotor phase resistance for the equivalent electrical circuit

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • R2_ref (float) – reference resistance

  • T_ref (float) – reference temperature

comp_skin_effect()

Compute and set the skin effect factors (update value in object)

Parameters:

self (EEC_SCIM) – An EEC_SCIM objects

solve()

Solve the equivalent electrical circuit of SCIM

—> —->

—–Rs——XsIs—- — —–Rr’—-XrIr—-

| | |
Rfe Xm Rr*(s-1)/s
| | | ———Is———- — ———Ir————
—>

Us

Parameters:

self (EEC_SCIM) – an EEC_SCIM object

Returns:

out_dict – Output dict containing EEC values

Return type:

dict

solve_elementary()

Solve the EEC, set the resulting currents and voltages and update the magnetizing inductance.

Parameters:

self (EEC_SCIM) – an EEC_SCIM object

Returns:

delta_Lm – convergence criterion for magnetizing inductance calculation, i.e. relative difference between the recalculated magnetizing inductance and the current magnetizing inductance

Return type:

float

update_from_ref(LUT_ref)

Update the equivalent circuit according to the LUT

Parameters:
  • self (EEC_SCIM) – an EEC_SCIM object

  • LUT_ref (LUTslip) – reference LUTslip object

save(save_path='', is_folder=False, type_handle_old=2, type_compression=0)

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 (json only)

  • type_handle_old (int) – How to handle old file in folder mode (0:Nothing, 1:Delete, 2:Move to “Backup” folder)

  • type_compression (int) – Available only for json, 0: no compression, 1: gzip

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', ignore_list=None, is_add_value=False)[source]

Compare two objects and return list of differences

as_dict(type_handle_ndarray=0, keep_function=False, **kwargs)[source]

Convert this object in a json serializable dict (can be use in __init__). type_handle_ndarray: int

How to handle ndarray (0: tolist, 1: copy, 2: nothing)

keep_functionbool

True to keep the function object, else return str

Optional keyword input parameter is for internal use only and may prevent json serializability.

copy()[source]

Creates a deepcopy of the object

property Rfe

Iron loss resistance

Type:

float

property L1

Stator phase inductance

Type:

float

property R2

Rotor phase resistance

Type:

float

property L2

Rotor phase inductance

Type:

float

property K21Z

transformation ratio from secondary (2, rotor) to primary (1, stator) for impedance

Type:

float

property K21I

transformation ratio from secondary (2, rotor) to primary (1, stator) for current

Type:

float

property Im_table

Array of magnetizing current

Type:

ndarray

property Lm_table

Array of magnetizing inductance function of Im_table

Type:

ndarray

property I1

Stator phase current (after solve)

Type:

complex

property I2

Rotor phase current (after solve)

Type:

complex

property U1

Stator phase voltage (after solve)

Type:

complex

property U2

Rotor phase voltage (after solve)

Type:

complex

property If

Iron loss current (after solve)

Type:

complex

property Lm

Magnetizing inductance (after solve)

Type:

float

property Im

Magnetizing current (after solve)

Type:

complex