Skip to content

Commit 0ffc134

Browse files
Add result scoping output (#802)
Co-authored-by: Paul Profizi <[email protected]>
1 parent 7c844da commit 0ffc134

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/ansys/dpf/post/result_workflows/_sub_workflows.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ def _create_initial_result_workflow(
212212
initial_result_workflow.add_operator(forward_shell_layer_op)
213213
initial_result_workflow.set_input_name(_WfNames.shell_layer, forward_shell_layer_op)
214214

215+
forward_input_mesh_scoping_op = operators.utility.forward(server=server)
216+
initial_result_workflow.add_operator(forward_input_mesh_scoping_op)
217+
215218
# The next section is only needed, because the shell_layer selection does not
216219
# work for elemental and elemental nodal results.
217220
# If elemental results are requested with a chosen shell layer,
@@ -258,8 +261,16 @@ def _create_initial_result_workflow(
258261
initial_result_workflow.set_input_name(
259262
"time_scoping", initial_result_op.inputs.time_scoping
260263
)
264+
261265
initial_result_workflow.set_input_name(
262-
"mesh_scoping", initial_result_op.inputs.mesh_scoping
266+
"mesh_scoping", forward_input_mesh_scoping_op
267+
)
268+
_connect_any(
269+
initial_result_op.inputs.mesh_scoping, forward_input_mesh_scoping_op.outputs.any
270+
)
271+
272+
initial_result_workflow.set_output_name(
273+
_WfNames.result_scoping, forward_input_mesh_scoping_op.outputs.any
263274
)
264275

265276
initial_result_workflow.set_input_name(_WfNames.read_cyclic, initial_result_op, 14)

src/ansys/dpf/post/selection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class _WfNames:
6060
skin_input_mesh = "skin_input_mesh"
6161
final_scoping = "final_scoping"
6262
result_scoping_by_body = "result_scoping_by_body"
63+
result_scoping = "result_scoping"
6364
scoping_a = "scoping_a"
6465
scoping_b = "scoping_b"
6566
streams = "streams"

0 commit comments

Comments
 (0)