-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Hi guys,
just played around with the ElecLUTdq class a bit and maybe found an error due to line 46 in:
pyleecan/pyleecan/Methods/Simulation/ElecLUTdq/run.py
Lines 38 to 46 in 20b2111
| if self.Irms_max is None: | |
| if self.Jrms_max is None: | |
| raise Exception("Irms_max and Jrms_max cannot be both None") | |
| # Calculate maximum current function of current density | |
| Swire = machine.stator.winding.conductor.comp_surface_active() | |
| Npcp = machine.stator.winding.Npcp | |
| self.Irms_max = self.Jrms_max * Swire * Npcp | |
| else: | |
| self.Irms_max = output.simu.input.Irms_max |
I think their is no need to reset Irms_max from the Input object if it was not set to None at init.
It leads to an error in my case since I use InputCurrent which not has Irms_max. (Couldn't find any other Input object with Irms_max at all) .
BR
Max
Metadata
Metadata
Assignees
Labels
No labels