Skip to content

Commit 0d52a37

Browse files
committed
Merge branch 'master' of https://github.com/Eomys/pyleecan
2 parents d77927a + e24108d commit 0d52a37

File tree

5 files changed

+109
-3
lines changed

5 files changed

+109
-3
lines changed

pyleecan/Classes/Class_Dict.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7721,6 +7721,7 @@
77217721
"daughters": [
77227722
"Slot19",
77237723
"SlotCirc",
7724+
"SlotDC",
77247725
"SlotMFlat",
77257726
"SlotMFlat2",
77267727
"SlotMPolar",
@@ -7894,6 +7895,104 @@
78947895
}
78957896
]
78967897
},
7898+
"SlotDC": {
7899+
"constants": [
7900+
{
7901+
"name": "VERSION",
7902+
"value": "1"
7903+
},
7904+
{
7905+
"name": "IS_SYMMETRICAL",
7906+
"value": "1"
7907+
}
7908+
],
7909+
"daughters": [],
7910+
"desc": "Slot with two rods (for double squirrel cage)",
7911+
"is_internal": false,
7912+
"methods": [
7913+
"_comp_point_coordinate",
7914+
"build_geometry",
7915+
"get_surface_wind"
7916+
],
7917+
"mother": "SlotWind",
7918+
"name": "SlotDC",
7919+
"package": "Slot",
7920+
"path": "pyleecan/Generator/ClassesRef/Slot/SlotDC.csv",
7921+
"properties": [
7922+
{
7923+
"desc": "Slot isthmus width.",
7924+
"max": "",
7925+
"min": "0",
7926+
"name": "W1",
7927+
"type": "float",
7928+
"unit": "m",
7929+
"value": 0.0122
7930+
},
7931+
{
7932+
"desc": "Distance upper rod center to bore",
7933+
"max": "",
7934+
"min": "0",
7935+
"name": "H1",
7936+
"type": "float",
7937+
"unit": "m",
7938+
"value": 0.0122
7939+
},
7940+
{
7941+
"desc": "Diameter upper rod",
7942+
"max": "",
7943+
"min": "0",
7944+
"name": "D1",
7945+
"type": "float",
7946+
"unit": "m",
7947+
"value": 0.001
7948+
},
7949+
{
7950+
"desc": "Middle connection width",
7951+
"max": "",
7952+
"min": "0",
7953+
"name": "W2",
7954+
"type": "float",
7955+
"unit": "m",
7956+
"value": 0.0122
7957+
},
7958+
{
7959+
"desc": "Height between the first and second center",
7960+
"max": "",
7961+
"min": "0",
7962+
"name": "H2",
7963+
"type": "float",
7964+
"unit": "m",
7965+
"value": 0.001
7966+
},
7967+
{
7968+
"desc": "Diameter upper section lower rod",
7969+
"max": "",
7970+
"min": "0",
7971+
"name": "D2",
7972+
"type": "float",
7973+
"unit": "m",
7974+
"value": 0.001
7975+
},
7976+
{
7977+
"desc": "Length of lower rod",
7978+
"max": "",
7979+
"min": "0",
7980+
"name": "H3",
7981+
"type": "float",
7982+
"unit": "m",
7983+
"value": 0.001
7984+
},
7985+
{
7986+
"desc": "Radius lower section lower rod",
7987+
"max": "",
7988+
"min": "0",
7989+
"name": "R3",
7990+
"type": "float",
7991+
"unit": "m",
7992+
"value": 0.001
7993+
}
7994+
]
7995+
},
78977996
"SlotMFlat": {
78987997
"constants": [
78997998
{
@@ -9795,6 +9894,7 @@
97959894
],
97969895
"daughters": [
97979896
"SlotCirc",
9897+
"SlotDC",
97989898
"SlotUD",
97999899
"SlotW10",
98009900
"SlotW11",

pyleecan/Classes/import_all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
from ..Classes.Slot import Slot
141141
from ..Classes.Slot19 import Slot19
142142
from ..Classes.SlotCirc import SlotCirc
143+
from ..Classes.SlotDC import SlotDC
143144
from ..Classes.SlotMFlat import SlotMFlat
144145
from ..Classes.SlotMFlat2 import SlotMFlat2
145146
from ..Classes.SlotMPolar import SlotMPolar

pyleecan/Functions/load_switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
"Slot": Slot,
143143
"Slot19": Slot19,
144144
"SlotCirc": SlotCirc,
145+
"SlotDC": SlotDC,
145146
"SlotMFlat": SlotMFlat,
146147
"SlotMFlat2": SlotMFlat2,
147148
"SlotMPolar": SlotMPolar,

pyleecan/Methods/Machine/LamSlotWind/plot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ def plot(
7171
wind_mat = None
7272
qs = 1
7373
else:
74-
Zs = self.get_Zs()
75-
wind_mat = self.winding.comp_connection_mat(Zs)
76-
qs = self.winding.qs
74+
try:
75+
wind_mat = self.winding.comp_connection_mat(self.get_Zs())
76+
qs = self.winding.qs
77+
except:
78+
wind_mat = None
79+
qs = 1
7780
else:
7881
wind_mat = None
7982
qs = 1

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ h5py>=2.10.0
1818
nbformat
1919
nbconvert
2020
quadpy
21+
ezdxf>=0.14.2
2122
pytest-qt>=3.3.0

0 commit comments

Comments
 (0)