FEM: material task panel, workaround to be able to set poissons ratio to 0

This commit is contained in:
Bernd Hahnebach
2018-03-24 22:39:04 +01:00
committed by Yorik van Havre
parent 43bc2de694
commit 8717edb989

View File

@@ -310,6 +310,11 @@ class _TaskPanelFemMaterial:
material = self.material
material['PoissonRatio'] = unicode(value)
self.material = material
elif value == 0:
# PoissonRatio was set to 0.0 what is possible
material = self.material
material['PoissonRatio'] = unicode(value)
self.material = material
def tc_changed(self, value):
old_tc = Units.Quantity(self.material['ThermalConductivity']).getValueAs("W/m/K")