FEM: contact solid example, fix obj names

This commit is contained in:
Bernd Hahnebach
2020-02-06 07:55:56 +01:00
parent e0f1079f1f
commit 342695ac37

View File

@@ -56,7 +56,7 @@ def setup(doc=None, solvertype="ccxtools"):
# parts
# bottom box
bottom_box_obj = doc.addObject("Part::Box", "TopBox")
bottom_box_obj = doc.addObject("Part::Box", "BottomBox")
bottom_box_obj.Length = 100
bottom_box_obj.Width = 25
bottom_box_obj.Height = 500
@@ -68,7 +68,7 @@ def setup(doc=None, solvertype="ccxtools"):
doc.recompute()
# top half cylinder, https://forum.freecadweb.org/viewtopic.php?f=18&t=43001#p366111
top_halfcyl_obj = doc.addObject("Part::Cylinder", "BottomHalfCylinder")
top_halfcyl_obj = doc.addObject("Part::Cylinder", "TopHalfCylinder")
top_halfcyl_obj.Radius = 30
top_halfcyl_obj.Height = 500
top_halfcyl_obj.Angle = 180