Package mbdyn :: Package bindings :: Module forces :: Class BindingsForce
[hide private]

Class BindingsForce

source code

basic_objects.BasicObject --+                
                            |                
        basic_objects.Element --+            
                                |            
                   elements.Force --+        
                                    |        
                      StructuralForce --+    
                                        |    
                        ConservativeForce --+
                                            |
                                           BindingsForce

A MBDyn conservative force on which the value can be set at every time step. This object is a MBDyn extension on which the AssRes method, called at each iteration, has been transformed.

Instance Methods [hide private]
 
fill_value(self)
Do no perform any operation for a BindingsForce, the value is always known.
source code
 
get_value(self)
Return a copy of the force value
source code
 
set_value(self, array)
Set the value on the MBDyn C++ instance.
source code
 
__repr__(self) source code

Inherited from StructuralForce: __init__, get_driver_amplitude

Inherited from elements.Force: get_force_type

Inherited from basic_objects.BasicObject: get_label, set_c_inst

Method Details [hide private]

fill_value(self)

source code 
Do no perform any operation for a BindingsForce, the value is always known.
Overrides: StructuralForce.fill_value

get_value(self)

source code 
Return a copy of the force value
Overrides: StructuralForce.get_value

set_value(self, array)

source code 
Set the value on the MBDyn C++ instance.
Parameters:
  • array (numpy array) - a vector of size 3x1

__repr__(self)
(Representation operator)

source code 
Overrides: ConservativeForce.__repr__