Package mbdyn :: Package bindings :: Module nodes :: Class Structural
[hide private]

Class Structural

source code

basic_objects.BasicObject --+    
                            |    
           basic_objects.Node --+
                                |
                               Structural

The general node for the "STRUCTURAL" group. This class is described in the C++ file 'strnode.h'. The concerned definition is StructNode.

Instance Methods [hide private]
 
__init__(self, c_inst)
The C++ instance reference is supposed to be received in the constructor because this object will represent a MBDyn node, element or reference frame
source code
 
_get_position(self)
Get the position from the MBDyn node
source code
Numpy array
get_position(self)
Return a copy of the position array.
source code
 
_get_rotation_matrix(self)
Get the rotation matrix from the MBDyn node
source code
Numpy array
get_rotation_matrix(self)
Return a copy of the rotation matrix array the definition of its local reference frame.
source code
 
_get_velocity(self)
Get the velocity from the MBDyn node.
source code
Numpy array
get_velocity(self)
Return a copy of the velocity array.
source code
 
_get_angular_velocity(self)
Get the angular velocity from the MBDyn node.
source code
Numpy array
get_angular_velocity(self)
Return a copy of the angular velocity array.
source code
 
__repr__(self)
Return the node representation as a string
source code

Inherited from basic_objects.BasicObject: get_label, set_c_inst

Method Details [hide private]

__init__(self, c_inst)
(Constructor)

source code 
The C++ instance reference is supposed to be received in the constructor because this object will represent a MBDyn node, element or reference frame
Overrides: basic_objects.BasicObject.__init__
(inherited documentation)

get_position(self)

source code 
Return a copy of the position array.
Returns: Numpy array
vector of size 3x1

get_rotation_matrix(self)

source code 
Return a copy of the rotation matrix array the definition of its local reference frame.
Returns: Numpy array
matrix of size 3x3

get_velocity(self)

source code 
Return a copy of the velocity array.
Returns: Numpy array
vector of size 3x1

get_angular_velocity(self)

source code 
Return a copy of the angular velocity array.
Returns: Numpy array
vector of size 3x1

__repr__(self)
(Representation operator)

source code 
Return the node representation as a string
Overrides: basic_objects.Node.__repr__