# OutElec (class)¶

File generated according to Generator/ClassesRef/Output/OutElec.csv WARNING! All changes made in this file will be lost!

class OutElec(time=None, angle=None, Is=None, Ir=None, angle_rotor=None, Nr=None, rot_dir=-1, angle_rotor_initial=0, logger_name='Pyleecan.OutElec', mmf_unit=None, init_dict=None)[source]

Bases: pyleecan.Classes._frozen.FrozenClass

Gather the electric module outputs

VERSION = 1
save(save_path='')

Save the object to the save_path

Parameters: self – A pyleecan object save_path (str) – path to the folder to save the object
get_logger()

Get the object logger or its parent’s one

Parameters: obj – A pyleecan object logger – Pyleecan object dedicated logger logging.Logger
as_dict()[source]

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

time

Electrical time vector (no symmetry)

angle

Electrical position vector (no symmetry)

Is

Stator currents as a function of time (each column correspond to one phase)

Ir

Rotor currents as a function of time (each column correspond to one phase)

angle_rotor

Rotor angular position as a function of time (if None computed according to Nr)

Nr

Rotor speed as a function of time

rot_dir

Rotation direction of the rotor 1 trigo, -1 clockwise

angle_rotor_initial

Initial angular position of the rotor at t=0

logger_name

Name of the logger to use

mmf_unit

Unit magnetomotive force