From 831f0010264810266567138f63bb2f0dae5c7439 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 25 Mar 2023 05:23:18 +0100 Subject: [PATCH] [FEM] update transient analysis example file - get outputs every 25 % and the last one is the final time --- src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py index a8cd2b29bf..42613f4417 100644 --- a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py +++ b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py @@ -117,8 +117,9 @@ def setup(doc=None, solvertype="elmer"): # solver if solvertype == "elmer": solver_obj = ObjectsFem.makeSolverElmer(doc, "SolverElmer") + solver_obj.OutputIntervals = [5] solver_obj.SimulationType = "Transient" - solver_obj.TimestepIntervals = [20] + solver_obj.TimestepIntervals = [21] solver_obj.TimestepSizes = [0.05] equation_deformation = ObjectsFem.makeEquationDeformation(doc, solver_obj) equation_deformation.setExpression("LinearTolerance", "1e-7")