Skip to content

Commit

Permalink
[FEM] [skip CI] formatting fix for potential
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly committed Aug 10, 2022
1 parent ad2042e commit 20047c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Mod/Fem/femobjects/constraint_electrostaticpotential.py
Expand Up @@ -51,7 +51,7 @@ def add_properties(self, obj):
"Potential",
"Parameter",
"Electric Potential"
),
)
obj.Potential = 0.0

if not hasattr(obj, "PotentialEnabled"):
Expand All @@ -60,7 +60,7 @@ def add_properties(self, obj):
"PotentialEnabled",
"Parameter",
"Potential Enabled"
),
)
obj.PotentialEnabled = False

if not hasattr(obj, "PotentialConstant"):
Expand All @@ -69,7 +69,7 @@ def add_properties(self, obj):
"PotentialConstant",
"Parameter",
"Potential Constant"
),
)
obj.PotentialConstant = False

if not hasattr(obj, "ElectricInfinity"):
Expand All @@ -78,7 +78,7 @@ def add_properties(self, obj):
"ElectricInfinity",
"Parameter",
"Electric Infinity"
),
)
obj.ElectricInfinity = False

if not hasattr(obj, "ElectricForcecalculation"):
Expand All @@ -87,7 +87,7 @@ def add_properties(self, obj):
"ElectricForcecalculation",
"Parameter",
"Electric Force Calculation"
),
)
obj.ElectricForcecalculation = False

if not hasattr(obj, "CapacitanceBody"):
Expand All @@ -96,7 +96,7 @@ def add_properties(self, obj):
"CapacitanceBody",
"Parameter",
"Capacitance Body"
),
)
obj.CapacitanceBody = 0

if not hasattr(obj, "CapacitanceBodyEnabled"):
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femsolver/elmer/writer.py
Expand Up @@ -657,7 +657,7 @@ def _handleElectrostaticBndConditions(self):
"Potential",
"Parameter",
"Electric Potential"
),
)
# scale to match SI units
obj.Potential = savePotential * 1e6
potential = float(obj.Potential.getValueAs("V"))
Expand Down

0 comments on commit 20047c9

Please sign in to comment.