pyleecan.Functions.FEMM.update_FEMM_simulation module

update_FEMM_simulation(femm, FEMM_dict, is_internal_rotor, is_sliding_band, angle_rotor, Is, Ir, ii)[source]

Update the simulation by changing the rotor position and updating the currents :param femm: client to send command to a FEMM instance :type femm: FEMMHandler :param FEMM_dict: Dictionary containing main FEMM definition / properties :type FEMM_dict: dict :param is_internal_rotor: True if it is an Internal Rotor topology :type is_internal_rotor: bool :param is_sliding_band: True if it is an Internal Rotor topology :type is_sliding_band: bool :param angle_rotor: Vector of rotor angular position over time [Nt,] :type angle_rotor: ndarray :param Is: Stator currents function of phase and time [qs,Nt] :type Is: ndarray :param Ir: Rotor currents function of phase and time [qr,Nt] :type Ir: ndarray :param ii: Time step index :type ii: int