ansys-fluent-core 0.30.dev0__py3-none-any.whl → 0.30.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.
- ansys/fluent/core/__init__.py +6 -6
- ansys/fluent/core/_version.py +1 -1
- ansys/fluent/core/filereader/case_file.py +28 -6
- ansys/fluent/core/filereader/casereader.py +1 -1
- ansys/fluent/core/fluent_connection.py +1 -1
- ansys/fluent/core/generated/api_tree/api_objects.json +1 -1
- ansys/fluent/core/generated/datamodel_252/MeshingUtilities.py +16 -0
- ansys/fluent/core/generated/datamodel_252/meshing.py +10 -0
- ansys/fluent/core/generated/fluent_version_252.py +3 -3
- ansys/fluent/core/generated/meshing/tui_252.py +33 -5
- ansys/fluent/core/generated/solver/settings_252.py +1842 -593
- ansys/fluent/core/generated/solver/settings_252.pyi +1052 -453
- ansys/fluent/core/generated/solver/tui_252.py +60 -22
- ansys/fluent/core/launcher/launcher.py +1 -1
- ansys/fluent/core/launcher/launcher_utils.py +2 -2
- ansys/fluent/core/post_objects/meta.py +6 -6
- ansys/fluent/core/services/deprecated_field_data.py +1 -1
- ansys/fluent/core/services/solution_variables.py +1 -1
- ansys/fluent/core/session.py +4 -1
- ansys/fluent/core/session_solver.py +1 -1
- ansys/fluent/core/solver/flobject.py +4 -1
- ansys/fluent/core/streaming_services/events_streaming.py +1 -1
- ansys/fluent/core/utils/deprecate.py +1 -1
- ansys/fluent/core/utils/file_transfer_service.py +4 -4
- ansys/fluent/core/workflow.py +4 -1
- {ansys_fluent_core-0.30.dev0.dist-info → ansys_fluent_core-0.30.dev1.dist-info}/METADATA +2 -2
- {ansys_fluent_core-0.30.dev0.dist-info → ansys_fluent_core-0.30.dev1.dist-info}/RECORD +30 -30
- /ansys/fluent/core/{warnings.py → pyfluent_warnings.py} +0 -0
- {ansys_fluent_core-0.30.dev0.dist-info → ansys_fluent_core-0.30.dev1.dist-info}/LICENSE +0 -0
- {ansys_fluent_core-0.30.dev0.dist-info → ansys_fluent_core-0.30.dev1.dist-info}/WHEEL +0 -0
|
@@ -363,7 +363,7 @@ class main_menu(TUIMenu):
|
|
|
363
363
|
super().__init__(service, version, mode, path)
|
|
364
364
|
class contact_face_zones(TUIMethod):
|
|
365
365
|
"""
|
|
366
|
-
|
|
366
|
+
No help available.
|
|
367
367
|
"""
|
|
368
368
|
class contact_method(TUIMethod):
|
|
369
369
|
"""
|
|
@@ -371,27 +371,27 @@ class main_menu(TUIMenu):
|
|
|
371
371
|
"""
|
|
372
372
|
class contact_threshold(TUIMethod):
|
|
373
373
|
"""
|
|
374
|
-
|
|
374
|
+
No help available.
|
|
375
375
|
"""
|
|
376
376
|
class contact_udf(TUIMethod):
|
|
377
377
|
"""
|
|
378
|
-
|
|
378
|
+
No help available.
|
|
379
379
|
"""
|
|
380
380
|
class flow_control(TUIMethod):
|
|
381
381
|
"""
|
|
382
|
-
|
|
382
|
+
No help available.
|
|
383
383
|
"""
|
|
384
384
|
class render_contact_cells(TUIMethod):
|
|
385
385
|
"""
|
|
386
|
-
|
|
386
|
+
No help available.
|
|
387
387
|
"""
|
|
388
388
|
class update_contact_marks(TUIMethod):
|
|
389
389
|
"""
|
|
390
|
-
|
|
390
|
+
No help available.
|
|
391
391
|
"""
|
|
392
392
|
class verbosity(TUIMethod):
|
|
393
393
|
"""
|
|
394
|
-
|
|
394
|
+
No help available.
|
|
395
395
|
"""
|
|
396
396
|
|
|
397
397
|
class flow_control_parameters(TUIMenu):
|
|
@@ -405,16 +405,15 @@ class main_menu(TUIMenu):
|
|
|
405
405
|
super().__init__(service, version, mode, path)
|
|
406
406
|
class create_flow_control_zone(TUIMethod):
|
|
407
407
|
"""
|
|
408
|
-
|
|
408
|
+
No help available.
|
|
409
409
|
"""
|
|
410
410
|
class delete_flow_control_zone(TUIMethod):
|
|
411
411
|
"""
|
|
412
|
-
|
|
412
|
+
No help available.
|
|
413
413
|
"""
|
|
414
414
|
class solution_stabilization(TUIMethod):
|
|
415
415
|
"""
|
|
416
|
-
|
|
417
|
-
the application of solution controls to improve the stability of the solver.
|
|
416
|
+
No help available.
|
|
418
417
|
"""
|
|
419
418
|
|
|
420
419
|
class implicit_update_parameters(TUIMenu):
|
|
@@ -428,15 +427,15 @@ class main_menu(TUIMenu):
|
|
|
428
427
|
super().__init__(service, version, mode, path)
|
|
429
428
|
class motion_relaxation(TUIMethod):
|
|
430
429
|
"""
|
|
431
|
-
|
|
430
|
+
No help available.
|
|
432
431
|
"""
|
|
433
432
|
class residual_criteria(TUIMethod):
|
|
434
433
|
"""
|
|
435
|
-
|
|
434
|
+
No help available.
|
|
436
435
|
"""
|
|
437
436
|
class update_interval(TUIMethod):
|
|
438
437
|
"""
|
|
439
|
-
|
|
438
|
+
No help available.
|
|
440
439
|
"""
|
|
441
440
|
|
|
442
441
|
class in_cylinder_parameters(TUIMenu):
|
|
@@ -457,19 +456,19 @@ class main_menu(TUIMenu):
|
|
|
457
456
|
super().__init__(service, version, mode, path)
|
|
458
457
|
class crank_angle_step(TUIMethod):
|
|
459
458
|
"""
|
|
460
|
-
|
|
459
|
+
No help available.
|
|
461
460
|
"""
|
|
462
461
|
class crank_period(TUIMethod):
|
|
463
462
|
"""
|
|
464
|
-
|
|
463
|
+
No help available.
|
|
465
464
|
"""
|
|
466
465
|
class max_crank_angle_step(TUIMethod):
|
|
467
466
|
"""
|
|
468
|
-
|
|
467
|
+
No help available.
|
|
469
468
|
"""
|
|
470
469
|
class minimum_lift(TUIMethod):
|
|
471
470
|
"""
|
|
472
|
-
|
|
471
|
+
No help available.
|
|
473
472
|
"""
|
|
474
473
|
class modify_lift(TUIMethod):
|
|
475
474
|
"""
|
|
@@ -481,7 +480,7 @@ class main_menu(TUIMenu):
|
|
|
481
480
|
"""
|
|
482
481
|
class piston_stroke_cutoff(TUIMethod):
|
|
483
482
|
"""
|
|
484
|
-
|
|
483
|
+
No help available.
|
|
485
484
|
"""
|
|
486
485
|
class position_starting_mesh(TUIMethod):
|
|
487
486
|
"""
|
|
@@ -493,7 +492,7 @@ class main_menu(TUIMenu):
|
|
|
493
492
|
"""
|
|
494
493
|
class starting_crank_angle(TUIMethod):
|
|
495
494
|
"""
|
|
496
|
-
|
|
495
|
+
No help available.
|
|
497
496
|
"""
|
|
498
497
|
|
|
499
498
|
class layering_parameters(TUIMenu):
|
|
@@ -6040,6 +6039,7 @@ class main_menu(TUIMenu):
|
|
|
6040
6039
|
"""
|
|
6041
6040
|
def __init__(self, service, version, mode, path):
|
|
6042
6041
|
self.adapt = self.__class__.adapt(service, version, mode, path + ["adapt"])
|
|
6042
|
+
self.collar_grids = self.__class__.collar_grids(service, version, mode, path + ["collar_grids"])
|
|
6043
6043
|
self.cut_control = self.__class__.cut_control(service, version, mode, path + ["cut_control"])
|
|
6044
6044
|
self.options = self.__class__.options(service, version, mode, path + ["options"])
|
|
6045
6045
|
self.check = self.__class__.check(service, version, mode, path + ["check"])
|
|
@@ -6249,6 +6249,34 @@ class main_menu(TUIMenu):
|
|
|
6249
6249
|
Enable the option to use anisotropic adaption in prismatic cells.
|
|
6250
6250
|
"""
|
|
6251
6251
|
|
|
6252
|
+
class collar_grids(TUIMenu):
|
|
6253
|
+
"""
|
|
6254
|
+
Enter the overset collar grid menu.
|
|
6255
|
+
Collar grids only need to be defined if they are to be excluded from being cut during hole cutting.
|
|
6256
|
+
"""
|
|
6257
|
+
def __init__(self, service, version, mode, path):
|
|
6258
|
+
self.add = self.__class__.add(service, version, mode, path + ["add"])
|
|
6259
|
+
self.delete = self.__class__.delete(service, version, mode, path + ["delete"])
|
|
6260
|
+
self.delete_all = self.__class__.delete_all(service, version, mode, path + ["delete_all"])
|
|
6261
|
+
self.list = self.__class__.list(service, version, mode, path + ["list"])
|
|
6262
|
+
super().__init__(service, version, mode, path)
|
|
6263
|
+
class add(TUIMethod):
|
|
6264
|
+
"""
|
|
6265
|
+
Add overset component grid to list of collar grids.
|
|
6266
|
+
"""
|
|
6267
|
+
class delete(TUIMethod):
|
|
6268
|
+
"""
|
|
6269
|
+
Remove a grid from list of collar grids.
|
|
6270
|
+
"""
|
|
6271
|
+
class delete_all(TUIMethod):
|
|
6272
|
+
"""
|
|
6273
|
+
Remove all grids from collar grid list.
|
|
6274
|
+
"""
|
|
6275
|
+
class list(TUIMethod):
|
|
6276
|
+
"""
|
|
6277
|
+
List all grids on collar grid list.
|
|
6278
|
+
"""
|
|
6279
|
+
|
|
6252
6280
|
class cut_control(TUIMenu):
|
|
6253
6281
|
"""
|
|
6254
6282
|
Enter the overset hole cut control menu.
|
|
@@ -6326,6 +6354,7 @@ class main_menu(TUIMenu):
|
|
|
6326
6354
|
self.overlap_boundaries = self.__class__.overlap_boundaries(service, version, mode, path + ["overlap_boundaries"])
|
|
6327
6355
|
self.parallel = self.__class__.parallel(service, version, mode, path + ["parallel"])
|
|
6328
6356
|
self.partial_cut_faces = self.__class__.partial_cut_faces(service, version, mode, path + ["partial_cut_faces"])
|
|
6357
|
+
self.protect_collar_grids = self.__class__.protect_collar_grids(service, version, mode, path + ["protect_collar_grids"])
|
|
6329
6358
|
self.render_receptor_cells = self.__class__.render_receptor_cells(service, version, mode, path + ["render_receptor_cells"])
|
|
6330
6359
|
self.solve_island_removal = self.__class__.solve_island_removal(service, version, mode, path + ["solve_island_removal"])
|
|
6331
6360
|
self.transient_caching = self.__class__.transient_caching(service, version, mode, path + ["transient_caching"])
|
|
@@ -6380,6 +6409,10 @@ class main_menu(TUIMenu):
|
|
|
6380
6409
|
"""
|
|
6381
6410
|
Enable enhanced hole cutting where cut faces partially overlap.
|
|
6382
6411
|
"""
|
|
6412
|
+
class protect_collar_grids(TUIMethod):
|
|
6413
|
+
"""
|
|
6414
|
+
Protect user defined collar grids from getting cut during hole cutting.
|
|
6415
|
+
"""
|
|
6383
6416
|
class render_receptor_cells(TUIMethod):
|
|
6384
6417
|
"""
|
|
6385
6418
|
Set the option to include receptor cells in postprocessing.
|
|
@@ -17928,7 +17961,7 @@ class main_menu(TUIMenu):
|
|
|
17928
17961
|
super().__init__(service, version, mode, path)
|
|
17929
17962
|
class change_fft_ref_pressure(TUIMethod):
|
|
17930
17963
|
"""
|
|
17931
|
-
|
|
17964
|
+
No help available.
|
|
17932
17965
|
"""
|
|
17933
17966
|
class circum_avg_axial(TUIMethod):
|
|
17934
17967
|
"""
|
|
@@ -24004,6 +24037,7 @@ class main_menu(TUIMenu):
|
|
|
24004
24037
|
self.xy_plot = self.__class__.xy_plot(service, version, mode, path + ["xy_plot"])
|
|
24005
24038
|
self.circum_avg_axial = self.__class__.circum_avg_axial(service, version, mode, path + ["circum_avg_axial"])
|
|
24006
24039
|
self.circum_avg_radial = self.__class__.circum_avg_radial(service, version, mode, path + ["circum_avg_radial"])
|
|
24040
|
+
self.fft = self.__class__.fft(service, version, mode, path + ["fft"])
|
|
24007
24041
|
self.plot_direction = self.__class__.plot_direction(service, version, mode, path + ["plot_direction"])
|
|
24008
24042
|
super().__init__(service, version, mode, path)
|
|
24009
24043
|
class circum_avg_axial(TUIMethod):
|
|
@@ -24014,6 +24048,10 @@ class main_menu(TUIMenu):
|
|
|
24014
24048
|
"""
|
|
24015
24049
|
No help available.
|
|
24016
24050
|
"""
|
|
24051
|
+
class fft(TUIMethod):
|
|
24052
|
+
"""
|
|
24053
|
+
No help available.
|
|
24054
|
+
"""
|
|
24017
24055
|
class plot_direction(TUIMethod):
|
|
24018
24056
|
"""
|
|
24019
24057
|
No help available.
|
|
@@ -33791,7 +33829,7 @@ class main_menu(TUIMenu):
|
|
|
33791
33829
|
"""
|
|
33792
33830
|
class mesh_motion(TUIMethod):
|
|
33793
33831
|
"""
|
|
33794
|
-
|
|
33832
|
+
No help available.
|
|
33795
33833
|
"""
|
|
33796
33834
|
class multistage_time_iterate(TUIMethod):
|
|
33797
33835
|
"""
|
|
@@ -54,13 +54,13 @@ from ansys.fluent.core.launcher.server_info import _get_server_info
|
|
|
54
54
|
from ansys.fluent.core.launcher.slurm_launcher import SlurmFuture, SlurmLauncher
|
|
55
55
|
from ansys.fluent.core.launcher.standalone_launcher import StandaloneLauncher
|
|
56
56
|
import ansys.fluent.core.launcher.watchdog as watchdog
|
|
57
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentDeprecationWarning
|
|
57
58
|
from ansys.fluent.core.session_meshing import Meshing
|
|
58
59
|
from ansys.fluent.core.session_pure_meshing import PureMeshing
|
|
59
60
|
from ansys.fluent.core.session_solver import Solver
|
|
60
61
|
from ansys.fluent.core.session_solver_icing import SolverIcing
|
|
61
62
|
from ansys.fluent.core.utils.deprecate import deprecate_argument
|
|
62
63
|
from ansys.fluent.core.utils.fluent_version import FluentVersion
|
|
63
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning
|
|
64
64
|
|
|
65
65
|
_THIS_DIR = os.path.dirname(__file__)
|
|
66
66
|
_OPTIONS_FILE = os.path.join(_THIS_DIR, "fluent_launcher_options.json")
|
|
@@ -62,8 +62,8 @@ def _get_subprocess_kwargs_for_fluent(env: Dict[str, Any], argvals) -> Dict[str,
|
|
|
62
62
|
fluent_env.update({k: str(v) for k, v in env.items()})
|
|
63
63
|
fluent_env["REMOTING_THROW_LAST_TUI_ERROR"] = "1"
|
|
64
64
|
if pyfluent.CLEAR_FLUENT_PARA_ENVS:
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
fluent_env.pop("PARA_NPROCS", None)
|
|
66
|
+
fluent_env.pop("PARA_MESH_NPROCS", None)
|
|
67
67
|
|
|
68
68
|
if pyfluent.LAUNCH_FLUENT_IP:
|
|
69
69
|
fluent_env["REMOTING_SERVER_ADDRESS"] = pyfluent.LAUNCH_FLUENT_IP
|
|
@@ -765,7 +765,7 @@ class PyLocalContainer(MutableMapping):
|
|
|
765
765
|
self._parent = parent
|
|
766
766
|
self._name = name
|
|
767
767
|
self.__object_class = object_class
|
|
768
|
-
self.
|
|
768
|
+
self._collection: dict = {}
|
|
769
769
|
self.__api_helper = api_helper
|
|
770
770
|
self.type = "named-object"
|
|
771
771
|
self._command_names = []
|
|
@@ -856,15 +856,15 @@ class PyLocalContainer(MutableMapping):
|
|
|
856
856
|
return self.get_session_handle()
|
|
857
857
|
|
|
858
858
|
def __iter__(self):
|
|
859
|
-
return iter(self.
|
|
859
|
+
return iter(self._collection)
|
|
860
860
|
|
|
861
861
|
def __len__(self):
|
|
862
|
-
return len(self.
|
|
862
|
+
return len(self._collection)
|
|
863
863
|
|
|
864
864
|
def __getitem__(self, name):
|
|
865
|
-
o = self.
|
|
865
|
+
o = self._collection.get(name, None)
|
|
866
866
|
if not o:
|
|
867
|
-
o = self.
|
|
867
|
+
o = self._collection[name] = self.__object_class(
|
|
868
868
|
name, self, self.__api_helper
|
|
869
869
|
)
|
|
870
870
|
on_create = getattr(self._PyLocalContainer__object_class, "on_create", None)
|
|
@@ -877,7 +877,7 @@ class PyLocalContainer(MutableMapping):
|
|
|
877
877
|
o.update(value)
|
|
878
878
|
|
|
879
879
|
def __delitem__(self, name):
|
|
880
|
-
del self.
|
|
880
|
+
del self._collection[name]
|
|
881
881
|
on_delete = getattr(self._PyLocalContainer__object_class, "on_delete", None)
|
|
882
882
|
if on_delete:
|
|
883
883
|
on_delete(self, name)
|
|
@@ -26,6 +26,7 @@ from typing import Callable, Dict, List
|
|
|
26
26
|
import warnings
|
|
27
27
|
|
|
28
28
|
from ansys.api.fluent.v0 import field_data_pb2 as FieldDataProtoModule
|
|
29
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentDeprecationWarning
|
|
29
30
|
from ansys.fluent.core.services.field_data import (
|
|
30
31
|
ChunkParser,
|
|
31
32
|
FieldDataService,
|
|
@@ -42,7 +43,6 @@ from ansys.fluent.core.services.field_data import (
|
|
|
42
43
|
override_help_text,
|
|
43
44
|
)
|
|
44
45
|
from ansys.fluent.core.utils.deprecate import deprecate_argument
|
|
45
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning
|
|
46
46
|
|
|
47
47
|
DEPRECATION_MSG = "'field_data_old' is deprecated. Use 'field_data' instead."
|
|
48
48
|
|
|
@@ -32,6 +32,7 @@ import numpy as np
|
|
|
32
32
|
from ansys.api.fluent.v0 import field_data_pb2 as FieldDataProtoModule
|
|
33
33
|
from ansys.api.fluent.v0 import svar_pb2 as SvarProtoModule
|
|
34
34
|
from ansys.api.fluent.v0 import svar_pb2_grpc as SvarGrpcModule
|
|
35
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentDeprecationWarning
|
|
35
36
|
from ansys.fluent.core.services.field_data import (
|
|
36
37
|
_FieldDataConstants,
|
|
37
38
|
override_help_text,
|
|
@@ -41,7 +42,6 @@ from ansys.fluent.core.services.interceptors import (
|
|
|
41
42
|
TracingInterceptor,
|
|
42
43
|
)
|
|
43
44
|
from ansys.fluent.core.solver.error_message import allowed_name_error_message
|
|
44
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class SolutionVariableService:
|
ansys/fluent/core/session.py
CHANGED
|
@@ -31,6 +31,10 @@ import weakref
|
|
|
31
31
|
|
|
32
32
|
from ansys.fluent.core.fluent_connection import FluentConnection
|
|
33
33
|
from ansys.fluent.core.journaling import Journal
|
|
34
|
+
from ansys.fluent.core.pyfluent_warnings import (
|
|
35
|
+
PyFluentDeprecationWarning,
|
|
36
|
+
PyFluentUserWarning,
|
|
37
|
+
)
|
|
34
38
|
from ansys.fluent.core.services import service_creator
|
|
35
39
|
from ansys.fluent.core.services.app_utilities import AppUtilitiesOld
|
|
36
40
|
from ansys.fluent.core.services.field_data import FieldDataService, ZoneInfo
|
|
@@ -42,7 +46,6 @@ from ansys.fluent.core.streaming_services.events_streaming import EventsManager
|
|
|
42
46
|
from ansys.fluent.core.streaming_services.field_data_streaming import FieldDataStreaming
|
|
43
47
|
from ansys.fluent.core.streaming_services.transcript_streaming import Transcript
|
|
44
48
|
from ansys.fluent.core.utils.fluent_version import FluentVersion
|
|
45
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning, PyFluentUserWarning
|
|
46
49
|
|
|
47
50
|
from .rpvars import RPVars
|
|
48
51
|
|
|
@@ -32,6 +32,7 @@ import weakref
|
|
|
32
32
|
|
|
33
33
|
from ansys.api.fluent.v0 import svar_pb2 as SvarProtoModule
|
|
34
34
|
import ansys.fluent.core as pyfluent
|
|
35
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentDeprecationWarning
|
|
35
36
|
from ansys.fluent.core.services import SchemeEval, service_creator
|
|
36
37
|
from ansys.fluent.core.services.field_data import ZoneInfo, ZoneType
|
|
37
38
|
from ansys.fluent.core.services.reduction import ReductionService
|
|
@@ -59,7 +60,6 @@ from ansys.fluent.core.utils.fluent_version import (
|
|
|
59
60
|
FluentVersion,
|
|
60
61
|
get_version_for_file_name,
|
|
61
62
|
)
|
|
62
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning
|
|
63
63
|
from ansys.fluent.core.workflow import ClassicWorkflow
|
|
64
64
|
|
|
65
65
|
tui_logger = logging.getLogger("pyfluent.tui")
|
|
@@ -70,8 +70,11 @@ import warnings
|
|
|
70
70
|
import weakref
|
|
71
71
|
|
|
72
72
|
import ansys.fluent.core as pyfluent
|
|
73
|
+
from ansys.fluent.core.pyfluent_warnings import (
|
|
74
|
+
PyFluentDeprecationWarning,
|
|
75
|
+
PyFluentUserWarning,
|
|
76
|
+
)
|
|
73
77
|
from ansys.fluent.core.utils.fluent_version import FluentVersion
|
|
74
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning, PyFluentUserWarning
|
|
75
78
|
|
|
76
79
|
from .error_message import allowed_name_error_message, allowed_values_error
|
|
77
80
|
from .flunits import UnhandledQuantity, get_si_unit_for_fluent_quantity
|
|
@@ -34,8 +34,8 @@ from google.protobuf.json_format import MessageToDict
|
|
|
34
34
|
|
|
35
35
|
from ansys.api.fluent.v0 import events_pb2 as EventsProtoModule
|
|
36
36
|
from ansys.fluent.core.exceptions import InvalidArgument
|
|
37
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentDeprecationWarning
|
|
37
38
|
from ansys.fluent.core.streaming_services.streaming import StreamingService
|
|
38
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning
|
|
39
39
|
|
|
40
40
|
__all__ = [
|
|
41
41
|
"EventsManager",
|
|
@@ -29,9 +29,9 @@ import shutil
|
|
|
29
29
|
from typing import Any, Protocol
|
|
30
30
|
import warnings
|
|
31
31
|
|
|
32
|
+
from ansys.fluent.core.pyfluent_warnings import PyFluentUserWarning
|
|
32
33
|
from ansys.fluent.core.utils import get_user_data_dir
|
|
33
34
|
from ansys.fluent.core.utils.deprecate import deprecate_argument
|
|
34
|
-
from ansys.fluent.core.warnings import PyFluentUserWarning
|
|
35
35
|
import ansys.platform.instancemanagement as pypim
|
|
36
36
|
|
|
37
37
|
# Host path which is mounted to the file-transfer-service container
|
|
@@ -222,7 +222,7 @@ class RemoteFileTransferStrategy(FileTransferStrategy):
|
|
|
222
222
|
>>> from ansys.fluent.core import examples
|
|
223
223
|
>>> from ansys.fluent.core.utils.file_transfer_service import RemoteFileTransferStrategy
|
|
224
224
|
>>> case_file_name = examples.download_file("mixing_elbow.cas.h5", "pyfluent/mixing_elbow")
|
|
225
|
-
>>> solver_session = pyfluent.launch_fluent(
|
|
225
|
+
>>> solver_session = pyfluent.launch_fluent(file_transfer_service=RemoteFileTransferStrategy())
|
|
226
226
|
>>> solver_session.upload(file_name=case_file_name, remote_file_name="elbow.cas.h5")
|
|
227
227
|
>>> solver_session.file.read_case(file_name="elbow.cas.h5")
|
|
228
228
|
>>> solver_session.file.write_case(file_name="write_elbow.cas.h5")
|
|
@@ -321,7 +321,7 @@ class RemoteFileTransferStrategy(FileTransferStrategy):
|
|
|
321
321
|
>>> from ansys.fluent.core import examples
|
|
322
322
|
>>> from ansys.fluent.core.utils.file_transfer_service import RemoteFileTransferStrategy
|
|
323
323
|
>>> case_file_name = examples.download_file("mixing_elbow.cas.h5", "pyfluent/mixing_elbow")
|
|
324
|
-
>>> solver_session = pyfluent.launch_fluent(
|
|
324
|
+
>>> solver_session = pyfluent.launch_fluent(file_transfer_service=RemoteFileTransferStrategy())
|
|
325
325
|
>>> solver_session.upload(file_name=case_file_name, remote_file_name="elbow.cas.h5")
|
|
326
326
|
>>> solver_session.file.read_case(file_name="elbow.cas.h5")
|
|
327
327
|
"""
|
|
@@ -362,7 +362,7 @@ class RemoteFileTransferStrategy(FileTransferStrategy):
|
|
|
362
362
|
>>> from ansys.fluent.core import examples
|
|
363
363
|
>>> from ansys.fluent.core.utils.file_transfer_service import RemoteFileTransferStrategy
|
|
364
364
|
>>> case_file_name = examples.download_file("mixing_elbow.cas.h5", "pyfluent/mixing_elbow")
|
|
365
|
-
>>> solver_session = pyfluent.launch_fluent(
|
|
365
|
+
>>> solver_session = pyfluent.launch_fluent(file_transfer_service=RemoteFileTransferStrategy())
|
|
366
366
|
>>> solver_session.file.write_case(file_name="write_elbow.cas.h5")
|
|
367
367
|
>>> solver_session.download(file_name="write_elbow.cas.h5", local_directory="<local_directory_path>")
|
|
368
368
|
"""
|
ansys/fluent/core/workflow.py
CHANGED
|
@@ -30,6 +30,10 @@ import threading
|
|
|
30
30
|
from typing import Any, Iterable, Iterator, Tuple
|
|
31
31
|
import warnings
|
|
32
32
|
|
|
33
|
+
from ansys.fluent.core.pyfluent_warnings import (
|
|
34
|
+
PyFluentDeprecationWarning,
|
|
35
|
+
PyFluentUserWarning,
|
|
36
|
+
)
|
|
33
37
|
from ansys.fluent.core.services.datamodel_se import (
|
|
34
38
|
PyCallableStateObject,
|
|
35
39
|
PyCommand,
|
|
@@ -39,7 +43,6 @@ from ansys.fluent.core.services.datamodel_se import (
|
|
|
39
43
|
)
|
|
40
44
|
from ansys.fluent.core.utils.dictionary_operations import get_first_dict_key_for_value
|
|
41
45
|
from ansys.fluent.core.utils.fluent_version import FluentVersion
|
|
42
|
-
from ansys.fluent.core.warnings import PyFluentDeprecationWarning, PyFluentUserWarning
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
class CommandInstanceCreationError(RuntimeError):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: ansys-fluent-core
|
|
3
|
-
Version: 0.30.
|
|
3
|
+
Version: 0.30.dev1
|
|
4
4
|
Summary: PyFluent provides Pythonic access to Ansys Fluent.
|
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
6
|
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
@@ -182,7 +182,7 @@ To launch Fluent from Python, use the ``launch_fluent`` function:
|
|
|
182
182
|
.. code:: python
|
|
183
183
|
|
|
184
184
|
import ansys.fluent.core as pyfluent
|
|
185
|
-
solver_session = pyfluent.launch_fluent(
|
|
185
|
+
solver_session = pyfluent.launch_fluent()
|
|
186
186
|
solver_session.health_check.is_serving
|
|
187
187
|
|
|
188
188
|
Basic usage
|