Skip to content

ElecLUTdq fails for Irms_max #707

@mxgnsr

Description

@mxgnsr

Hi guys,

just played around with the ElecLUTdq class a bit and maybe found an error due to line 46 in:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions