[FEM] Elmer: fix broken example

- (a regression to FC 0.20.0), use new settings ("direct" is already the default, iterative solving takes here about 5 times longer, DisplaceMesh must be False)
This commit is contained in:
Uwe
2022-08-09 05:38:02 +02:00
parent 8c351a3c3c
commit f8769643cd

View File

@@ -89,11 +89,9 @@ def setup(doc=None, solvertype="elmer"):
elif solvertype == "elmer":
solver_obj = ObjectsFem.makeSolverElmer(doc, "SolverElmer")
eq_obj = ObjectsFem.makeEquationElasticity(doc, solver_obj)
eq_obj.LinearSolverType = "Direct"
# direct solver was used in the tutorial, thus used here too
# the iterative is much faster and gives the same results
eq_obj.DoFrequencyAnalysis = True
eq_obj.EigenAnalysis = True
eq_obj.CalculateStresses = True
eq_obj.DisplaceMesh = False
else:
FreeCAD.Console.PrintWarning(
"Not known or not supported solver type: {}. "