Package mbdyn :: Package bindings :: Module basic_objects
[hide private]

Module basic_objects

source code

The general classes for a node, an element and a reference frame. The Node class defined here is an equivalent to the general Node class defined in 'node.h' and manipulated by the DataManager. The same remark applied for the Element class that is equivalent to the Elem class defined in 'elem.h'. Those two classes are used to defined all the other types of nodes or elements, this is the MBDyn polymorphism. That's why this package follows the same organisation, every node will first be converted to a Node or to an Element by WraptMBDyn. Then the Groups class will try to access a more specific object.

However the class ReferenceFrame in mbdyn.bindings.frames does not follow this complexity because a single definition is suffisant.

Classes [hide private]
  BasicObject
A basic bindings object interfacing a C++ instance.
  Node
The top class of a node.
  Element
The top class of an element.
Functions [hide private]
 
fill_vector(array, vec3)
A function to fill a Numpy array of size 3x1 from a Vec3 instance.
source code
 
fill_matrix(array, mat3x3)
A function to fill a Numpy array of size 3x3 from a Mat3x3 instance.
source code
Variables [hide private]
  BASIC_CLASS = {'ELEM': <class mbdyn.bindings.basic_objects.Ele...
Function Details [hide private]

fill_vector(array, vec3)

source code 
A function to fill a Numpy array of size 3x1 from a Vec3 instance. The Vec3 instance is described in the SWIG file 'libmbmath.i'.

fill_matrix(array, mat3x3)

source code 
A function to fill a Numpy array of size 3x3 from a Mat3x3 instance. The Mat3x3 instance is described in the SWIG file 'libmbmath.i'.

Variables Details [hide private]

BASIC_CLASS

Value:
{"NODE": Node, "ELEM": Element}