# InCurrent (class)¶

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

class InCurrent(time=None, angle=None, Is=None, Ir=None, angle_rotor=None, Nr=None, rot_dir=-1, angle_rotor_initial=0, init_dict=None)[source]

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 (InCurrent) – An InCurrent object
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
as_dict()[source]

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

time

Electrical time vector (no symmetry) to import

angle

Electrical position vector (no symmetry) to import

Is

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

Ir

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

angle_rotor

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

Nr

Rotor speed as a function of time to import

rot_dir

Rotation direction of the rotor 1 trigo, -1 clockwise

angle_rotor_initial

Initial angular position of the rotor at t=0