From 4f8ceb287e3e886ecab83da162c8ee44e2b8d6c5 Mon Sep 17 00:00:00 2001 From: Uwe Date: Tue, 23 Aug 2022 02:22:52 +0500 Subject: [PATCH] [FEM] pipelines: distinguish stresses (#7246) - it seems using the same Field name for a vector and a scalar result causes problems with ParaView, see https://forum.freecadweb.org/viewtopic.php?p=601775#p601775 therefore rename the vectors --- src/Mod/Fem/App/FemVTKTools.cpp | 6 +++--- src/Mod/Fem/Gui/TaskPostBoxes.cpp | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/App/FemVTKTools.cpp b/src/Mod/Fem/App/FemVTKTools.cpp index 18707a93f1..a56fd4434b 100644 --- a/src/Mod/Fem/App/FemVTKTools.cpp +++ b/src/Mod/Fem/App/FemVTKTools.cpp @@ -689,9 +689,9 @@ std::map _getFreeCADMechResultVectorProperties() { // the following three are filled only if there is a reinforced mat object // https://forum.freecadweb.org/viewtopic.php?f=18&t=33106&start=70#p296317 // https://forum.freecadweb.org/viewtopic.php?f=18&t=33106&p=416006#p412800 - resFCVecProp["PS1Vector"] = "Major Principal Stress"; - resFCVecProp["PS2Vector"] = "Intermediate Principal Stress"; - resFCVecProp["PS3Vector"] = "Minor Principal Stress"; + resFCVecProp["PS1Vector"] = "Major Principal Stress Vector"; + resFCVecProp["PS2Vector"] = "Intermediate Principal Stress Vector"; + resFCVecProp["PS3Vector"] = "Minor Principal Stress Vector"; return resFCVecProp; } diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index 271424b744..4790bba647 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -1104,8 +1104,12 @@ void TaskPostDataAtPoint::on_Field_activated(int i) { // CCX names if ( (FieldName == "von Mises Stress") || (FieldName == "Tresca Stress") - || (FieldName == "Major Principal Stress") || (FieldName == "Minor Principal Stress") + || (FieldName == "Major Principal Stress") || (FieldName == "Intermediate Principal Stress") + || (FieldName == "Minor Principal Stress") + || (FieldName == "Major Principal Stress Vector") + || (FieldName == "Intermediate Principal Stress Vector") + || (FieldName == "Minor Principal Stress Vector") || (FieldName == "Stress xx component") || (FieldName == "Stress xy component") || (FieldName == "Stress xz component") || (FieldName == "Stress yy component") || (FieldName == "Stress yz component") || (FieldName == "Stress zz component") ) {