FEM: beam rotation object, add this new object

This commit is contained in:
Bernd Hahnebach
2018-01-23 06:39:18 +01:00
committed by wmayer
parent f1c2f12423
commit a2d8afb65c
9 changed files with 450 additions and 0 deletions

View File

@@ -223,6 +223,17 @@ def makeElementGeometry2D(doc, thickness=20.0, name="ElementGeometry2D"):
return obj
def makeElementRotation1D(doc, name="ElementRotation1D"):
'''makeElementRotation1D(document, [name]): creates an 1D geometry rotation element object to rotate a 1D cross section'''
obj = doc.addObject("Fem::FeaturePython", name)
from PyObjects import _FemElementRotation1D
_FemElementRotation1D._FemElementRotation1D(obj)
if FreeCAD.GuiUp:
from PyGui import _ViewProviderFemElementRotation1D
_ViewProviderFemElementRotation1D._ViewProviderFemElementRotation1D(obj.ViewObject)
return obj
########## material objects ##########
def makeMaterialFluid(doc, name="FluidMaterial"):
'''makeMaterialFluid(document, [name]): makes a FEM Material for fluid'''