From 4dff5bb403b67f5ac1e7d72c33705f07bf50010f Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 2 Jul 2019 13:16:01 +0200 Subject: [PATCH] FEM: frd result reader, fix principal stress calculation if pure frd file was opened --- src/Mod/Fem/feminout/importCcxFrdResults.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Fem/feminout/importCcxFrdResults.py b/src/Mod/Fem/feminout/importCcxFrdResults.py index 089908a905..66d34b00aa 100644 --- a/src/Mod/Fem/feminout/importCcxFrdResults.py +++ b/src/Mod/Fem/feminout/importCcxFrdResults.py @@ -160,6 +160,10 @@ def importFrd( if has_reinforced_mat is False: # fill PrincipalMax, PrincipalMed, PrincipalMin, MaxShear res_obj = restools.add_principal_stress_std(res_obj) + else: + # if a pure frd file was opened no analysis and thus no parent group + # fill PrincipalMax, PrincipalMed, PrincipalMin, MaxShear + res_obj = restools.add_principal_stress_std(res_obj) # fill Stats res_obj = restools.fill_femresult_stats(res_obj)