From 361ea3367da28ed134ddedfcce9eafed2eb59836 Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 28 Mar 2022 02:25:19 +0200 Subject: [PATCH] [FEM] fix network pressure value display in result pipelines was forgotten in https://github.com/FreeCAD/FreeCAD/commit/2b1bbd5e6c6 --- src/Mod/Fem/App/FemVTKTools.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/App/FemVTKTools.cpp b/src/Mod/Fem/App/FemVTKTools.cpp index 2e3d8cb6cd..8e0c6d77a8 100644 --- a/src/Mod/Fem/App/FemVTKTools.cpp +++ b/src/Mod/Fem/App/FemVTKTools.cpp @@ -869,7 +869,7 @@ void FemVTKTools::exportFreeCADResult(const App::DocumentObject* result, vtkSmar } if (it->first.compare("DisplacementVectors") == 0) - factor = 0.001; + factor = 0.001; // to get meter else factor = 1.0; @@ -922,10 +922,11 @@ void FemVTKTools::exportFreeCADResult(const App::DocumentObject* result, vtkSmar || (it->first.compare("PrincipalMax") == 0) || (it->first.compare("PrincipalMed") == 0) || (it->first.compare("PrincipalMin") == 0) - || (it->first.compare("vonMises") == 0)) - factor = 1e6; + || (it->first.compare("vonMises") == 0) + || (it->first.compare("NetworkPressure") == 0) ) + factor = 1e6; // to get Pascal else if (it->first.compare("DisplacementLengths") == 0) - factor = 0.001; + factor = 0.001; // to get meter else factor = 1.0;