Skip to content

Commit

Permalink
Add fatigue example
Browse files Browse the repository at this point in the history
  • Loading branch information
janvonrickenbach committed Jan 4, 2024
1 parent 79d9bc9 commit 0056258
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansys/dpf/composites/ply_wise_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def get_ply_wise_data(
return elemental_nodal_data

if requested_location == locations.elemental:
# Note Jan 2024 we currently always average over the nodes in an element. It would also be
# useful to be able to get the max or min value over the nodes in an element.
# This could be done with the max_by_entity_operator but this workflow is currently
# broken due to BUG 964544
elemental_nodal_to_elemental = operators.averaging.elemental_mean()
elemental_nodal_to_elemental.inputs.field.connect(elemental_nodal_data)
out_field = elemental_nodal_to_elemental.outputs.field()
Expand Down

0 comments on commit 0056258

Please sign in to comment.