[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
This commit is contained in:
Uwe
2022-08-23 02:22:52 +05:00
committed by GitHub
parent 3f07755a8f
commit 4f8ceb287e
2 changed files with 8 additions and 4 deletions

View File

@@ -689,9 +689,9 @@ std::map<std::string, std::string> _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;
}

View File

@@ -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") ) {