From 1b23d832e4b51fd317d231e6edb8953dfb4aaa53 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Tue, 17 Dec 2024 09:14:01 +0100 Subject: [PATCH] FIX: Use properties instead of props --- .../low_frequency/motor/aedt_motor/rmxpert.py | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/examples/low_frequency/motor/aedt_motor/rmxpert.py b/examples/low_frequency/motor/aedt_motor/rmxpert.py index 83ef3e273..2353f48d8 100644 --- a/examples/low_frequency/motor/aedt_motor/rmxpert.py +++ b/examples/low_frequency/motor/aedt_motor/rmxpert.py @@ -76,19 +76,19 @@ rmxprt.stator["Number of Slots"] = 24 rmxprt.stator["Slot Type"] = 2 -rmxprt.stator.properties.children["Slot"].props["Auto Design"] = False -rmxprt.stator.properties.children["Slot"].props["Hs0"] = "0.5mm" -rmxprt.stator.properties.children["Slot"].props["Hs1"] = "1.2mm" -rmxprt.stator.properties.children["Slot"].props["Hs2"] = "8.2mm" -rmxprt.stator.properties.children["Slot"].props["Bs0"] = "2.5mm" -rmxprt.stator.properties.children["Slot"].props["Bs1"] = "5.6mm" -rmxprt.stator.properties.children["Slot"].props["Bs2"] = "7.6mm" - -rmxprt.stator.properties.children["Winding"].props["Winding Layers"] = 2 -rmxprt.stator.properties.children["Winding"].props["Parallel Branches"] = 1 -rmxprt.stator.properties.children["Winding"].props["Conductors per Slot"] = 52 -rmxprt.stator.properties.children["Winding"].props["Coil Pitch"] = 5 -rmxprt.stator.properties.children["Winding"].props["Number of Strands"] = 1 +rmxprt.stator.properties.children["Slot"].properties["Auto Design"] = False +rmxprt.stator.properties.children["Slot"].properties["Hs0"] = "0.5mm" +rmxprt.stator.properties.children["Slot"].properties["Hs1"] = "1.2mm" +rmxprt.stator.properties.children["Slot"].properties["Hs2"] = "8.2mm" +rmxprt.stator.properties.children["Slot"].properties["Bs0"] = "2.5mm" +rmxprt.stator.properties.children["Slot"].properties["Bs1"] = "5.6mm" +rmxprt.stator.properties.children["Slot"].properties["Bs2"] = "7.6mm" + +rmxprt.stator.properties.children["Winding"].properties["Winding Layers"] = 2 +rmxprt.stator.properties.children["Winding"].properties["Parallel Branches"] = 1 +rmxprt.stator.properties.children["Winding"].properties["Conductors per Slot"] = 52 +rmxprt.stator.properties.children["Winding"].properties["Coil Pitch"] = 5 +rmxprt.stator.properties.children["Winding"].properties["Number of Strands"] = 1 # ## Define rotor # @@ -101,13 +101,13 @@ rmxprt.rotor["Steel Type"] = "steel_1008" rmxprt.rotor["Pole Type"] = 1 -rmxprt.rotor.properties.children["Pole"].props["Embrace"] = 0.7 -rmxprt.rotor.properties.children["Pole"].props["Offset"] = "0mm" -rmxprt.rotor.properties.children["Pole"].props["Magnet Type"] = [ +rmxprt.rotor.properties.children["Pole"].properties["Embrace"] = 0.7 +rmxprt.rotor.properties.children["Pole"].properties["Offset"] = "0mm" +rmxprt.rotor.properties.children["Pole"].properties["Magnet Type"] = [ "Material:=", "Alnico9", ] -rmxprt.rotor.properties.children["Pole"].props["Magnet Thickness"] = "3.5mm" +rmxprt.rotor.properties.children["Pole"].properties["Magnet Thickness"] = "3.5mm" # ## Create setup #