Package mbdyn :: Module control_data :: Class ControlData
[hide private]

Class ControlData

source code

The control data of MBDyn, generated automatically by the nodes and elements information or the user's object.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, obj)
Add an object to control data
source code
 
add_extra_argument(self, arg)
Add an extra argument not yet managed by the interface, it will be directly printed in the input file
source code
 
_sort_control_data(self)
Create the objects lists with the control data with values (for example 'beams: +1;' in MBDyn) and control data without values (for example 'gravity;').
source code
 
_fill_category(self)
The objects having control_data_with_values fill the dictionary category["with_values"] according to the category name.
source code
 
write_into(self, file_to_write)
Write the control data block into the MBDyn input file
source code
Method Details [hide private]

_sort_control_data(self)

source code 

Create the objects lists with the control data with values (for example 'beams: +1;' in MBDyn) and control data without values (for example 'gravity;').

Additionaly, the control data with values will need to gather all the items that are in the same category. (For example:
   beams:
       +2 # Tower
       +1 # Nacelle
   ;
) A list for each category is here created. (Note: each category from the user's model, not from all the MBDyn categories)

_fill_category(self)

source code 

The objects having control_data_with_values fill the dictionary category["with_values"] according to the category name. All their MBDyn value are saved into a list for the input file writing.

The objects having control_data_without_values just need to give their category name, they do not have any value. However the user may have different objects having the same control data without value, for example the AirProperties. This property must not be duplicated in the input file. For consistency, the self.category["without_values"][category_name] is set to 1 but never used, just the information on the category_name is important.