ansys-fluent-core 0.29.dev0__py3-none-any.whl → 0.29.dev1__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.

Potentially problematic release.


This version of ansys-fluent-core might be problematic. Click here for more details.

Files changed (107) hide show
  1. ansys/fluent/core/__init__.py +1 -1
  2. ansys/fluent/core/_version.py +2 -2
  3. ansys/fluent/core/codegen/tuigen.py +1 -1
  4. ansys/fluent/core/codegen/walk_api.py +45 -18
  5. ansys/fluent/core/generated/api_tree/api_objects.json +1 -1
  6. ansys/fluent/core/generated/datamodel_252/meshing.py +1 -0
  7. ansys/fluent/core/generated/datamodel_252/preferences.py +7 -0
  8. ansys/fluent/core/generated/fluent_version_252.py +3 -3
  9. ansys/fluent/core/generated/meshing/tui_252.py +395 -390
  10. ansys/fluent/core/generated/solver/settings_252.py +782 -306
  11. ansys/fluent/core/generated/solver/settings_252.pyi +442 -133
  12. ansys/fluent/core/generated/solver/tui_252.py +4046 -3737
  13. ansys/fluent/core/launcher/container_launcher.py +4 -3
  14. ansys/fluent/core/launcher/fluent_container.py +22 -19
  15. ansys/fluent/core/launcher/launcher.py +2 -2
  16. ansys/fluent/core/launcher/pim_launcher.py +2 -2
  17. ansys/fluent/core/launcher/slurm_launcher.py +2 -2
  18. ansys/fluent/core/launcher/standalone_launcher.py +2 -2
  19. ansys/fluent/core/logging.py +2 -0
  20. ansys/fluent/core/logging_config.yaml +3 -0
  21. ansys/fluent/core/services/app_utilities.py +2 -1
  22. ansys/fluent/core/services/datamodel_se.py +141 -61
  23. ansys/fluent/core/services/field_data.py +252 -0
  24. ansys/fluent/core/services/interceptors.py +28 -2
  25. ansys/fluent/core/session.py +7 -2
  26. ansys/fluent/core/session_solver.py +21 -0
  27. ansys/fluent/core/streaming_services/datamodel_event_streaming.py +12 -12
  28. {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/LICENSE +1 -1
  29. {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/METADATA +53 -31
  30. {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/RECORD +65 -141
  31. {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/WHEEL +1 -1
  32. ansys/fluent/core/docs/README.rst +0 -155
  33. ansys/fluent/tests/conftest.py +0 -415
  34. ansys/fluent/tests/fluent_fixtures.py +0 -195
  35. ansys/fluent/tests/integration/test_optislang/test_optislang_integration.py +0 -263
  36. ansys/fluent/tests/parametric/test_local_parametric_run.py +0 -36
  37. ansys/fluent/tests/parametric/test_local_parametric_setup.py +0 -34
  38. ansys/fluent/tests/parametric/test_parametric_workflow.py +0 -279
  39. ansys/fluent/tests/test_aero_session.py +0 -88
  40. ansys/fluent/tests/test_batch_ops.py +0 -39
  41. ansys/fluent/tests/test_builtin_settings.py +0 -761
  42. ansys/fluent/tests/test_cad_to_post_ftm.py +0 -525
  43. ansys/fluent/tests/test_cad_to_post_wtm.py +0 -250
  44. ansys/fluent/tests/test_casereader.py +0 -324
  45. ansys/fluent/tests/test_codegen.py +0 -783
  46. ansys/fluent/tests/test_creatable.py +0 -31
  47. ansys/fluent/tests/test_data_model_cache.py +0 -434
  48. ansys/fluent/tests/test_datamodel_api.py +0 -449
  49. ansys/fluent/tests/test_datamodel_service.py +0 -814
  50. ansys/fluent/tests/test_datareader.py +0 -103
  51. ansys/fluent/tests/test_error_handling.py +0 -24
  52. ansys/fluent/tests/test_events_manager.py +0 -214
  53. ansys/fluent/tests/test_field_data.py +0 -466
  54. ansys/fluent/tests/test_file_session.py +0 -355
  55. ansys/fluent/tests/test_file_transfer_service.py +0 -165
  56. ansys/fluent/tests/test_fix_doc.py +0 -29
  57. ansys/fluent/tests/test_flobject.py +0 -1235
  58. ansys/fluent/tests/test_fluent_fixes.py +0 -106
  59. ansys/fluent/tests/test_fluent_session.py +0 -270
  60. ansys/fluent/tests/test_fluent_version.py +0 -66
  61. ansys/fluent/tests/test_fluent_version_marker.py +0 -65
  62. ansys/fluent/tests/test_icing_session.py +0 -9
  63. ansys/fluent/tests/test_launcher.py +0 -529
  64. ansys/fluent/tests/test_launcher_remote.py +0 -272
  65. ansys/fluent/tests/test_lispy.py +0 -40
  66. ansys/fluent/tests/test_logging.py +0 -16
  67. ansys/fluent/tests/test_mapped_api.py +0 -774
  68. ansys/fluent/tests/test_meshing_utilities.py +0 -2436
  69. ansys/fluent/tests/test_meshing_workflow.py +0 -421
  70. ansys/fluent/tests/test_meshingmode/test_meshing_launch.py +0 -168
  71. ansys/fluent/tests/test_new_meshing_workflow.py +0 -1801
  72. ansys/fluent/tests/test_preferences.py +0 -89
  73. ansys/fluent/tests/test_pure_mesh_vs_mesh_workflow.py +0 -101
  74. ansys/fluent/tests/test_reduction.py +0 -484
  75. ansys/fluent/tests/test_rp_vars.py +0 -77
  76. ansys/fluent/tests/test_scheduler.py +0 -471
  77. ansys/fluent/tests/test_scheme_eval_222.py +0 -338
  78. ansys/fluent/tests/test_scheme_eval_231.py +0 -243
  79. ansys/fluent/tests/test_search.py +0 -344
  80. ansys/fluent/tests/test_session.py +0 -594
  81. ansys/fluent/tests/test_settings_api.py +0 -606
  82. ansys/fluent/tests/test_settings_reader.py +0 -85
  83. ansys/fluent/tests/test_slurm_future.py +0 -67
  84. ansys/fluent/tests/test_solution_variables.py +0 -241
  85. ansys/fluent/tests/test_solver_monitors.py +0 -83
  86. ansys/fluent/tests/test_solvermode/boundaries_periodic_expDict +0 -1712
  87. ansys/fluent/tests/test_solvermode/test_boundaries.py +0 -127
  88. ansys/fluent/tests/test_solvermode/test_calculationactivities.py +0 -20
  89. ansys/fluent/tests/test_solvermode/test_controls.py +0 -131
  90. ansys/fluent/tests/test_solvermode/test_general.py +0 -109
  91. ansys/fluent/tests/test_solvermode/test_initialization.py +0 -83
  92. ansys/fluent/tests/test_solvermode/test_materials.py +0 -40
  93. ansys/fluent/tests/test_solvermode/test_methods.py +0 -65
  94. ansys/fluent/tests/test_solvermode/test_models.py +0 -99
  95. ansys/fluent/tests/test_solvermode/test_named_expressions.py +0 -35
  96. ansys/fluent/tests/test_solvermode/test_post_vector.py +0 -22
  97. ansys/fluent/tests/test_solvermode/test_species_model.py +0 -67
  98. ansys/fluent/tests/test_streaming_services.py +0 -52
  99. ansys/fluent/tests/test_systemcoupling.py +0 -44
  100. ansys/fluent/tests/test_topy.py +0 -179
  101. ansys/fluent/tests/test_tui_api.py +0 -70
  102. ansys/fluent/tests/test_type_stub.py +0 -37
  103. ansys/fluent/tests/test_utils.py +0 -82
  104. ansys/fluent/tests/util/__init__.py +0 -36
  105. ansys/fluent/tests/util/meshing_workflow.py +0 -33
  106. ansys/fluent/tests/util/solver.py +0 -72
  107. ansys_fluent_core-0.29.dev0.dist-info/AUTHORS +0 -12
@@ -41,7 +41,7 @@ from ansys.fluent.core.warnings import ( # noqa: F401
41
41
  warning,
42
42
  )
43
43
 
44
- _VERSION_INFO = "Build date: January 03, 2025 11:52 UTC ShaID: 18593bb"
44
+ _VERSION_INFO = "Build date: January 20, 2025 10:29 UTC ShaID: 83c68c1"
45
45
  """Global variable indicating the version of the PyFluent package - Empty by default"""
46
46
 
47
47
  _THIS_DIRNAME = os.path.dirname(__file__)
@@ -6,13 +6,13 @@ version_info = 0, 1, 'dev0'
6
6
  """
7
7
 
8
8
  # major, minor, patch
9
- version_info = 0, 29, "dev0"
9
+ version_info = 0, 29, "dev1"
10
10
 
11
11
  # Nice string for the version
12
12
  __version__ = ".".join(map(str, version_info))
13
13
 
14
14
  # Current Fluent version
15
- fluent_release_version = "24.2.0"
15
+ fluent_release_version = "25.1.0"
16
16
 
17
17
  # Dev Fluent version
18
18
  fluent_dev_version = "25.2.0"
@@ -73,7 +73,7 @@ _XML_HELPSTRINGS = {}
73
73
 
74
74
  def _copy_tui_help_xml_file(version: str):
75
75
  if os.getenv("PYFLUENT_LAUNCH_CONTAINER") == "1":
76
- image_tag = os.getenv("FLUENT_IMAGE_TAG", "v24.2.0")
76
+ image_tag = os.getenv("FLUENT_IMAGE_TAG", "v25.1.0")
77
77
  image_name = f"ghcr.io/ansys/pyfluent:{image_tag}"
78
78
  container_name = uuid.uuid4().hex
79
79
  is_linux = platform.system() == "Linux"
@@ -8,18 +8,22 @@ Example
8
8
  >>> from ansys.fluent.core.codegen import walk_api
9
9
  >>> from ansys.fluent.core.generated.solver import settings_252
10
10
  >>> walk_api.walk_api(settings_252.root, lambda p: print(p), current_path=[])
11
+ >>> walk_api.walk_api(settings_252.root, lambda p, api_item_type: print(p, api_item_type), current_path=[])
11
12
 
12
13
  """
13
14
 
15
+ from inspect import signature
14
16
  from typing import List
15
17
 
16
18
 
17
- def walk_api(api_root_cls, on_each_path, current_path: str | List[str] = ""):
19
+ def walk_api(
20
+ api_cls, on_each_path, current_path: str | List[str] = "", api_item_type: str = ""
21
+ ):
18
22
  """
19
23
  Recursively traverse the API hierarchy, calling `on_each_path` for each item.
20
24
 
21
25
  Parameters:
22
- - api_root_cls: The root class of the API hierarchy.
26
+ - api_cls: The current class of the API hierarchy.
23
27
  - on_each_path: A callback function to call for each path.
24
28
  - current_path: The current path in the hierarchy (default: empty string).
25
29
  Paths can be either dot-separated strings or string lists. The type is
@@ -27,18 +31,14 @@ def walk_api(api_root_cls, on_each_path, current_path: str | List[str] = ""):
27
31
  """
28
32
  # Skip the root path
29
33
  if current_path:
30
- on_each_path(current_path)
34
+ if len(signature(on_each_path).parameters) == 2:
35
+ on_each_path(current_path, api_item_type)
36
+ else:
37
+ on_each_path(current_path)
31
38
 
32
- # Get child names and their respective classes
33
- all_names = [
34
- name
35
- for attr in ("child_names", "argument_names", "command_names", "query_names")
36
- for name in getattr(api_root_cls, attr, [])
37
- ]
38
- child_classes = getattr(api_root_cls, "_child_classes", {})
39
-
40
- # Traverse each child
41
- for child_name in all_names:
39
+ child_classes = getattr(api_cls, "_child_classes", {})
40
+
41
+ def _traverse(child_name, api_item_type):
42
42
  if child_name in child_classes:
43
43
  child_cls = child_classes[child_name]
44
44
  # Construct the new path
@@ -49,9 +49,36 @@ def walk_api(api_root_cls, on_each_path, current_path: str | List[str] = ""):
49
49
  f"{current_path}.{child_name}" if current_path else child_name
50
50
  )
51
51
  # Recursively walk the child
52
- walk_api(child_cls, on_each_path, new_path)
52
+ walk_api(child_cls, on_each_path, new_path, api_item_type)
53
+
54
+ # Delegate directly to any child_object_type (relevant for named objects)
55
+ child_object_type = getattr(api_cls, "child_object_type", None)
56
+ if child_object_type:
57
+ walk_api(child_cls, on_each_path, current_path, api_item_type)
58
+
59
+ # Get child names and their respective classes
60
+ if api_item_type == "method":
61
+ arg_names = [
62
+ name for attr in ("argument_names",) for name in getattr(api_cls, attr, [])
63
+ ]
64
+
65
+ for arg_name in arg_names:
66
+ _traverse(arg_name, api_item_type="argument")
67
+
68
+ else:
69
+
70
+ child_names = [
71
+ name for attr in ("child_names",) for name in getattr(api_cls, attr, [])
72
+ ]
73
+
74
+ for child_name in child_names:
75
+ _traverse(child_name, api_item_type="")
76
+
77
+ method_names = [
78
+ name
79
+ for attr in ("command_names", "query_names")
80
+ for name in getattr(api_cls, attr, [])
81
+ ]
53
82
 
54
- # Delegate directly to any child_object_type (relevant for named objects)
55
- child_object_type = getattr(api_root_cls, "child_object_type", None)
56
- if child_object_type:
57
- walk_api(child_cls, on_each_path, current_path)
83
+ for method_name in method_names:
84
+ _traverse(method_name, api_item_type="method")