[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:
@@ -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: {}. "
|
||||
|
||||
Reference in New Issue
Block a user