Skip to content

Commit

Permalink
FEM: elmer writer, potential could be 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Feb 16, 2020
1 parent e8417c6 commit a758941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Fem/femsolver/elmer/writer.py
Expand Up @@ -353,7 +353,8 @@ def _handleElectrostaticBndConditions(self):
for obj in self._getMember("Fem::ConstraintElectrostaticPotential"):
if obj.References:
for name in obj.References[0][1]:
if obj.Potential:
if hasattr(obj, "Potential"):
# https://forum.freecadweb.org/viewtopic.php?f=18&t=41488&start=10#p369454
potential = getFromUi(obj.Potential, "V", "M*L^2/(T^3 * I)")
self._boundary(name, "Potential", potential)
if obj.PotentialConstant:
Expand Down

0 comments on commit a758941

Please sign in to comment.