@@ -290,29 +290,29 @@ def test_14_get_coreloss_coefficients(self):
290
290
mat = self .aedtapp .materials .add_material ("mat_test" )
291
291
# Test points_list_at_freq
292
292
coeff = self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
293
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
293
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
294
294
)
295
295
assert isinstance (coeff , list )
296
296
assert len (coeff ) == 3
297
297
assert all (isinstance (c , float ) for c in coeff )
298
298
coeff = self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
299
- points_list_at_freq = {"60Hz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
299
+ points_at_frequency = {"60Hz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
300
300
)
301
301
assert isinstance (coeff , list )
302
302
assert len (coeff ) == 3
303
303
assert all (isinstance (c , float ) for c in coeff )
304
304
coeff = self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
305
- points_list_at_freq = {"0.06kHz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
305
+ points_at_frequency = {"0.06kHz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
306
306
)
307
307
assert isinstance (coeff , list )
308
308
assert len (coeff ) == 3
309
309
assert all (isinstance (c , float ) for c in coeff )
310
310
with pytest .raises (TypeError ):
311
311
self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
312
- points_list_at_freq = [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]
312
+ points_at_frequency = [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]
313
313
)
314
314
coeff = self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
315
- points_list_at_freq = {
315
+ points_at_frequency = {
316
316
60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]],
317
317
100 : [[0 , 0 ], [1 , 8 ], [2 , 9 ]],
318
318
150 : [[0 , 0 ], [1 , 10 ], [2 , 19 ]],
@@ -323,45 +323,45 @@ def test_14_get_coreloss_coefficients(self):
323
323
assert all (isinstance (c , float ) for c in coeff )
324
324
# Test thickness
325
325
coeff = self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
326
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "0.6mm"
326
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "0.6mm"
327
327
)
328
328
assert isinstance (coeff , list )
329
329
assert len (coeff ) == 3
330
330
assert all (isinstance (c , float ) for c in coeff )
331
331
with pytest .raises (TypeError ):
332
332
self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
333
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "invalid"
333
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "invalid"
334
334
)
335
335
with pytest .raises (TypeError ):
336
336
self .aedtapp .materials ["mat_test" ].get_core_loss_coefficients (
337
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = 50
337
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = 50
338
338
)
339
339
340
340
def test_14_set_core_loss (self ):
341
341
mat = self .aedtapp .materials ["mat_test" ]
342
342
# Test points_list_at_freq
343
343
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
344
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
344
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
345
345
)
346
346
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
347
- points_list_at_freq = {"60Hz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
347
+ points_at_frequency = {"60Hz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
348
348
)
349
349
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
350
- points_list_at_freq = {"0.06kHz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
350
+ points_at_frequency = {"0.06kHz" : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}
351
351
)
352
352
with pytest .raises (TypeError ):
353
353
self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
354
- points_list_at_freq = [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]
354
+ points_at_frequency = [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]
355
355
)
356
356
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
357
- points_list_at_freq = {
357
+ points_at_frequency = {
358
358
60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]],
359
359
100 : [[0 , 0 ], [1 , 8 ], [2 , 9 ]],
360
360
150 : [[0 , 0 ], [1 , 10 ], [2 , 19 ]],
361
361
}
362
362
)
363
363
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
364
- points_list_at_freq = {
364
+ points_at_frequency = {
365
365
60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]],
366
366
100 : [[0 , 0 ], [1 , 8 ], [2 , 9 ]],
367
367
150 : [[0 , 0 ], [1 , 10 ], [2 , 19 ]],
@@ -370,17 +370,17 @@ def test_14_set_core_loss(self):
370
370
)
371
371
with pytest .raises (ValueError ):
372
372
self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
373
- points_list_at_freq = {80 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, core_loss_model_type = "Power Ferrite"
373
+ points_at_frequency = {80 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, core_loss_model_type = "Power Ferrite"
374
374
)
375
375
# Test thickness
376
376
assert self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
377
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "0.6mm"
377
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "0.6mm"
378
378
)
379
379
with pytest .raises (TypeError ):
380
380
self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
381
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "invalid"
381
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = "invalid"
382
382
)
383
383
with pytest .raises (TypeError ):
384
384
self .aedtapp .materials ["mat_test" ].set_coreloss_at_frequency (
385
- points_list_at_freq = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = 50
385
+ points_at_frequency = {60 : [[0 , 0 ], [1 , 3.5 ], [2 , 7.4 ]]}, thickness = 50
386
386
)
0 commit comments