FEM: nonlinear material, set nonlinear geometry for nonlinear material in ccx solver

This commit is contained in:
Bernd Hahnebach
2017-07-01 12:07:05 +02:00
committed by wmayer
parent b12831be9e
commit 06054bdeb4
3 changed files with 13 additions and 5 deletions

View File

@@ -340,8 +340,12 @@ 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"
if hasattr(self.solver, "MaterialNonlinearity") and self.solver.MaterialNonlinearity == "nonlinear":
if not self.materials_nonlinear:
message += "Solver is set to nonlinear materials, but there is no nonlinear material in the analysis.\n"
if self.solver.SolverType == 'FemSolverCalculix' and self.solver.GeometricalNonlinearity != "nonlinear":
# nonlinear geometry --> should be set https://forum.freecadweb.org/viewtopic.php?f=18&t=23101&p=180489#p180489
message += "Solver CalculiX triggers nonlinear geometry for nonlinear material, thus it should to be set too.\n"
# mesh
if not self.mesh:
message += "No mesh object defined in the analysis\n"
@@ -400,7 +404,7 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
if has_nonlinear_material is False:
has_nonlinear_material = True
else:
message += "At least two nonlinear materials use the same linear base material. Only one nonlinear material for each linear material allowed. \n"
message += "At least two nonlinear materials use the same linear base material. Only one nonlinear material for each linear material allowed.\n"
# constraints
if self.analysis_type == "static":
if not (self.fixed_constraints or self.displacement_constraints):