From 00562585c41a578fe8a1e31a053325f5a0b46dcb Mon Sep 17 00:00:00 2001 From: jvonrick Date: Thu, 4 Jan 2024 16:54:16 +0100 Subject: [PATCH] Add fatigue example --- src/ansys/dpf/composites/ply_wise_data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ansys/dpf/composites/ply_wise_data.py b/src/ansys/dpf/composites/ply_wise_data.py index ba84cc9da..cae700600 100644 --- a/src/ansys/dpf/composites/ply_wise_data.py +++ b/src/ansys/dpf/composites/ply_wise_data.py @@ -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()