femagtools 1.8.0__py3-none-any.whl → 1.8.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- femagtools/__init__.py +1 -1
- femagtools/dxfsl/area.py +47 -3
- femagtools/dxfsl/areabuilder.py +93 -45
- femagtools/dxfsl/conv.py +0 -5
- femagtools/dxfsl/converter.py +92 -33
- femagtools/dxfsl/fslrenderer.py +14 -5
- femagtools/dxfsl/geom.py +245 -210
- femagtools/dxfsl/machine.py +166 -11
- femagtools/dxfsl/shape.py +46 -1
- femagtools/dxfsl/svgparser.py +1 -1
- femagtools/dxfsl/symmetry.py +115 -30
- femagtools/ecloss.py +13 -8
- femagtools/femag.py +61 -29
- femagtools/fsl.py +21 -6
- femagtools/machine/__init__.py +5 -4
- femagtools/machine/afpm.py +41 -15
- femagtools/machine/sizing.py +189 -11
- femagtools/machine/sm.py +5 -11
- femagtools/machine/utils.py +2 -2
- femagtools/mcv.py +2 -3
- femagtools/model.py +4 -3
- femagtools/parstudy.py +1 -1
- femagtools/plot/nc.py +2 -2
- femagtools/templates/afm_rotor.mako +4 -0
- femagtools/templates/prepare_thermal.mako +57 -54
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/METADATA +1 -1
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/RECORD +32 -32
- tests/test_mcv.py +1 -1
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/LICENSE +0 -0
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/WHEEL +0 -0
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/entry_points.txt +0 -0
- {femagtools-1.8.0.dist-info → femagtools-1.8.2.dist-info}/top_level.txt +0 -0
femagtools/model.py
CHANGED
@@ -136,14 +136,15 @@ class MachineModel(Model):
|
|
136
136
|
name = 'DRAFT'
|
137
137
|
if isinstance(parameters, str):
|
138
138
|
name = parameters
|
139
|
+
self.connect_full = False # no matter
|
139
140
|
else:
|
140
141
|
if 'name' in parameters:
|
141
142
|
name = parameters['name']
|
142
143
|
if 'windings' in parameters:
|
143
144
|
self.winding = self.windings
|
144
145
|
|
145
|
-
|
146
|
-
|
146
|
+
# connect model even for complete model (see fsl connect_models)
|
147
|
+
self.connect_full = parameters.get('afmtype', '') == ''
|
147
148
|
# must sanitize name to prevent femag complaints
|
148
149
|
self.name = ''.join([n
|
149
150
|
for n in name.strip()
|
@@ -410,7 +411,7 @@ class MachineModel(Model):
|
|
410
411
|
missing += m
|
411
412
|
names += n
|
412
413
|
if missing:
|
413
|
-
raise MCerror("
|
414
|
+
raise MCerror("Material properties missing: {}".format(
|
414
415
|
', '.join(set(missing))))
|
415
416
|
return set(names)
|
416
417
|
|
femagtools/parstudy.py
CHANGED
@@ -325,7 +325,7 @@ class ParameterStudy(object):
|
|
325
325
|
shutil.copy(ff, repdir)
|
326
326
|
calcid += 1
|
327
327
|
if isinstance(r, dict) and 'error' in r:
|
328
|
-
logger.
|
328
|
+
logger.warning("job %d failed: %s", k, r['error'])
|
329
329
|
if objective_vars:
|
330
330
|
f.append([float('nan')]*len(objective_vars))
|
331
331
|
else:
|
femagtools/plot/nc.py
CHANGED
@@ -14,7 +14,7 @@ DEFAULT_CMAP='viridis'
|
|
14
14
|
"""default colormap (see https://matplotlib.org/stable/users/explain/colors/colormaps.html)"""
|
15
15
|
|
16
16
|
|
17
|
-
def spel(isa, superelements=[], with_axis=False, ax=0):
|
17
|
+
def spel(isa, superelements=[], with_axis=False, with_wiredir=False, ax=0):
|
18
18
|
"""plot super elements of I7/ISA7 model
|
19
19
|
Args:
|
20
20
|
isa: Isa7 object
|
@@ -35,7 +35,7 @@ def spel(isa, superelements=[], with_axis=False, ax=0):
|
|
35
35
|
color=isa.color[se.color], lw=0))
|
36
36
|
try:
|
37
37
|
# draw wire direction
|
38
|
-
if se.subregion:
|
38
|
+
if se.subregion and with_wiredir:
|
39
39
|
if se.subregion.curdir != 0:
|
40
40
|
wkey = se.subregion.winding.key
|
41
41
|
if se.subregion.curdir < 0:
|
@@ -91,7 +91,11 @@ m.nodedist = ${model.get('nodedist', 1)}
|
|
91
91
|
x,y = (P22.x+P32.x)/2,(P21.y+P22.y)/2
|
92
92
|
if m.remanenc == nil then
|
93
93
|
m.remanenc = 1.2
|
94
|
+
end
|
95
|
+
if m.relperm == nil then
|
94
96
|
m.relperm = 1.05
|
97
|
+
end
|
98
|
+
if m.rlen == nil then
|
95
99
|
m.rlen = 100
|
96
100
|
end
|
97
101
|
for i = 1,m.npols_gen do
|
@@ -40,12 +40,12 @@ shaft_spel = {} ---- lightgrey, 16
|
|
40
40
|
magnet_spel = {} -- black, 8
|
41
41
|
outer_air = {} -- darkred, 10
|
42
42
|
inner_air = {} -- lightgrey, 16
|
43
|
-
rotor_air = {}
|
43
|
+
rotor_air = {}
|
44
44
|
stator_air = {} -- black, 8
|
45
45
|
airgap = {} -- white, 8
|
46
46
|
magnet_pocket_spel = {} -- red, 1
|
47
47
|
non_uniform_airgap = {} -- white, 8
|
48
|
-
slot_opening = {}
|
48
|
+
slot_opening = {}
|
49
49
|
slot_sreg_exist = 0
|
50
50
|
-- search all components
|
51
51
|
for i =1, #spel_keys do
|
@@ -74,7 +74,7 @@ for i =1, #spel_keys do
|
|
74
74
|
%if model.get('htc_outer', 0):
|
75
75
|
def_heat_transfer(xc,yc,yellow,${model['htc_outer']}, 1.0)
|
76
76
|
%endif
|
77
|
-
color_spel(spel_keys[i], 10)
|
77
|
+
color_spel(spel_keys[i], 10)
|
78
78
|
|
79
79
|
elseif rc > dy2/2 and rc < da2/2 then
|
80
80
|
-- rotor air
|
@@ -87,14 +87,14 @@ for i =1, #spel_keys do
|
|
87
87
|
-- stator air
|
88
88
|
table.insert(stator_air, spel_keys[i])
|
89
89
|
def_mat_therm(xc, yc, 'yellow', 1.19,0.15,1007, 1)
|
90
|
-
color_spel(spel_keys[i], 8)
|
90
|
+
color_spel(spel_keys[i], 8)
|
91
91
|
key_exist_sl = get_sreg_key(xc, yc)
|
92
|
-
if key_exist_sl <= 0 and slot_sreg_exist == 0 then
|
92
|
+
if key_exist_sl <= 0 and slot_sreg_exist == 0 then
|
93
93
|
def_new_sreg(xc, yc, 'Slot', 'yellow')
|
94
94
|
slot_sreg_exist = 1
|
95
|
-
else
|
95
|
+
else
|
96
96
|
add_to_sreg(xc, yc, 'Slot')
|
97
|
-
end
|
97
|
+
end
|
98
98
|
elseif rc > da2/2 and rc < da1/2 then
|
99
99
|
table.insert(airgap, spel_keys[i])
|
100
100
|
def_mat_therm(xc, yc, 'yellow', 1.19,0.15,1007, 1)
|
@@ -139,83 +139,83 @@ end
|
|
139
139
|
|
140
140
|
function is_exist(arr, val)
|
141
141
|
local i
|
142
|
-
if #arr == 0 then
|
143
|
-
return false
|
144
|
-
end
|
145
|
-
for i = 1, #arr do
|
146
|
-
if arr[i] == val then
|
142
|
+
if #arr == 0 then
|
143
|
+
return false
|
144
|
+
end
|
145
|
+
for i = 1, #arr do
|
146
|
+
if arr[i] == val then
|
147
147
|
return true
|
148
|
-
end
|
149
|
-
end
|
148
|
+
end
|
149
|
+
end
|
150
150
|
return false
|
151
|
-
end
|
152
|
-
-- identify magnet air pocket
|
151
|
+
end
|
152
|
+
-- identify magnet air pocket
|
153
153
|
|
154
|
-
for i = 1, #magnet_spel do
|
154
|
+
for i = 1, #magnet_spel do
|
155
155
|
bkeys = get_spel_data ( "bndkeys", magnet_spel[i])
|
156
|
-
for j = 1, #bkeys do
|
156
|
+
for j = 1, #bkeys do
|
157
157
|
elks = get_node_data ( "elkeys", bkeys[j] )
|
158
|
-
for k = 1, #elks do
|
158
|
+
for k = 1, #elks do
|
159
159
|
p1, p2 = get_elem_data("perm", elks[k])
|
160
160
|
sek = get_elem_data("sekey", elks[k])
|
161
|
-
if p1 == 1.0 then
|
162
|
-
if (not is_exist(magnet_pocket_spel, sek)) and (not is_exist(airgap, sek)) then
|
161
|
+
if p1 == 1.0 then
|
162
|
+
if (not is_exist(magnet_pocket_spel, sek)) and (not is_exist(airgap, sek)) then
|
163
163
|
table.insert(magnet_pocket_spel, sek)
|
164
164
|
els = get_spel_data('elkeys', sek)
|
165
165
|
xc, yc = get_xy(els[1])
|
166
166
|
def_mat_therm(xc, yc, 'red', 1.12,0.026,1007, 1)
|
167
167
|
--table.remove(rotor_air, sek)
|
168
168
|
color_spel(sek, 1)
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
174
|
|
175
175
|
|
176
176
|
|
177
|
-
for i = 1, #rotor_air do
|
178
|
-
if rotor_air[i] ~= nil then
|
177
|
+
for i = 1, #rotor_air do
|
178
|
+
if rotor_air[i] ~= nil then
|
179
179
|
bkeys = get_spel_data ( "bndkeys", rotor_air[i])
|
180
|
-
for j = 1, #bkeys do
|
180
|
+
for j = 1, #bkeys do
|
181
181
|
x, y = get_node_data ( "xy", bkeys[j] )
|
182
|
-
r, phi = c2pd(x, y)
|
183
|
-
if math.abs(r - da2/2) < 1e-5 then
|
184
|
-
if not is_exist(non_uniform_airgap,rotor_air[i]) then
|
182
|
+
r, phi = c2pd(x, y)
|
183
|
+
if math.abs(r - da2/2) < 1e-5 then
|
184
|
+
if not is_exist(non_uniform_airgap,rotor_air[i]) then
|
185
185
|
table.insert(non_uniform_airgap, rotor_air[i])
|
186
186
|
els = get_spel_data('elkeys', rotor_air[i])
|
187
187
|
xc, yc = get_xy(els[1])
|
188
188
|
def_mat_therm(xc, yc, 'yellow', 1.19,1.15,1007, 1)
|
189
189
|
add_to_sreg(xc, yc, 'Slot')
|
190
190
|
color_spel(rotor_air[i], 7)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
196
|
|
197
|
-
for i = 1, #rotor_air do
|
198
|
-
if rotor_air[i] ~= nil then
|
199
|
-
if is_exist(non_uniform_airgap, rotor_air[i]) then
|
197
|
+
for i = 1, #rotor_air do
|
198
|
+
if rotor_air[i] ~= nil then
|
199
|
+
if is_exist(non_uniform_airgap, rotor_air[i]) then
|
200
200
|
rotor_air[i] = nil
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
204
|
|
205
|
-
for i = 1, #rotor_air do
|
206
|
-
if is_exist(magnet_pocket_spel, rotor_air[i]) then
|
205
|
+
for i = 1, #rotor_air do
|
206
|
+
if is_exist(magnet_pocket_spel, rotor_air[i]) then
|
207
207
|
rotor_air[i] = nil
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
208
|
+
end
|
209
|
+
end
|
211
210
|
|
212
|
-
|
213
|
-
|
211
|
+
|
212
|
+
for i = 1, #rotor_air do
|
213
|
+
if rotor_air[i] ~= nil then
|
214
214
|
els = get_spel_data('elkeys', rotor_air[i])
|
215
215
|
xc, yc = get_xy(els[1])
|
216
216
|
def_mat_therm(xc, yc, 'red', 1.12,0.026,1007, 1)
|
217
|
-
end
|
218
|
-
end
|
217
|
+
end
|
218
|
+
end
|
219
219
|
|
220
220
|
|
221
221
|
save_metafile(model..'.ps')
|
@@ -322,7 +322,10 @@ end
|
|
322
322
|
|
323
323
|
|
324
324
|
rn, phin = get_boundary_node(m.tot_num_slot)
|
325
|
-
thickness = ${model.get('
|
325
|
+
thickness = ${model.windings.get('slot_insulation_thickness', 0.15e-3)*1e3}
|
326
|
+
if thickness == 0.0 then
|
327
|
+
thickness = 0.15
|
328
|
+
end
|
326
329
|
conductivity = ${model.get('slot_insul_cond', 0.31)}
|
327
330
|
|
328
331
|
for i = 1,m.num_sl_gen do
|
@@ -331,7 +334,7 @@ y = {}
|
|
331
334
|
|
332
335
|
for j = 1, #rn do
|
333
336
|
x[j], y[j] = pd2c(rn[j], phin[j] + (i-1)*360/m.tot_num_slot)
|
334
|
-
point(x[j], y[j],"black","x")
|
337
|
+
point(x[j], y[j],"black","x")
|
335
338
|
end
|
336
339
|
|
337
340
|
def_insulation_by_nodechain(thickness,conductivity,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: femagtools
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.2
|
4
4
|
Summary: Python API for FEMAG
|
5
5
|
Author-email: Ronald Tanner <tar@semafor.ch>, Dapu Zhang <dzhang@gtisoft.com>, Beat Holm <hob@semafor.ch>, Günther Amsler <amg@semafor.ch>, Nicolas Mauchle <mau@semafor.ch>
|
6
6
|
License: Copyright (c) 2016-2023, Semafor Informatik & Energie AG, Basel
|
@@ -1,4 +1,4 @@
|
|
1
|
-
femagtools/__init__.py,sha256=
|
1
|
+
femagtools/__init__.py,sha256=kRVLeU7jCmB8MUrNUdzChKl4fzai9F9XlN-SHUMQXTo,1600
|
2
2
|
femagtools/airgap.py,sha256=hELJXe52yUw82JwZ1tGUXUtRhMG2_WSUBVeGkTZSAM8,1900
|
3
3
|
femagtools/amazon.py,sha256=O1ICuv21XDAJi1qK1Sigs2TdS6hDZP19OzvmE2t76wU,12069
|
4
4
|
femagtools/amela.py,sha256=RFTuQ5EcX19G2YJchnktr6j62mNptrdTreShQDOeuKA,13874
|
@@ -13,11 +13,11 @@ femagtools/dakota.py,sha256=L2zZdACdhso7szwN_s5tsmeEbcuUygE2JK4SxwtL79w,6901
|
|
13
13
|
femagtools/dakota_femag.py,sha256=ipmMUMTK1mvMpfHJJjwHa_4kx7BItYO3ha8MeYJTyy8,4068
|
14
14
|
femagtools/dakotaout.py,sha256=6nn0PXsB40mPKiQLenqAtHy0KXCO7kvqqQ-aD2JhQvw,5573
|
15
15
|
femagtools/docker.py,sha256=XDVmLBB0z4sZZpcrx7Wbm84xl4ksj7aqn5-ZOPxdxm4,7460
|
16
|
-
femagtools/ecloss.py,sha256=
|
16
|
+
femagtools/ecloss.py,sha256=kTsE9Lx6nt6Ez9PBfD58hPMcnH2PxSc95zJaYMCQd5Q,33957
|
17
17
|
femagtools/erg.py,sha256=IXKq76P9qLt_ssNOP78v8Qizk3J2Zg80yaKDSjzwoJE,1224
|
18
|
-
femagtools/femag.py,sha256=
|
18
|
+
femagtools/femag.py,sha256=m8mfMjzjkL_R-iqyInxM7y7F4jgKg6ZI7FfTQlbxtng,46988
|
19
19
|
femagtools/forcedens.py,sha256=7NNv75Vg9vQ_fy8W4kM2rlSO970zaSmeurhPmdAxsOU,8485
|
20
|
-
femagtools/fsl.py,sha256=
|
20
|
+
femagtools/fsl.py,sha256=PU4t8wBvtVckv4f8ozg5_exxspuToW0W0O95jZZ5IU4,36924
|
21
21
|
femagtools/getset.py,sha256=yJ6Em35DeWK7WNZW0qjjS5s7LUkVh5mbgxF59HHm5FM,3017
|
22
22
|
femagtools/gmsh.py,sha256=IKhNiviIBji4cMxAhxaYXNqBRMNAPSKsBGdnGyxkyQw,3903
|
23
23
|
femagtools/google.py,sha256=ugRyHY1zBjHR4aNfbA7GeF-ZU_NgleuVTZaWpi_XLT4,17144
|
@@ -29,9 +29,9 @@ femagtools/jhb.py,sha256=stJxkmzHpfUIBVcFw7jWbV5KN9_EFqzOCgacyhUqWvM,1779
|
|
29
29
|
femagtools/job.py,sha256=sIRVXsyoupfRXqGsWyOHMetcKlWIyggxfVURjM8aD54,11322
|
30
30
|
femagtools/losscoeffs.py,sha256=Nil2fvkkS6-T29OnHIsdVbegCHyl23iZg8rMVbbA5wY,6785
|
31
31
|
femagtools/magnet.py,sha256=Nuk060bT4Wa3lX74HdefqTTtUxLaERDSBYTTpbi6KP4,1093
|
32
|
-
femagtools/mcv.py,sha256=
|
32
|
+
femagtools/mcv.py,sha256=CAv-8bRm9aQJR5LVVXuLGGw1id_uu0m-fMiPMYX9Z-o,40488
|
33
33
|
femagtools/me.py,sha256=z6RJkvSbgMmorCQTxKvq44uIYKh82uYYExjkNePJCmE,1813
|
34
|
-
femagtools/model.py,sha256=
|
34
|
+
femagtools/model.py,sha256=dk9x-iqRzgOTdTCeU_ynUZGb1bt4FvU1ZGMPXytMbUg,17965
|
35
35
|
femagtools/moproblem.py,sha256=kOP8pRdD8YXz28_M2WKnFgl3eeJ7tqg49ohoazsmUOg,2825
|
36
36
|
femagtools/multiproc.py,sha256=7mJF-VU1NrJkENyg8eHtDrDRNBwLPK43phZv3ehm9BU,8435
|
37
37
|
femagtools/mxw2msh.py,sha256=CIIqAvfs8U-A0OfuOAoDaqNSmoMSHSI_tW1CPFRCP5E,2151
|
@@ -39,7 +39,7 @@ femagtools/nc.py,sha256=bAj3iurE9WaovoCi76ry2aJZJ6rC1zO6xWrfsSD6lrc,15160
|
|
39
39
|
femagtools/netlist.py,sha256=CSCl8setLZ_L8DCnNWaNA3-wLe1yo-fmzARZoVvYfaA,2052
|
40
40
|
femagtools/ntib.py,sha256=76g1ZO3Fq_kN-HTMBvaKvJmMMlJMyEPFeNAcJPq3w7Y,3099
|
41
41
|
femagtools/opt.py,sha256=wBU0yh3hZlNti_zfIvtKcPg1EJrnE3I1BqmVxLGWixU,8753
|
42
|
-
femagtools/parstudy.py,sha256=
|
42
|
+
femagtools/parstudy.py,sha256=OXAqRGSvOZHNZTx_bXSgXpKv_ABB6zHOU-dJLJjrhBI,19464
|
43
43
|
femagtools/poc.py,sha256=wMwOxMhPLFRiGPMsKQwWWuGr6UZPzRBajhfVMfXptNU,6794
|
44
44
|
femagtools/tks.py,sha256=xStMu6P1xsc36tS53FKnbL6i2ZTVnCNXyTVw8_gjepo,7436
|
45
45
|
femagtools/ts.py,sha256=x9aCMVASjdBZuyI2pJGMyi1dveGFd_pWQ20cZ-l_moc,47216
|
@@ -48,32 +48,32 @@ femagtools/vbf.py,sha256=9XGfhftmD9carU8ByQ5DwqoR4daq5mJ39eMqruwml0Q,2444
|
|
48
48
|
femagtools/vtu.py,sha256=Sf83dHIfCKY2km-MIUHKKoj-JKN4PDX7kkPLZXyIYY4,10723
|
49
49
|
femagtools/windings.py,sha256=OYoEFIQci3f3sYJkcyRjBpBpDRtX2Y2aHZiRXOEgsls,23497
|
50
50
|
femagtools/dxfsl/__init__.py,sha256=MywcCdpKPKs4qJBJJgeDsikJFJ2P48dbTuNk303f5pM,76
|
51
|
-
femagtools/dxfsl/area.py,sha256=
|
52
|
-
femagtools/dxfsl/areabuilder.py,sha256=
|
51
|
+
femagtools/dxfsl/area.py,sha256=C0mPWeer2kleh3x5GHibMSjegEjfmEZHTHTB9WVHIPg,67005
|
52
|
+
femagtools/dxfsl/areabuilder.py,sha256=6dfWryYjXzGIVDOsX2zb1VKIhUzmpL43XhF-wtdesAg,35882
|
53
53
|
femagtools/dxfsl/concat.py,sha256=F6scwesxyOmfmKQ5kGspNCxA71Yz6QgxFL7lTj3hsaI,13385
|
54
|
-
femagtools/dxfsl/conv.py,sha256
|
55
|
-
femagtools/dxfsl/converter.py,sha256=
|
54
|
+
femagtools/dxfsl/conv.py,sha256=-d03mQiDWF_MD4T0TIH7k-zNa6p7w9rtc6QE2Bz1Q7s,10362
|
55
|
+
femagtools/dxfsl/converter.py,sha256=YXesbeqHbwtr97xPMJTNSsxe_kVJycJQfrKrIQVoJQw,36425
|
56
56
|
femagtools/dxfsl/corner.py,sha256=-XPBcnEau-2-SRHLYzlBqCQGaFfgm_DH2qR1mSaFoAs,1311
|
57
57
|
femagtools/dxfsl/dumprenderer.py,sha256=n4AvInjvGIaC2iKZtQaYXXDyJVSQ3uEOFOLD4-xfKRY,1861
|
58
58
|
femagtools/dxfsl/dxfparser.py,sha256=kyXG0kZfNyOgn96MqBgP8RhOQhppfB5NbyRNNybs1C0,13451
|
59
59
|
femagtools/dxfsl/femparser.py,sha256=O8940Q1Mz8MKng6W8M3s9KfTvhDLJ56tfQWtZEW3xMM,2134
|
60
|
-
femagtools/dxfsl/fslrenderer.py,sha256=
|
60
|
+
femagtools/dxfsl/fslrenderer.py,sha256=d2a_HXml2CqS8FkmSbFXsUtOLIfSI14C4qGQd0Xj-c4,27961
|
61
61
|
femagtools/dxfsl/functions.py,sha256=teJHtVxoViGs66AB8_4BxRrFQx9SbPT2azIrKyhJHOc,12005
|
62
|
-
femagtools/dxfsl/geom.py,sha256=
|
62
|
+
femagtools/dxfsl/geom.py,sha256=CuaW4aa0Xb3dTYX_HSHpMxqOXGztT35_ISHh0Dj-FJE,173525
|
63
63
|
femagtools/dxfsl/journal.py,sha256=4LMSW5wCYlETzid6SIF8b5DH-DCgtH4nFx-xIxjtbfg,4265
|
64
|
-
femagtools/dxfsl/machine.py,sha256=
|
64
|
+
femagtools/dxfsl/machine.py,sha256=8KG0jIcK7vYFTXqIwYNOecGaYgvhZ9UjrRHJQZ9kjHE,56514
|
65
65
|
femagtools/dxfsl/plotrenderer.py,sha256=q2cORuxJEf1Ws6oCY9c0gF6N3kDrcI6WOz3u5Vl6R_c,13823
|
66
|
-
femagtools/dxfsl/shape.py,sha256
|
67
|
-
femagtools/dxfsl/svgparser.py,sha256=
|
68
|
-
femagtools/dxfsl/symmetry.py,sha256=
|
69
|
-
femagtools/machine/__init__.py,sha256=
|
70
|
-
femagtools/machine/afpm.py,sha256=
|
66
|
+
femagtools/dxfsl/shape.py,sha256=-hUphAYwhja_6FyWHjUbBlNSPh6tWZCKYdz7aDplqWk,61566
|
67
|
+
femagtools/dxfsl/svgparser.py,sha256=RY2TU9MK6gOaNmI6w6RNqcw7H9YGmK-NUwvdylKBcsE,3763
|
68
|
+
femagtools/dxfsl/symmetry.py,sha256=DPZ-y-UjEshNlOdC90kGhpAitsIwrvCN6gZeNGp5DJU,41120
|
69
|
+
femagtools/machine/__init__.py,sha256=B7yeRZzf29NWCWy8C8iJFdTr9bszAoMRcVEpblhCeg4,7256
|
70
|
+
femagtools/machine/afpm.py,sha256=wMyfdGDaBAt6knDSzw04Oxy_oDuBCEi06f6WaKZoRGw,25918
|
71
71
|
femagtools/machine/effloss.py,sha256=GV_bc5f1ysBi1Ng7FR3fD1xh5KXa6ACc55iWfsltMBI,13663
|
72
72
|
femagtools/machine/im.py,sha256=3Y54AHMZfAjkvgexx2E-5jxNWzaVQ-SyaETCh7gNBYA,38008
|
73
73
|
femagtools/machine/pm.py,sha256=C4vDdPIsIRUKtzY3b1RNT1v37p1uP3pMUduftNejcPc,68129
|
74
|
-
femagtools/machine/sizing.py,sha256=
|
75
|
-
femagtools/machine/sm.py,sha256=
|
76
|
-
femagtools/machine/utils.py,sha256=
|
74
|
+
femagtools/machine/sizing.py,sha256=YhsT5Iki7_zW1BBKB1dD_q6qHI-kvjb3_68881Q71LU,30039
|
75
|
+
femagtools/machine/sm.py,sha256=Y6g4KPm-2bhzMYjGarojokEzaNgOmFR2G4DIKBtVQOs,39210
|
76
|
+
femagtools/machine/utils.py,sha256=VswrQuGB_uGE4cYWIQSXLSEVJKrmSwNJdGlme7RPEno,20912
|
77
77
|
femagtools/moo/__init__.py,sha256=zinmWEOrsEz6DmMX0Dbn4t6_1UR-p4bEGqyR1wUQk_Q,175
|
78
78
|
femagtools/moo/algorithm.py,sha256=e-Cgp2rp_hG9DXqWqluzQGNIWvCfthUgLD8O-aVPofA,5763
|
79
79
|
femagtools/moo/population.py,sha256=krIl8tOJXPhCgBemkqn-jwvZg1VzsGniqMN_KAFxbuw,10203
|
@@ -88,12 +88,12 @@ femagtools/plot/fieldlines.py,sha256=_7ykKhnQLeS4fz34pnzovH1gIhcUSKJ3gl1GUgWYix8
|
|
88
88
|
femagtools/plot/fluxdens.py,sha256=NlexRJ3f_8CgKoWrV82ZIsAXPrLhwj98uOe8_fUks7A,1082
|
89
89
|
femagtools/plot/forcedens.py,sha256=Vloi9czy7qbGXI-Vm7Cow6IfHTsFhCLI1YWduFOR55c,4075
|
90
90
|
femagtools/plot/mcv.py,sha256=ijZg6KPwZC7sDxEzGEUfVWvDoSEfgcaH-hzQMt7E90I,3671
|
91
|
-
femagtools/plot/nc.py,sha256=
|
91
|
+
femagtools/plot/nc.py,sha256=kfTifzAMReQZu4UmbHZo1caAK0n7N51lkPj7BU7l1lU,10876
|
92
92
|
femagtools/plot/phasor.py,sha256=5QG1GkXKVksc8P6Q4thKADf6W1l8rDKeArIHFYvbXlw,4858
|
93
93
|
femagtools/plot/wdg.py,sha256=Orw2XGThHpOuJ_raSRnQTzj5tOmwllNWweByoOXbA7I,9820
|
94
94
|
femagtools/svgfsl/converter.py,sha256=5q4LognshXNTpUWLnU5rtgCfAwZnEuPzqsgyeRYC-VM,3019
|
95
95
|
femagtools/templates/FE-losses.mako,sha256=Rql5_8Q6_uthpr-uFXMUo7tdHehfZYND-7M-ohJXVU8,874
|
96
|
-
femagtools/templates/afm_rotor.mako,sha256=
|
96
|
+
femagtools/templates/afm_rotor.mako,sha256=4yoEA4fOq9FRcwxOMRw1oX4Bs_jcrtyHOY6kHPYJ5MY,3175
|
97
97
|
femagtools/templates/afm_stator.mako,sha256=l1xEwxffZ1jyx5wuJ3rhVbVlZirJzD2K8n4i5Dvbxuc,5344
|
98
98
|
femagtools/templates/airgapinduc.mako,sha256=aCMLZ7P4vjeSGikIetkwymgDjESdftPN_aYx2LfjfsY,246
|
99
99
|
femagtools/templates/asyn_motor.mako,sha256=vvZ0SIJj4ORaCbE1Hl5NeCU_j2CWdOltVpSKP7ESJTQ,2879
|
@@ -143,7 +143,7 @@ femagtools/templates/plots.mako,sha256=6xfmncVbzDiJLF6V0B6fha23H19R7P26DvcTTwzJ5
|
|
143
143
|
femagtools/templates/pm_sym_f_cur.mako,sha256=KlskcNx5Y_HNwt2crA7CqHN5TIaKBb14T6cFg2vghl0,1464
|
144
144
|
femagtools/templates/pm_sym_fast.mako,sha256=NOSbuWSEM2XGY5-JweGxSr32mXGBVSas_aSOQyK4uEU,2361
|
145
145
|
femagtools/templates/pm_sym_loss.mako,sha256=dh0o3ZamZuWs7sHc-jS7ohKsqeZCA0tRaqkaFmXlRS0,1009
|
146
|
-
femagtools/templates/prepare_thermal.mako,sha256=
|
146
|
+
femagtools/templates/prepare_thermal.mako,sha256=V3W6BGW7gjY8Lg2qzvGDi8rxx3JvPzrWoABDvHKyq54,9539
|
147
147
|
femagtools/templates/psd_psq_fast.mako,sha256=7DQUZI6KOjdKQMFLKySGUlWXo4U_rZuHXFzLxiA1GGc,1339
|
148
148
|
femagtools/templates/ring.mako,sha256=Cuc_FuCPWZM-g3TxHqzTdjknYEJSUgP-y64gp8pekDI,643
|
149
149
|
femagtools/templates/rot_hsm.mako,sha256=eh50TbpWNUALK9_7wOOJ7KPewHos7JExAfMACbPlXYc,973
|
@@ -188,7 +188,7 @@ tests/test_losscoeffs.py,sha256=3EKmDFRuvn88z_8r0HxKFdB0lNXNnhEgaFshL8BkDjE,2012
|
|
188
188
|
tests/test_machine.py,sha256=Woha6nfKaYQCxxoG57sUztpnpU6K9imXwn9B_KMhanw,12906
|
189
189
|
tests/test_magncurv.py,sha256=wPf1dNACZ1BkqKHSqJxiNi6Dq8JP3QCRBY4ql_0YCyU,2608
|
190
190
|
tests/test_magnet.py,sha256=BUHG_8SEi4d8j6yV9BSzcpYc2-UVMRFv50P_jgTTXoQ,276
|
191
|
-
tests/test_mcv.py,sha256=
|
191
|
+
tests/test_mcv.py,sha256=cPgijMjDxSt1CwN6syE4r4WWAlUSruZDQsTK_oNhfg4,4570
|
192
192
|
tests/test_mcvreader.py,sha256=3cgq22b_iaWLrs4WWOUNHqJREnv0YoFivNpAb4teEJs,2118
|
193
193
|
tests/test_me.py,sha256=En00OrOhZclBO4u74q5Os0FgVP4TGFLzz99LF0QHXHA,196
|
194
194
|
tests/test_model.py,sha256=kYjjFgZPIex3foX3skiOdD5MCcmA2JP7oDDuE9txv_U,2698
|
@@ -213,9 +213,9 @@ tests/moo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
213
213
|
tests/moo/test_algorithm.py,sha256=Em8sFm2vzPmuIzRrBBnUQLU_TYuJHSf-kEeozw0XeX4,2563
|
214
214
|
tests/moo/test_population.py,sha256=FvX9LRCxQx0_E2GxHQ5vKwOYFBQiNbT6Lmv5GmNWjTQ,5471
|
215
215
|
tests/moo/test_problem.py,sha256=ALeP4u7g-dFhfwWL8vxivdrrYzVKPjHMCAXzzgyNZbs,467
|
216
|
-
femagtools-1.8.
|
217
|
-
femagtools-1.8.
|
218
|
-
femagtools-1.8.
|
219
|
-
femagtools-1.8.
|
220
|
-
femagtools-1.8.
|
221
|
-
femagtools-1.8.
|
216
|
+
femagtools-1.8.2.dist-info/LICENSE,sha256=NaQe4uvkszQPJmiRPHecfk-Ab9VSRXo8xQLGNVHTeFo,1362
|
217
|
+
femagtools-1.8.2.dist-info/METADATA,sha256=yH0fPdMTzP_mojxKfekWdoGkrj_tvA0WrEpRVt_XYlc,6198
|
218
|
+
femagtools-1.8.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
219
|
+
femagtools-1.8.2.dist-info/entry_points.txt,sha256=jrvOkZPiN44u1sASeu271VRaVIv5V-uRpN0_N5U_R8c,248
|
220
|
+
femagtools-1.8.2.dist-info/top_level.txt,sha256=Ri4YWtU8MZTzNje9IKyXhTakNbsrCynuWdon4Yq94Dc,17
|
221
|
+
femagtools-1.8.2.dist-info/RECORD,,
|
tests/test_mcv.py
CHANGED
@@ -33,7 +33,7 @@ def test_write_mcv_orient_crv(tmpdir):
|
|
33
33
|
mcvr = femagtools.mcv.Reader()
|
34
34
|
mcvr.readMcv(filename+ext)
|
35
35
|
assert mcvr['version_mc_curve'] == 1
|
36
|
-
assert mcvr['ctype'] == femagtools.mcv.
|
36
|
+
assert mcvr['ctype'] == femagtools.mcv.MAGCRV
|
37
37
|
assert mcvr['curve'][0]['bi'] == pytest.approx(B, 1e-3)
|
38
38
|
assert mcvr['curve'][0]['hi'] == pytest.approx(H, 1e-3)
|
39
39
|
assert mcvr['curve'][1]['bi'] == pytest.approx(B, 1e-3)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|