Package windSimSuite :: Module common :: Class ObjectWithNodesAndElems
[hide private]

Class ObjectWithNodesAndElems

source code

mbdyn.record.RecordBase --+        
                          |        
        mbdyn.record.Record --+    
                              |    
                    BasicObject --+
                                  |
                                 ObjectWithNodesAndElems
Known Subclasses:
blade.Blade, rotor.Hub, nacelle.Nacelle, tower.Tower

An abstract object with MBDyn nodes and elements. This object is supposed to help the building of custom objects on the top of MBDyn ones by providing a set of methods for adding them to the simulation, being able to save them in files and retrieved them for post processing. Need to be tested, but if it works fine, it could be merged to the MBDyn module.

Instance Methods [hide private]
 
__init__(self, name) source code
 
set_node_class(self, node_class)
node_class is a dictonary of class.
source code
 
add_node(self, node)
Add a node to its List
source code
 
add_element(self, elt)
Add an element to its List
source code
 
add_on_simulation(self, simu)
Add the nodes, elements and references on the simulation, before writing the MBDyn input file
source code
 
collect_node_parameters(self)
Collect the node parameters into the para dictionary
source code
 
collect_elt_parameters(self)
Collect the element parameters into the para dictionary
source code
 
collect_parameters(self)
Collect the object parameters
source code
 
set_node_parameters(self)
Create the node from the node_class and the node_paras
source code
 
set_elt_parameters(self)
Create the elements from the elts_class and the elts_paras
source code
 
set_parameters(self, para)
Retrieve the object status from the para dictionary.
source code

Inherited from BasicObject: set_name

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

Inherited from mbdyn.record.Record (private): _save_direct_results, _save_results_with_actions, _try_to_add

Inherited from mbdyn.record.RecordBase: collect_own_parameters, set_own_para

Inherited from mbdyn.record.RecordBase (private): _collect_own_para

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 
Overrides: BasicObject.__init__

set_node_class(self, node_class)

source code 
node_class is a dictonary of class. The first key is the group of the class and the second key the class type. This method is used when using class from the interface, with GTK and VTK widgets, instead of the classic one.

collect_parameters(self)

source code 
Collect the object parameters
Overrides: mbdyn.record.RecordBase.collect_parameters

set_parameters(self, para)

source code 
Retrieve the object status from the para dictionary.
Overrides: mbdyn.record.RecordBase.set_parameters