Skip to content

Commit

Permalink
FEM: material task panel, workaround to be able to set poissons ratio…
Browse files Browse the repository at this point in the history
… to 0
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Mar 27, 2018
1 parent 43bc2de commit 8717edb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py
Expand Up @@ -310,6 +310,11 @@ def pr_changed(self, value):
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")
Expand Down

0 comments on commit 8717edb

Please sign in to comment.