diff --git a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp index a8eeeee6cc..35ea9040f0 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp @@ -707,7 +707,7 @@ bool TaskDlgFemConstraintDisplacement::accept() name.c_str(), parameterDisplacement->get_useFlowSurfaceForce() ? "True" : "False"); - + std::string scale = parameterDisplacement->getScale();// OvG: determine modified scale Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.%s.Scale = %s", diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp index 633f4df6a6..2bf60b8a70 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp @@ -165,10 +165,10 @@ ViewProviderFemPostFunction::ViewProviderFemPostFunction() AutoScaleFactorY, (1), "AutoScale", App::Prop_Hidden, "Automatic scaling factor"); ADD_PROPERTY_TYPE( AutoScaleFactorZ, (1), "AutoScale", App::Prop_Hidden, "Automatic scaling factor"); - + m_geometrySeperator = new SoSeparator(); m_geometrySeperator->ref(); - + m_scale = new SoScale(); m_scale->ref(); m_scale->scaleFactor = SbVec3f(1, 1, 1); diff --git a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py index c592a971c3..96ed7f6a7c 100644 --- a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py +++ b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py @@ -77,12 +77,12 @@ def setup(doc=None, solvertype="elmer"): SketchPath.MapMode = "FlatFace" SketchPath.addGeometry(Part.LineSegment(Vector( -20.0, 30.0, 0.0), Vector(-20.0, 0.0, 0.0)), False) - SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 0, 2, -1)) - SketchPath.addConstraint(Sketcher.Constraint('Vertical', 0)) + SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 0, 2, -1)) + SketchPath.addConstraint(Sketcher.Constraint('Vertical', 0)) SketchPath.addGeometry(Part.ArcOfCircle(Part.Circle( Vector(0.0, 0.0, 0.0), Vector(0, 0, 1), 20.0), 3.141593, 6.283185), False) - SketchPath.addConstraint(Sketcher.Constraint('Tangent', 0, 2, 1, 1)) - SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 1, 2, -1)) + SketchPath.addConstraint(Sketcher.Constraint('Tangent', 0, 2, 1, 1)) + SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 1, 2, -1)) SketchPath.addGeometry(Part.LineSegment( Vector(20.0, 0.0, 0.0), Vector(20.0, 30.0, 0.0)), False) SketchPath.addConstraint(Sketcher.Constraint('Tangent', 1, 2, 2, 1)) diff --git a/src/Mod/Fem/femsolver/elmer/equations/heat_writer.py b/src/Mod/Fem/femsolver/elmer/equations/heat_writer.py index d5f4dc9334..066dde3d0b 100644 --- a/src/Mod/Fem/femsolver/elmer/equations/heat_writer.py +++ b/src/Mod/Fem/femsolver/elmer/equations/heat_writer.py @@ -129,7 +129,7 @@ class Heatwriter: tempObj = self.write.getSingleMember("Fem::ConstraintInitialTemperature") if tempObj is not None: refTemp = float(tempObj.initialTemperature.getValueAs("K")) - for name in bodies: + for name in bodies: self.write.initial(name, "Temperature", refTemp) self.write.handled(tempObj) diff --git a/src/Mod/Fem/femsolver/elmer/writer.py b/src/Mod/Fem/femsolver/elmer/writer.py index dfa4af460e..e6a0157667 100644 --- a/src/Mod/Fem/femsolver/elmer/writer.py +++ b/src/Mod/Fem/femsolver/elmer/writer.py @@ -348,7 +348,7 @@ class Writer(object): self._simulation("BDF Order", self.solver.BDFOrder) self._simulation("Output Intervals", self.solver.OutputIntervals) self._simulation("Timestep Intervals", self.solver.TimestepIntervals) - self._simulation("Timestep Sizes", self.solver.TimestepSizes) + self._simulation("Timestep Sizes", self.solver.TimestepSizes) self._simulation("Timestepping Method", "BDF") self._simulation("Use Mesh Names", True) diff --git a/src/Mod/Fem/femtools/femutils.py b/src/Mod/Fem/femtools/femutils.py index fa7cddabd5..d2234cebc9 100644 --- a/src/Mod/Fem/femtools/femutils.py +++ b/src/Mod/Fem/femtools/femutils.py @@ -398,7 +398,7 @@ def startProgramInfo(code): return info def expandParentObject(): - """ expands parent and selected obj in tree view """ + """ expands parent and selected obj in tree view """ trees = FreeCADGui.getMainWindow().findChildren(QtGui.QTreeWidget) for tree in trees: items = tree.selectedItems()