ansys-fluent-core 0.20.dev5__py3-none-any.whl → 0.20.dev6__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 (35) hide show
  1. ansys/fluent/core/__init__.py +1 -1
  2. ansys/fluent/core/_version.py +1 -1
  3. ansys/fluent/core/data/api_tree_231.pickle +0 -0
  4. ansys/fluent/core/data/api_tree_232.pickle +0 -0
  5. ansys/fluent/core/data/api_tree_241.pickle +0 -0
  6. ansys/fluent/core/data/api_tree_242.pickle +0 -0
  7. ansys/fluent/core/launcher/launcher.py +3 -2
  8. ansys/fluent/core/meshing/faulttolerant.py +12 -21
  9. ansys/fluent/core/meshing/meshing_workflow.py +71 -33
  10. ansys/fluent/core/meshing/tui_231.py +7168 -7168
  11. ansys/fluent/core/meshing/tui_232.py +7588 -7588
  12. ansys/fluent/core/meshing/tui_241.py +7805 -7805
  13. ansys/fluent/core/meshing/tui_242.py +7764 -7764
  14. ansys/fluent/core/meshing/watertight.py +16 -30
  15. ansys/fluent/core/session.py +7 -27
  16. ansys/fluent/core/session_base_meshing.py +18 -6
  17. ansys/fluent/core/session_pure_meshing.py +6 -6
  18. ansys/fluent/core/session_pure_meshing.pyi +2 -2
  19. ansys/fluent/core/solver/tui_231.py +37494 -38175
  20. ansys/fluent/core/solver/tui_232.py +26414 -26414
  21. ansys/fluent/core/solver/tui_241.py +25865 -25865
  22. ansys/fluent/core/solver/tui_242.py +27770 -27770
  23. ansys/fluent/core/systemcoupling.py +12 -6
  24. ansys/fluent/core/utils/file_transfer_service.py +3 -9
  25. ansys/fluent/core/utils/search.py +2 -2
  26. ansys/fluent/core/workflow.py +11 -15
  27. ansys/fluent/tests/test_codegen.py +20 -0
  28. ansys/fluent/tests/test_meshing_workflow.py +1 -1
  29. ansys/fluent/tests/test_new_meshing_workflow.py +114 -18
  30. ansys/fluent/tests/test_settings_api.py +11 -8
  31. {ansys_fluent_core-0.20.dev5.dist-info → ansys_fluent_core-0.20.dev6.dist-info}/METADATA +1 -1
  32. {ansys_fluent_core-0.20.dev5.dist-info → ansys_fluent_core-0.20.dev6.dist-info}/RECORD +35 -34
  33. {ansys_fluent_core-0.20.dev5.dist-info → ansys_fluent_core-0.20.dev6.dist-info}/LICENSE +0 -0
  34. {ansys_fluent_core-0.20.dev5.dist-info → ansys_fluent_core-0.20.dev6.dist-info}/WHEEL +0 -0
  35. {ansys_fluent_core-0.20.dev5.dist-info → ansys_fluent_core-0.20.dev6.dist-info}/top_level.txt +0 -0
@@ -28,7 +28,7 @@ from ansys.fluent.core.utils.fluent_version import FluentVersion # noqa: F401
28
28
  from ansys.fluent.core.utils.search import search # noqa: F401
29
29
  from ansys.fluent.core.utils.setup_for_fluent import setup_for_fluent # noqa: F401
30
30
 
31
- _VERSION_INFO = "Build date: March 01, 2024 15:58 UTC ShaID: cb920a1"
31
+ _VERSION_INFO = "Build date: March 05, 2024 10:48 UTC ShaID: 7423526"
32
32
  """Global variable indicating the version of the PyFluent package - Empty by default"""
33
33
 
34
34
  _THIS_DIRNAME = os.path.dirname(__file__)
