From e07c696b1e26f12fe0568343ae3ca61b4fe60199 Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 1 Aug 2022 03:42:57 +0200 Subject: [PATCH] [FEM] Elmer: set sensible defaults for elasticity equation - for BiCGstabl the minimal degree is 2, but 3 is recommended - when adding the equation, it should do something, therefore enable the calculation of the principal stresses (as it was, nothing was calculated except of the displacement) --- src/Mod/Fem/femsolver/elmer/equations/elasticity.py | 1 + src/Mod/Fem/femsolver/elmer/equations/linear.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Mod/Fem/femsolver/elmer/equations/elasticity.py b/src/Mod/Fem/femsolver/elmer/equations/elasticity.py index 31052da556..ea7ff39d92 100644 --- a/src/Mod/Fem/femsolver/elmer/equations/elasticity.py +++ b/src/Mod/Fem/femsolver/elmer/equations/elasticity.py @@ -82,6 +82,7 @@ class Proxy(linear.Proxy, equationbase.ElasticityProxy): ) obj.EigenmodesCount = 5 obj.Priority = 10 + obj.CalculatePrincipal = True class ViewProxy(linear.ViewProxy, equationbase.ElasticityViewProxy): diff --git a/src/Mod/Fem/femsolver/elmer/equations/linear.py b/src/Mod/Fem/femsolver/elmer/equations/linear.py index 6da282f1a4..40b937038e 100644 --- a/src/Mod/Fem/femsolver/elmer/equations/linear.py +++ b/src/Mod/Fem/femsolver/elmer/equations/linear.py @@ -91,6 +91,7 @@ class Proxy(equation.Proxy): "Linear System", "" ) + obj.BiCGstablDegree = 3 obj.addProperty( "App::PropertyEnumeration", "LinearPreconditioning",