Visualized Simulation and Design Method of Mechanical System Dynamics Based On Transfer Matrix Method For Multibody Systems
Visualized Simulation and Design Method of Mechanical System Dynamics Based On Transfer Matrix Method For Multibody Systems
Visualized Simulation and Design Method of Mechanical System Dynamics Based On Transfer Matrix Method For Multibody Systems
Xiaoting Rui1, Junjie Gu1, Jianshu Zhang1, Qinbo Zhou1 and Haigen Yang2
Abstract
The transfer matrix method for multibody systems is a new method with very high computational speed developed in
recent 20 years for studying multibody system dynamics. By combining transfer matrix method for multibody systems,
computer graphics, and open-source software, this article puts forward an approach and software MSTMMSim for visua-
lized simulation and design of mechanical system dynamics. The approach includes the following procedures in sequence:
design of functional model, design of three-dimensional solid model, design of dynamics model, automated formation of
dynamics equations, and software MSTMMSim for visualized simulation and design of mechanical system dynamics. The
proposed method and software provide a platform to realize the simulation and design of complex mechanical systems
with the following characteristics: (1) automatic deduction of the overall transfer equation, (2) high computational speed,
and (3) high visualization and programming of dynamics simulation and design process. The proposed method and soft-
ware are verified by the practical example of simulation and design of a tank system dynamics using this platform.
Keywords
Multibody system dynamics, transfer matrix method for multibody systems, visualized simulation and design, pre-proces-
sor, transfer matrix method for multibody system solver, post-processor, software
Creative Commons CC-BY: This article is distributed under the terms of the Creative Commons Attribution 4.0 License
(http://www.creativecommons.org/licenses/by/4.0/) which permits any use, reproduction and distribution of the work without
further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/
open-access-at-sage).
2 Advances in Mechanical Engineering
systems will take long time if using these kinds of soft- method and MSTMMSim. It lowers the demand for
ware. Consequently, there is an urgent demand for high theoretical knowledge of technicians who use the simu-
speed of dynamics computation to realize the simulation lation platform and provides a stylized pattern to simu-
and design of complex mechanical system dynamics. late and design the dynamics of a mechanical system
The transfer matrix method for multibody systems with high efficiency.
(MSTMM) is a new method of multibody system
dynamics with high computational speed developed in
the past 20 years. It has been widely used in the analysis Structure of MSTMMSim
and design of complex multibody systems because of
Basic structure of MSTMMSim
its following features: no need for global dynamics
equations of system, very low order of system matrix, In this article, MSTMM is used as the core of solver
high computational speed and programming, and auto- for dynamics computation. Combining OSS including
matic deduction of the overall transfer equation.6–8 OCC and Qt,9,10 a new software for simulation and
With the rapid development of computer graphics, var- design of multibody system dynamics, named
ious open-source software (OSS), such as Open MSTMMSim similar to Yang et al.,11 is developed. It
CASCADE (OCC) and Coin3d, provides great conve- realizes the following functions: direct calling of vari-
nience for developing simulation software of multibody ous formats of three-dimensional (3D) model file, auto-
system dynamics, especially the pre-processor and post- matic generation of the dynamics parameters of a
processor. In order to simulate and design the mechani- multibody system, visualized modeling, rapid computa-
cal system dynamics efficiently, this article puts for- tion, data processing, and animation displaying.
ward an approach and software MSTMMSim based The basic structure of MSTMMSim is shown in
on MSTMM for visualized simulation and design of Figure 1. The fundamental parts of MSTMMSim con-
mechanical system dynamics by combing computer sist of three main modules: pre-processor, MSTMM
graphics technology and OSS. The practical example of solver, and post-processor. The graphical user interface
a tank system dynamics using the proposed method (GUI) of MSTMMSim is developed primarily using
and software is shown in this article to verify the C++ language and Qt framework.10 The OCC
MSTMM: transfer matrix method for multibody systems; CAD: computer-aided design; MSD: multibody system dynamics; OCC: Open CASCADE.
geometric modeling kernel library is integrated into processing, and storage of 3D solid even if the research-
MSTMMSim. Users can import various types of ers have no specific knowledge on computer graphics.9
computer-aided design (CAD) solid models built by
other software. In MSTMMSim, the application pro- Pre-processor module of MSTMMSim
gram interface (API) of OCC can be called to achieve
The pre-processor module of MSTMMSim is devel-
basic geometry modeling. Complex geometric model
oped using OCC geometric modeling kernel. The main
can also be established rapidly through the Boolean
function of the pre-processor is to set up the models of
operations, that is, union, difference, and intersection.9
the mechanical system including functional model, 3D
The topology structure and parameters of a multibody
solid model, and dynamics model. Using pre-processor
system are automatically generated in MSTMMSim module, users can not only design the mechanical sys-
according to the connecting relations and material tem but also import CAD files with standard format,
properties defined by the user. MSTMMSim solver such as IGES, STEP, and DWG/DXF, generated by
reads the defined parameters, computes system other CAD software. As for homogeneous bodies, each
dynamics, and stores the resulting data. Then, the body has a base coordinate system whose position and
results are returned to the user in any chosen form such orientation with respect to the global coordinate system
as animations, curves, numerical values, pictures, and are used to represent the absolute position and orienta-
tabulations. The modules of MSTMMSim and their tion. The connection points can be defined by establish-
sub-modules are given in Table 1. ing the body-fixed coordinate systems on the body
whose position and orientation are represented in the
base coordinate system as shown in Figure 2. After the
Visualization of mechanical system dynamics
solid geometric figures of the mechanical system are
The visualization is a technique utilizing computer gra- generated, by setting the parameters of material prop-
phics and image processing to convert data into graph erties, the dynamics parameters such as mass, position
or image displayed on the screen, and to carry on inter- of mass center, and moment of inertia can be computed
active processing. The visualization of mechanical sys- automatically and represented in the base coordinate
tem dynamics includes the visualization of dynamics system by calling the functions getMass(),
modeling, simulation process, and computational getCenterOfMass(), and getMatrixOfInertia() in the
results, among which the visualization of the 3D solid GProp_Gprops base class of OCC.9 These positions,
models plays a significant role. The essence of visuali- orientations, and mass parameters are stored in an
zation of the 3D solid is to transform discrete 3D solid XML-based format file. The length, width, and height
data into discrete two-dimensional image data dis- of the box shown in Figure 2 are 15, 10, and 10 mm.
played on the screen in accordance with the rules of The base coordinate system is identified by position
projection of a body. coordinates (0.01, 0.01, 0.005) of its origin with respect
Currently, various OSS, such as OCC and Coin3d, to the global coordinate system and is rotated by 15°
provides a convenient solution for the visualization of about the Z-axis. The density of the body is set to be
3D solid. This makes it much easier for developers of 7900 kg/m3. Then, the parameters stored in the XML-
software to realize the modeling, displaying, interactive based file are formatted as follows:
4 Advances in Mechanical Engineering
\RigidBody Name = ‘‘Box’’ ID = ‘‘1’’ Label = are used to obtain the dynamics parameters of the whole
‘‘Box’’. component. The parameters are stored in the format of
\AbsolutePosition.0.01, 0.01, 0.005\/ ABAQUS inp document. Figures 3 and 4 show the finite
AbsolutePosition. element model of a beam and connection points on it,
\AbsoluteOrientation.0, 0, 0.2617994\/ respectively. After the parameters of the bodies are set,
AbsoluteOrientation. they are saved in the XML document and the inp docu-
\Marker ID = ‘‘1’’. ment, which will be invoked and computed by the solver.
\Position.0, 0, 0\/Position.
\Orientation.0, 0, 0\/Orientation.
.. MSTMM solver module of MSTMMSim
\/Marker. MSTMM solver module is developed based on
\Marker ID = ‘‘2’’. MSTMM using C + + language, where the transfer
\Position.0.015, 0.01, 0.01\/Position. equations and transfer matrices of each element are
\Orientation.0, 0, 0\/Orientation. generated automatically based on the corresponding
.. dynamics model and its topology figure by calling the
\/Marker. transfer matrix library.6–8 The overall transfer equation
\MassCenter. and overall transfer matrix of the system are generated
\Position.0.0075, 0.005, 0.005\/Position. automatically by following the automatic deduction
\Orientation.0, 0, 0\/Orientation. theorem of overall transfer equation of multibody
.. system.7 Furthermore, the computation of system
\/MassCenter. dynamics can be implemented using the algorithm of
\Density.7900\/Density. MSTMM.8 The automatic deduction theorem of over-
\Mass.0.01185\/Mass. all transfer equation is based on tree systems. As for
\JI.7.9e207, 1.28375e206, 1.28375e206, multibody systems which contain closed loops, the
24.44375e207, 24.44375e207, 22.9625e207\/JI. technique of auto selecting the cut hinges is established
.. by introducing the correlation matrix and the dynamic
\/RigidBody. connectivity matrix that depict the connecting state of
As for the inhomogeneous bodies, as well as beams elements. For a multibody system containing nb body
and shells, the finite element scheme is utilized where elements and nh hinge elements, bodies are numbered
each finite element is regarded as homogeneity. The as 1, 2, . . . , nb , while hinges are numbered as
parameters of the body are first specified in each ele- nb + 1, nb + 2, . . . , nb + nh . The correlation matrix of
ment, and then the strategies of finite element method the bodies and hinges is defined as
Rui et al. 5
Figure 6. Flow chart of the overall design process of mechanical system dynamics.
the connection parameters of caterpillar band and road multiplication of transfer matrices of elements in the
wheels, and caterpillar band and the ground, should transfer path from the tip to root. The order of system
also be set. matrix in MSTMM is very low and equals to the order
of transfer matrix of a rigid body, thus resulting in very
high computational speed. Comparisons on computa-
Basic idea of MSTMM tional precision and speed of MSTMM with other
The basic idea of MSTMM is to decompose a multi- dynamics methods can be found in Rui et al.6–8
body system into elements containing bodies and hinges
whose dynamics properties can be readily expressed in
matrix form. These matrices of elements are considered Automated formation of dynamics equations
as building blocks that provide the dynamics properties Seen from equations (5) and (6), the overall transfer
of the entire system when assembling them together equation can be deduced automatically. The state vec-
according to the topology of the dynamics model of tors involved in an overall transfer equation are the col-
multibody system. Especially, bodies and hinges are umn matrix comprising the state vectors of all
considered the equivalent position in transfer equations boundary ends of the system. The overall transfer
and transfer matrices. matrix U1n of a chain system is the successive multipli-
For a chain multibody system undergoing spatial cation of transfer matrices of every element of the sys-
motion, the state vector of a connection point between tem along the transfer path from the tip to the root. In
any two elements is defined as fact, one can deduce automatically the overall transfer
equation for a general system according to the topol-
z= ogy figure of dynamics model and the automatic
T
_x
€x €y €z V _y
V _z
V mx my mz qx qy qz 1 deduction theorem of overall transfer equation of mul-
tibody system applying MSTMM.7 Particularly, the
ð3Þ
transfer equations and the library for most elements
where r€ = ½ €x €y €z T , _ =½V
V _x V _y V_ z T , are also explicitly set and can be found in Rui et al.6–8
T T The transfer equation and transfer matrix of the
m = ½ mx my mz , and q = ½ qx qy qz are the
column matrices of absolute accelerations, absolute tank element will be formed automatically by calling
angular acceleration, internal torques, and internal the transfer matrix library installed in the MSTMMSim
forces in the right-handed Cartesian inertial coordinate shown in Rui et al.6–8 The overall transfer equation of
system, respectively. the tank like equation (7) will be formed automatically
For an element numbered j, it can be proved that its using automatic deduction theorem of overall transfer
transfer equation keeps the form8 equation of multibody system7 as follows
where zj, O and zj, I are the state vectors at the outboard where
end and inboard end of the element, respectively; Uj is 2 3
--------------------