ansys-fluent-core 0.28.2__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 (103) 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/fluent_version_252.py +3 -3
  8. ansys/fluent/core/generated/solver/settings_252.py +251 -160
  9. ansys/fluent/core/generated/solver/settings_252.pyi +146 -54
  10. ansys/fluent/core/generated/solver/tui_252.py +48 -24
  11. ansys/fluent/core/launcher/container_launcher.py +4 -3
  12. ansys/fluent/core/launcher/fluent_container.py +22 -19
  13. ansys/fluent/core/launcher/launcher.py +2 -2
  14. ansys/fluent/core/launcher/pim_launcher.py +2 -2
  15. ansys/fluent/core/launcher/slurm_launcher.py +2 -2
  16. ansys/fluent/core/launcher/standalone_launcher.py +2 -2
  17. ansys/fluent/core/logging.py +2 -0
  18. ansys/fluent/core/logging_config.yaml +3 -0
  19. ansys/fluent/core/services/datamodel_se.py +4 -1
  20. ansys/fluent/core/services/field_data.py +252 -0
  21. ansys/fluent/core/services/interceptors.py +28 -2
  22. ansys/fluent/core/session.py +7 -2
  23. ansys/fluent/core/session_solver.py +21 -0
  24. {ansys_fluent_core-0.28.2.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/LICENSE +1 -1
  25. {ansys_fluent_core-0.28.2.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/METADATA +53 -32
  26. {ansys_fluent_core-0.28.2.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/RECORD +61 -137
  27. {ansys_fluent_core-0.28.2.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/WHEEL +1 -1
  28. ansys/fluent/core/docs/README.rst +0 -155
  29. ansys/fluent/tests/conftest.py +0 -415
  30. ansys/fluent/tests/fluent_fixtures.py +0 -195
  31. ansys/fluent/tests/integration/test_optislang/test_optislang_integration.py +0 -263
  32. ansys/fluent/tests/parametric/test_local_parametric_run.py +0 -36
  33. ansys/fluent/tests/parametric/test_local_parametric_setup.py +0 -34
  34. ansys/fluent/tests/parametric/test_parametric_workflow.py +0 -279
  35. ansys/fluent/tests/test_aero_session.py +0 -88
  36. ansys/fluent/tests/test_batch_ops.py +0 -39
  37. ansys/fluent/tests/test_builtin_settings.py +0 -761
  38. ansys/fluent/tests/test_cad_to_post_ftm.py +0 -525
  39. ansys/fluent/tests/test_cad_to_post_wtm.py +0 -250
  40. ansys/fluent/tests/test_casereader.py +0 -324
  41. ansys/fluent/tests/test_codegen.py +0 -783
  42. ansys/fluent/tests/test_creatable.py +0 -31
  43. ansys/fluent/tests/test_data_model_cache.py +0 -434
  44. ansys/fluent/tests/test_datamodel_api.py +0 -429
  45. ansys/fluent/tests/test_datamodel_service.py +0 -814
  46. ansys/fluent/tests/test_datareader.py +0 -103
  47. ansys/fluent/tests/test_error_handling.py +0 -24
  48. ansys/fluent/tests/test_events_manager.py +0 -214
  49. ansys/fluent/tests/test_field_data.py +0 -466
  50. ansys/fluent/tests/test_file_session.py +0 -355
  51. ansys/fluent/tests/test_file_transfer_service.py +0 -165
  52. ansys/fluent/tests/test_fix_doc.py +0 -29
  53. ansys/fluent/tests/test_flobject.py +0 -1235
  54. ansys/fluent/tests/test_fluent_fixes.py +0 -106
  55. ansys/fluent/tests/test_fluent_session.py +0 -270
  56. ansys/fluent/tests/test_fluent_version.py +0 -66
  57. ansys/fluent/tests/test_fluent_version_marker.py +0 -65
  58. ansys/fluent/tests/test_icing_session.py +0 -9
  59. ansys/fluent/tests/test_launcher.py +0 -529
  60. ansys/fluent/tests/test_launcher_remote.py +0 -272
  61. ansys/fluent/tests/test_lispy.py +0 -40
  62. ansys/fluent/tests/test_logging.py +0 -16
  63. ansys/fluent/tests/test_mapped_api.py +0 -766
  64. ansys/fluent/tests/test_meshing_utilities.py +0 -2436
  65. ansys/fluent/tests/test_meshing_workflow.py +0 -421
  66. ansys/fluent/tests/test_meshingmode/test_meshing_launch.py +0 -168
  67. ansys/fluent/tests/test_new_meshing_workflow.py +0 -1801
  68. ansys/fluent/tests/test_preferences.py +0 -89
  69. ansys/fluent/tests/test_pure_mesh_vs_mesh_workflow.py +0 -101
  70. ansys/fluent/tests/test_reduction.py +0 -484
  71. ansys/fluent/tests/test_rp_vars.py +0 -77
  72. ansys/fluent/tests/test_scheduler.py +0 -471
  73. ansys/fluent/tests/test_scheme_eval_222.py +0 -338
  74. ansys/fluent/tests/test_scheme_eval_231.py +0 -243
  75. ansys/fluent/tests/test_search.py +0 -344
  76. ansys/fluent/tests/test_session.py +0 -594
  77. ansys/fluent/tests/test_settings_api.py +0 -606
  78. ansys/fluent/tests/test_settings_reader.py +0 -85
  79. ansys/fluent/tests/test_slurm_future.py +0 -67
  80. ansys/fluent/tests/test_solution_variables.py +0 -241
  81. ansys/fluent/tests/test_solver_monitors.py +0 -83
  82. ansys/fluent/tests/test_solvermode/boundaries_periodic_expDict +0 -1712
  83. ansys/fluent/tests/test_solvermode/test_boundaries.py +0 -127
  84. ansys/fluent/tests/test_solvermode/test_calculationactivities.py +0 -20
  85. ansys/fluent/tests/test_solvermode/test_controls.py +0 -131
  86. ansys/fluent/tests/test_solvermode/test_general.py +0 -109
  87. ansys/fluent/tests/test_solvermode/test_initialization.py +0 -83
  88. ansys/fluent/tests/test_solvermode/test_materials.py +0 -40
  89. ansys/fluent/tests/test_solvermode/test_methods.py +0 -65
  90. ansys/fluent/tests/test_solvermode/test_models.py +0 -99
  91. ansys/fluent/tests/test_solvermode/test_named_expressions.py +0 -35
  92. ansys/fluent/tests/test_solvermode/test_post_vector.py +0 -22
  93. ansys/fluent/tests/test_solvermode/test_species_model.py +0 -67
  94. ansys/fluent/tests/test_streaming_services.py +0 -52
  95. ansys/fluent/tests/test_systemcoupling.py +0 -44
  96. ansys/fluent/tests/test_topy.py +0 -179
  97. ansys/fluent/tests/test_tui_api.py +0 -70
  98. ansys/fluent/tests/test_type_stub.py +0 -37
  99. ansys/fluent/tests/test_utils.py +0 -82
  100. ansys/fluent/tests/util/__init__.py +0 -36
  101. ansys/fluent/tests/util/meshing_workflow.py +0 -33
  102. ansys/fluent/tests/util/solver.py +0 -72
  103. ansys_fluent_core-0.28.2.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 11, 2025 20:07 UTC ShaID: 17ceff6"
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, 28, 2
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")