From f5a7a9739f026d2c730dc240efcc6d4e7216b8dd Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:42:04 +0100 Subject: [PATCH] Support for stress tensor components in FEM stress linearization (#11724) * Stress components in linearization * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/Mod/Fem/Gui/Command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index 8d423da5ba..82f82e1a3f 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -2013,7 +2013,10 @@ void CmdFemPostLinearizedStressesFilter::activated(int) if ((FieldName == "Tresca Stress") || (FieldName == "von Mises Stress") || (FieldName == "Major Principal Stress") || (FieldName == "Intermediate Principal Stress") - || (FieldName == "Minor Principal Stress") + || (FieldName == "Minor Principal Stress") || (FieldName == "Stress xx component") + || (FieldName == "Stress xy component") || (FieldName == "Stress xz component") + || (FieldName == "Stress yy component") || (FieldName == "Stress yz component") + || (FieldName == "Stress zz component") // names need to match with names in FemVTKTools.cpp, this is not failsafe, // but at the moment there is no better way for test on a stress result in vtk pipeline ) {