From d5e9a6b2d2f087b96b9c97e1a62727f44c46fae3 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 21 Jul 2016 07:21:47 +0200 Subject: [PATCH] FEM: check prerequisites: adapt to self weight --- src/Mod/Fem/FemTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/FemTools.py b/src/Mod/Fem/FemTools.py index c353bad993..3ee6ab4b4f 100644 --- a/src/Mod/Fem/FemTools.py +++ b/src/Mod/Fem/FemTools.py @@ -269,8 +269,8 @@ class FemTools(QtCore.QRunnable, QtCore.QObject): if not (self.fixed_constraints or self.displacement_constraints): message += "Neither a constraint fixed nor a contraint displacement defined in the static analysis\n" if self.analysis_type == "static": - if not (self.force_constraints or self.pressure_constraints): - message += "Neither constraint force nor constraint pressure defined in the static analysis\n" + if not (self.force_constraints or self.pressure_constraints or self.selfweight_constraints): + message += "Neither constraint force nor constraint pressure or a constraint selfweight defined in the static analysis\n" if self.beam_sections: has_no_references = False for b in self.beam_sections: