Skip to content

Commit

Permalink
Update commands.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Mar 2, 2024
1 parent 7eae061 commit db82078
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Mod/Fem/femcommands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,6 @@ def Activated(self):
# set some property of the solver to nonlinear
# (only if one solver is available and if this solver is a CalculiX solver):
# nonlinear material
# nonlinear geometry --> it is triggered anyway
# https://forum.freecad.org/viewtopic.php?f=18&t=23101&p=180489#p180489
solver_object = None
for m in self.active_analysis.Group:
if m.isDerivedFrom("Fem::FemSolverObjectPython"):
Expand All @@ -715,11 +713,10 @@ def Activated(self):
or is_of_type(solver_object, "Fem::SolverCalculix")
):
FreeCAD.Console.PrintMessage(
"Set MaterialNonlinearity and GeometricalNonlinearity to nonlinear for {}\n"
"Set MaterialNonlinearity to nonlinear for {}\n"
.format(solver_object.Label)
)
solver_object.MaterialNonlinearity = "nonlinear"
solver_object.GeometricalNonlinearity = "nonlinear"
FreeCAD.ActiveDocument.commitTransaction()
FreeCADGui.Selection.clearSelection()
FreeCAD.ActiveDocument.recompute()
Expand Down

0 comments on commit db82078

Please sign in to comment.