Package mbdyn :: Module elements :: Class Gravity
[hide private]

Class Gravity

source code

record.RecordBase --+                
                    |                
        record.Record --+            
                        |            
       common.BasicObject --+        
                            |        
  elements_base.CommonElement --+    
                                |    
 elements_base.ElementWithoutNode --+
                                    |
                                   Gravity

The MBDyn gravity object. This element is not attached to any node.

An example of use:
   grav = Gravity()
   grav.set_direction(0., 0., -1.)
   grav.set_value(9.81)
grav can then be added to the Simulation object by add_element.

Instance Methods [hide private]
 
__init__(self, name='gravity') source code
 
set_direction(self, *args, **kargs)
Set the gravity direction
source code

Inherited from elements_base.ElementWithoutNode: set_mbdyn_value, set_node_label, set_value

Inherited from elements_base.CommonElement: do_as_init, set_default, update

Inherited from common.BasicObject: get_lines, get_mbdyn_instance, 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='gravity')
(Constructor)

source code 
Overrides: elements_base.ElementWithoutNode.__init__