Fem: fix trailing whitespace
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user