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.
- ansys/fluent/core/__init__.py +1 -1
- ansys/fluent/core/_version.py +2 -2
- ansys/fluent/core/codegen/tuigen.py +1 -1
- ansys/fluent/core/codegen/walk_api.py +45 -18
- ansys/fluent/core/generated/api_tree/api_objects.json +1 -1
- ansys/fluent/core/generated/datamodel_252/meshing.py +1 -0
- ansys/fluent/core/generated/datamodel_252/preferences.py +7 -0
- ansys/fluent/core/generated/fluent_version_252.py +3 -3
- ansys/fluent/core/generated/meshing/tui_252.py +395 -390
- ansys/fluent/core/generated/solver/settings_252.py +782 -306
- ansys/fluent/core/generated/solver/settings_252.pyi +442 -133
- ansys/fluent/core/generated/solver/tui_252.py +4046 -3737
- ansys/fluent/core/launcher/container_launcher.py +4 -3
- ansys/fluent/core/launcher/fluent_container.py +22 -19
- ansys/fluent/core/launcher/launcher.py +2 -2
- ansys/fluent/core/launcher/pim_launcher.py +2 -2
- ansys/fluent/core/launcher/slurm_launcher.py +2 -2
- ansys/fluent/core/launcher/standalone_launcher.py +2 -2
- ansys/fluent/core/logging.py +2 -0
- ansys/fluent/core/logging_config.yaml +3 -0
- ansys/fluent/core/services/app_utilities.py +2 -1
- ansys/fluent/core/services/datamodel_se.py +141 -61
- ansys/fluent/core/services/field_data.py +252 -0
- ansys/fluent/core/services/interceptors.py +28 -2
- ansys/fluent/core/session.py +7 -2
- ansys/fluent/core/session_solver.py +21 -0
- ansys/fluent/core/streaming_services/datamodel_event_streaming.py +12 -12
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/LICENSE +1 -1
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/METADATA +53 -31
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/RECORD +65 -141
- {ansys_fluent_core-0.29.dev0.dist-info → ansys_fluent_core-0.29.dev1.dist-info}/WHEEL +1 -1
- ansys/fluent/core/docs/README.rst +0 -155
- ansys/fluent/tests/conftest.py +0 -415
- ansys/fluent/tests/fluent_fixtures.py +0 -195
- ansys/fluent/tests/integration/test_optislang/test_optislang_integration.py +0 -263
- ansys/fluent/tests/parametric/test_local_parametric_run.py +0 -36
- ansys/fluent/tests/parametric/test_local_parametric_setup.py +0 -34
- ansys/fluent/tests/parametric/test_parametric_workflow.py +0 -279
- ansys/fluent/tests/test_aero_session.py +0 -88
- ansys/fluent/tests/test_batch_ops.py +0 -39
- ansys/fluent/tests/test_builtin_settings.py +0 -761
- ansys/fluent/tests/test_cad_to_post_ftm.py +0 -525
- ansys/fluent/tests/test_cad_to_post_wtm.py +0 -250
- ansys/fluent/tests/test_casereader.py +0 -324
- ansys/fluent/tests/test_codegen.py +0 -783
- ansys/fluent/tests/test_creatable.py +0 -31
- ansys/fluent/tests/test_data_model_cache.py +0 -434
- ansys/fluent/tests/test_datamodel_api.py +0 -449
- ansys/fluent/tests/test_datamodel_service.py +0 -814
- ansys/fluent/tests/test_datareader.py +0 -103
- ansys/fluent/tests/test_error_handling.py +0 -24
- ansys/fluent/tests/test_events_manager.py +0 -214
- ansys/fluent/tests/test_field_data.py +0 -466
- ansys/fluent/tests/test_file_session.py +0 -355
- ansys/fluent/tests/test_file_transfer_service.py +0 -165
- ansys/fluent/tests/test_fix_doc.py +0 -29
- ansys/fluent/tests/test_flobject.py +0 -1235
- ansys/fluent/tests/test_fluent_fixes.py +0 -106
- ansys/fluent/tests/test_fluent_session.py +0 -270
- ansys/fluent/tests/test_fluent_version.py +0 -66
- ansys/fluent/tests/test_fluent_version_marker.py +0 -65
- ansys/fluent/tests/test_icing_session.py +0 -9
- ansys/fluent/tests/test_launcher.py +0 -529
- ansys/fluent/tests/test_launcher_remote.py +0 -272
- ansys/fluent/tests/test_lispy.py +0 -40
- ansys/fluent/tests/test_logging.py +0 -16
- ansys/fluent/tests/test_mapped_api.py +0 -774
- ansys/fluent/tests/test_meshing_utilities.py +0 -2436
- ansys/fluent/tests/test_meshing_workflow.py +0 -421
- ansys/fluent/tests/test_meshingmode/test_meshing_launch.py +0 -168
- ansys/fluent/tests/test_new_meshing_workflow.py +0 -1801
- ansys/fluent/tests/test_preferences.py +0 -89
- ansys/fluent/tests/test_pure_mesh_vs_mesh_workflow.py +0 -101
- ansys/fluent/tests/test_reduction.py +0 -484
- ansys/fluent/tests/test_rp_vars.py +0 -77
- ansys/fluent/tests/test_scheduler.py +0 -471
- ansys/fluent/tests/test_scheme_eval_222.py +0 -338
- ansys/fluent/tests/test_scheme_eval_231.py +0 -243
- ansys/fluent/tests/test_search.py +0 -344
- ansys/fluent/tests/test_session.py +0 -594
- ansys/fluent/tests/test_settings_api.py +0 -606
- ansys/fluent/tests/test_settings_reader.py +0 -85
- ansys/fluent/tests/test_slurm_future.py +0 -67
- ansys/fluent/tests/test_solution_variables.py +0 -241
- ansys/fluent/tests/test_solver_monitors.py +0 -83
- ansys/fluent/tests/test_solvermode/boundaries_periodic_expDict +0 -1712
- ansys/fluent/tests/test_solvermode/test_boundaries.py +0 -127
- ansys/fluent/tests/test_solvermode/test_calculationactivities.py +0 -20
- ansys/fluent/tests/test_solvermode/test_controls.py +0 -131
- ansys/fluent/tests/test_solvermode/test_general.py +0 -109
- ansys/fluent/tests/test_solvermode/test_initialization.py +0 -83
- ansys/fluent/tests/test_solvermode/test_materials.py +0 -40
- ansys/fluent/tests/test_solvermode/test_methods.py +0 -65
- ansys/fluent/tests/test_solvermode/test_models.py +0 -99
- ansys/fluent/tests/test_solvermode/test_named_expressions.py +0 -35
- ansys/fluent/tests/test_solvermode/test_post_vector.py +0 -22
- ansys/fluent/tests/test_solvermode/test_species_model.py +0 -67
- ansys/fluent/tests/test_streaming_services.py +0 -52
- ansys/fluent/tests/test_systemcoupling.py +0 -44
- ansys/fluent/tests/test_topy.py +0 -179
- ansys/fluent/tests/test_tui_api.py +0 -70
- ansys/fluent/tests/test_type_stub.py +0 -37
- ansys/fluent/tests/test_utils.py +0 -82
- ansys/fluent/tests/util/__init__.py +0 -36
- ansys/fluent/tests/util/meshing_workflow.py +0 -33
- ansys/fluent/tests/util/solver.py +0 -72
- ansys_fluent_core-0.29.dev0.dist-info/AUTHORS +0 -12
|
@@ -1,2436 +0,0 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
|
|
3
|
-
from ansys.fluent.core import examples
|
|
4
|
-
|
|
5
|
-
PYTEST_RELATIVE_TOLERANCE = 0.2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def pytest_approx(expected):
|
|
9
|
-
return pytest.approx(expected=expected, rel=PYTEST_RELATIVE_TOLERANCE)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@pytest.mark.codegen_required
|
|
13
|
-
@pytest.mark.fluent_version(">=25.1")
|
|
14
|
-
def test_meshing_utilities(new_meshing_session):
|
|
15
|
-
meshing_session = new_meshing_session
|
|
16
|
-
import_filename = examples.download_file(
|
|
17
|
-
"mixing_elbow.msh.h5", "pyfluent/mixing_elbow"
|
|
18
|
-
)
|
|
19
|
-
meshing_session.tui.file.read_case(import_filename)
|
|
20
|
-
|
|
21
|
-
assert meshing_session.meshing_utilities._cell_zones_labels_fdl() == ["elbow-fluid"]
|
|
22
|
-
|
|
23
|
-
assert meshing_session.meshing_utilities._cell_zones_str_fdl() == [" 87 "]
|
|
24
|
-
|
|
25
|
-
assert meshing_session.meshing_utilities._edge_zones_labels_fdl() == [
|
|
26
|
-
"wall-elbow:wall-inlet:elbow-fluid:feature.28",
|
|
27
|
-
"outlet:wall-elbow:elbow-fluid:feature.27",
|
|
28
|
-
"cold-inlet:wall-elbow:elbow-fluid:feature.26",
|
|
29
|
-
"symmetry:xyplane:wall-elbow:elbow-fluid:feature.25",
|
|
30
|
-
"symmetry:xyplane:wall-inlet:elbow-fluid:feature.24",
|
|
31
|
-
"symmetry:xyplane:outlet:elbow-fluid:feature.23",
|
|
32
|
-
"symmetry:xyplane:cold-inlet:elbow-fluid:feature.22",
|
|
33
|
-
"hot-inlet:wall-inlet:elbow-fluid:feature.21",
|
|
34
|
-
"symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
assert meshing_session.meshing_utilities._edge_zones_str_fdl() == [
|
|
38
|
-
" 28 ",
|
|
39
|
-
" 27 ",
|
|
40
|
-
" 26 ",
|
|
41
|
-
" 25 ",
|
|
42
|
-
" 24 ",
|
|
43
|
-
" 23 ",
|
|
44
|
-
" 22 ",
|
|
45
|
-
" 21 ",
|
|
46
|
-
" 20 ",
|
|
47
|
-
]
|
|
48
|
-
|
|
49
|
-
assert meshing_session.meshing_utilities._face_zones_labels_fdl() == [
|
|
50
|
-
"wall-elbow",
|
|
51
|
-
"wall-inlet",
|
|
52
|
-
"outlet",
|
|
53
|
-
"cold-inlet",
|
|
54
|
-
"hot-inlet",
|
|
55
|
-
"symmetry-xyplane",
|
|
56
|
-
]
|
|
57
|
-
|
|
58
|
-
assert meshing_session.meshing_utilities._face_zones_str_fdl() == [
|
|
59
|
-
" 89 ",
|
|
60
|
-
" 34 ",
|
|
61
|
-
" 33 ",
|
|
62
|
-
" 32 ",
|
|
63
|
-
" 31 ",
|
|
64
|
-
" 30 ",
|
|
65
|
-
" 29 ",
|
|
66
|
-
]
|
|
67
|
-
|
|
68
|
-
assert meshing_session.meshing_utilities._node_zones_labels_fdl() == [
|
|
69
|
-
"boundary-node-163",
|
|
70
|
-
"node-91",
|
|
71
|
-
"boundary-node-19",
|
|
72
|
-
]
|
|
73
|
-
|
|
74
|
-
assert meshing_session.meshing_utilities._node_zones_str_fdl() == [
|
|
75
|
-
" 163 ",
|
|
76
|
-
" 91 ",
|
|
77
|
-
" 19 ",
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
assert meshing_session.meshing_utilities._prism_cell_zones_labels_fdl() is None
|
|
81
|
-
|
|
82
|
-
assert meshing_session.meshing_utilities._prism_cell_zones_str_fdl() is None
|
|
83
|
-
|
|
84
|
-
assert meshing_session.meshing_utilities._object_names_str_fdl() == ["elbow-fluid"]
|
|
85
|
-
|
|
86
|
-
assert meshing_session.meshing_utilities._regions_str_fdl() == [" elbow-fluid "]
|
|
87
|
-
|
|
88
|
-
assert meshing_session.meshing_utilities._zone_types_fdl() == [
|
|
89
|
-
"interior",
|
|
90
|
-
"wall",
|
|
91
|
-
"wall",
|
|
92
|
-
"pressure-outlet",
|
|
93
|
-
"velocity-inlet",
|
|
94
|
-
"velocity-inlet",
|
|
95
|
-
"symmetry",
|
|
96
|
-
"boundary-node",
|
|
97
|
-
"node",
|
|
98
|
-
"boundary-node",
|
|
99
|
-
"fluid",
|
|
100
|
-
"boundary-edge",
|
|
101
|
-
"boundary-edge",
|
|
102
|
-
"boundary-edge",
|
|
103
|
-
"boundary-edge",
|
|
104
|
-
"boundary-edge",
|
|
105
|
-
"boundary-edge",
|
|
106
|
-
"boundary-edge",
|
|
107
|
-
"boundary-edge",
|
|
108
|
-
"boundary-edge",
|
|
109
|
-
]
|
|
110
|
-
|
|
111
|
-
assert meshing_session.meshing_utilities.get_labels(object_name="elbow-fluid") == [
|
|
112
|
-
"elbow-fluid",
|
|
113
|
-
"wall-elbow",
|
|
114
|
-
"wall-inlet",
|
|
115
|
-
"outlet",
|
|
116
|
-
"cold-inlet",
|
|
117
|
-
"hot-inlet",
|
|
118
|
-
"symmetry-xyplane",
|
|
119
|
-
] or [
|
|
120
|
-
"symmetry-xyplane",
|
|
121
|
-
"hot-inlet",
|
|
122
|
-
"cold-inlet",
|
|
123
|
-
"outlet",
|
|
124
|
-
"wall-inlet",
|
|
125
|
-
"wall-elbow",
|
|
126
|
-
"elbow-fluid",
|
|
127
|
-
]
|
|
128
|
-
|
|
129
|
-
assert meshing_session.meshing_utilities.get_labels(
|
|
130
|
-
object_name="elbow-fluid", filter="*"
|
|
131
|
-
) == [
|
|
132
|
-
"elbow-fluid",
|
|
133
|
-
"wall-elbow",
|
|
134
|
-
"wall-inlet",
|
|
135
|
-
"outlet",
|
|
136
|
-
"cold-inlet",
|
|
137
|
-
"hot-inlet",
|
|
138
|
-
"symmetry-xyplane",
|
|
139
|
-
] or [
|
|
140
|
-
"symmetry-xyplane",
|
|
141
|
-
"hot-inlet",
|
|
142
|
-
"cold-inlet",
|
|
143
|
-
"outlet",
|
|
144
|
-
"wall-inlet",
|
|
145
|
-
"wall-elbow",
|
|
146
|
-
"elbow-fluid",
|
|
147
|
-
]
|
|
148
|
-
|
|
149
|
-
assert meshing_session.meshing_utilities.get_labels(
|
|
150
|
-
object_name="elbow-fluid", label_name_pattern="*"
|
|
151
|
-
) == [
|
|
152
|
-
"elbow-fluid",
|
|
153
|
-
"wall-elbow",
|
|
154
|
-
"wall-inlet",
|
|
155
|
-
"outlet",
|
|
156
|
-
"cold-inlet",
|
|
157
|
-
"hot-inlet",
|
|
158
|
-
"symmetry-xyplane",
|
|
159
|
-
] or [
|
|
160
|
-
"symmetry-xyplane",
|
|
161
|
-
"hot-inlet",
|
|
162
|
-
"cold-inlet",
|
|
163
|
-
"outlet",
|
|
164
|
-
"wall-inlet",
|
|
165
|
-
"wall-elbow",
|
|
166
|
-
"elbow-fluid",
|
|
167
|
-
]
|
|
168
|
-
|
|
169
|
-
assert (
|
|
170
|
-
meshing_session.meshing_utilities.add_labels_on_face_zones(
|
|
171
|
-
face_zone_name_list=["wall-inlet", "wall-elbow"],
|
|
172
|
-
label_name_list=["wall-inlet-1", "wall-elbow-1"],
|
|
173
|
-
)
|
|
174
|
-
is None
|
|
175
|
-
)
|
|
176
|
-
|
|
177
|
-
assert meshing_session.meshing_utilities.get_labels_on_face_zones(
|
|
178
|
-
face_zone_name_list=["wall-inlet", "wall-elbow"]
|
|
179
|
-
) == [
|
|
180
|
-
"elbow-fluid",
|
|
181
|
-
"wall-elbow",
|
|
182
|
-
"wall-inlet-1",
|
|
183
|
-
"wall-elbow-1",
|
|
184
|
-
"wall-inlet",
|
|
185
|
-
] or [
|
|
186
|
-
"wall-elbow",
|
|
187
|
-
"elbow-fluid",
|
|
188
|
-
"wall-inlet-1",
|
|
189
|
-
"wall-elbow-1",
|
|
190
|
-
"wall-inlet",
|
|
191
|
-
]
|
|
192
|
-
|
|
193
|
-
assert meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(
|
|
194
|
-
face_zone_name_list=["wall-inlet", "wall-elbow"],
|
|
195
|
-
label_name_list=["wall-inlet-1", "wall-elbow-1"],
|
|
196
|
-
) == [33, 34, 33, 34]
|
|
197
|
-
|
|
198
|
-
assert meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(
|
|
199
|
-
face_zone_id_list=[33, 34],
|
|
200
|
-
label_name_list=["wall-inlet-1", "wall-elbow-1"],
|
|
201
|
-
) == [33, 34, 33, 34]
|
|
202
|
-
|
|
203
|
-
assert meshing_session.meshing_utilities.get_face_zone_id_list_with_labels(
|
|
204
|
-
face_zone_name_pattern="wall*",
|
|
205
|
-
label_name_list=["wall-inlet-1", "wall-elbow-1"],
|
|
206
|
-
) == [33, 34, 33, 34]
|
|
207
|
-
|
|
208
|
-
assert (
|
|
209
|
-
meshing_session.meshing_utilities.add_labels_on_face_zones(
|
|
210
|
-
face_zone_id_list=[30, 31], label_name_list=["hot-inlet-1", "cold-inlet-1"]
|
|
211
|
-
)
|
|
212
|
-
is None
|
|
213
|
-
)
|
|
214
|
-
|
|
215
|
-
assert meshing_session.meshing_utilities.get_labels_on_face_zones(
|
|
216
|
-
face_zone_id_list=[30, 31]
|
|
217
|
-
) == ["elbow-fluid", "cold-inlet", "hot-inlet-1", "cold-inlet-1", "hot-inlet"] or [
|
|
218
|
-
"cold-inlet",
|
|
219
|
-
"elbow-fluid",
|
|
220
|
-
"hot-inlet-1",
|
|
221
|
-
"cold-inlet-1",
|
|
222
|
-
"hot-inlet",
|
|
223
|
-
]
|
|
224
|
-
|
|
225
|
-
assert (
|
|
226
|
-
meshing_session.meshing_utilities.add_labels_on_face_zones(
|
|
227
|
-
face_zone_name_pattern="out*", label_name_list=["outlet-1"]
|
|
228
|
-
)
|
|
229
|
-
is None
|
|
230
|
-
)
|
|
231
|
-
|
|
232
|
-
assert meshing_session.meshing_utilities.get_labels_on_face_zones(
|
|
233
|
-
face_zone_name_pattern="out*"
|
|
234
|
-
) == ["elbow-fluid", "outlet", "outlet-1"] or ["outlet", "elbow-fluid", "outlet-1"]
|
|
235
|
-
|
|
236
|
-
assert (
|
|
237
|
-
meshing_session.meshing_utilities.remove_labels_on_face_zones(
|
|
238
|
-
face_zone_name_list=["wall-inlet"],
|
|
239
|
-
label_name_list=["wall-inlet-1"],
|
|
240
|
-
)
|
|
241
|
-
is None
|
|
242
|
-
)
|
|
243
|
-
|
|
244
|
-
assert (
|
|
245
|
-
meshing_session.meshing_utilities.remove_labels_on_face_zones(
|
|
246
|
-
face_zone_id_list=[30],
|
|
247
|
-
label_name_list=["hot-inlet-1"],
|
|
248
|
-
)
|
|
249
|
-
is None
|
|
250
|
-
)
|
|
251
|
-
|
|
252
|
-
assert (
|
|
253
|
-
meshing_session.meshing_utilities.remove_labels_on_face_zones(
|
|
254
|
-
face_zone_name_pattern="*",
|
|
255
|
-
label_name_list=["wall-elbow-1"],
|
|
256
|
-
)
|
|
257
|
-
is None
|
|
258
|
-
)
|
|
259
|
-
|
|
260
|
-
assert (
|
|
261
|
-
meshing_session.meshing_utilities.add_labels_on_cell_zones(
|
|
262
|
-
cell_zone_name_list=["elbow-fluid"], label_name_list=["elbow-1"]
|
|
263
|
-
)
|
|
264
|
-
== "*the-non-printing-object*"
|
|
265
|
-
or False
|
|
266
|
-
)
|
|
267
|
-
|
|
268
|
-
assert meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(
|
|
269
|
-
cell_zone_name_list=["elbow-fluid"],
|
|
270
|
-
label_name_list=["elbow-1"],
|
|
271
|
-
) == [87]
|
|
272
|
-
|
|
273
|
-
assert meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(
|
|
274
|
-
cell_zone_id_list=[87],
|
|
275
|
-
label_name_list=["elbow-1"],
|
|
276
|
-
) == [87]
|
|
277
|
-
|
|
278
|
-
assert meshing_session.meshing_utilities.get_cell_zone_id_list_with_labels(
|
|
279
|
-
cell_zone_name_pattern="*",
|
|
280
|
-
label_name_list=["elbow-1"],
|
|
281
|
-
) == [87]
|
|
282
|
-
|
|
283
|
-
assert meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
284
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
285
|
-
) == ["elbow-1"]
|
|
286
|
-
|
|
287
|
-
assert (
|
|
288
|
-
meshing_session.meshing_utilities.add_labels_on_cell_zones(
|
|
289
|
-
cell_zone_id_list=[87], label_name_list=["87-1"]
|
|
290
|
-
)
|
|
291
|
-
== "*the-non-printing-object*"
|
|
292
|
-
or False
|
|
293
|
-
)
|
|
294
|
-
|
|
295
|
-
assert meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
296
|
-
cell_zone_id_list=[87]
|
|
297
|
-
) == ["elbow-1", "87-1"]
|
|
298
|
-
|
|
299
|
-
assert (
|
|
300
|
-
meshing_session.meshing_utilities.add_labels_on_cell_zones(
|
|
301
|
-
cell_zone_name_pattern="*", label_name_list=["cell-1"]
|
|
302
|
-
)
|
|
303
|
-
== "*the-non-printing-object*"
|
|
304
|
-
or False
|
|
305
|
-
)
|
|
306
|
-
|
|
307
|
-
assert meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
308
|
-
cell_zone_name_pattern="*"
|
|
309
|
-
) == ["87-1", "elbow-1", "cell-1"]
|
|
310
|
-
|
|
311
|
-
meshing_session.meshing_utilities.remove_labels_on_cell_zones(
|
|
312
|
-
cell_zone_name_list=["elbow-fluid"],
|
|
313
|
-
label_name_list=["elbow-1"],
|
|
314
|
-
)
|
|
315
|
-
|
|
316
|
-
assert meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
317
|
-
cell_zone_name_pattern="*"
|
|
318
|
-
) == ["cell-1", "87-1"]
|
|
319
|
-
|
|
320
|
-
meshing_session.meshing_utilities.remove_labels_on_cell_zones(
|
|
321
|
-
cell_zone_id_list=[87],
|
|
322
|
-
label_name_list=["87-1"],
|
|
323
|
-
)
|
|
324
|
-
|
|
325
|
-
assert meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
326
|
-
cell_zone_name_pattern="*"
|
|
327
|
-
) == ["cell-1"]
|
|
328
|
-
|
|
329
|
-
meshing_session.meshing_utilities.remove_labels_on_cell_zones(
|
|
330
|
-
cell_zone_name_pattern="*",
|
|
331
|
-
label_name_list=["cell-1"],
|
|
332
|
-
)
|
|
333
|
-
|
|
334
|
-
assert (
|
|
335
|
-
meshing_session.meshing_utilities.get_labels_on_cell_zones(
|
|
336
|
-
cell_zone_name_pattern="*"
|
|
337
|
-
)
|
|
338
|
-
is None
|
|
339
|
-
)
|
|
340
|
-
|
|
341
|
-
assert (
|
|
342
|
-
meshing_session.meshing_utilities.add_labels_on_edge_zones(
|
|
343
|
-
edge_zone_name_list=[
|
|
344
|
-
"symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
345
|
-
"hot-inlet:wall-inlet:elbow-fluid:feature.21",
|
|
346
|
-
],
|
|
347
|
-
label_name_list=["20-1", "21-1"],
|
|
348
|
-
)
|
|
349
|
-
== "*the-non-printing-object*"
|
|
350
|
-
or False
|
|
351
|
-
)
|
|
352
|
-
|
|
353
|
-
assert meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(
|
|
354
|
-
edge_zone_name_list=[
|
|
355
|
-
"symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
356
|
-
"hot-inlet:wall-inlet:elbow-fluid:feature.21",
|
|
357
|
-
],
|
|
358
|
-
label_name_list=["20-1", "21-1"],
|
|
359
|
-
) == [20, 21, 20, 21]
|
|
360
|
-
|
|
361
|
-
assert meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(
|
|
362
|
-
edge_zone_id_list=[20, 21],
|
|
363
|
-
label_name_list=["20-1", "21-1"],
|
|
364
|
-
) == [20, 21, 20, 21]
|
|
365
|
-
|
|
366
|
-
assert meshing_session.meshing_utilities.get_edge_zone_id_list_with_labels(
|
|
367
|
-
edge_zone_name_pattern="*",
|
|
368
|
-
label_name_list=["20-1", "21-1"],
|
|
369
|
-
) == [20, 21, 20, 21]
|
|
370
|
-
|
|
371
|
-
assert meshing_session.meshing_utilities.get_labels_on_edge_zones(
|
|
372
|
-
edge_zone_name_list=[
|
|
373
|
-
"symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
374
|
-
"hot-inlet:wall-inlet:elbow-fluid:feature.21",
|
|
375
|
-
]
|
|
376
|
-
) == ["20-1", "21-1"]
|
|
377
|
-
|
|
378
|
-
assert (
|
|
379
|
-
meshing_session.meshing_utilities.add_labels_on_edge_zones(
|
|
380
|
-
edge_zone_id_list=[22, 23], label_name_list=["22-1", "23-1"]
|
|
381
|
-
)
|
|
382
|
-
== "*the-non-printing-object*"
|
|
383
|
-
or False
|
|
384
|
-
)
|
|
385
|
-
|
|
386
|
-
assert meshing_session.meshing_utilities.get_labels_on_edge_zones(
|
|
387
|
-
edge_zone_id_list=[22, 23]
|
|
388
|
-
) == ["22-1", "23-1"]
|
|
389
|
-
|
|
390
|
-
assert (
|
|
391
|
-
meshing_session.meshing_utilities.add_labels_on_edge_zones(
|
|
392
|
-
edge_zone_name_pattern="cold-inlet*", label_name_list=["26-1"]
|
|
393
|
-
)
|
|
394
|
-
== "*the-non-printing-object*"
|
|
395
|
-
or False
|
|
396
|
-
)
|
|
397
|
-
|
|
398
|
-
assert meshing_session.meshing_utilities.get_labels_on_edge_zones(
|
|
399
|
-
edge_zone_name_pattern="cold-inlet*"
|
|
400
|
-
) == ["26-1"]
|
|
401
|
-
|
|
402
|
-
meshing_session.meshing_utilities.remove_labels_on_edge_zones(
|
|
403
|
-
edge_zone_name_list=["symmetry:xyplane:hot-inlet:elbow-fluid:feature.20"],
|
|
404
|
-
label_name_list=["20-1"],
|
|
405
|
-
)
|
|
406
|
-
|
|
407
|
-
meshing_session.meshing_utilities.remove_labels_on_edge_zones(
|
|
408
|
-
edge_zone_id_list=[22],
|
|
409
|
-
label_name_list=["22-1"],
|
|
410
|
-
)
|
|
411
|
-
|
|
412
|
-
meshing_session.meshing_utilities.remove_labels_on_edge_zones(
|
|
413
|
-
edge_zone_name_pattern="*",
|
|
414
|
-
label_name_list=["26-1"],
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
assert meshing_session.meshing_utilities.convert_zone_name_strings_to_ids(
|
|
418
|
-
zone_name_list=["outlet", "cold-inlet"]
|
|
419
|
-
) == [32, 31]
|
|
420
|
-
|
|
421
|
-
assert meshing_session.meshing_utilities.convert_zone_ids_to_name_strings(
|
|
422
|
-
zone_id_list=[32, 31]
|
|
423
|
-
) == ["outlet", "cold-inlet"]
|
|
424
|
-
|
|
425
|
-
assert meshing_session.meshing_utilities.get_edge_zones(filter="*") == [
|
|
426
|
-
28,
|
|
427
|
-
27,
|
|
428
|
-
26,
|
|
429
|
-
25,
|
|
430
|
-
24,
|
|
431
|
-
23,
|
|
432
|
-
22,
|
|
433
|
-
21,
|
|
434
|
-
20,
|
|
435
|
-
]
|
|
436
|
-
|
|
437
|
-
assert meshing_session.meshing_utilities.get_edge_zones(
|
|
438
|
-
maximum_entity_count=20, only_boundary=False
|
|
439
|
-
) == [20, 21, 22, 23, 28]
|
|
440
|
-
|
|
441
|
-
assert meshing_session.meshing_utilities.get_edge_zones(
|
|
442
|
-
maximum_entity_count=20, only_boundary=True
|
|
443
|
-
) == [20, 21, 22, 23, 28]
|
|
444
|
-
|
|
445
|
-
assert meshing_session.meshing_utilities.get_unreferenced_edge_zones() is None
|
|
446
|
-
|
|
447
|
-
assert (
|
|
448
|
-
meshing_session.meshing_utilities.get_unreferenced_edge_zones(filter="*")
|
|
449
|
-
is None
|
|
450
|
-
)
|
|
451
|
-
|
|
452
|
-
assert (
|
|
453
|
-
meshing_session.meshing_utilities.get_unreferenced_edge_zones(
|
|
454
|
-
zone_name_pattern="*"
|
|
455
|
-
)
|
|
456
|
-
is None
|
|
457
|
-
)
|
|
458
|
-
|
|
459
|
-
assert meshing_session.meshing_utilities.get_face_zones(filter="*") == [
|
|
460
|
-
89,
|
|
461
|
-
34,
|
|
462
|
-
33,
|
|
463
|
-
32,
|
|
464
|
-
31,
|
|
465
|
-
30,
|
|
466
|
-
29,
|
|
467
|
-
]
|
|
468
|
-
|
|
469
|
-
assert meshing_session.meshing_utilities.get_face_zones(prism_control_name="*") == [
|
|
470
|
-
33,
|
|
471
|
-
34,
|
|
472
|
-
]
|
|
473
|
-
|
|
474
|
-
assert meshing_session.meshing_utilities.get_face_zones(
|
|
475
|
-
xyz_coordinates=[1.4, 1.4, 1.4]
|
|
476
|
-
) == [34]
|
|
477
|
-
|
|
478
|
-
assert (
|
|
479
|
-
meshing_session.meshing_utilities.get_face_zones(
|
|
480
|
-
maximum_entity_count=20, only_boundary=True
|
|
481
|
-
)
|
|
482
|
-
is None
|
|
483
|
-
)
|
|
484
|
-
|
|
485
|
-
assert meshing_session.meshing_utilities.get_face_zones_by_zone_area(
|
|
486
|
-
maximum_zone_area=100
|
|
487
|
-
) == [33, 32, 31, 30]
|
|
488
|
-
|
|
489
|
-
assert meshing_session.meshing_utilities.get_face_zones_by_zone_area(
|
|
490
|
-
minimum_zone_area=10
|
|
491
|
-
) == [34, 29]
|
|
492
|
-
|
|
493
|
-
assert meshing_session.meshing_utilities.get_face_zones_of_object(
|
|
494
|
-
object_name="elbow-fluid", regions=["elbow-fluid"]
|
|
495
|
-
) == [34, 33, 32, 31, 30, 29]
|
|
496
|
-
|
|
497
|
-
assert meshing_session.meshing_utilities.get_face_zones_of_object(
|
|
498
|
-
object_name="elbow-fluid", labels=["outlet"]
|
|
499
|
-
) == [32]
|
|
500
|
-
|
|
501
|
-
assert (
|
|
502
|
-
meshing_session.meshing_utilities.get_face_zones_of_object(
|
|
503
|
-
object_name="elbow-fluid", region_type="elbow-fluid"
|
|
504
|
-
)
|
|
505
|
-
is None
|
|
506
|
-
)
|
|
507
|
-
|
|
508
|
-
assert meshing_session.meshing_utilities.get_face_zones_of_object(
|
|
509
|
-
object_name="elbow-fluid"
|
|
510
|
-
) == [29, 30, 31, 32, 33, 34]
|
|
511
|
-
|
|
512
|
-
assert meshing_session.meshing_utilities.get_face_zones_of_object(
|
|
513
|
-
objects=["elbow-fluid"]
|
|
514
|
-
) == [29, 30, 31, 32, 33, 34]
|
|
515
|
-
|
|
516
|
-
assert meshing_session.meshing_utilities.get_wrapped_face_zones() is None
|
|
517
|
-
|
|
518
|
-
assert meshing_session.meshing_utilities.get_unreferenced_face_zones() is None
|
|
519
|
-
|
|
520
|
-
assert (
|
|
521
|
-
meshing_session.meshing_utilities.get_unreferenced_face_zones(filter="*")
|
|
522
|
-
is None
|
|
523
|
-
)
|
|
524
|
-
|
|
525
|
-
assert (
|
|
526
|
-
meshing_session.meshing_utilities.get_unreferenced_face_zones(
|
|
527
|
-
zone_name_pattern="*"
|
|
528
|
-
)
|
|
529
|
-
is None
|
|
530
|
-
)
|
|
531
|
-
|
|
532
|
-
assert (
|
|
533
|
-
meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(
|
|
534
|
-
cell_zone_id_list=[87]
|
|
535
|
-
)
|
|
536
|
-
== [89]
|
|
537
|
-
)
|
|
538
|
-
|
|
539
|
-
assert (
|
|
540
|
-
meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(
|
|
541
|
-
cell_zone_name_pattern="*"
|
|
542
|
-
)
|
|
543
|
-
== [89]
|
|
544
|
-
)
|
|
545
|
-
|
|
546
|
-
assert (
|
|
547
|
-
meshing_session.meshing_utilities.get_interior_face_zones_for_given_cell_zones(
|
|
548
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
549
|
-
)
|
|
550
|
-
== [89]
|
|
551
|
-
)
|
|
552
|
-
|
|
553
|
-
assert meshing_session.meshing_utilities.get_node_zones(filter="*") == [163, 91, 19]
|
|
554
|
-
|
|
555
|
-
assert meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(
|
|
556
|
-
zone_id_list=[29, 30, 31, 32, 33]
|
|
557
|
-
) == [34]
|
|
558
|
-
assert meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(
|
|
559
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
560
|
-
) == [34, 29]
|
|
561
|
-
assert (
|
|
562
|
-
meshing_session.meshing_utilities.get_adjacent_zones_by_edge_connectivity(
|
|
563
|
-
zone_name_pattern="*"
|
|
564
|
-
)
|
|
565
|
-
is None
|
|
566
|
-
)
|
|
567
|
-
|
|
568
|
-
assert meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(
|
|
569
|
-
zone_id_list=[29, 30, 31, 32, 33]
|
|
570
|
-
) == [34]
|
|
571
|
-
|
|
572
|
-
assert meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(
|
|
573
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
574
|
-
) == [29, 34]
|
|
575
|
-
|
|
576
|
-
assert (
|
|
577
|
-
meshing_session.meshing_utilities.get_adjacent_zones_by_node_connectivity(
|
|
578
|
-
zone_name_pattern="*"
|
|
579
|
-
)
|
|
580
|
-
is None
|
|
581
|
-
)
|
|
582
|
-
|
|
583
|
-
assert meshing_session.meshing_utilities.get_cell_zones(filter="*") == [87]
|
|
584
|
-
|
|
585
|
-
assert (
|
|
586
|
-
meshing_session.meshing_utilities.get_cell_zones(maximum_entity_count=100)
|
|
587
|
-
is None
|
|
588
|
-
)
|
|
589
|
-
|
|
590
|
-
assert meshing_session.meshing_utilities.get_cell_zones(
|
|
591
|
-
xyz_coordinates=[-7, -6, 0.4]
|
|
592
|
-
) == [87]
|
|
593
|
-
|
|
594
|
-
assert meshing_session.meshing_utilities.get_unreferenced_cell_zones() is None
|
|
595
|
-
|
|
596
|
-
assert (
|
|
597
|
-
meshing_session.meshing_utilities.get_unreferenced_cell_zones(filter="*")
|
|
598
|
-
is None
|
|
599
|
-
)
|
|
600
|
-
|
|
601
|
-
assert (
|
|
602
|
-
meshing_session.meshing_utilities.get_unreferenced_cell_zones(
|
|
603
|
-
zone_name_pattern="*"
|
|
604
|
-
)
|
|
605
|
-
is None
|
|
606
|
-
)
|
|
607
|
-
|
|
608
|
-
assert (
|
|
609
|
-
meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(
|
|
610
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
611
|
-
)
|
|
612
|
-
== [87]
|
|
613
|
-
)
|
|
614
|
-
|
|
615
|
-
assert (
|
|
616
|
-
meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(
|
|
617
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
618
|
-
)
|
|
619
|
-
== [87]
|
|
620
|
-
)
|
|
621
|
-
|
|
622
|
-
assert (
|
|
623
|
-
meshing_session.meshing_utilities.get_adjacent_cell_zones_for_given_face_zones(
|
|
624
|
-
face_zone_name_pattern="*"
|
|
625
|
-
)
|
|
626
|
-
== [87]
|
|
627
|
-
)
|
|
628
|
-
|
|
629
|
-
assert (
|
|
630
|
-
meshing_session.meshing_utilities.get_tet_cell_zones(
|
|
631
|
-
zone_id_list=[29, 30, 31, 32, 33]
|
|
632
|
-
)
|
|
633
|
-
is None
|
|
634
|
-
)
|
|
635
|
-
|
|
636
|
-
assert (
|
|
637
|
-
meshing_session.meshing_utilities.get_tet_cell_zones(zone_id_list=[87]) is None
|
|
638
|
-
)
|
|
639
|
-
|
|
640
|
-
assert (
|
|
641
|
-
meshing_session.meshing_utilities.get_tet_cell_zones(
|
|
642
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
643
|
-
)
|
|
644
|
-
is None
|
|
645
|
-
)
|
|
646
|
-
|
|
647
|
-
assert (
|
|
648
|
-
meshing_session.meshing_utilities.get_tet_cell_zones(zone_name_pattern="*")
|
|
649
|
-
is None
|
|
650
|
-
)
|
|
651
|
-
|
|
652
|
-
assert (
|
|
653
|
-
meshing_session.meshing_utilities.get_prism_cell_zones(zone_id_list=[87])
|
|
654
|
-
is None
|
|
655
|
-
)
|
|
656
|
-
|
|
657
|
-
assert (
|
|
658
|
-
meshing_session.meshing_utilities.get_prism_cell_zones(
|
|
659
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
660
|
-
)
|
|
661
|
-
is None
|
|
662
|
-
)
|
|
663
|
-
|
|
664
|
-
assert (
|
|
665
|
-
meshing_session.meshing_utilities.get_prism_cell_zones(zone_name_pattern="*")
|
|
666
|
-
is None
|
|
667
|
-
)
|
|
668
|
-
|
|
669
|
-
assert (
|
|
670
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(
|
|
671
|
-
zone_id_list=[87]
|
|
672
|
-
)
|
|
673
|
-
== 87
|
|
674
|
-
)
|
|
675
|
-
|
|
676
|
-
assert (
|
|
677
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(
|
|
678
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
679
|
-
)
|
|
680
|
-
is None
|
|
681
|
-
)
|
|
682
|
-
|
|
683
|
-
assert (
|
|
684
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_count(
|
|
685
|
-
zone_name_pattern="*"
|
|
686
|
-
)
|
|
687
|
-
== 87
|
|
688
|
-
)
|
|
689
|
-
|
|
690
|
-
assert (
|
|
691
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(
|
|
692
|
-
zone_id_list=[87]
|
|
693
|
-
)
|
|
694
|
-
== 87
|
|
695
|
-
)
|
|
696
|
-
|
|
697
|
-
assert (
|
|
698
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(
|
|
699
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
700
|
-
)
|
|
701
|
-
is None
|
|
702
|
-
)
|
|
703
|
-
|
|
704
|
-
assert (
|
|
705
|
-
meshing_session.meshing_utilities.get_maxsize_cell_zone_by_volume(
|
|
706
|
-
zone_name_pattern="*"
|
|
707
|
-
)
|
|
708
|
-
== 87
|
|
709
|
-
)
|
|
710
|
-
|
|
711
|
-
assert meshing_session.meshing_utilities.get_zones(type_name="velocity-inlet") == [
|
|
712
|
-
30,
|
|
713
|
-
31,
|
|
714
|
-
]
|
|
715
|
-
|
|
716
|
-
assert meshing_session.meshing_utilities.get_zones(group_name="inlet") == [31, 30]
|
|
717
|
-
|
|
718
|
-
assert meshing_session.meshing_utilities.get_embedded_baffles() is None
|
|
719
|
-
|
|
720
|
-
assert meshing_session.meshing_utilities.get_baffles_for_face_zones(
|
|
721
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
722
|
-
) == [33, 32, 31, 30, 29]
|
|
723
|
-
|
|
724
|
-
assert (
|
|
725
|
-
meshing_session.meshing_utilities.get_baffles_for_face_zones(
|
|
726
|
-
face_zone_id_list=[87]
|
|
727
|
-
)
|
|
728
|
-
is None
|
|
729
|
-
)
|
|
730
|
-
|
|
731
|
-
assert (
|
|
732
|
-
meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(
|
|
733
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
734
|
-
)
|
|
735
|
-
is None
|
|
736
|
-
)
|
|
737
|
-
|
|
738
|
-
assert (
|
|
739
|
-
meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(
|
|
740
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
741
|
-
)
|
|
742
|
-
is None
|
|
743
|
-
)
|
|
744
|
-
|
|
745
|
-
assert (
|
|
746
|
-
meshing_session.meshing_utilities.get_zones_with_marked_faces_for_given_face_zones(
|
|
747
|
-
face_zone_name_pattern="*"
|
|
748
|
-
)
|
|
749
|
-
is None
|
|
750
|
-
)
|
|
751
|
-
|
|
752
|
-
assert (
|
|
753
|
-
meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(
|
|
754
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
755
|
-
)
|
|
756
|
-
is None
|
|
757
|
-
)
|
|
758
|
-
|
|
759
|
-
assert (
|
|
760
|
-
meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(
|
|
761
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
762
|
-
)
|
|
763
|
-
is None
|
|
764
|
-
)
|
|
765
|
-
|
|
766
|
-
assert (
|
|
767
|
-
meshing_session.meshing_utilities.get_zones_with_multi_faces_for_given_face_zones(
|
|
768
|
-
face_zone_name_pattern="*"
|
|
769
|
-
)
|
|
770
|
-
is None
|
|
771
|
-
)
|
|
772
|
-
|
|
773
|
-
assert (
|
|
774
|
-
meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(
|
|
775
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
776
|
-
)
|
|
777
|
-
is None
|
|
778
|
-
)
|
|
779
|
-
|
|
780
|
-
assert (
|
|
781
|
-
meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(
|
|
782
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
783
|
-
)
|
|
784
|
-
is None
|
|
785
|
-
)
|
|
786
|
-
|
|
787
|
-
assert (
|
|
788
|
-
meshing_session.meshing_utilities.get_zones_with_free_faces_for_given_face_zones(
|
|
789
|
-
face_zone_name_pattern="*"
|
|
790
|
-
)
|
|
791
|
-
is None
|
|
792
|
-
)
|
|
793
|
-
|
|
794
|
-
assert meshing_session.meshing_utilities.get_all_objects() == ["elbow-fluid"]
|
|
795
|
-
|
|
796
|
-
assert meshing_session.meshing_utilities.get_objects(type_name="mesh") == [
|
|
797
|
-
"elbow-fluid"
|
|
798
|
-
]
|
|
799
|
-
|
|
800
|
-
assert meshing_session.meshing_utilities.get_objects(filter="*") == ["elbow-fluid"]
|
|
801
|
-
|
|
802
|
-
assert meshing_session.meshing_utilities.get_regions(
|
|
803
|
-
object_name="elbow-fluid", region_name_pattern="*"
|
|
804
|
-
) == ["elbow-fluid"]
|
|
805
|
-
|
|
806
|
-
assert meshing_session.meshing_utilities.get_regions(
|
|
807
|
-
object_name="elbow-fluid", filter="*"
|
|
808
|
-
) == ["elbow-fluid"]
|
|
809
|
-
|
|
810
|
-
assert meshing_session.meshing_utilities.get_regions(object_name="elbow-fluid") == [
|
|
811
|
-
"elbow-fluid"
|
|
812
|
-
]
|
|
813
|
-
|
|
814
|
-
assert meshing_session.meshing_utilities.get_regions_of_face_zones(
|
|
815
|
-
face_zone_id_list=[29, 30, 31, 32, 33]
|
|
816
|
-
) == ["elbow-fluid"]
|
|
817
|
-
|
|
818
|
-
assert meshing_session.meshing_utilities.get_regions_of_face_zones(
|
|
819
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
820
|
-
) == ["elbow-fluid"]
|
|
821
|
-
|
|
822
|
-
assert meshing_session.meshing_utilities.get_regions_of_face_zones(
|
|
823
|
-
face_zone_name_pattern="*"
|
|
824
|
-
) == ["elbow-fluid"]
|
|
825
|
-
|
|
826
|
-
assert meshing_session.meshing_utilities.get_region_volume(
|
|
827
|
-
object_name="elbow-fluid", sorting_order="ascending"
|
|
828
|
-
) == [[pytest_approx(152.59942809266), "elbow-fluid"]]
|
|
829
|
-
|
|
830
|
-
assert meshing_session.meshing_utilities.get_region_volume(
|
|
831
|
-
object_name="elbow-fluid", region_name="elbow-fluid"
|
|
832
|
-
) == [pytest_approx(152.59942809266)]
|
|
833
|
-
|
|
834
|
-
assert (
|
|
835
|
-
meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(
|
|
836
|
-
face_zone_id_list=[29, 30, 31, 32, 33],
|
|
837
|
-
join_tolerance=0.001,
|
|
838
|
-
absolute_tolerance=True,
|
|
839
|
-
join_angle=45,
|
|
840
|
-
)
|
|
841
|
-
is None
|
|
842
|
-
)
|
|
843
|
-
|
|
844
|
-
assert (
|
|
845
|
-
meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(
|
|
846
|
-
face_zone_name_list=["outlet", "inlet", "wall", "internal"],
|
|
847
|
-
join_tolerance=0.001,
|
|
848
|
-
absolute_tolerance=True,
|
|
849
|
-
join_angle=45,
|
|
850
|
-
)
|
|
851
|
-
is None
|
|
852
|
-
)
|
|
853
|
-
|
|
854
|
-
assert (
|
|
855
|
-
meshing_session.meshing_utilities.get_pairs_of_overlapping_face_zones(
|
|
856
|
-
face_zone_name_pattern="*",
|
|
857
|
-
join_tolerance=0.001,
|
|
858
|
-
absolute_tolerance=True,
|
|
859
|
-
join_angle=45,
|
|
860
|
-
)
|
|
861
|
-
is None
|
|
862
|
-
)
|
|
863
|
-
|
|
864
|
-
assert (
|
|
865
|
-
meshing_session.meshing_utilities.get_overlapping_face_zones(
|
|
866
|
-
face_zone_name_pattern="*", area_tolerance=0.01, distance_tolerance=0.01
|
|
867
|
-
)
|
|
868
|
-
is None
|
|
869
|
-
)
|
|
870
|
-
|
|
871
|
-
assert (
|
|
872
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_count(
|
|
873
|
-
zone_id_list=[29, 30, 31, 32, 33]
|
|
874
|
-
)
|
|
875
|
-
== 30
|
|
876
|
-
)
|
|
877
|
-
|
|
878
|
-
assert (
|
|
879
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_count(
|
|
880
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
881
|
-
)
|
|
882
|
-
== 32
|
|
883
|
-
)
|
|
884
|
-
|
|
885
|
-
assert (
|
|
886
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_count(
|
|
887
|
-
zone_name_pattern="*"
|
|
888
|
-
)
|
|
889
|
-
== 30
|
|
890
|
-
)
|
|
891
|
-
|
|
892
|
-
assert (
|
|
893
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_area(
|
|
894
|
-
zone_id_list=[29, 30, 31, 32, 33]
|
|
895
|
-
)
|
|
896
|
-
== 30
|
|
897
|
-
)
|
|
898
|
-
|
|
899
|
-
assert (
|
|
900
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_area(
|
|
901
|
-
zone_name_list=["outlet", "inlet", "wall", "internal"]
|
|
902
|
-
)
|
|
903
|
-
== 32
|
|
904
|
-
)
|
|
905
|
-
|
|
906
|
-
assert (
|
|
907
|
-
meshing_session.meshing_utilities.get_minsize_face_zone_by_area(
|
|
908
|
-
zone_name_pattern="*"
|
|
909
|
-
)
|
|
910
|
-
== 30
|
|
911
|
-
)
|
|
912
|
-
|
|
913
|
-
assert (
|
|
914
|
-
meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(
|
|
915
|
-
cell_zone_id_list=[87]
|
|
916
|
-
)
|
|
917
|
-
== [29, 30, 31, 32, 33, 34]
|
|
918
|
-
)
|
|
919
|
-
|
|
920
|
-
assert (
|
|
921
|
-
meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(
|
|
922
|
-
cell_zone_name_pattern="*"
|
|
923
|
-
)
|
|
924
|
-
== [29, 30, 31, 32, 33, 34]
|
|
925
|
-
)
|
|
926
|
-
|
|
927
|
-
assert (
|
|
928
|
-
meshing_session.meshing_utilities.get_adjacent_face_zones_for_given_cell_zones(
|
|
929
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
930
|
-
)
|
|
931
|
-
== [29, 30, 31, 32, 33, 34]
|
|
932
|
-
)
|
|
933
|
-
|
|
934
|
-
assert meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(
|
|
935
|
-
cell_zone_id_list=[87]
|
|
936
|
-
) == [
|
|
937
|
-
29,
|
|
938
|
-
30,
|
|
939
|
-
31,
|
|
940
|
-
32,
|
|
941
|
-
33,
|
|
942
|
-
34,
|
|
943
|
-
89,
|
|
944
|
-
]
|
|
945
|
-
|
|
946
|
-
assert meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(
|
|
947
|
-
cell_zone_name_pattern="*"
|
|
948
|
-
) == [
|
|
949
|
-
29,
|
|
950
|
-
30,
|
|
951
|
-
31,
|
|
952
|
-
32,
|
|
953
|
-
33,
|
|
954
|
-
34,
|
|
955
|
-
89,
|
|
956
|
-
]
|
|
957
|
-
|
|
958
|
-
assert meshing_session.meshing_utilities.get_adjacent_interior_and_boundary_face_zones_for_given_cell_zones(
|
|
959
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
960
|
-
) == [
|
|
961
|
-
29,
|
|
962
|
-
30,
|
|
963
|
-
31,
|
|
964
|
-
32,
|
|
965
|
-
33,
|
|
966
|
-
34,
|
|
967
|
-
89,
|
|
968
|
-
]
|
|
969
|
-
|
|
970
|
-
assert (
|
|
971
|
-
meshing_session.meshing_utilities.count_marked_faces(
|
|
972
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
973
|
-
)
|
|
974
|
-
== 0
|
|
975
|
-
)
|
|
976
|
-
|
|
977
|
-
assert (
|
|
978
|
-
meshing_session.meshing_utilities.count_marked_faces(face_zone_name_pattern="*")
|
|
979
|
-
== 0
|
|
980
|
-
)
|
|
981
|
-
|
|
982
|
-
assert (
|
|
983
|
-
meshing_session.meshing_utilities.get_multi_faces_count(
|
|
984
|
-
face_zone_id_list=[30, 31, 32]
|
|
985
|
-
)
|
|
986
|
-
== 0
|
|
987
|
-
)
|
|
988
|
-
|
|
989
|
-
assert (
|
|
990
|
-
meshing_session.meshing_utilities.get_multi_faces_count(
|
|
991
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
992
|
-
)
|
|
993
|
-
== 0
|
|
994
|
-
)
|
|
995
|
-
|
|
996
|
-
assert (
|
|
997
|
-
meshing_session.meshing_utilities.get_multi_faces_count(
|
|
998
|
-
face_zone_name_pattern="*"
|
|
999
|
-
)
|
|
1000
|
-
== 0
|
|
1001
|
-
)
|
|
1002
|
-
|
|
1003
|
-
assert (
|
|
1004
|
-
meshing_session.meshing_utilities.get_free_faces_count(
|
|
1005
|
-
face_zone_id_list=[30, 31, 32]
|
|
1006
|
-
)
|
|
1007
|
-
== 0
|
|
1008
|
-
)
|
|
1009
|
-
|
|
1010
|
-
assert (
|
|
1011
|
-
meshing_session.meshing_utilities.get_free_faces_count(
|
|
1012
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1013
|
-
)
|
|
1014
|
-
== 0
|
|
1015
|
-
)
|
|
1016
|
-
|
|
1017
|
-
assert (
|
|
1018
|
-
meshing_session.meshing_utilities.get_free_faces_count(
|
|
1019
|
-
face_zone_name_pattern="*"
|
|
1020
|
-
)
|
|
1021
|
-
== 0
|
|
1022
|
-
)
|
|
1023
|
-
|
|
1024
|
-
assert meshing_session.meshing_utilities.get_edge_size_limits(
|
|
1025
|
-
face_zone_id_list=[30, 31, 32]
|
|
1026
|
-
) == [
|
|
1027
|
-
pytest_approx(0.02167507486136073),
|
|
1028
|
-
pytest_approx(0.3016698360443115),
|
|
1029
|
-
pytest_approx(0.1515733801031084),
|
|
1030
|
-
]
|
|
1031
|
-
|
|
1032
|
-
assert meshing_session.meshing_utilities.get_edge_size_limits(
|
|
1033
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1034
|
-
) == [
|
|
1035
|
-
pytest_approx(0.02167507486136073),
|
|
1036
|
-
pytest_approx(0.3016698360443115),
|
|
1037
|
-
pytest_approx(0.1515733801031084),
|
|
1038
|
-
]
|
|
1039
|
-
|
|
1040
|
-
assert meshing_session.meshing_utilities.get_edge_size_limits(
|
|
1041
|
-
face_zone_name_pattern="*"
|
|
1042
|
-
) == [
|
|
1043
|
-
pytest_approx(0.002393084222530175),
|
|
1044
|
-
pytest_approx(0.3613402218724294),
|
|
1045
|
-
pytest_approx(0.1225859010936682),
|
|
1046
|
-
]
|
|
1047
|
-
|
|
1048
|
-
assert (
|
|
1049
|
-
meshing_session.meshing_utilities.get_cell_zone_shape(cell_zone_id=87)
|
|
1050
|
-
== "mixed"
|
|
1051
|
-
)
|
|
1052
|
-
|
|
1053
|
-
assert set(
|
|
1054
|
-
meshing_session.meshing_utilities.get_edge_zones_list(filter="*")
|
|
1055
|
-
) == set([28, 27, 26, 25, 24, 23, 22, 21, 20])
|
|
1056
|
-
|
|
1057
|
-
assert set(
|
|
1058
|
-
meshing_session.meshing_utilities.get_edge_zones_of_object(
|
|
1059
|
-
objects=["elbow-fluid"]
|
|
1060
|
-
)
|
|
1061
|
-
) == set([20, 21, 22, 23, 24, 25, 26, 27, 28])
|
|
1062
|
-
|
|
1063
|
-
assert set(
|
|
1064
|
-
meshing_session.meshing_utilities.get_edge_zones_of_object(
|
|
1065
|
-
object_name="elbow-fluid"
|
|
1066
|
-
)
|
|
1067
|
-
) == set([20, 21, 22, 23, 24, 25, 26, 27, 28])
|
|
1068
|
-
|
|
1069
|
-
assert (
|
|
1070
|
-
meshing_session.meshing_utilities.get_face_zones_with_zone_specific_prisms_applied()
|
|
1071
|
-
is None
|
|
1072
|
-
)
|
|
1073
|
-
|
|
1074
|
-
# assert set(
|
|
1075
|
-
# meshing_session.meshing_utilities.get_labels_on_face_zones_list(
|
|
1076
|
-
# face_zone_id_list=[30, 31]
|
|
1077
|
-
# )
|
|
1078
|
-
# ) == set([["30", "hot-inlet", "elbow-fluid"], ["31", "cold-inlet", "elbow-fluid"]])
|
|
1079
|
-
|
|
1080
|
-
assert set(meshing_session.meshing_utilities.get_node_zones(filter="*")) == set(
|
|
1081
|
-
[163, 91, 19]
|
|
1082
|
-
)
|
|
1083
|
-
|
|
1084
|
-
assert not meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(
|
|
1085
|
-
cell_zone_id_list=[87]
|
|
1086
|
-
)
|
|
1087
|
-
|
|
1088
|
-
assert not meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(
|
|
1089
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
1090
|
-
)
|
|
1091
|
-
|
|
1092
|
-
assert not meshing_session.meshing_utilities.get_shared_boundary_face_zones_for_given_cell_zones(
|
|
1093
|
-
cell_zone_name_pattern="*"
|
|
1094
|
-
)
|
|
1095
|
-
|
|
1096
|
-
assert (
|
|
1097
|
-
meshing_session.meshing_utilities.mark_faces_in_self_proximity(
|
|
1098
|
-
face_zone_id_list=[30, 31, 32],
|
|
1099
|
-
relative_tolerance=True,
|
|
1100
|
-
tolerance=0.05,
|
|
1101
|
-
proximity_angle=40.5,
|
|
1102
|
-
ignore_orientation=False,
|
|
1103
|
-
)
|
|
1104
|
-
== 0
|
|
1105
|
-
)
|
|
1106
|
-
|
|
1107
|
-
assert (
|
|
1108
|
-
meshing_session.meshing_utilities.mark_faces_in_self_proximity(
|
|
1109
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1110
|
-
relative_tolerance=True,
|
|
1111
|
-
tolerance=0.05,
|
|
1112
|
-
proximity_angle=40.5,
|
|
1113
|
-
ignore_orientation=False,
|
|
1114
|
-
)
|
|
1115
|
-
== 0
|
|
1116
|
-
)
|
|
1117
|
-
|
|
1118
|
-
assert (
|
|
1119
|
-
meshing_session.meshing_utilities.mark_faces_in_self_proximity(
|
|
1120
|
-
face_zone_name_pattern="*",
|
|
1121
|
-
relative_tolerance=True,
|
|
1122
|
-
tolerance=0.05,
|
|
1123
|
-
proximity_angle=40.5,
|
|
1124
|
-
ignore_orientation=False,
|
|
1125
|
-
)
|
|
1126
|
-
== 0
|
|
1127
|
-
)
|
|
1128
|
-
|
|
1129
|
-
assert (
|
|
1130
|
-
meshing_session.meshing_utilities.mark_point_contacts(
|
|
1131
|
-
face_zone_id_list=[30, 31, 32]
|
|
1132
|
-
)
|
|
1133
|
-
== 0
|
|
1134
|
-
)
|
|
1135
|
-
|
|
1136
|
-
assert (
|
|
1137
|
-
meshing_session.meshing_utilities.mark_point_contacts(
|
|
1138
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1139
|
-
)
|
|
1140
|
-
== 0
|
|
1141
|
-
)
|
|
1142
|
-
|
|
1143
|
-
assert (
|
|
1144
|
-
meshing_session.meshing_utilities.mark_point_contacts(
|
|
1145
|
-
face_zone_name_pattern="cold*"
|
|
1146
|
-
)
|
|
1147
|
-
== 0
|
|
1148
|
-
)
|
|
1149
|
-
|
|
1150
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1151
|
-
type_name="face-children",
|
|
1152
|
-
edge_zone_id_list=[22, 23],
|
|
1153
|
-
face_zone_id_list=[30, 31, 32],
|
|
1154
|
-
cell_zone_id_list=[87],
|
|
1155
|
-
)
|
|
1156
|
-
|
|
1157
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1158
|
-
type_name="nodes-per-cell",
|
|
1159
|
-
edge_zone_name_pattern="cold-inlet*",
|
|
1160
|
-
face_zone_id_list=[30, 31, 32],
|
|
1161
|
-
cell_zone_id_list=[87],
|
|
1162
|
-
)
|
|
1163
|
-
|
|
1164
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1165
|
-
type_name="volume-statistics",
|
|
1166
|
-
edge_zone_id_list=[22, 23],
|
|
1167
|
-
face_zone_name_pattern="*",
|
|
1168
|
-
cell_zone_id_list=[87],
|
|
1169
|
-
)
|
|
1170
|
-
|
|
1171
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1172
|
-
type_name="nodes-per-cell",
|
|
1173
|
-
edge_zone_name_pattern="cold-inlet*",
|
|
1174
|
-
face_zone_name_pattern="*",
|
|
1175
|
-
cell_zone_id_list=[87],
|
|
1176
|
-
)
|
|
1177
|
-
|
|
1178
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1179
|
-
type_name="face-children",
|
|
1180
|
-
edge_zone_id_list=[22, 23],
|
|
1181
|
-
face_zone_id_list=[30, 31, 32],
|
|
1182
|
-
cell_zone_name_pattern="*",
|
|
1183
|
-
)
|
|
1184
|
-
|
|
1185
|
-
assert meshing_session.meshing_utilities.mesh_check(
|
|
1186
|
-
type_name="volume-statistics",
|
|
1187
|
-
edge_zone_name_pattern="cold-inlet*",
|
|
1188
|
-
face_zone_name_pattern="*",
|
|
1189
|
-
cell_zone_name_pattern="*",
|
|
1190
|
-
)
|
|
1191
|
-
|
|
1192
|
-
# assert meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_id_list=[87], measure="Orthogonal Quality") == "Worst Quality Cell (c5018) (quality: 0.24536377), in cell zone (elbow-fluid) at location: ((4.955211100621864 -6.054548533874768 0.1959202011308238))"
|
|
1193
|
-
|
|
1194
|
-
# assert meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_name_list=["elbow-fluid"], measure="Orthogonal Quality") == == "Worst Quality Cell (c5018) (quality: 0.24536377), in cell zone (elbow-fluid) at location: ((4.955211100621864 -6.054548533874768 0.1959202011308238))"
|
|
1195
|
-
|
|
1196
|
-
# assert meshing_session.meshing_utilities.print_worst_quality_cell(cell_zone_name_pattern="*", measure="Orthogonal Quality") == == "Worst Quality Cell (c5018) (quality: 0.24536377), in cell zone (elbow-fluid) at location: ((4.955211100621864 -6.054548533874768 0.1959202011308238))"
|
|
1197
|
-
|
|
1198
|
-
# assert meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone(cell_zone_id=87, face_zone_id_list=[30, 31, 32], nlayers=2) == "No cells are separated"
|
|
1199
|
-
|
|
1200
|
-
# assert meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone(cell_zone_id=87, face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], nlayers=2) == "No cells are separated"
|
|
1201
|
-
|
|
1202
|
-
# assert meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone(cell_zone_id=87, face_zone_name_pattern="*", nlayers=2) == "Moved 975 cells from elbow-fluid (common to face zones) to elbow-fluid:172 \
|
|
1203
|
-
# Moved 2116 faces from interior--elbow-fluid to interior--elbow-fluid:174 \
|
|
1204
|
-
# Moved 211 nodes from node-91 to node-173 \
|
|
1205
|
-
# Moved 2699 faces from interior--elbow-fluid to interior--elbow-fluid:181 (boundary)"
|
|
1206
|
-
|
|
1207
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid",
|
|
1208
|
-
# face_zone_id_list=[30, 31, 32],
|
|
1209
|
-
# nlayers=2)
|
|
1210
|
-
|
|
1211
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid",
|
|
1212
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1213
|
-
# nlayers=2)
|
|
1214
|
-
|
|
1215
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_name(cell_zone_name="elbow-fluid",
|
|
1216
|
-
# face_zone_name_pattern="*",
|
|
1217
|
-
# nlayers=2)
|
|
1218
|
-
|
|
1219
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87,
|
|
1220
|
-
# face_zone_id_list=[30, 31, 32],
|
|
1221
|
-
# nlayers=2)
|
|
1222
|
-
|
|
1223
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87,
|
|
1224
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1225
|
-
# nlayers=2)
|
|
1226
|
-
|
|
1227
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone_using_id(cell_zone_id=87,
|
|
1228
|
-
# face_zone_name_pattern="*",
|
|
1229
|
-
# nlayers=2)
|
|
1230
|
-
|
|
1231
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone(
|
|
1232
|
-
# cell_zone_name="elbow-fluid",
|
|
1233
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1234
|
-
# nlayers=2,
|
|
1235
|
-
# )
|
|
1236
|
-
|
|
1237
|
-
# meshing_session.meshing_utilities.separate_cell_zone_layers_by_face_zone(
|
|
1238
|
-
# cell_zone_name="elbow-fluid", face_zone_name_pattern="*", nlayers=2
|
|
1239
|
-
# )
|
|
1240
|
-
|
|
1241
|
-
# Commented due to variation in 10^-16 th place
|
|
1242
|
-
|
|
1243
|
-
# assert meshing_session.meshing_utilities.get_cell_quality_limits(
|
|
1244
|
-
# cell_zone_id_list=[87], measure="Orthogonal Quality"
|
|
1245
|
-
# ) == [17822, 0.2453637718621773, 0.9999993965264717, 0.9546058175066768, 0.0, 0]
|
|
1246
|
-
#
|
|
1247
|
-
# assert meshing_session.meshing_utilities.get_cell_quality_limits(
|
|
1248
|
-
# cell_zone_name_list=["elbow-fluid"], measure="Orthogonal Quality"
|
|
1249
|
-
# ) == [17822, 0.2453637718621773, 0.9999993965264717, 0.9546058175066768, 0.0, 0]
|
|
1250
|
-
#
|
|
1251
|
-
# assert meshing_session.meshing_utilities.get_cell_quality_limits(
|
|
1252
|
-
# cell_zone_name_pattern="*", measure="Orthogonal Quality"
|
|
1253
|
-
# ) == [17822, 0.2453637718621773, 0.9999993965264717, 0.9546058175066768, 0.0, 0]
|
|
1254
|
-
#
|
|
1255
|
-
# assert meshing_session.meshing_utilities.get_face_quality_limits(
|
|
1256
|
-
# face_zone_id_list=[30, 31, 32], measure="Orthogonal Quality"
|
|
1257
|
-
# )[1:] == [0.7348979098719086, 0.9999899933604034, 0.9840275981092989, 362]
|
|
1258
|
-
#
|
|
1259
|
-
# assert meshing_session.meshing_utilities.get_face_quality_limits(
|
|
1260
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1261
|
-
# measure="Orthogonal Quality",
|
|
1262
|
-
# )[1:] == [0.7348979098719086, 0.9999899933604034, 0.9840275981092989, 362]
|
|
1263
|
-
#
|
|
1264
|
-
# assert meshing_session.meshing_utilities.get_face_quality_limits(
|
|
1265
|
-
# face_zone_name_pattern="*", measure="Orthogonal Quality"
|
|
1266
|
-
# )[1:] == [0.03215596355473505, 1.0, 0.9484456798568045, 91581]
|
|
1267
|
-
|
|
1268
|
-
# assert meshing_session.meshing_utilities.get_face_mesh_distribution(
|
|
1269
|
-
# face_zone_id_list=[30, 31, 32],
|
|
1270
|
-
# measure="Orthogonal Quality",
|
|
1271
|
-
# partitions=2,
|
|
1272
|
-
# range=[0.9, 1],
|
|
1273
|
-
# ) == [322, [225, 97], [0, 40]]
|
|
1274
|
-
|
|
1275
|
-
# assert meshing_session.meshing_utilities.get_face_mesh_distribution(
|
|
1276
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1277
|
-
# measure="Orthogonal Quality",
|
|
1278
|
-
# partitions=2,
|
|
1279
|
-
# range=[0.9, 1],
|
|
1280
|
-
# ) == [322, [225, 97], [0, 40]]
|
|
1281
|
-
|
|
1282
|
-
# assert meshing_session.meshing_utilities.get_face_mesh_distribution(
|
|
1283
|
-
# face_zone_name_pattern="*",
|
|
1284
|
-
# measure="Orthogonal Quality",
|
|
1285
|
-
# partitions=2,
|
|
1286
|
-
# range=[0.9, 1],
|
|
1287
|
-
# ) == [69656, [53976, 15680], [0, 22455]]
|
|
1288
|
-
#
|
|
1289
|
-
# assert meshing_session.meshing_utilities.get_cell_mesh_distribution(
|
|
1290
|
-
# cell_zone_id_list=[87],
|
|
1291
|
-
# measure="Orthogonal Quality",
|
|
1292
|
-
# partitions=2,
|
|
1293
|
-
# range=[0.9, 1],
|
|
1294
|
-
# ) == [16029, [11794, 4235], [0, 1872]]
|
|
1295
|
-
#
|
|
1296
|
-
# assert meshing_session.meshing_utilities.get_cell_mesh_distribution(
|
|
1297
|
-
# cell_zone_name_list=["elbow-fluid"],
|
|
1298
|
-
# measure="Orthogonal Quality",
|
|
1299
|
-
# partitions=2,
|
|
1300
|
-
# range=[0.9, 1],
|
|
1301
|
-
# ) == [16029, [11794, 4235], [0, 1872]]
|
|
1302
|
-
#
|
|
1303
|
-
# assert meshing_session.meshing_utilities.get_cell_mesh_distribution(
|
|
1304
|
-
# cell_zone_name_pattern="*",
|
|
1305
|
-
# measure="Orthogonal Quality",
|
|
1306
|
-
# partitions=2,
|
|
1307
|
-
# range=[0.9, 1],
|
|
1308
|
-
# ) == [16029, [11794, 4235], [0, 1872]]
|
|
1309
|
-
|
|
1310
|
-
# Commented due to variation in 10^-13 th place
|
|
1311
|
-
|
|
1312
|
-
# assert (
|
|
1313
|
-
# meshing_session.meshing_utilities.get_cell_zone_volume(cell_zone_id_list=[87])
|
|
1314
|
-
# == 152.5994280926617
|
|
1315
|
-
# )
|
|
1316
|
-
#
|
|
1317
|
-
# assert (
|
|
1318
|
-
# meshing_session.meshing_utilities.get_cell_zone_volume(
|
|
1319
|
-
# cell_zone_name_list=["elbow-fluid"]
|
|
1320
|
-
# )
|
|
1321
|
-
# == 152.5994280926617
|
|
1322
|
-
# )
|
|
1323
|
-
#
|
|
1324
|
-
# assert (
|
|
1325
|
-
# meshing_session.meshing_utilities.get_cell_zone_volume(
|
|
1326
|
-
# cell_zone_name_pattern="*"
|
|
1327
|
-
# )
|
|
1328
|
-
# == 152.5994280926617
|
|
1329
|
-
# )
|
|
1330
|
-
|
|
1331
|
-
# Commented due to variation in 10^-15 th place
|
|
1332
|
-
|
|
1333
|
-
# assert (
|
|
1334
|
-
# meshing_session.meshing_utilities.get_face_zone_area(
|
|
1335
|
-
# face_zone_id_list=[30, 31, 32]
|
|
1336
|
-
# )
|
|
1337
|
-
# == 12.429615960819163
|
|
1338
|
-
# )
|
|
1339
|
-
#
|
|
1340
|
-
# assert (
|
|
1341
|
-
# meshing_session.meshing_utilities.get_face_zone_area(
|
|
1342
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1343
|
-
# )
|
|
1344
|
-
# == 12.429615960819163
|
|
1345
|
-
# )
|
|
1346
|
-
|
|
1347
|
-
# Commented due to variation in 10^-15 th place
|
|
1348
|
-
|
|
1349
|
-
# assert (
|
|
1350
|
-
# meshing_session.meshing_utilities.get_face_zone_area(face_zone_name_pattern="*")
|
|
1351
|
-
# == 2282.142530887569
|
|
1352
|
-
# )
|
|
1353
|
-
|
|
1354
|
-
assert (
|
|
1355
|
-
meshing_session.meshing_utilities.get_face_zone_count(
|
|
1356
|
-
face_zone_id_list=[30, 31, 32]
|
|
1357
|
-
)
|
|
1358
|
-
== 362
|
|
1359
|
-
)
|
|
1360
|
-
|
|
1361
|
-
assert (
|
|
1362
|
-
meshing_session.meshing_utilities.get_face_zone_count(
|
|
1363
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1364
|
-
)
|
|
1365
|
-
== 362
|
|
1366
|
-
)
|
|
1367
|
-
|
|
1368
|
-
assert (
|
|
1369
|
-
meshing_session.meshing_utilities.get_face_zone_count(
|
|
1370
|
-
face_zone_name_pattern="*"
|
|
1371
|
-
)
|
|
1372
|
-
== 91581
|
|
1373
|
-
)
|
|
1374
|
-
|
|
1375
|
-
assert (
|
|
1376
|
-
meshing_session.meshing_utilities.get_cell_zone_count(cell_zone_id_list=[87])
|
|
1377
|
-
== 17822
|
|
1378
|
-
)
|
|
1379
|
-
|
|
1380
|
-
assert (
|
|
1381
|
-
meshing_session.meshing_utilities.get_cell_zone_count(
|
|
1382
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
1383
|
-
)
|
|
1384
|
-
== 17822
|
|
1385
|
-
)
|
|
1386
|
-
|
|
1387
|
-
assert (
|
|
1388
|
-
meshing_session.meshing_utilities.get_cell_zone_count(
|
|
1389
|
-
cell_zone_name_pattern="*"
|
|
1390
|
-
)
|
|
1391
|
-
== 17822
|
|
1392
|
-
)
|
|
1393
|
-
|
|
1394
|
-
assert meshing_session.meshing_utilities.get_zone_type(zone_id=87) == "fluid"
|
|
1395
|
-
|
|
1396
|
-
assert (
|
|
1397
|
-
meshing_session.meshing_utilities.get_zone_type(zone_name="elbow-fluid")
|
|
1398
|
-
== "fluid"
|
|
1399
|
-
)
|
|
1400
|
-
|
|
1401
|
-
assert (
|
|
1402
|
-
meshing_session.meshing_utilities.get_face_zone_node_count(face_zone_id=32)
|
|
1403
|
-
== 246
|
|
1404
|
-
)
|
|
1405
|
-
|
|
1406
|
-
assert (
|
|
1407
|
-
meshing_session.meshing_utilities.get_face_zone_node_count(
|
|
1408
|
-
face_zone_name="outlet"
|
|
1409
|
-
)
|
|
1410
|
-
== 246
|
|
1411
|
-
)
|
|
1412
|
-
|
|
1413
|
-
assert (
|
|
1414
|
-
meshing_session.meshing_utilities.mark_free_faces(
|
|
1415
|
-
face_zone_id_list=[30, 31, 32]
|
|
1416
|
-
)
|
|
1417
|
-
== 0
|
|
1418
|
-
)
|
|
1419
|
-
|
|
1420
|
-
assert (
|
|
1421
|
-
meshing_session.meshing_utilities.mark_free_faces(
|
|
1422
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1423
|
-
)
|
|
1424
|
-
== 0
|
|
1425
|
-
)
|
|
1426
|
-
|
|
1427
|
-
assert (
|
|
1428
|
-
meshing_session.meshing_utilities.mark_free_faces(face_zone_name_pattern="*")
|
|
1429
|
-
== 0
|
|
1430
|
-
)
|
|
1431
|
-
|
|
1432
|
-
assert (
|
|
1433
|
-
meshing_session.meshing_utilities.mark_multi_faces(
|
|
1434
|
-
face_zone_id_list=[30, 31, 32], fringe_length=5
|
|
1435
|
-
)
|
|
1436
|
-
== 0
|
|
1437
|
-
)
|
|
1438
|
-
|
|
1439
|
-
assert (
|
|
1440
|
-
meshing_session.meshing_utilities.mark_multi_faces(
|
|
1441
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], fringe_length=5
|
|
1442
|
-
)
|
|
1443
|
-
== 0
|
|
1444
|
-
)
|
|
1445
|
-
|
|
1446
|
-
assert (
|
|
1447
|
-
meshing_session.meshing_utilities.mark_multi_faces(
|
|
1448
|
-
face_zone_name_pattern="*", fringe_length=5
|
|
1449
|
-
)
|
|
1450
|
-
== 0
|
|
1451
|
-
)
|
|
1452
|
-
|
|
1453
|
-
assert (
|
|
1454
|
-
meshing_session.meshing_utilities.mark_self_intersecting_faces(
|
|
1455
|
-
face_zone_id_list=[87], mark_folded=True
|
|
1456
|
-
)
|
|
1457
|
-
== 0
|
|
1458
|
-
)
|
|
1459
|
-
|
|
1460
|
-
assert (
|
|
1461
|
-
meshing_session.meshing_utilities.mark_self_intersecting_faces(
|
|
1462
|
-
face_zone_name_list=["elbow-fluid"], mark_folded=True
|
|
1463
|
-
)
|
|
1464
|
-
== 0
|
|
1465
|
-
)
|
|
1466
|
-
|
|
1467
|
-
assert (
|
|
1468
|
-
meshing_session.meshing_utilities.mark_self_intersecting_faces(
|
|
1469
|
-
face_zone_name_pattern="elbow*", mark_folded=True
|
|
1470
|
-
)
|
|
1471
|
-
== 0
|
|
1472
|
-
)
|
|
1473
|
-
|
|
1474
|
-
assert (
|
|
1475
|
-
meshing_session.meshing_utilities.mark_duplicate_faces(
|
|
1476
|
-
face_zone_id_list=[30, 31, 32]
|
|
1477
|
-
)
|
|
1478
|
-
== 0
|
|
1479
|
-
)
|
|
1480
|
-
|
|
1481
|
-
assert (
|
|
1482
|
-
meshing_session.meshing_utilities.mark_duplicate_faces(
|
|
1483
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1484
|
-
)
|
|
1485
|
-
== 0
|
|
1486
|
-
)
|
|
1487
|
-
|
|
1488
|
-
assert (
|
|
1489
|
-
meshing_session.meshing_utilities.mark_duplicate_faces(
|
|
1490
|
-
face_zone_name_pattern="*"
|
|
1491
|
-
)
|
|
1492
|
-
== 0
|
|
1493
|
-
)
|
|
1494
|
-
|
|
1495
|
-
assert (
|
|
1496
|
-
meshing_session.meshing_utilities.mark_invalid_normals(
|
|
1497
|
-
face_zone_id_list=[30, 31, 32]
|
|
1498
|
-
)
|
|
1499
|
-
== 0
|
|
1500
|
-
)
|
|
1501
|
-
|
|
1502
|
-
assert (
|
|
1503
|
-
meshing_session.meshing_utilities.mark_invalid_normals(
|
|
1504
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"]
|
|
1505
|
-
)
|
|
1506
|
-
== 0
|
|
1507
|
-
)
|
|
1508
|
-
|
|
1509
|
-
assert (
|
|
1510
|
-
meshing_session.meshing_utilities.mark_invalid_normals(
|
|
1511
|
-
face_zone_name_pattern="*"
|
|
1512
|
-
)
|
|
1513
|
-
== 0
|
|
1514
|
-
)
|
|
1515
|
-
|
|
1516
|
-
assert (
|
|
1517
|
-
meshing_session.meshing_utilities.mark_island_faces(
|
|
1518
|
-
face_zone_id_list=[30, 31, 32], island_face_count=5
|
|
1519
|
-
)
|
|
1520
|
-
== 0
|
|
1521
|
-
)
|
|
1522
|
-
|
|
1523
|
-
assert (
|
|
1524
|
-
meshing_session.meshing_utilities.mark_island_faces(
|
|
1525
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1526
|
-
island_face_count=5,
|
|
1527
|
-
)
|
|
1528
|
-
== 0
|
|
1529
|
-
)
|
|
1530
|
-
|
|
1531
|
-
assert (
|
|
1532
|
-
meshing_session.meshing_utilities.mark_island_faces(
|
|
1533
|
-
face_zone_name_pattern="cold*", island_face_count=5
|
|
1534
|
-
)
|
|
1535
|
-
== 0
|
|
1536
|
-
)
|
|
1537
|
-
|
|
1538
|
-
assert (
|
|
1539
|
-
meshing_session.meshing_utilities.mark_spikes(
|
|
1540
|
-
face_zone_id_list=[30, 31, 32], spike_angle=40.5
|
|
1541
|
-
)
|
|
1542
|
-
== 0
|
|
1543
|
-
)
|
|
1544
|
-
|
|
1545
|
-
assert (
|
|
1546
|
-
meshing_session.meshing_utilities.mark_spikes(
|
|
1547
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"], spike_angle=40.5
|
|
1548
|
-
)
|
|
1549
|
-
== 0
|
|
1550
|
-
)
|
|
1551
|
-
|
|
1552
|
-
assert (
|
|
1553
|
-
meshing_session.meshing_utilities.mark_spikes(
|
|
1554
|
-
face_zone_name_pattern="*", spike_angle=40.5
|
|
1555
|
-
)
|
|
1556
|
-
== 0
|
|
1557
|
-
)
|
|
1558
|
-
|
|
1559
|
-
assert (
|
|
1560
|
-
meshing_session.meshing_utilities.mark_steps(
|
|
1561
|
-
face_zone_id_list=[30, 31, 32], step_angle=40.5, step_width=3.3
|
|
1562
|
-
)
|
|
1563
|
-
== 0
|
|
1564
|
-
)
|
|
1565
|
-
|
|
1566
|
-
assert (
|
|
1567
|
-
meshing_session.meshing_utilities.mark_steps(
|
|
1568
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1569
|
-
step_angle=40.5,
|
|
1570
|
-
step_width=3.3,
|
|
1571
|
-
)
|
|
1572
|
-
== 0
|
|
1573
|
-
)
|
|
1574
|
-
|
|
1575
|
-
assert (
|
|
1576
|
-
meshing_session.meshing_utilities.mark_steps(
|
|
1577
|
-
face_zone_name_pattern="*", step_angle=40.5, step_width=3.3
|
|
1578
|
-
)
|
|
1579
|
-
== 0
|
|
1580
|
-
)
|
|
1581
|
-
|
|
1582
|
-
assert (
|
|
1583
|
-
meshing_session.meshing_utilities.mark_sliver_faces(
|
|
1584
|
-
face_zone_id_list=[30, 31, 32], max_height=2, skew_limit=0.2
|
|
1585
|
-
)
|
|
1586
|
-
== 2
|
|
1587
|
-
)
|
|
1588
|
-
|
|
1589
|
-
assert (
|
|
1590
|
-
meshing_session.meshing_utilities.mark_sliver_faces(
|
|
1591
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1592
|
-
max_height=2,
|
|
1593
|
-
skew_limit=0.2,
|
|
1594
|
-
)
|
|
1595
|
-
== 2
|
|
1596
|
-
)
|
|
1597
|
-
|
|
1598
|
-
assert (
|
|
1599
|
-
meshing_session.meshing_utilities.mark_sliver_faces(
|
|
1600
|
-
face_zone_name_pattern="*", max_height=2.2, skew_limit=0.5
|
|
1601
|
-
)
|
|
1602
|
-
== 3453
|
|
1603
|
-
)
|
|
1604
|
-
|
|
1605
|
-
assert (
|
|
1606
|
-
meshing_session.meshing_utilities.mark_bad_quality_faces(
|
|
1607
|
-
face_zone_id_list=[30, 31, 32], quality_limit=0.5, number_of_rings=2
|
|
1608
|
-
)
|
|
1609
|
-
== 362
|
|
1610
|
-
)
|
|
1611
|
-
|
|
1612
|
-
assert (
|
|
1613
|
-
meshing_session.meshing_utilities.mark_bad_quality_faces(
|
|
1614
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1615
|
-
quality_limit=0.5,
|
|
1616
|
-
number_of_rings=2,
|
|
1617
|
-
)
|
|
1618
|
-
== 362
|
|
1619
|
-
)
|
|
1620
|
-
|
|
1621
|
-
# assert meshing_session.meshing_utilities.mark_bad_quality_faces(face_zone_name_pattern="*", quality_limit=0.5,
|
|
1622
|
-
# number_of_rings=2) == 4799
|
|
1623
|
-
|
|
1624
|
-
# Commented due to variation in 10^-14 th place
|
|
1625
|
-
|
|
1626
|
-
# assert meshing_session.meshing_utilities.mark_faces_by_quality(
|
|
1627
|
-
# face_zone_id_list=[30, 31, 32],
|
|
1628
|
-
# quality_measure="Skewness",
|
|
1629
|
-
# quality_limit=0.9,
|
|
1630
|
-
# append_marking=False,
|
|
1631
|
-
# ) == [0, 0.2651020901280914]
|
|
1632
|
-
|
|
1633
|
-
# assert meshing_session.meshing_utilities.mark_faces_by_quality(
|
|
1634
|
-
# face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1635
|
-
# quality_measure="Skewness",
|
|
1636
|
-
# quality_limit=0.9,
|
|
1637
|
-
# append_marking=False,
|
|
1638
|
-
# ) == [0, 0.2651020901280914]
|
|
1639
|
-
|
|
1640
|
-
# assert meshing_session.meshing_utilities.mark_faces_by_quality(
|
|
1641
|
-
# face_zone_name_pattern="*",
|
|
1642
|
-
# quality_measure="Skewness",
|
|
1643
|
-
# quality_limit=0.9,
|
|
1644
|
-
# append_marking=False,
|
|
1645
|
-
# ) == [0, 0.5697421601607908]
|
|
1646
|
-
|
|
1647
|
-
assert (
|
|
1648
|
-
meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(
|
|
1649
|
-
face_zone_id_list=[30, 31, 32],
|
|
1650
|
-
strip_type=2,
|
|
1651
|
-
strip_height=2,
|
|
1652
|
-
quality_measure="Size Change",
|
|
1653
|
-
quality_limit=0.5,
|
|
1654
|
-
feature_angle=40,
|
|
1655
|
-
)
|
|
1656
|
-
== -125
|
|
1657
|
-
)
|
|
1658
|
-
|
|
1659
|
-
assert (
|
|
1660
|
-
meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(
|
|
1661
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1662
|
-
strip_type=2,
|
|
1663
|
-
strip_height=2,
|
|
1664
|
-
quality_measure="Size Change",
|
|
1665
|
-
quality_limit=0.5,
|
|
1666
|
-
feature_angle=40.5,
|
|
1667
|
-
)
|
|
1668
|
-
== -125
|
|
1669
|
-
)
|
|
1670
|
-
|
|
1671
|
-
assert (
|
|
1672
|
-
meshing_session.meshing_utilities.mark_face_strips_by_height_and_quality(
|
|
1673
|
-
face_zone_name_pattern="cold*",
|
|
1674
|
-
strip_type=1,
|
|
1675
|
-
strip_height=2,
|
|
1676
|
-
quality_measure="Size Change",
|
|
1677
|
-
quality_limit=0.5,
|
|
1678
|
-
feature_angle=40.5,
|
|
1679
|
-
)
|
|
1680
|
-
== -51
|
|
1681
|
-
)
|
|
1682
|
-
|
|
1683
|
-
assert (
|
|
1684
|
-
meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(
|
|
1685
|
-
face_zone_id_list=[87],
|
|
1686
|
-
min_size_factor=0.5,
|
|
1687
|
-
max_size_factor=1.1,
|
|
1688
|
-
size_factor_type_to_compare="geodesic",
|
|
1689
|
-
)
|
|
1690
|
-
== 0
|
|
1691
|
-
)
|
|
1692
|
-
|
|
1693
|
-
assert (
|
|
1694
|
-
meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(
|
|
1695
|
-
face_zone_name_list=["elbow-fluid"],
|
|
1696
|
-
min_size_factor=0.5,
|
|
1697
|
-
max_size_factor=1.1,
|
|
1698
|
-
size_factor_type_to_compare="geodesic",
|
|
1699
|
-
)
|
|
1700
|
-
== 0
|
|
1701
|
-
)
|
|
1702
|
-
|
|
1703
|
-
assert (
|
|
1704
|
-
meshing_session.meshing_utilities.mark_faces_deviating_from_size_field(
|
|
1705
|
-
face_zone_name_pattern="elbow*",
|
|
1706
|
-
min_size_factor=0.5,
|
|
1707
|
-
max_size_factor=1.1,
|
|
1708
|
-
size_factor_type_to_compare="geodesic",
|
|
1709
|
-
)
|
|
1710
|
-
== 0
|
|
1711
|
-
)
|
|
1712
|
-
|
|
1713
|
-
assert (
|
|
1714
|
-
meshing_session.meshing_utilities.mark_faces_using_node_degree(
|
|
1715
|
-
face_zone_id_list=[87], node_degree_threshold=2
|
|
1716
|
-
)
|
|
1717
|
-
== 0
|
|
1718
|
-
)
|
|
1719
|
-
|
|
1720
|
-
assert (
|
|
1721
|
-
meshing_session.meshing_utilities.mark_faces_using_node_degree(
|
|
1722
|
-
face_zone_name_list=["elbow-fluid"], node_degree_threshold=2
|
|
1723
|
-
)
|
|
1724
|
-
== 0
|
|
1725
|
-
)
|
|
1726
|
-
|
|
1727
|
-
assert (
|
|
1728
|
-
meshing_session.meshing_utilities.mark_faces_using_node_degree(
|
|
1729
|
-
face_zone_name_pattern="elbow*", node_degree_threshold=2
|
|
1730
|
-
)
|
|
1731
|
-
== 0
|
|
1732
|
-
)
|
|
1733
|
-
|
|
1734
|
-
# Commented due to variation in 10^-16 th place
|
|
1735
|
-
|
|
1736
|
-
# assert meshing_session.meshing_utilities.get_average_bounding_box_center(
|
|
1737
|
-
# face_zone_id_list=[30, 31, 32]
|
|
1738
|
-
# ) == [1.1482939720153809, -2.2965879440307617, 0.7345014897547645]
|
|
1739
|
-
#
|
|
1740
|
-
# assert meshing_session.meshing_utilities.get_bounding_box_of_zone_list(
|
|
1741
|
-
# zone_id_list=[26]
|
|
1742
|
-
# ) == [
|
|
1743
|
-
# [-7.874015808105469, -7.874015808105469, 0.0],
|
|
1744
|
-
# [-7.874015808105469, -3.937007904052734, 1.963911771774292],
|
|
1745
|
-
# ]
|
|
1746
|
-
|
|
1747
|
-
assert (
|
|
1748
|
-
meshing_session.meshing_utilities.unpreserve_cell_zones(cell_zone_id_list=[87])
|
|
1749
|
-
is False
|
|
1750
|
-
)
|
|
1751
|
-
|
|
1752
|
-
assert (
|
|
1753
|
-
meshing_session.meshing_utilities.unpreserve_cell_zones(
|
|
1754
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
1755
|
-
)
|
|
1756
|
-
is False
|
|
1757
|
-
)
|
|
1758
|
-
|
|
1759
|
-
assert (
|
|
1760
|
-
meshing_session.meshing_utilities.unpreserve_cell_zones(
|
|
1761
|
-
cell_zone_name_pattern="*"
|
|
1762
|
-
)
|
|
1763
|
-
is False
|
|
1764
|
-
)
|
|
1765
|
-
|
|
1766
|
-
assert (
|
|
1767
|
-
meshing_session.meshing_utilities.create_boi_and_size_functions_from_refinement_regions(
|
|
1768
|
-
region_type="hexcore", boi_prefix_string="wall", create_size_function=True
|
|
1769
|
-
)
|
|
1770
|
-
== "*the-non-printing-object*"
|
|
1771
|
-
or False
|
|
1772
|
-
)
|
|
1773
|
-
|
|
1774
|
-
assert (
|
|
1775
|
-
meshing_session.meshing_utilities.scale_face_zones_around_pivot(
|
|
1776
|
-
face_zone_id_list=[30, 31, 32],
|
|
1777
|
-
scale=[1.1, 1.2, 1.3],
|
|
1778
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1779
|
-
use_bbox_center=True,
|
|
1780
|
-
)
|
|
1781
|
-
is None
|
|
1782
|
-
)
|
|
1783
|
-
|
|
1784
|
-
assert (
|
|
1785
|
-
meshing_session.meshing_utilities.scale_face_zones_around_pivot(
|
|
1786
|
-
face_zone_name_list=["cold-inlet", "hot-inlet", "outlet"],
|
|
1787
|
-
scale=[1.1, 1.2, 1.3],
|
|
1788
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1789
|
-
use_bbox_center=True,
|
|
1790
|
-
)
|
|
1791
|
-
is None
|
|
1792
|
-
)
|
|
1793
|
-
|
|
1794
|
-
assert (
|
|
1795
|
-
meshing_session.meshing_utilities.scale_face_zones_around_pivot(
|
|
1796
|
-
face_zone_name_pattern="*",
|
|
1797
|
-
scale=[1.1, 1.2, 1.3],
|
|
1798
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1799
|
-
use_bbox_center=True,
|
|
1800
|
-
)
|
|
1801
|
-
is None
|
|
1802
|
-
)
|
|
1803
|
-
|
|
1804
|
-
assert (
|
|
1805
|
-
meshing_session.meshing_utilities.scale_cell_zones_around_pivot(
|
|
1806
|
-
cell_zone_id_list=[87],
|
|
1807
|
-
scale=[1.1, 1.2, 1.3],
|
|
1808
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1809
|
-
use_bbox_center=True,
|
|
1810
|
-
)
|
|
1811
|
-
is None
|
|
1812
|
-
)
|
|
1813
|
-
|
|
1814
|
-
assert (
|
|
1815
|
-
meshing_session.meshing_utilities.scale_cell_zones_around_pivot(
|
|
1816
|
-
cell_zone_name_list=["elbow-fluid"],
|
|
1817
|
-
scale=[1.1, 1.2, 1.3],
|
|
1818
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1819
|
-
use_bbox_center=True,
|
|
1820
|
-
)
|
|
1821
|
-
is None
|
|
1822
|
-
)
|
|
1823
|
-
|
|
1824
|
-
assert (
|
|
1825
|
-
meshing_session.meshing_utilities.scale_cell_zones_around_pivot(
|
|
1826
|
-
cell_zone_name_pattern="*",
|
|
1827
|
-
scale=[1.1, 1.2, 1.3],
|
|
1828
|
-
pivot=[1.1482939720153809, -2.2965879440307617, 0.7345014897547645],
|
|
1829
|
-
use_bbox_center=True,
|
|
1830
|
-
)
|
|
1831
|
-
is None
|
|
1832
|
-
)
|
|
1833
|
-
|
|
1834
|
-
assert meshing_session.meshing_utilities.dump_face_zone_orientation_in_region(
|
|
1835
|
-
file_name="facezonetest.txt"
|
|
1836
|
-
) == [
|
|
1837
|
-
[29, "elbow-fluid"],
|
|
1838
|
-
[30, "elbow-fluid"],
|
|
1839
|
-
[31, "elbow-fluid"],
|
|
1840
|
-
[32, "elbow-fluid"],
|
|
1841
|
-
[33, "elbow-fluid"],
|
|
1842
|
-
[34, "elbow-fluid"],
|
|
1843
|
-
]
|
|
1844
|
-
|
|
1845
|
-
assert (
|
|
1846
|
-
meshing_session.meshing_utilities.set_quality_measure(measure="Aspect Ratio")
|
|
1847
|
-
is None
|
|
1848
|
-
)
|
|
1849
|
-
|
|
1850
|
-
assert (
|
|
1851
|
-
meshing_session.meshing_utilities.set_object_cell_zone_type(
|
|
1852
|
-
object_name="elbow-fluid", cell_zone_type="mixed"
|
|
1853
|
-
)
|
|
1854
|
-
is False
|
|
1855
|
-
)
|
|
1856
|
-
|
|
1857
|
-
assert (
|
|
1858
|
-
meshing_session.meshing_utilities.set_number_of_parallel_compute_threads(
|
|
1859
|
-
nthreads=2
|
|
1860
|
-
)
|
|
1861
|
-
is None
|
|
1862
|
-
)
|
|
1863
|
-
|
|
1864
|
-
assert (
|
|
1865
|
-
meshing_session.meshing_utilities.rename_face_zone(
|
|
1866
|
-
zone_id=32, new_name="outlet-32"
|
|
1867
|
-
)
|
|
1868
|
-
is True
|
|
1869
|
-
)
|
|
1870
|
-
|
|
1871
|
-
assert (
|
|
1872
|
-
meshing_session.meshing_utilities.rename_face_zone(
|
|
1873
|
-
zone_name="outlet-32", new_name="outlet"
|
|
1874
|
-
)
|
|
1875
|
-
is True
|
|
1876
|
-
)
|
|
1877
|
-
|
|
1878
|
-
assert (
|
|
1879
|
-
meshing_session.meshing_utilities.rename_edge_zone(
|
|
1880
|
-
zone_id=20, new_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20-new"
|
|
1881
|
-
)
|
|
1882
|
-
is True
|
|
1883
|
-
)
|
|
1884
|
-
|
|
1885
|
-
assert (
|
|
1886
|
-
meshing_session.meshing_utilities.rename_face_zone(
|
|
1887
|
-
zone_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20-new",
|
|
1888
|
-
new_name="symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
1889
|
-
)
|
|
1890
|
-
is True
|
|
1891
|
-
)
|
|
1892
|
-
|
|
1893
|
-
assert (
|
|
1894
|
-
meshing_session.meshing_utilities.remove_id_suffix_from_face_zones()
|
|
1895
|
-
== "*the-non-printing-object*"
|
|
1896
|
-
or False
|
|
1897
|
-
)
|
|
1898
|
-
|
|
1899
|
-
assert (
|
|
1900
|
-
meshing_session.meshing_utilities.clean_face_zone_names()
|
|
1901
|
-
== "*the-non-printing-object*"
|
|
1902
|
-
or False
|
|
1903
|
-
)
|
|
1904
|
-
|
|
1905
|
-
assert (
|
|
1906
|
-
meshing_session.meshing_utilities.remove_ids_from_zone_names(
|
|
1907
|
-
zone_id_list=[30, 31, 32]
|
|
1908
|
-
)
|
|
1909
|
-
is True
|
|
1910
|
-
)
|
|
1911
|
-
|
|
1912
|
-
assert (
|
|
1913
|
-
meshing_session.meshing_utilities.renumber_zone_ids(
|
|
1914
|
-
zone_id_list=[30, 31, 32], start_number=1
|
|
1915
|
-
)
|
|
1916
|
-
== "*the-non-printing-object*"
|
|
1917
|
-
or False
|
|
1918
|
-
)
|
|
1919
|
-
|
|
1920
|
-
assert meshing_session.meshing_utilities.rename_object(
|
|
1921
|
-
old_object_name="elbow-fluid", new_object_name="elbow-fluid-1"
|
|
1922
|
-
) == [
|
|
1923
|
-
"elbow-fluid-1",
|
|
1924
|
-
"solid",
|
|
1925
|
-
10,
|
|
1926
|
-
[29, 33, 34, 1, 2, 3],
|
|
1927
|
-
[20, 21, 22, 23, 24, 25, 26, 27, 28],
|
|
1928
|
-
"mesh",
|
|
1929
|
-
[
|
|
1930
|
-
[
|
|
1931
|
-
"elbow-fluid",
|
|
1932
|
-
"fluid",
|
|
1933
|
-
[3.981021240569742, 7.614496699403261, 0.02968953016527287],
|
|
1934
|
-
[3, 2, 1, 34, 33, 29],
|
|
1935
|
-
[[87], None],
|
|
1936
|
-
]
|
|
1937
|
-
],
|
|
1938
|
-
[
|
|
1939
|
-
["outlet-1", "fluid", 1, [3], None, "geom", False, None],
|
|
1940
|
-
["hot-inlet-1", "fluid", 1, [2], None, "geom", False, None],
|
|
1941
|
-
["cold-inlet-1", "fluid", 1, [2, 1], None, "geom", False, None],
|
|
1942
|
-
["wall-inlet-1", "fluid", 1, [34], None, "geom", False, None],
|
|
1943
|
-
[
|
|
1944
|
-
"elbow-fluid",
|
|
1945
|
-
"solid",
|
|
1946
|
-
10,
|
|
1947
|
-
[3, 2, 1, 34, 33, 29],
|
|
1948
|
-
None,
|
|
1949
|
-
"geom",
|
|
1950
|
-
None,
|
|
1951
|
-
None,
|
|
1952
|
-
None,
|
|
1953
|
-
"body",
|
|
1954
|
-
],
|
|
1955
|
-
[
|
|
1956
|
-
"wall-elbow",
|
|
1957
|
-
"solid",
|
|
1958
|
-
10,
|
|
1959
|
-
[34],
|
|
1960
|
-
None,
|
|
1961
|
-
"geom",
|
|
1962
|
-
None,
|
|
1963
|
-
None,
|
|
1964
|
-
None,
|
|
1965
|
-
"facelabel",
|
|
1966
|
-
],
|
|
1967
|
-
[
|
|
1968
|
-
"wall-inlet",
|
|
1969
|
-
"solid",
|
|
1970
|
-
10,
|
|
1971
|
-
[33],
|
|
1972
|
-
None,
|
|
1973
|
-
"geom",
|
|
1974
|
-
None,
|
|
1975
|
-
None,
|
|
1976
|
-
None,
|
|
1977
|
-
"facelabel",
|
|
1978
|
-
],
|
|
1979
|
-
["outlet", "solid", 10, [3], None, "geom", None, None, None, "facelabel"],
|
|
1980
|
-
[
|
|
1981
|
-
"cold-inlet",
|
|
1982
|
-
"solid",
|
|
1983
|
-
10,
|
|
1984
|
-
[2],
|
|
1985
|
-
None,
|
|
1986
|
-
"geom",
|
|
1987
|
-
None,
|
|
1988
|
-
None,
|
|
1989
|
-
None,
|
|
1990
|
-
"facelabel",
|
|
1991
|
-
],
|
|
1992
|
-
[
|
|
1993
|
-
"hot-inlet",
|
|
1994
|
-
"solid",
|
|
1995
|
-
10,
|
|
1996
|
-
[1],
|
|
1997
|
-
None,
|
|
1998
|
-
"geom",
|
|
1999
|
-
None,
|
|
2000
|
-
None,
|
|
2001
|
-
None,
|
|
2002
|
-
"facelabel",
|
|
2003
|
-
],
|
|
2004
|
-
[
|
|
2005
|
-
"symmetry-xyplane",
|
|
2006
|
-
"solid",
|
|
2007
|
-
10,
|
|
2008
|
-
[29],
|
|
2009
|
-
None,
|
|
2010
|
-
"geom",
|
|
2011
|
-
None,
|
|
2012
|
-
None,
|
|
2013
|
-
None,
|
|
2014
|
-
"facelabel",
|
|
2015
|
-
],
|
|
2016
|
-
],
|
|
2017
|
-
[[87], None],
|
|
2018
|
-
[None],
|
|
2019
|
-
None,
|
|
2020
|
-
] or [
|
|
2021
|
-
"elbow-fluid-1",
|
|
2022
|
-
"solid",
|
|
2023
|
-
10,
|
|
2024
|
-
[29, 33, 34, 1, 2, 3],
|
|
2025
|
-
[20, 21, 22, 23, 24, 25, 26, 27, 28],
|
|
2026
|
-
"mesh",
|
|
2027
|
-
[
|
|
2028
|
-
[
|
|
2029
|
-
"elbow-fluid",
|
|
2030
|
-
"fluid",
|
|
2031
|
-
[3.981021240569742, 7.614496699403261, 0.02968953016527287],
|
|
2032
|
-
[3, 2, 1, 34, 33, 29],
|
|
2033
|
-
[[87], None],
|
|
2034
|
-
]
|
|
2035
|
-
],
|
|
2036
|
-
[
|
|
2037
|
-
["outlet-1", "fluid", 1, [3], None, "geom", False, None],
|
|
2038
|
-
["hot-inlet-1", "fluid", 1, [2], None, "geom", False, None],
|
|
2039
|
-
["cold-inlet-1", "fluid", 1, [2, 1], None, "geom", False, None],
|
|
2040
|
-
["wall-inlet-1", "fluid", 1, [34], None, "geom", False, None],
|
|
2041
|
-
[
|
|
2042
|
-
"symmetry-xyplane",
|
|
2043
|
-
"solid",
|
|
2044
|
-
10,
|
|
2045
|
-
[29],
|
|
2046
|
-
None,
|
|
2047
|
-
"geom",
|
|
2048
|
-
None,
|
|
2049
|
-
None,
|
|
2050
|
-
None,
|
|
2051
|
-
"facelabel",
|
|
2052
|
-
],
|
|
2053
|
-
[
|
|
2054
|
-
"hot-inlet",
|
|
2055
|
-
"solid",
|
|
2056
|
-
10,
|
|
2057
|
-
[1],
|
|
2058
|
-
None,
|
|
2059
|
-
"geom",
|
|
2060
|
-
None,
|
|
2061
|
-
None,
|
|
2062
|
-
None,
|
|
2063
|
-
"facelabel",
|
|
2064
|
-
],
|
|
2065
|
-
[
|
|
2066
|
-
"cold-inlet",
|
|
2067
|
-
"solid",
|
|
2068
|
-
10,
|
|
2069
|
-
[2],
|
|
2070
|
-
None,
|
|
2071
|
-
"geom",
|
|
2072
|
-
None,
|
|
2073
|
-
None,
|
|
2074
|
-
None,
|
|
2075
|
-
"facelabel",
|
|
2076
|
-
],
|
|
2077
|
-
["outlet", "solid", 10, [3], None, "geom", None, None, None, "facelabel"],
|
|
2078
|
-
[
|
|
2079
|
-
"wall-inlet",
|
|
2080
|
-
"solid",
|
|
2081
|
-
10,
|
|
2082
|
-
[33],
|
|
2083
|
-
None,
|
|
2084
|
-
"geom",
|
|
2085
|
-
None,
|
|
2086
|
-
None,
|
|
2087
|
-
None,
|
|
2088
|
-
"facelabel",
|
|
2089
|
-
],
|
|
2090
|
-
[
|
|
2091
|
-
"wall-elbow",
|
|
2092
|
-
"solid",
|
|
2093
|
-
10,
|
|
2094
|
-
[34],
|
|
2095
|
-
None,
|
|
2096
|
-
"geom",
|
|
2097
|
-
None,
|
|
2098
|
-
None,
|
|
2099
|
-
None,
|
|
2100
|
-
"facelabel",
|
|
2101
|
-
],
|
|
2102
|
-
[
|
|
2103
|
-
"elbow-fluid",
|
|
2104
|
-
"solid",
|
|
2105
|
-
10,
|
|
2106
|
-
[3, 2, 1, 34, 33, 29],
|
|
2107
|
-
None,
|
|
2108
|
-
"geom",
|
|
2109
|
-
None,
|
|
2110
|
-
None,
|
|
2111
|
-
None,
|
|
2112
|
-
"body",
|
|
2113
|
-
],
|
|
2114
|
-
],
|
|
2115
|
-
[[87], None],
|
|
2116
|
-
[None],
|
|
2117
|
-
None,
|
|
2118
|
-
]
|
|
2119
|
-
|
|
2120
|
-
assert (
|
|
2121
|
-
meshing_session.meshing_utilities.replace_object_suffix(
|
|
2122
|
-
object_name_list=["elbow-fluid"], separator="-", new_suffix="fluid-new"
|
|
2123
|
-
)
|
|
2124
|
-
== "*the-non-printing-object*"
|
|
2125
|
-
or False
|
|
2126
|
-
)
|
|
2127
|
-
|
|
2128
|
-
assert (
|
|
2129
|
-
meshing_session.meshing_utilities.rename_face_zone_label(
|
|
2130
|
-
object_name="elbow-fluid-1",
|
|
2131
|
-
old_label_name="outlet",
|
|
2132
|
-
new_label_name="outlet-new",
|
|
2133
|
-
)
|
|
2134
|
-
is None
|
|
2135
|
-
)
|
|
2136
|
-
|
|
2137
|
-
assert (
|
|
2138
|
-
meshing_session.meshing_utilities.replace_label_suffix(
|
|
2139
|
-
object_name_list=["elbow-fluid-1"], separator="-", new_suffix="fluid-new"
|
|
2140
|
-
)
|
|
2141
|
-
== "*the-non-printing-object*"
|
|
2142
|
-
or False
|
|
2143
|
-
)
|
|
2144
|
-
|
|
2145
|
-
assert (
|
|
2146
|
-
meshing_session.meshing_utilities.copy_face_zone_labels(
|
|
2147
|
-
from_face_zone_id=33, to_face_zone_id=34
|
|
2148
|
-
)
|
|
2149
|
-
== "*the-non-printing-object*"
|
|
2150
|
-
or False
|
|
2151
|
-
)
|
|
2152
|
-
|
|
2153
|
-
assert (
|
|
2154
|
-
meshing_session.meshing_utilities.merge_face_zones(
|
|
2155
|
-
face_zone_id_list=[30, 31, 32]
|
|
2156
|
-
)
|
|
2157
|
-
is False
|
|
2158
|
-
)
|
|
2159
|
-
|
|
2160
|
-
assert (
|
|
2161
|
-
meshing_session.meshing_utilities.merge_face_zones(
|
|
2162
|
-
face_zone_name_pattern="wall*"
|
|
2163
|
-
)
|
|
2164
|
-
== 34
|
|
2165
|
-
)
|
|
2166
|
-
|
|
2167
|
-
assert (
|
|
2168
|
-
meshing_session.meshing_utilities.merge_face_zones_of_type(
|
|
2169
|
-
face_zone_type="velocity-inlet", face_zone_name_pattern="*"
|
|
2170
|
-
)
|
|
2171
|
-
== 1
|
|
2172
|
-
)
|
|
2173
|
-
|
|
2174
|
-
assert (
|
|
2175
|
-
meshing_session.meshing_utilities.merge_face_zones_with_same_prefix(
|
|
2176
|
-
prefix="elbow"
|
|
2177
|
-
)
|
|
2178
|
-
is True
|
|
2179
|
-
)
|
|
2180
|
-
|
|
2181
|
-
assert (
|
|
2182
|
-
meshing_session.meshing_utilities.merge_cell_zones(cell_zone_id_list=[87])
|
|
2183
|
-
is False
|
|
2184
|
-
)
|
|
2185
|
-
|
|
2186
|
-
assert (
|
|
2187
|
-
meshing_session.meshing_utilities.merge_cell_zones(
|
|
2188
|
-
cell_zone_name_list=["elbow-fluid"]
|
|
2189
|
-
)
|
|
2190
|
-
is False
|
|
2191
|
-
)
|
|
2192
|
-
|
|
2193
|
-
assert (
|
|
2194
|
-
meshing_session.meshing_utilities.merge_cell_zones(cell_zone_name_pattern="*")
|
|
2195
|
-
is False
|
|
2196
|
-
)
|
|
2197
|
-
|
|
2198
|
-
assert (
|
|
2199
|
-
meshing_session.meshing_utilities.merge_cell_zones_with_same_prefix(
|
|
2200
|
-
prefix="elbow"
|
|
2201
|
-
)
|
|
2202
|
-
is True
|
|
2203
|
-
)
|
|
2204
|
-
|
|
2205
|
-
assert (
|
|
2206
|
-
meshing_session.meshing_utilities.merge_cell_zones_with_same_suffix(
|
|
2207
|
-
suffix="fluid"
|
|
2208
|
-
)
|
|
2209
|
-
is True
|
|
2210
|
-
)
|
|
2211
|
-
|
|
2212
|
-
assert (
|
|
2213
|
-
meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(
|
|
2214
|
-
face_zone_id_list=[30, 31, 32]
|
|
2215
|
-
)
|
|
2216
|
-
is True
|
|
2217
|
-
)
|
|
2218
|
-
|
|
2219
|
-
assert (
|
|
2220
|
-
meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(
|
|
2221
|
-
face_zone_name_list=["wall-inlet", "wallfluid-new"]
|
|
2222
|
-
)
|
|
2223
|
-
is True
|
|
2224
|
-
)
|
|
2225
|
-
|
|
2226
|
-
assert (
|
|
2227
|
-
meshing_session.meshing_utilities.separate_face_zones_by_cell_neighbor(
|
|
2228
|
-
face_zone_name_pattern="*"
|
|
2229
|
-
)
|
|
2230
|
-
is True
|
|
2231
|
-
)
|
|
2232
|
-
|
|
2233
|
-
assert (
|
|
2234
|
-
meshing_session.meshing_utilities.refine_marked_faces_in_zones(
|
|
2235
|
-
face_zone_id_list=[30, 31, 32]
|
|
2236
|
-
)
|
|
2237
|
-
is None
|
|
2238
|
-
)
|
|
2239
|
-
|
|
2240
|
-
assert (
|
|
2241
|
-
meshing_session.meshing_utilities.refine_marked_faces_in_zones(
|
|
2242
|
-
face_zone_name_list=["wall-inlet", "wallfluid-new"]
|
|
2243
|
-
)
|
|
2244
|
-
is None
|
|
2245
|
-
)
|
|
2246
|
-
|
|
2247
|
-
assert meshing_session.meshing_utilities.refine_marked_faces_in_zones(
|
|
2248
|
-
face_zone_name_pattern="*"
|
|
2249
|
-
) == [0, 0, 0, 0, 0]
|
|
2250
|
-
|
|
2251
|
-
assert (
|
|
2252
|
-
meshing_session.meshing_utilities.fill_holes_in_face_zone_list(
|
|
2253
|
-
face_zone_id_list=[30, 31, 32], max_hole_edges=2
|
|
2254
|
-
)
|
|
2255
|
-
is False
|
|
2256
|
-
)
|
|
2257
|
-
|
|
2258
|
-
assert (
|
|
2259
|
-
meshing_session.meshing_utilities.fill_holes_in_face_zone_list(
|
|
2260
|
-
face_zone_name_list=["wall-inlet", "wallfluid-new"], max_hole_edges=2
|
|
2261
|
-
)
|
|
2262
|
-
is False
|
|
2263
|
-
)
|
|
2264
|
-
|
|
2265
|
-
assert (
|
|
2266
|
-
meshing_session.meshing_utilities.fill_holes_in_face_zone_list(
|
|
2267
|
-
face_zone_name_pattern="wall*", max_hole_edges=2
|
|
2268
|
-
)
|
|
2269
|
-
is False
|
|
2270
|
-
)
|
|
2271
|
-
|
|
2272
|
-
assert (
|
|
2273
|
-
meshing_session.meshing_utilities.project_zone_on_plane(
|
|
2274
|
-
zone_id=87, plane=[[1, 0, 0], [0, 1, 0], [0, 0, 1]]
|
|
2275
|
-
)
|
|
2276
|
-
is None
|
|
2277
|
-
)
|
|
2278
|
-
|
|
2279
|
-
assert (
|
|
2280
|
-
meshing_session.meshing_utilities.delete_all_sub_domains()
|
|
2281
|
-
== "*the-non-printing-object*"
|
|
2282
|
-
or False
|
|
2283
|
-
)
|
|
2284
|
-
|
|
2285
|
-
assert (
|
|
2286
|
-
meshing_session.meshing_utilities.delete_marked_faces_in_zones(
|
|
2287
|
-
face_zone_id_list=[30, 31, 32]
|
|
2288
|
-
)
|
|
2289
|
-
is None
|
|
2290
|
-
)
|
|
2291
|
-
|
|
2292
|
-
assert (
|
|
2293
|
-
meshing_session.meshing_utilities.delete_marked_faces_in_zones(
|
|
2294
|
-
face_zone_name_list=["wall-inlet", "wallfluid-new"]
|
|
2295
|
-
)
|
|
2296
|
-
is None
|
|
2297
|
-
)
|
|
2298
|
-
|
|
2299
|
-
# assert meshing_session.meshing_utilities.delete_marked_faces_in_zones(
|
|
2300
|
-
# face_zone_name_pattern="*"
|
|
2301
|
-
# ) == [0, 0, 0, 0, 3446]
|
|
2302
|
-
|
|
2303
|
-
assert (
|
|
2304
|
-
meshing_session.meshing_utilities.delete_empty_face_zones(
|
|
2305
|
-
face_zone_id_list=[30, 31, 32]
|
|
2306
|
-
)
|
|
2307
|
-
is None
|
|
2308
|
-
)
|
|
2309
|
-
|
|
2310
|
-
assert (
|
|
2311
|
-
meshing_session.meshing_utilities.delete_empty_face_zones(
|
|
2312
|
-
face_zone_name_list=["wall-inlet", "wallfluid-new"]
|
|
2313
|
-
)
|
|
2314
|
-
is None
|
|
2315
|
-
)
|
|
2316
|
-
|
|
2317
|
-
assert meshing_session.meshing_utilities.delete_empty_face_zones(
|
|
2318
|
-
face_zone_name_pattern="*"
|
|
2319
|
-
) == [29, 1, 3, 34, 89]
|
|
2320
|
-
|
|
2321
|
-
assert meshing_session.meshing_utilities.delete_empty_cell_zones(
|
|
2322
|
-
cell_zone_id_list=[87]
|
|
2323
|
-
) == [87]
|
|
2324
|
-
|
|
2325
|
-
assert meshing_session.meshing_utilities.delete_empty_cell_zones(
|
|
2326
|
-
cell_zone_name_list=["elbow.87"]
|
|
2327
|
-
) == [87]
|
|
2328
|
-
|
|
2329
|
-
assert meshing_session.meshing_utilities.delete_empty_cell_zones(
|
|
2330
|
-
cell_zone_name_pattern="*"
|
|
2331
|
-
) == [87]
|
|
2332
|
-
|
|
2333
|
-
assert meshing_session.meshing_utilities.delete_empty_edge_zones(
|
|
2334
|
-
edge_zone_id_list=[20, 25, 26]
|
|
2335
|
-
) == [26, 25, 20]
|
|
2336
|
-
|
|
2337
|
-
assert meshing_session.meshing_utilities.delete_empty_edge_zones(
|
|
2338
|
-
edge_zone_name_list=[
|
|
2339
|
-
"symmetry:xyplane:hot-inlet:elbow-fluid:feature.20",
|
|
2340
|
-
"hot-inlet:wall-inlet:elbow-fluid:feature.21",
|
|
2341
|
-
]
|
|
2342
|
-
) == [21]
|
|
2343
|
-
|
|
2344
|
-
assert meshing_session.meshing_utilities.delete_empty_edge_zones(
|
|
2345
|
-
edge_zone_name_pattern="*"
|
|
2346
|
-
) == [28, 27, 26, 25, 24, 23, 22, 21, 20]
|
|
2347
|
-
|
|
2348
|
-
assert meshing_session.meshing_utilities.delete_empty_zones(
|
|
2349
|
-
zone_id_list=[20, 32, 87]
|
|
2350
|
-
) == [20, 87]
|
|
2351
|
-
|
|
2352
|
-
assert meshing_session.meshing_utilities.delete_empty_zones(
|
|
2353
|
-
zone_name_list=["hotfluid-new", "elbow.87"]
|
|
2354
|
-
) == [87]
|
|
2355
|
-
|
|
2356
|
-
assert meshing_session.meshing_utilities.delete_empty_zones(
|
|
2357
|
-
zone_name_pattern="*"
|
|
2358
|
-
) == [169, 163, 19, 28, 27, 26, 25, 24, 23, 22, 21, 20, 29, 1, 3, 34, 89, 87]
|
|
2359
|
-
|
|
2360
|
-
assert meshing_session.meshing_utilities.boundary_zone_exists(zone_id=31) is False
|
|
2361
|
-
|
|
2362
|
-
assert (
|
|
2363
|
-
meshing_session.meshing_utilities.boundary_zone_exists(zone_name="wall-inlet")
|
|
2364
|
-
is False
|
|
2365
|
-
)
|
|
2366
|
-
|
|
2367
|
-
assert meshing_session.meshing_utilities.interior_zone_exists(zone_id=31) is False
|
|
2368
|
-
|
|
2369
|
-
assert (
|
|
2370
|
-
meshing_session.meshing_utilities.interior_zone_exists(zone_name="wall-inlet")
|
|
2371
|
-
is False
|
|
2372
|
-
)
|
|
2373
|
-
|
|
2374
|
-
assert meshing_session.meshing_utilities.cell_zone_exists(zone_id=87) is True
|
|
2375
|
-
|
|
2376
|
-
assert (
|
|
2377
|
-
meshing_session.meshing_utilities.cell_zone_exists(zone_name="elbow.87") is True
|
|
2378
|
-
)
|
|
2379
|
-
|
|
2380
|
-
assert meshing_session.meshing_utilities.mesh_exists() is True
|
|
2381
|
-
|
|
2382
|
-
assert (
|
|
2383
|
-
meshing_session.meshing_utilities.replace_face_zone_suffix(
|
|
2384
|
-
face_zone_id_list=[30, 31, 32],
|
|
2385
|
-
separator="-suffix-",
|
|
2386
|
-
replace_with="-with-",
|
|
2387
|
-
merge=False,
|
|
2388
|
-
)
|
|
2389
|
-
is False
|
|
2390
|
-
)
|
|
2391
|
-
|
|
2392
|
-
assert (
|
|
2393
|
-
meshing_session.meshing_utilities.replace_face_zone_suffix(
|
|
2394
|
-
face_zone_name_list=["cold-inlet", "hot-inlet"],
|
|
2395
|
-
separator="-suffix-",
|
|
2396
|
-
replace_with="-with-",
|
|
2397
|
-
merge=False,
|
|
2398
|
-
)
|
|
2399
|
-
is False
|
|
2400
|
-
)
|
|
2401
|
-
|
|
2402
|
-
assert meshing_session.meshing_utilities.replace_cell_zone_suffix(
|
|
2403
|
-
cell_zone_id_list=[87], old_suffix="fluid", new_suffix="fluid-new", merge=True
|
|
2404
|
-
) == ["*the-non-printing-object*"] or [False]
|
|
2405
|
-
|
|
2406
|
-
assert (
|
|
2407
|
-
meshing_session.meshing_utilities.replace_cell_zone_suffix(
|
|
2408
|
-
cell_zone_name_list=["elbow-fluid-new"],
|
|
2409
|
-
old_suffix="fluid",
|
|
2410
|
-
new_suffix="fluid-new",
|
|
2411
|
-
merge=True,
|
|
2412
|
-
)
|
|
2413
|
-
is None
|
|
2414
|
-
)
|
|
2415
|
-
|
|
2416
|
-
assert (
|
|
2417
|
-
meshing_session.meshing_utilities.replace_edge_zone_suffix(
|
|
2418
|
-
edge_zone_id_list=[20],
|
|
2419
|
-
old_suffix="fluid",
|
|
2420
|
-
new_suffix="fluid-new",
|
|
2421
|
-
merge=True,
|
|
2422
|
-
)
|
|
2423
|
-
== "*the-non-printing-object*"
|
|
2424
|
-
or False
|
|
2425
|
-
)
|
|
2426
|
-
|
|
2427
|
-
assert (
|
|
2428
|
-
meshing_session.meshing_utilities.replace_edge_zone_suffix(
|
|
2429
|
-
edge_zone_name_list=["hot-inlet:wall-inlet:elbow-fluid:feature.21"],
|
|
2430
|
-
old_suffix="fluid",
|
|
2431
|
-
new_suffix="fluid-new",
|
|
2432
|
-
merge=True,
|
|
2433
|
-
)
|
|
2434
|
-
== "*the-non-printing-object*"
|
|
2435
|
-
or False
|
|
2436
|
-
)
|