createRevoluteJoint
Modeling FunctionDefines a revolute joint between two bodies.
Defintion
createRevoluteJoint creates the I and J marker and returns the joint object created. All properties of a revolute joint are supported by keyword arguments.
Signature
joint = createUJoint(ibody, jbody, location, ishaft, jshaft, **kwds)
Input Arguments
- ibody
- The first body on which the joint is created.
- jbody
- The second body on which the joint is created.
- location
- The location where the joint is created.
- ishaft
- The direction of ishaft if a Vector is given, otherwise it defines the end point.
- jshaft
- The direction of ishaft if a Vector is given, otherwise it defines the end point.
- kwds
- Keyword arguments that define other properties of the joint.
Return Value
- joint
- The revolute joint created.
Usage
# Create a revolute Joint at (1,1,1) and the zaxis is (0,0,1)
part1 = Part(mass=1, ip=[10,10,10], cm=Marker())
part2 = Part(mass=1, ip=[10,10,10], cm=Marker())
joint = createRevoluteJoint(
ibody = part1,
jbody = part2,
location = Point(1,1,1),
axis = Point(1,1,2),
ic = [0.0, 0.0]
)