Package mbdyn :: Module main :: Class PyMBDynFile
[hide private]

Class PyMBDynFile

source code

A file containing the MBDyn results as well as the Python information for loading a pickled Simulation. This file acts as a container, many simulations could be contained in one file.

Instance Methods [hide private]
 
__init__(self, name, mode='r', path='.', autoload=True) source code
 
__open(self)
Open the file
source code
 
load(self)
Load the data from the file
source code
 
add(self, simu)
Add a simulation to the file to save (save automatically the simulation).
source code
 
get_simu(self, name)
Return a simulation from its name
source code
 
get_simu_id(self, indice)
Return the indice of a simulation.
source code
 
write(self)
Write the simulation in the file
source code
 
close(self)
Close the file
source code
Method Details [hide private]

get_simu_id(self, indice)

source code 
Return the indice of a simulation. The numerotation is starting at 1 and not a 0. Python users can directly access the simulation by the list attribute simulations.