fiqus 2025.1.1__py3-none-any.whl → 2025.10.0__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.
Files changed (56) hide show
  1. fiqus/MainFiQuS.py +4 -9
  2. fiqus/data/DataConductor.py +350 -301
  3. fiqus/data/DataFiQuS.py +42 -115
  4. fiqus/data/DataFiQuSCCT.py +150 -150
  5. fiqus/data/DataFiQuSConductor.py +97 -84
  6. fiqus/data/DataFiQuSConductorAC_Strand.py +701 -565
  7. fiqus/data/DataModelCommon.py +439 -0
  8. fiqus/data/DataMultipole.py +0 -13
  9. fiqus/data/DataRoxieParser.py +7 -0
  10. fiqus/data/DataWindingsCCT.py +37 -37
  11. fiqus/data/RegionsModelFiQuS.py +61 -104
  12. fiqus/geom_generators/GeometryCCT.py +904 -905
  13. fiqus/geom_generators/GeometryConductorAC_Strand.py +1863 -1391
  14. fiqus/geom_generators/GeometryMultipole.py +5 -4
  15. fiqus/geom_generators/GeometryPancake3D.py +1 -1
  16. fiqus/getdp_runners/RunGetdpCCT.py +13 -4
  17. fiqus/getdp_runners/RunGetdpConductorAC_Strand.py +341 -201
  18. fiqus/getdp_runners/RunGetdpPancake3D.py +2 -2
  19. fiqus/mains/MainConductorAC_Strand.py +141 -133
  20. fiqus/mains/MainMultipole.py +6 -5
  21. fiqus/mains/MainPancake3D.py +3 -4
  22. fiqus/mesh_generators/MeshCCT.py +209 -209
  23. fiqus/mesh_generators/MeshConductorAC_Strand.py +709 -656
  24. fiqus/mesh_generators/MeshMultipole.py +43 -46
  25. fiqus/mesh_generators/MeshPancake3D.py +7 -4
  26. fiqus/parsers/ParserDAT.py +16 -16
  27. fiqus/parsers/ParserGetDPOnSection.py +212 -212
  28. fiqus/parsers/ParserGetDPTimeTable.py +134 -134
  29. fiqus/parsers/ParserMSH.py +53 -53
  30. fiqus/parsers/ParserPOS.py +214 -214
  31. fiqus/parsers/ParserRES.py +142 -142
  32. fiqus/plotters/PlotPythonCCT.py +133 -133
  33. fiqus/plotters/PlotPythonConductorAC.py +1079 -855
  34. fiqus/plotters/PlotPythonMultipole.py +18 -18
  35. fiqus/post_processors/PostProcessCCT.py +444 -440
  36. fiqus/post_processors/PostProcessConductorAC.py +997 -49
  37. fiqus/post_processors/PostProcessMultipole.py +19 -19
  38. fiqus/pre_processors/PreProcessCCT.py +175 -175
  39. fiqus/pro_material_functions/ironBHcurves.pro +246 -246
  40. fiqus/pro_templates/combined/CCT_template.pro +275 -274
  41. fiqus/pro_templates/combined/ConductorAC_template.pro +1474 -1025
  42. fiqus/pro_templates/combined/Multipole_template.pro +22 -14
  43. fiqus/pro_templates/combined/Pancake3D_template.pro +128 -24
  44. fiqus/utils/Utils.py +12 -7
  45. {fiqus-2025.1.1.dist-info → fiqus-2025.10.0.dist-info}/METADATA +69 -66
  46. fiqus-2025.10.0.dist-info/RECORD +86 -0
  47. {fiqus-2025.1.1.dist-info → fiqus-2025.10.0.dist-info}/WHEEL +1 -1
  48. tests/test_geometry_generators.py +4 -0
  49. tests/test_mesh_generators.py +5 -0
  50. tests/test_solvers.py +41 -4
  51. tests/utils/fiqus_test_classes.py +15 -6
  52. tests/utils/generate_reference_files_ConductorAC.py +57 -57
  53. tests/utils/helpers.py +97 -97
  54. fiqus-2025.1.1.dist-info/RECORD +0 -85
  55. {fiqus-2025.1.1.dist-info → fiqus-2025.10.0.dist-info}/LICENSE.txt +0 -0
  56. {fiqus-2025.1.1.dist-info → fiqus-2025.10.0.dist-info}/top_level.txt +0 -0
fiqus/MainFiQuS.py CHANGED
@@ -405,15 +405,10 @@ class MainFiQuS:
405
405
  self.main_magnet.batch_post_process_python()
406
406
  os.chdir(self.start_folder)
407
407
 
408
- if self.file_name: json.dump(self.summary, open(f"{os.path.join(self.wrk_folder, self.file_name)}.json", 'w'))
409
- # mesh_par = self.fdm.magnet.mesh
410
- # if self.summary['solution_time']:
411
- # with open(r"C:\Users\avitrano\PycharmProjects\steam_sdk\tests\parsims\FiQuS_run\summary.dat", 'a') as f:
412
- # content = (f"{mesh_par.mesh_coil.SizeMin} {mesh_par.mesh_coil.SizeMax} {mesh_par.mesh_iron.SizeMin} {mesh_par.mesh_iron.SizeMax} "
413
- # f"{self.summary['solution_time']} {self.summary['overall_error']} {self.summary['overall_error'] * 0.999 + self.summary['solution_time'] * 0.001} "
414
- # f"{self.summary['SJ']} {self.summary['SICN']} {self.summary['SIGE']} {self.summary['Gamma']} "
415
- # f"{self.summary['nodes']} {self.summary['minimum_diff']} {self.summary['maximum_diff']}\n")
416
- # f.writelines(content)
408
+ if self.file_name:
409
+ file_path = os.path.join(self.wrk_folder, f"{self.file_name}.json")
410
+ with open(file_path, 'w', encoding='utf-8') as f:
411
+ json.dump(self.summary, f, indent=2)
417
412
 
418
413
  @staticmethod
419
414
  def add_to_run_log(path_to_csv, run_log_row):