Model loading

Loading of the model data from the xml description file (.mbs) generated by MBSysPad to MBSysPy.

Code sample

For loading the model, insert the following code in your main routine and adapt it to your need:

mbs_data = MBsysPy.MbsData("../dataR/my_mbs_file.mbs")

# Optionally print the contents of the system
print(mbs_data)

Use

The loading is performed by instancing an instance of MbsData. The different options to instancing the class are given in the function MbsData.__init__().

Note

The field MbsData.process is used to inform every module using the instance what is the current process running on it. This value is not required by MBsysPy, it my be used by the user in the user-defined function of the multibody system.