Package mbdyn :: Module preprocessing :: Class SimulationBase
[hide private]

Class SimulationBase

source code

record.RecordBase --+        
                    |        
        record.Record --+    
                        |    
       common.BasicObject --+
                            |
                           SimulationBase
Known Subclasses:
main.Simulation

The base of the Simulation. This class will mainly handle the writing of the MBDyn input file, as well as cleaning the directory used for the simulation. This class is always abstract, a help for defining the Simulation one.

Instance Methods [hide private]
 
__init__(self, name, title, keep, overwrite) source code
 
set_node_numerotation_offset(self, offset)
An offset only use for writing the MBDyn input file and avoiding integer conflict in the automatic node numbering.
source code
 
keep_mbdyn_files(self, keep)
If True, will keep the MBDyn files
source code
 
create_dir_tmp(self)
Create the temporary directory for storing MBDyn files
source code
 
create_dir_simu(self)
Create the directory where to keep the MBDyn files
source code
 
clean_dir_simu(self, name_pattern=None)
Will not clear the directory but indicates where are the files
source code
 
clean_dir_tmp(self, name_pattern=None)
Clean the temporary directory with MBDyn files on the simulation is finished.
source code
 
_set_labels_and_names(self)
Set the labels all the MBDyn items and rename some of the items if necessary.
source code
 
write(self)
Write the MBDyn file
source code
 
add_control_data(self, argument)
Add an argument to the control data block
source code

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, title, keep, overwrite)
(Constructor)

source code 
Overrides: common.BasicObject.__init__