@@ -6,7 +6,7 @@ version_info = 0, 1, 'dev0'
6
6
  """
7
7
 
8
8
  # major, minor, patch
9
- version_info = 0, 20, "dev5"
9
+ version_info = 0, 20, "dev6"
10
10
 
11
11
  # Nice string for the version
12
12
  __version__ = ".".join(map(str, version_info))
Binary file
Binary file
Binary file
Binary file
@@ -41,8 +41,9 @@ def create_launcher(fluent_launch_mode: str = None, **kwargs):
41
41
 
42
42
  Parameters
43
43
  ----------
44
- fluent_launch_mode: LaunchMode
45
- Supported Fluent launch modes.
44
+ fluent_launch_mode: str
45
+ Supported Fluent launch modes. Options are ``"container"``,
46
+ ``"pim"``, ``"slurm"``, and ``"standalone"``.
46
47
 
47
48
  Returns
48
49
  -------
@@ -1,34 +1,25 @@
1
1
  """Fault-tolerant workflow module."""
2
2
 
3
- from ansys.fluent.core.launcher.launcher import launch_fluent
4
- from ansys.fluent.core.launcher.launcher_utils import FluentMode
3
+ from typing import Union
5
4
 
6
- from .meshing_workflow import EnhancedMeshingWorkflow
5
+ from ..session_meshing import Meshing
6
+ from ..session_pure_meshing import PureMeshing
7
+ from .meshing_workflow import FaultTolerantMeshingWorkflow
7
8
 
8
9
 
9
- def fault_tolerant_workflow(**launch_args) -> EnhancedMeshingWorkflow:
10
+ def fault_tolerant_workflow(
11
+ session: Union[Meshing, PureMeshing]
12
+ ) -> FaultTolerantMeshingWorkflow:
10
13
  """Meshing workflow wrapper, initialized as fault-tolerant.
11
14
 
12
15
  Parameters
13
16
  ----------
14
- launch_args
15
- Additional arguments forwarded to the launch_fluent function.
17
+ session: Union[Meshing, PureMeshing]
18
+ Meshing session object.
16
19
 
17
20
  Returns
18
21
  -------
19
- EnhancedMeshingWorkflow
20
- Meshing workflow wrapper.
22
+ FaultTolerantMeshingWorkflow
23
+ Fault-tolerant meshing workflow wrapper.
21
24
  """
22
- # TODO share launch code with watertight
23
- dynamic_interface = True
24
- if "dynamic_interface" in launch_args:
25
- dynamic_interface = launch_args["dynamic_interface"]
26
- del launch_args["dynamic_interface"]
27
- if "session" in launch_args:
28
- session = launch_args["session"]
29
- else:
30
- args = dict(mode=FluentMode.PURE_MESHING_MODE)
31
- args.update(launch_args)
32
- session = launch_fluent(**args)
33
- meshing_workflow = session.fault_tolerant(dynamic_interface=dynamic_interface)
34
- return meshing_workflow
25
+ return session.fault_tolerant()
@@ -6,7 +6,7 @@ from __future__ import annotations
6
6
  from typing import Optional
7
7
 
8
8
  from ansys.fluent.core.services.datamodel_se import PyMenuGeneric
9
- from ansys.fluent.core.workflow import ClassicWorkflow, EnhancedWorkflow
9
+ from ansys.fluent.core.workflow import ClassicWorkflow, Workflow
10
10
 
11
11
 
12
12
  class ClassicMeshingWorkflow(ClassicWorkflow):
@@ -17,7 +17,7 @@ class ClassicMeshingWorkflow(ClassicWorkflow):
17
17
  workflow: PyMenuGeneric,
18
18
  meshing: PyMenuGeneric,
19
19
  ) -> None:
20
- """Initialize MeshingWorkflow.
20
+ """Initialize ClassicMeshingWorkflow.
21
21
 
22
22
  Parameters
23
23
  ----------
@@ -29,7 +29,7 @@ class ClassicMeshingWorkflow(ClassicWorkflow):
29
29
  super().__init__(workflow=workflow, command_source=meshing)
30
30
 
31
31
 
32
- class EnhancedMeshingWorkflow(EnhancedWorkflow):
32
+ class MeshingWorkflow(Workflow):
33
33
  """Provides meshing specialization of the workflow wrapper that extends the core
34
34
  functionality in an object-oriented manner."""
35
35
 
@@ -37,8 +37,6 @@ class EnhancedMeshingWorkflow(EnhancedWorkflow):
37
37
  self,
38
38
  workflow: PyMenuGeneric,
39
39
  meshing: PyMenuGeneric,
40
- part_management: PyMenuGeneric,
41
- pm_file_management: PyMenuGeneric,
42
40
  ) -> None:
43
41
  """Initialize MeshingWorkflow.
44
42
 
@@ -47,43 +45,85 @@ class EnhancedMeshingWorkflow(EnhancedWorkflow):
47
45
  workflow : PyMenuGeneric
48
46
  Underlying workflow object.
49
47
  meshing : PyMenuGeneric
