@@ -185,11 +185,12 @@ def test_02_hfss_export_results(self, hfss_app):
185
185
assert len (exported_files ) > 0
186
186
187
187
fld_file1 = os .path .join (self .local_scratch .path , "test_fld_hfss1.fld" )
188
- assert hfss_app .post .export_field_file (quantity = "Mag_E" , file_name = fld_file1 , objects = "Box1" , intrinsics = "1GHz " ,
189
- phase = "5deg" )
188
+ assert hfss_app .post .export_field_file (quantity = "Mag_E" , output_dir = fld_file1 , assignment = "Box1" ,
189
+ intrinsics = "1GHz" , phase = "5deg" )
190
190
assert os .path .exists (fld_file1 )
191
191
fld_file2 = os .path .join (self .local_scratch .path , "test_fld_hfss2.fld" )
192
- assert hfss_app .post .export_field_file (quantity = "Mag_E" , file_name = fld_file2 , objects = "Box1" , intrinsics = "1GHz" )
192
+ assert hfss_app .post .export_field_file (quantity = "Mag_E" , output_dir = fld_file2 , assignment = "Box1" ,
193
+ intrinsics = "1GHz" )
193
194
assert os .path .exists (fld_file2 )
194
195
195
196
def test_03a_icepak_analyze_and_export_summary (self ):
@@ -291,26 +292,26 @@ def test_03d_icepak_eval_tempc(self):
291
292
def test_03e_icepak_ExportFLDFil (self ):
292
293
fld_file = os .path .join (self .local_scratch .path , "test_fld.fld" )
293
294
self .icepak_app .post .export_field_file (quantity = "Temp" , solution = self .icepak_app .nominal_sweep , variations = {},
294
- file_name = fld_file , objects = "box" )
295
+ output_dir = fld_file , assignment = "box" )
295
296
assert os .path .exists (fld_file )
296
297
fld_file_1 = os .path .join (self .local_scratch .path , "test_fld_1.fld" )
297
298
sample_points_file = os .path .join (local_path , "example_models" , test_subfolder , "temp_points.pts" )
298
299
self .icepak_app .post .export_field_file (quantity = "Temp" , solution = self .icepak_app .nominal_sweep ,
299
300
variations = self .icepak_app .available_variations .nominal_w_values_dict ,
300
- file_name = fld_file_1 , objects = "box" ,
301
+ output_dir = fld_file_1 , assignment = "box" ,
301
302
sample_points_file = sample_points_file )
302
303
assert os .path .exists (fld_file_1 )
303
304
fld_file_2 = os .path .join (self .local_scratch .path , "test_fld_2.fld" )
304
305
self .icepak_app .post .export_field_file (quantity = "Temp" , solution = self .icepak_app .nominal_sweep ,
305
306
variations = self .icepak_app .available_variations .nominal_w_values_dict ,
306
- file_name = fld_file_2 , objects = "box" ,
307
+ output_dir = fld_file_2 , assignment = "box" ,
307
308
sample_points = [[0 , 0 , 0 ], [3 , 6 , 8 ], [4 , 7 , 9 ]])
308
309
assert os .path .exists (fld_file_2 )
309
310
cs = self .icepak_app .modeler .create_coordinate_system ()
310
311
fld_file_3 = os .path .join (self .local_scratch .path , "test_fld_3.fld" )
311
312
self .icepak_app .post .export_field_file (quantity = "Temp" , solution = self .icepak_app .nominal_sweep ,
312
313
variations = self .icepak_app .available_variations .nominal_w_values_dict ,
313
- file_name = fld_file_3 , objects = "box" ,
314
+ output_dir = fld_file_3 , assignment = "box" ,
314
315
sample_points = [[0 , 0 , 0 ], [3 , 6 , 8 ], [4 , 7 , 9 ]],
315
316
reference_coordinate_system = cs .name , export_in_si_system = False ,
316
317
export_field_in_reference = False )
@@ -415,17 +416,18 @@ def test_07_export_maxwell_fields(self, m3dtransient):
415
416
m3dtransient .analyze (m3dtransient .active_setup , num_cores = 2 )
416
417
fld_file_3 = os .path .join (self .local_scratch .path , "test_fld_3.fld" )
417
418
assert m3dtransient .post .export_field_file (quantity = "Mag_B" , solution = m3dtransient .nominal_sweep , variations = {},
418
- file_name = fld_file_3 , objects = "Coil_A2" , objects_type = "Surf" ,
419
+ output_dir = fld_file_3 , assignment = "Coil_A2" , objects_type = "Surf" ,
419
420
intrinsics = "10ms" )
420
421
assert os .path .exists (fld_file_3 )
421
422
fld_file_4 = os .path .join (self .local_scratch .path , "test_fld_4.fld" )
422
423
assert not m3dtransient .post .export_field_file (quantity = "Mag_B" , solution = m3dtransient .nominal_sweep ,
423
424
variations = m3dtransient .available_variations .nominal_w_values_dict ,
424
- file_name = fld_file_4 , objects = "Coil_A2" , objects_type = "invalid" )
425
+ output_dir = fld_file_4 , assignment = "Coil_A2" ,
426
+ objects_type = "invalid" )
425
427
setup = m3dtransient .setups [0 ]
426
428
m3dtransient .setups [0 ].delete ()
427
- assert not m3dtransient .post .export_field_file (quantity = "Mag_B" , variations = {}, file_name = fld_file_4 ,
428
- objects = "Coil_A2" )
429
+ assert not m3dtransient .post .export_field_file (quantity = "Mag_B" , variations = {}, output_dir = fld_file_4 ,
430
+ assignment = "Coil_A2" )
429
431
430
432
new_setup = m3dtransient .create_setup (name = setup .name , setup_type = setup .setuptype )
431
433
new_setup .props = setup .props
0 commit comments