Skip to content

Add result scoping output #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/ansys/dpf/post/result_workflows/_sub_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def _create_initial_result_workflow(
initial_result_workflow.add_operator(forward_shell_layer_op)
initial_result_workflow.set_input_name(_WfNames.shell_layer, forward_shell_layer_op)

forward_input_mesh_scoping_op = operators.utility.forward(server=server)
initial_result_workflow.add_operator(forward_input_mesh_scoping_op)

# The next section is only needed, because the shell_layer selection does not
# work for elemental and elemental nodal results.
# If elemental results are requested with a chosen shell layer,
Expand Down Expand Up @@ -258,8 +261,16 @@ def _create_initial_result_workflow(
initial_result_workflow.set_input_name(
"time_scoping", initial_result_op.inputs.time_scoping
)

initial_result_workflow.set_input_name(
"mesh_scoping", initial_result_op.inputs.mesh_scoping
"mesh_scoping", forward_input_mesh_scoping_op
)
_connect_any(
initial_result_op.inputs.mesh_scoping, forward_input_mesh_scoping_op.outputs.any
)

initial_result_workflow.set_output_name(
_WfNames.result_scoping, forward_input_mesh_scoping_op.outputs.any
)

initial_result_workflow.set_input_name(_WfNames.read_cyclic, initial_result_op, 14)
Expand Down
1 change: 1 addition & 0 deletions src/ansys/dpf/post/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class _WfNames:
skin_input_mesh = "skin_input_mesh"
final_scoping = "final_scoping"
result_scoping_by_body = "result_scoping_by_body"
result_scoping = "result_scoping"
scoping_a = "scoping_a"
scoping_b = "scoping_b"
streams = "streams"
Expand Down