FEM: fix trailing newlines

This commit is contained in:
luzpaz
2023-02-13 14:03:08 +00:00
committed by Uwe
parent 7aa9ccde77
commit d844255685
4 changed files with 4 additions and 4 deletions

View File

@@ -198,7 +198,7 @@ class Proxy(nonlinear.Proxy, equationbase.MagnetodynamicProxy):
obj.CalculateNodalForces = False
obj.CalculateNodalHeating = False
obj.DiscontinuousBodies = False
class ViewProxy(nonlinear.ViewProxy, equationbase.MagnetodynamicViewProxy):
pass

View File

@@ -153,7 +153,7 @@ class MgDyn2Dwriter:
if not obj.CurrentDensity_im_1_Disabled:
currentDensity = float(obj.CurrentDensity_im_1.getValueAs("A/m^2"))
self.write.bodyForce(name, "Current Density Im", round(currentDensity, 6))
if hasattr(obj, "Magnetization_re_1"):
# output only if magnetization is enabled and needed
if not obj.Magnetization_re_1_Disabled:

View File

@@ -350,7 +350,7 @@ class MgDynwriter:
for name in obj.References[0][1]:
self._outputMagnetodynamicBndConditions(obj, name, equation)
self.write.handled(obj)
# the potential can either be a body force or a boundary constraint
# therefore only output here if a face is referenced
potentials = self.write.getMember("Fem::ConstraintElectrostaticPotential")

View File

@@ -548,7 +548,7 @@ class Writer(object):
activeIn = equation.References[0][1]
else:
activeIn = self.getAllBodies()
solverSection = MgDyn.getMagnetodynamicSolver(equation)
solverPostSection = MgDyn.getMagnetodynamicSolverPost(equation)
for body in activeIn: