ansys-fluent-core 0.14.dev0__py3-none-any.whl → 0.14.dev2__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 +12 -12
- ansys/fluent/core/_version.py +1 -1
- ansys/fluent/core/docs/README.rst +26 -26
- ansys/fluent/core/examples/downloads.py +28 -16
- ansys/fluent/core/filereader/case_file.py +20 -11
- ansys/fluent/core/fluent_connection.py +21 -1
- ansys/fluent/core/launcher/fluent_container.py +1 -1
- ansys/fluent/core/launcher/fluent_launcher_options.json +10 -0
- ansys/fluent/core/launcher/launcher.py +29 -15
- ansys/fluent/core/meshing/tui_231.py +7642 -7642
- ansys/fluent/core/services/datamodel_se.py +142 -110
- ansys/fluent/core/services/field_data.py +278 -29
- ansys/fluent/core/services/meshing_queries.py +1795 -0
- ansys/fluent/core/services/settings.py +1 -1
- ansys/fluent/core/services/svar.py +606 -0
- ansys/fluent/core/session_pure_meshing.py +4 -5
- ansys/fluent/core/solver/flobject.py +59 -2
- ansys/fluent/core/solver/settings_222/change_type.py +1 -1
- ansys/fluent/core/solver/settings_222/clear_generated_data.py +1 -1
- ansys/fluent/core/solver/settings_222/compute_2.py +1 -1
- ansys/fluent/core/solver/settings_222/delete_design_points.py +1 -1
- ansys/fluent/core/solver/settings_222/position_1.py +1 -1
- ansys/fluent/core/solver/settings_222/setup_unsteady_statistics.py +1 -1
- ansys/fluent/core/solver/settings_222/target.py +1 -1
- ansys/fluent/core/solver/settings_222/up_vector.py +1 -1
- ansys/fluent/core/solver/settings_222/update_selected.py +1 -1
- ansys/fluent/core/solver/settings_222/write_1.py +1 -1
- ansys/fluent/core/solver/settings_222/write_views.py +1 -1
- ansys/fluent/core/solver/settings_231/abaqus.py +2 -2
- ansys/fluent/core/solver/settings_231/activate_cell_zone.py +1 -1
- ansys/fluent/core/solver/settings_231/calculate_patch.py +2 -2
- ansys/fluent/core/solver/settings_231/change_type.py +1 -1
- ansys/fluent/core/solver/settings_231/clear_generated_data.py +1 -1
- ansys/fluent/core/solver/settings_231/compute_1.py +1 -1
- ansys/fluent/core/solver/settings_231/convert_skewed_cells_1.py +1 -1
- ansys/fluent/core/solver/settings_231/custom_heat_flux.py +1 -1
- ansys/fluent/core/solver/settings_231/customize_fmg_initialization.py +2 -2
- ansys/fluent/core/solver/settings_231/delete_design_points.py +1 -1
- ansys/fluent/core/solver/settings_231/export_1.py +1 -1
- ansys/fluent/core/solver/settings_231/export_modifications.py +1 -1
- ansys/fluent/core/solver/settings_231/film_heat_transfer.py +1 -1
- ansys/fluent/core/solver/settings_231/film_mass_flow.py +1 -1
- ansys/fluent/core/solver/settings_231/forces.py +4 -4
- ansys/fluent/core/solver/settings_231/heat_transfer_1.py +1 -1
- ansys/fluent/core/solver/settings_231/heat_transfer_sensible.py +1 -1
- ansys/fluent/core/solver/settings_231/mass_flow_1.py +1 -1
- ansys/fluent/core/solver/settings_231/mechanical_apdl.py +1 -1
- ansys/fluent/core/solver/settings_231/mechanical_apdl_input.py +2 -2
- ansys/fluent/core/solver/settings_231/modified_setting.py +1 -1
- ansys/fluent/core/solver/settings_231/moments.py +2 -2
- ansys/fluent/core/solver/settings_231/number_density.py +2 -2
- ansys/fluent/core/solver/settings_231/particle_summary.py +1 -1
- ansys/fluent/core/solver/settings_231/position_1.py +1 -1
- ansys/fluent/core/solver/settings_231/pressure_work_1.py +1 -1
- ansys/fluent/core/solver/settings_231/print_histogram.py +1 -1
- ansys/fluent/core/solver/settings_231/projected_surface_area.py +2 -2
- ansys/fluent/core/solver/settings_231/rad_heat_trans.py +1 -1
- ansys/fluent/core/solver/settings_231/read_journal.py +1 -1
- ansys/fluent/core/solver/settings_231/rotate.py +2 -2
- ansys/fluent/core/solver/settings_231/sample_1.py +4 -4
- ansys/fluent/core/solver/settings_231/set_ambient_color.py +1 -1
- ansys/fluent/core/solver/settings_231/set_light.py +2 -2
- ansys/fluent/core/solver/settings_231/setup_unsteady_statistics.py +1 -1
- ansys/fluent/core/solver/settings_231/surface_integrals.py +1 -1
- ansys/fluent/core/solver/settings_231/taitherm.py +1 -1
- ansys/fluent/core/solver/settings_231/target.py +1 -1
- ansys/fluent/core/solver/settings_231/translate.py +1 -1
- ansys/fluent/core/solver/settings_231/up_vector.py +1 -1
- ansys/fluent/core/solver/settings_231/update_selected.py +1 -1
- ansys/fluent/core/solver/settings_231/viscous_work.py +1 -1
- ansys/fluent/core/solver/settings_231/volume_integrals.py +1 -1
- ansys/fluent/core/solver/settings_231/write_1.py +1 -1
- ansys/fluent/core/solver/settings_231/write_histogram.py +1 -1
- ansys/fluent/core/solver/settings_231/write_views.py +1 -1
- ansys/fluent/core/solver/tui_231.py +36423 -36423
- {ansys_fluent_core-0.14.dev0.dist-info → ansys_fluent_core-0.14.dev2.dist-info}/METADATA +30 -30
- {ansys_fluent_core-0.14.dev0.dist-info → ansys_fluent_core-0.14.dev2.dist-info}/RECORD +80 -78
- {ansys_fluent_core-0.14.dev0.dist-info → ansys_fluent_core-0.14.dev2.dist-info}/LICENSE +0 -0
- {ansys_fluent_core-0.14.dev0.dist-info → ansys_fluent_core-0.14.dev2.dist-info}/WHEEL +0 -0
- {ansys_fluent_core-0.14.dev0.dist-info → ansys_fluent_core-0.14.dev2.dist-info}/top_level.txt +0 -0
|
@@ -16,6 +16,7 @@ r.setup.models.energy.enabled = True
|
|
|
16
16
|
r.boundary_conditions.velocity_inlet['inlet'].vmag.constant = 20
|
|
17
17
|
"""
|
|
18
18
|
import collections
|
|
19
|
+
import fnmatch
|
|
19
20
|
import hashlib
|
|
20
21
|
import importlib
|
|
21
22
|
import keyword
|
|
@@ -534,7 +535,7 @@ class WildcardPath(Group):
|
|
|
534
535
|
"""Class wrapping a wildcard path to perform get_var and set_var on
|
|
535
536
|
flproxy."""
|
|
536
537
|
|
|
537
|
-
def __init__(self, flproxy, path: str, state_cls, settings_cls):
|
|
538
|
+
def __init__(self, flproxy, path: str, state_cls, settings_cls, parent):
|
|
538
539
|
"""__init__ of WildcardPath class."""
|
|
539
540
|
self._setattr("_flproxy", flproxy)
|
|
540
541
|
self._setattr("_path", path)
|
|
@@ -546,6 +547,7 @@ class WildcardPath(Group):
|
|
|
546
547
|
# _settings_cls is the settings cls at the wildcard path level. It is used to
|
|
547
548
|
# construct the scheme path for children.
|
|
548
549
|
self._setattr("_settings_cls", settings_cls)
|
|
550
|
+
self._setattr("_parent", parent)
|
|
549
551
|
|
|
550
552
|
@property
|
|
551
553
|
def flproxy(self):
|
|
@@ -571,6 +573,7 @@ class WildcardPath(Group):
|
|
|
571
573
|
self.path + "/" + scheme_name,
|
|
572
574
|
self._state_cls,
|
|
573
575
|
child_settings_cls,
|
|
576
|
+
self,
|
|
574
577
|
)
|
|
575
578
|
raise KeyError(
|
|
576
579
|
allowed_name_error_message(
|
|
@@ -578,6 +581,17 @@ class WildcardPath(Group):
|
|
|
578
581
|
)
|
|
579
582
|
)
|
|
580
583
|
|
|
584
|
+
def items(self):
|
|
585
|
+
"""Items."""
|
|
586
|
+
for key, value in self._parent.items():
|
|
587
|
+
if fnmatch.fnmatch(key, self._path.rsplit(sep="/", maxsplit=1)[-1]):
|
|
588
|
+
yield key, value
|
|
589
|
+
|
|
590
|
+
def __iter__(self):
|
|
591
|
+
for item in self._parent:
|
|
592
|
+
if fnmatch.fnmatch(item, self._path.rsplit(sep="/", maxsplit=1)[-1]):
|
|
593
|
+
yield item
|
|
594
|
+
|
|
581
595
|
def to_scheme_keys(self, value):
|
|
582
596
|
"""Convert value to have keys with scheme names."""
|
|
583
597
|
return self._state_cls.to_scheme_keys(value)
|
|
@@ -597,6 +611,7 @@ class NamedObjectWildcardPath(WildcardPath):
|
|
|
597
611
|
self.path + "/" + name,
|
|
598
612
|
self._state_cls,
|
|
599
613
|
self._settings_cls.child_object_type,
|
|
614
|
+
self,
|
|
600
615
|
)
|
|
601
616
|
|
|
602
617
|
def __setitem__(self, name, value):
|
|
@@ -731,7 +746,11 @@ class NamedObject(SettingsBase[DictStateType], Generic[ChildTypeT]):
|
|
|
731
746
|
if self.flproxy.has_wildcard(name):
|
|
732
747
|
child_cls = self.__class__.child_object_type
|
|
733
748
|
return WildcardPath(
|
|
734
|
-
self.flproxy,
|
|
749
|
+
self.flproxy,
|
|
750
|
+
self.path + "/" + name,
|
|
751
|
+
self.__class__,
|
|
752
|
+
child_cls,
|
|
753
|
+
self,
|
|
735
754
|
)
|
|
736
755
|
raise KeyError(
|
|
737
756
|
allowed_name_error_message(
|
|
@@ -1214,3 +1233,41 @@ def get_root(flproxy, version: str = "") -> Group:
|
|
|
1214
1233
|
root.set_flproxy(flproxy)
|
|
1215
1234
|
root._setattr("_static_info", obj_info)
|
|
1216
1235
|
return root
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
def find_children(obj, identifier="*"):
|
|
1239
|
+
"""Returns path of all the child objects matching an identifier.
|
|
1240
|
+
|
|
1241
|
+
Parameters
|
|
1242
|
+
----------
|
|
1243
|
+
obj: Object
|
|
1244
|
+
Object whose children need to be queried.
|
|
1245
|
+
identifier: str
|
|
1246
|
+
Identifier to find specific children.
|
|
1247
|
+
|
|
1248
|
+
Returns
|
|
1249
|
+
-------
|
|
1250
|
+
List
|
|
1251
|
+
"""
|
|
1252
|
+
list_of_children = []
|
|
1253
|
+
_list_children(obj.__class__, identifier, [], list_of_children)
|
|
1254
|
+
return list_of_children
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
def _list_children(cls, identifier, path, list_of_children):
|
|
1258
|
+
if issubclass(cls, (NamedObject, ListObject)):
|
|
1259
|
+
if hasattr(cls.child_object_type, "child_names"):
|
|
1260
|
+
_get_child_path(cls.child_object_type, path, identifier, list_of_children)
|
|
1261
|
+
if issubclass(cls, Group):
|
|
1262
|
+
_get_child_path(cls, path, identifier, list_of_children)
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
def _get_child_path(cls, path, identifier, list_of_children):
|
|
1266
|
+
for name in cls.child_names:
|
|
1267
|
+
path.append(name)
|
|
1268
|
+
if fnmatch.fnmatch(name, identifier):
|
|
1269
|
+
path_to_append = "/".join(path)
|
|
1270
|
+
if path_to_append not in list_of_children:
|
|
1271
|
+
list_of_children.append(path_to_append)
|
|
1272
|
+
_list_children(getattr(cls, name), identifier, path, list_of_children)
|
|
1273
|
+
path.pop()
|
|
@@ -23,13 +23,13 @@ class abaqus(Command):
|
|
|
23
23
|
----------
|
|
24
24
|
name : str
|
|
25
25
|
'name' child.
|
|
26
|
-
surface_name_list : List
|
|
26
|
+
surface_name_list : typing.List[str]
|
|
27
27
|
'surface_name_list' child.
|
|
28
28
|
structural_analysis : bool
|
|
29
29
|
'structural_analysis' child.
|
|
30
30
|
write_loads : bool
|
|
31
31
|
'write_loads' child.
|
|
32
|
-
loads : List
|
|
32
|
+
loads : typing.List[str]
|
|
33
33
|
'loads' child.
|
|
34
34
|
|
|
35
35
|
"""
|
|
@@ -26,9 +26,9 @@ class calculate_patch(Command):
|
|
|
26
26
|
----------
|
|
27
27
|
domain : str
|
|
28
28
|
'domain' child.
|
|
29
|
-
cell_zones : List
|
|
29
|
+
cell_zones : typing.List[str]
|
|
30
30
|
'cell_zones' child.
|
|
31
|
-
register_id : List
|
|
31
|
+
register_id : typing.List[str]
|
|
32
32
|
'register_id' child.
|
|
33
33
|
variable : str
|
|
34
34
|
'variable' child.
|
|
@@ -21,9 +21,9 @@ class customize_fmg_initialization(Command):
|
|
|
21
21
|
----------
|
|
22
22
|
multi_level_grid : int
|
|
23
23
|
'multi_level_grid' child.
|
|
24
|
-
residual_reduction_level : List
|
|
24
|
+
residual_reduction_level : typing.List[real]
|
|
25
25
|
'residual_reduction_level' child.
|
|
26
|
-
cycle_count : List
|
|
26
|
+
cycle_count : typing.List[real]
|
|
27
27
|
'cycle_count' child.
|
|
28
28
|
|
|
29
29
|
"""
|
|
@@ -35,13 +35,13 @@ class forces(Command):
|
|
|
35
35
|
'domain_val' child.
|
|
36
36
|
all_wall_zones : bool
|
|
37
37
|
Select all wall zones available.
|
|
38
|
-
wall_thread_list : List
|
|
38
|
+
wall_thread_list : typing.List[str]
|
|
39
39
|
'wall_thread_list' child.
|
|
40
|
-
direction_vector : Tuple
|
|
40
|
+
direction_vector : typing.Tuple[real, real, real]
|
|
41
41
|
'direction_vector' child.
|
|
42
|
-
momentum_center : Tuple
|
|
42
|
+
momentum_center : typing.Tuple[real, real, real]
|
|
43
43
|
'momentum_center' child.
|
|
44
|
-
momentum_axis : Tuple
|
|
44
|
+
momentum_axis : typing.Tuple[real, real, real]
|
|
45
45
|
'momentum_axis' child.
|
|
46
46
|
pressure_coordinate : str
|
|
47
47
|
'pressure_coordinate' child.
|
|
@@ -23,13 +23,13 @@ class mechanical_apdl_input(Command):
|
|
|
23
23
|
----------
|
|
24
24
|
name : str
|
|
25
25
|
'name' child.
|
|
26
|
-
surface_name_list : List
|
|
26
|
+
surface_name_list : typing.List[str]
|
|
27
27
|
'surface_name_list' child.
|
|
28
28
|
structural_analysis : bool
|
|
29
29
|
'structural_analysis' child.
|
|
30
30
|
write_loads : bool
|
|
31
31
|
'write_loads' child.
|
|
32
|
-
loads : List
|
|
32
|
+
loads : typing.List[str]
|
|
33
33
|
'loads' child.
|
|
34
34
|
|
|
35
35
|
"""
|
|
@@ -22,9 +22,9 @@ class moments(Command):
|
|
|
22
22
|
|
|
23
23
|
Parameters
|
|
24
24
|
----------
|
|
25
|
-
surface_list : List
|
|
25
|
+
surface_list : typing.List[str]
|
|
26
26
|
'surface_list' child.
|
|
27
|
-
volume_list : List
|
|
27
|
+
volume_list : typing.List[str]
|
|
28
28
|
'volume_list' child.
|
|
29
29
|
num_of_moments : int
|
|
30
30
|
'num_of_moments' child.
|
|
@@ -34,9 +34,9 @@ class number_density(Command):
|
|
|
34
34
|
'qmom_output_type' child.
|
|
35
35
|
smm_output_type : str
|
|
36
36
|
'smm_output_type' child.
|
|
37
|
-
surface_list : List
|
|
37
|
+
surface_list : typing.List[str]
|
|
38
38
|
'surface_list' child.
|
|
39
|
-
volume_list : List
|
|
39
|
+
volume_list : typing.List[str]
|
|
40
40
|
'volume_list' child.
|
|
41
41
|
num_dens_func : str
|
|
42
42
|
'num_dens_func' child.
|
|
@@ -19,11 +19,11 @@ class projected_surface_area(Command):
|
|
|
19
19
|
|
|
20
20
|
Parameters
|
|
21
21
|
----------
|
|
22
|
-
surface_id_val : List
|
|
22
|
+
surface_id_val : typing.List[int]
|
|
23
23
|
'surface_id_val' child.
|
|
24
24
|
min_feature_size : real
|
|
25
25
|
'min_feature_size' child.
|
|
26
|
-
proj_plane_norm_comp : Tuple
|
|
26
|
+
proj_plane_norm_comp : typing.Tuple[real, real, real]
|
|
27
27
|
'proj_plane_norm_comp' child.
|
|
28
28
|
|
|
29
29
|
"""
|
|
@@ -21,9 +21,9 @@ class rotate(Command):
|
|
|
21
21
|
----------
|
|
22
22
|
angle : real
|
|
23
23
|
'angle' child.
|
|
24
|
-
origin : Tuple
|
|
24
|
+
origin : typing.Tuple[real, real, real]
|
|
25
25
|
'origin' child.
|
|
26
|
-
axis_components : Tuple
|
|
26
|
+
axis_components : typing.Tuple[real, real, real]
|
|
27
27
|
'axis_components' child.
|
|
28
28
|
|
|
29
29
|
"""
|
|
@@ -23,13 +23,13 @@ class sample(Command):
|
|
|
23
23
|
|
|
24
24
|
Parameters
|
|
25
25
|
----------
|
|
26
|
-
injections : List
|
|
26
|
+
injections : typing.List[str]
|
|
27
27
|
'injections' child.
|
|
28
|
-
boundaries : List
|
|
28
|
+
boundaries : typing.List[str]
|
|
29
29
|
'boundaries' child.
|
|
30
|
-
lines : List
|
|
30
|
+
lines : typing.List[str]
|
|
31
31
|
'lines' child.
|
|
32
|
-
planes : List
|
|
32
|
+
planes : typing.List[str]
|
|
33
33
|
'planes' child.
|
|
34
34
|
op_udf : str
|
|
35
35
|
'op_udf' child.
|
|
@@ -26,13 +26,13 @@ class set_light(Command):
|
|
|
26
26
|
'light_number' child.
|
|
27
27
|
light_on : bool
|
|
28
28
|
'light_on' child.
|
|
29
|
-
rgb_vector : Tuple
|
|
29
|
+
rgb_vector : typing.Tuple[real, real, real]
|
|
30
30
|
'rgb_vector' child.
|
|
31
31
|
use_view_factor : bool
|
|
32
32
|
'use_view_factor' child.
|
|
33
33
|
change_light_direction : bool
|
|
34
34
|
'change_light_direction' child.
|
|
35
|
-
direction_vector : Tuple
|
|
35
|
+
direction_vector : typing.Tuple[real, real, real]
|
|
36
36
|
'direction_vector' child.
|
|
37
37
|
|
|
38
38
|
"""
|