InputCurrent (class)

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

class InputCurrent(time=-1, angle=-1, Is=-1, Ir=-1, angle_rotor=None, Nr=-1, rot_dir=-1, angle_rotor_initial=0, init_dict=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_Nr(value)

Set Nr with a constant value

Parameters:
  • self (InputCurrent) – An InputCurrent object
  • value (float) – Nr value to enforce
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
Returns:logger – Pyleecan object dedicated logger
Return type:logging.Logger
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