Package mbdyn :: Package elts :: Module joint :: Class RevolutePin
[hide private]

Class RevolutePin

source code

record.RecordBase --+                    
                    |                    
        record.Record --+                
                        |                
       common.BasicObject --+            
                            |            
  elements_base.CommonElement --+        
                                |        
    elements_base.ElementWithNode --+    
                                    |    
                          CommonJoint --+
                                        |
                                       RevolutePin

A pivot between a built-in node clamped to the ground and the user one. The axis of rotation is set thanks to the set_rotation_axis.

Instance Methods [hide private]
 
__init__(self, name='revolute_pin') source code
 
set_default(self)
Set the default on the pivot joint.
source code
 
set_abs_pin_position(self, *args, **kargs)
Set the absolute pin position
source code
 
set_abs_pin_orientation_matrix(self, *args, **kargs)
Set the absolute pin orientation matrix
source code
 
set_offset(self, *args, **kargs)
Set the relative offset of the second connection
source code
 
set_orientation_matrix(self, *args, **kargs)
Set the relative orientation matrix of the second connection
source code
 
set_rotation_axis(self, *args, **kargs)
The third axis of the revolute pin is supposed to be the axis of rotation of the joint.
source code

Inherited from CommonJoint: get_mbdyn_instance

Inherited from elements_base.ElementWithNode: attach_to_node, set_node_label, set_relative_from

Inherited from elements_base.CommonElement: do_as_init, update

Inherited from common.BasicObject: get_lines, set_comment, set_label, set_name, set_simulation_ref

Inherited from record.Record: common_init_results, init_results, save, set_own_parameters, will_save, will_save_nothing, will_save_only

Inherited from record.RecordBase: collect_own_parameters, collect_parameters, set_own_para, set_parameters

Inherited from record.RecordBase (private): _collect_own_para

Method Details [hide private]

__init__(self, name='revolute_pin')
(Constructor)

source code 
Overrides: CommonJoint.__init__

set_default(self)

source code 
Set the default on the pivot joint. The first connection, called absolute pin, will have a null offset and an identity matrix. It will be the same for the second connection, attached to the user node
Overrides: elements_base.CommonElement.set_default

set_rotation_axis(self, *args, **kargs)

source code 
The third axis of the revolute pin is supposed to be the axis of rotation of the joint. This method will set the abs_pin_orientation_matrix and the orientation_matrix to the same value, that's why a matrix is expected. Example:
   joint.set_rotation_axis(two=(0., 1., 0.),
                           three=(1., 0., 0.))
It will make the joint rotate along the x axis of the joint reference frame. In that example, the two keyword is needed to build the orientation matrix, it confirms that the second axis of the joint reference frame is also the second axis of the joint orientation matrix. Another example for rotating along the y axis:
   joint.set_rotation_axis(one=(1., 0., 0.),
                           three=(0., 1., 0.))
You can still use that method if both orientation matrix are the same and you know them. If both orientation matrix are not the same, use set_abs_pin_orientation_matrix and set_orientation_matrix instead.
Decorators:
  • @_SetRevoluteDocumentation("abs_pin_orientation_matrix", "orientation_matrix")