From e33940ace69e5dbaaf3b535cacfee45acc361971 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 1 Aug 2016 21:57:43 +0100 Subject: [PATCH] FEM: thermomechanical analysis: add pre check for initial temperature --- src/Mod/Fem/FemTools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Fem/FemTools.py b/src/Mod/Fem/FemTools.py index 38748999d..9797da468 100644 --- a/src/Mod/Fem/FemTools.py +++ b/src/Mod/Fem/FemTools.py @@ -322,6 +322,11 @@ class FemTools(QtCore.QRunnable, QtCore.QObject): if self.analysis_type == "static": 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.analysis_type == "thermomech": + if not self.initialtemperature_constraints: + message += "No initial temperature defined in the thermomechanical analysis\n" + if len(self.initialtemperature_constraints) > 1: + message += "Only one initial temperature is allowed in thermomechanical analysis\n" if self.beam_sections: if self.shell_thicknesses: # this needs to be checked only once either here or in shell_thicknesses