50
- Meshing object.
51
- part_management : PyMenuGeneric
52
- Part-management object.
53
- pm_file_management : PyMenuGeneric
54
- Part-management file-management object.
48
+ The meshing object.
55
49
  """
56
50
  super().__init__(workflow=workflow, command_source=meshing)
57
- self._is_ftm = False
58
- self._part_management = part_management
59
- self._pm_file_management = pm_file_management
60
51
 
61
- def watertight(self, dynamic_interface: bool) -> None:
62
- """Initialize a watertight workflow.
52
+
53
+ class WatertightMeshingWorkflow(MeshingWorkflow):
54
+ """Provides watertight meshing specialization of the workflow wrapper."""
55
+
56
+ def __init__(self, workflow: PyMenuGeneric, meshing: PyMenuGeneric) -> None:
57
+ """Initialize WatertightMeshingWorkflow.
63
58
 
64
59
  Parameters
65
60
  ----------
66
- dynamic_interface : bool
67
- xxx
61
+ workflow : PyMenuGeneric
62
+ The underlying workflow object.
63
+ meshing : PyMenuGeneric
64
+ The meshing object.
68
65
  """
66
+ super().__init__(workflow=workflow, meshing=meshing)
67
+ self._meshing = meshing
69
68
 
70
- self._new_workflow(
71
- name="Watertight Geometry", dynamic_interface=dynamic_interface
72
- )
73
- self._is_ftm = False
69
+ def reinitialize(self) -> None:
70
+ """Initialize a watertight workflow."""
71
+ self._new_workflow(name="Watertight Geometry")
74
72
 
75
- def fault_tolerant(self, dynamic_interface: bool):
76
- """Initialize a fault-tolerant workflow.
73
+ def __getattribute__(self, item: str):
74
+ if (
75
+ item != "reinitialize"
76
+ and not item.startswith("_")
77
+ and not self._meshing.GlobalSettings.EnableCleanCAD()
78
+ ):
79
+ raise RuntimeError(
80
+ "'Watertight' objects are inaccessible from 'Fault-tolerant' workflow."
81
+ )
82
+ return super().__getattribute__(item)
83
+
84
+
85
+ class FaultTolerantMeshingWorkflow(MeshingWorkflow):
86
+ """Provides fault-tolerant meshing specialization of the workflow wrapper."""
87
+
88
+ def __init__(
89
+ self,
90
+ workflow: PyMenuGeneric,
91
+ meshing: PyMenuGeneric,
92
+ part_management: PyMenuGeneric,
93
+ pm_file_management: PyMenuGeneric,
94
+ ) -> None:
95
+ """Initialize FaultTolerantMeshingWorkflow.
77
96
 
78
97
  Parameters
79
98
  ----------
80
- dynamic_interface : bool
81
- xxx
99
+ workflow : PyMenuGeneric
100
+ The underlying workflow object.
101
+ meshing : PyMenuGeneric
102
+ The meshing object.
103
+ part_management : PyMenuGeneric
104
+ The part-management object.
105
+ pm_file_management : PyMenuGeneric
106
+ The part-management file-management object.
82
107
  """
83
- self._new_workflow(
84
- "Fault-tolerant Meshing", dynamic_interface=dynamic_interface
85
- )
86
- self._is_ftm = True
108
+ super().__init__(workflow=workflow, meshing=meshing)
109
+ self._meshing = meshing
110
+ self._part_management = part_management
111
+ self._pm_file_management = pm_file_management
112
+
113
+ def reinitialize(self):
114
+ """Initialize a fault-tolerant workflow."""
115
+ self._new_workflow("Fault-tolerant Meshing")
116
+
117
+ def __getattribute__(self, item):
118
+ if (
119
+ item != "reinitialize"
120
+ and not item.startswith("_")
121
+ and not self._meshing.GlobalSettings.EnableComplexMeshing()
122
+ ):
123
+ raise RuntimeError(
124
+ "'Fault-tolerant' objects are inaccessible from 'Watertight' workflow."
125
+ )
126
+ return super().__getattribute__(item)
87
127
 
88
128
  @property
89
129
  def part_management(self) -> Optional[PyMenuGeneric]:
@@ -94,8 +134,7 @@ class EnhancedMeshingWorkflow(EnhancedWorkflow):
94
134
  Optional[PyMenuGeneric]
95
135
  Part-management.
96
136
  """
97
- if self._is_ftm:
98
- return self._part_management
137
+ return self._part_management
99
138
 
100
139
  @property
101
140
  def pm_file_management(self):
@@ -106,5 +145,4 @@ class EnhancedMeshingWorkflow(EnhancedWorkflow):
106
145
  Optional[PyMenuGeneric]
107
146
  Part-management file-management object .
108
147
  """
109
- if self._is_ftm:
110
- return self._pm_file_management
148
+ return self._pm_file_management