FEM: nonlinear materials, add check if nonlinear material object is in the analysis when solver is set to nonlinear materials

This commit is contained in:
Bernd Hahnebach 2016-09-25 19:36:55 +01:00 committed by Yorik van Havre
parent 956a13da38
commit 31c1f15c9b

View File

@ -328,6 +328,8 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
message += "Frequency analysis: Solver has no EigenmodeLowLimit.\n"
elif not hasattr(self.solver, "EigenmodesCount"):
message += "Frequency analysis: Solver has no EigenmodesCount.\n"
if hasattr(self.solver, "MaterialNonlinearity") and self.solver.MaterialNonlinearity == "nonlinear" and not self.materials_nonlinear:
message += "Solver is set to nonlinear materials, but there is no nonlinear material in the analysis. \n"
# mesh
if not self.mesh:
message += "No mesh object defined in the analysis\n"