Detc2009 86550
Detc2009 86550
Detc2009 86550
net/publication/235770791
CITATION READS
1 165
2 authors, including:
Shahram Shokouhfar
Concordia University Montreal
5 PUBLICATIONS 13 CITATIONS
SEE PROFILE
All content following this page was uploaded by Shahram Shokouhfar on 20 May 2014.
DETC2009-86550
1 2
Shahram Shokouhfar Sayyid Mahdi Khorsandijou
Mechanical Engineering Group Mechatronics Group
Islamic Azad University-Parand Branch, Iran Islamic Azad University-South Tehran Branch, Iran
ABSTRACT
This article represents the features and capabilities of a INTRODUCTION
newly developed application namely MASS (Mechanisms It is quite possible to derive equations governing the
Analysis and Simulation Software) and the formulation and kinematics and dynamics of a particular 3D multibody system
techniques therein. MASS is a general C++ application program with the aid of the minimum possible number of the generalized
whose main task is to construct and solve the governing coordinates. The derived equations are useful only for a
algebraic differential motion equations of 3D multibody particular type of systems and are numerically solved with
systems automatically in matrix forms complying with the minimum amount of calculations. To have the general
computational algorithms required for numerical simulation. governing equations of 3D multibody systems sacrifices the
Newton-Raphson and SVD methods have been used for advantage of the minimum possible number of the generalized
kinematical assembling and producing consistent initial coordinates. Moreover, some kinematical constraints among the
conditions. Adaptive time-step Runge-Kutta-Fehlberg numerical generalized coordinates emerge and increase the amount of
integration methods might be used for forward dynamics calculations required for numerical simulation. The kinematical
problems. The governing equations perfectly describe the constraints represent the restrictions caused by the kinematical
kinematics and dynamics of multibody systems within which 3D joints of the system.
kinematical joints and collisions between rigid bodies might be In order to develop a general computational tool for
taken into consideration. The unified computational technique kinematics and dynamics analysis of 3D multibody systems, e.g.
for mathematical modeling of kinematical joints is the most 3D mechanisms, coordinate viewpoint has been taken into
important concept on top of which MASS has been consideration [1]. The coordinate viewpoint has led to the
implemented. It has occurred due to the existence of thirteen creation of thirteen basic kinematical constraints [1] for unified
basic kinematical constraint equations. Each kinematical joint dynamic modeling of the systems. It should be noted that the
might be defined by a set of algebraic equations being selected unification of the dynamic models has occurred due to the
from the mentioned basic equations. The unified dynamic existence of the thirteen basic equations. Point, line and vector
models for collisions and impulsive loads have been also viewpoints have been considered in [2-6] and four basic
achieved using the mentioned technique. Simulation results kinematical constraints have been used for dynamic modeling of
obtained from MASS have been compared with that of the general mechanical systems. Numerical analyses required for
corresponding software of Working Model ver. 6 and a the kinematics and dynamics simulation of the systems having
discussion about the coincidences and differences has been multi rigid or flexible bodies have been perfectly studied in [4].
exposed. The present article exposes the technique of thirteen basic
kinematical constraints required for unified dynamic modeling
Keywords: Unified modeling technique; Basic constraints; of 3D multibody systems in a C++ application, namely MASS.
Kinematical joints; Collision; Multibody systems; Dynamics; Based on the thirteen constraints, some outstanding novelties
Numerical simulation; Software development; MASS. have arisen and proposed in this article. Using SVD (Singular
Value Decomposition) method [7], MASS can receive
1
Instructor of Mechanical Engineering, Corresponding Author, Email: [email protected]
2
Assistant Professor of Mechanical Engineering
The orientation of the nth body can be described by four Two jointed rigid box-shaped bodies, their JCS's and the
Euler parameters, namely quaternions, as shown by Eq. (2). joint assigned between them are shown in Figure 2 within
MASS environment.
Pn = [ a n dn ]
T
bn cn (2)
Figure 1: Joint coordinate systems and independent variables the relative orientations of the two JCS's and eventually that of
the two jointed bodies. They are dependent and might be used
A general joint and eventually the basic constraints are for creating a prismatic joint on space for instance.
readily established by means of two JCS's J i and J j as shown é jK4 j5K jK6 ù é D11 D12 D13 ù
ê K Kú
j9 ú = A Ji A i A j A J j - êêD 21 D 23 úú = [0]3´3
th th
by Figure 1. They are respectively attached to the i and j ê j7 jK
8
T T
D 22 (11)
bodies. ê j10
K
jK K ú
j12 êë D31 D 32 D 33 úû
ë 11 û
Space Free translation - MASS numerically computes the real DoF of the systems.
nK = éën1K n K2 L n13
T
± ± ± ± ±w
A Ji éëwi wi A i A j - 2 wi A i A j wj + A iT A j w
T T T ±ù
ùû j j û AJj
K
(18)
The components of Exp. (18) are given by Eq.'s (19)-(20).
én1K ù é X& ù é n K4 n K5 n K6 ù é D &
11
&
D 12
& ù
D 13 g13
K
( ) ±±
&& + L& 2 + 2 S T A w
= 2 LL ( ±±
i i wi ri - A j w j w j rj ) -
ê Kú ê&ú ê K ú ê & & & ú (27)
n = Y , n n K
n K
= D D D
ê ú ê ú ê ú ê 23 ú (19)
( ± r +A w±r ) ( -V + V - A w± r + A w± r )
T
2 7 8 9 21 22
2 - Vi + Vj - A i w
ên 3K ú ê Z& ú ên10 K ú ê & & & ú i i j j j i j i i i j j j
ë û ë û ë
K
n K
11 n12 û D
ë 31 D 32 D 33 û
Eq. (28) is required to be substituted in Eq. (26). In Eq.
n13 = 2 LL&
K
(20) & J is the angular acceleration of JCS J j relative to JCS J i .
(28), w
Eq. (21) is required to be substituted in Eq.'s (19). In Eq. && && && ù é D
éD D D D12 D13 ù
(21), wJ is the angular velocity of JCS J j relative to JCS J i . ê &&
11 12 13
ú
11
± ±J w
±J ù
D
ê 21
&&
D D 23 ú = êêD 21
&& D 22 D 23 úú é w
&J +w (28)
&
éD & & ù éD
22
ë û
D D D12 D13 ù êD&& &&
D && ú ê D
D D 32 D 33 ûú
ê&
11 12 13
& ú = êD
11
±J ë 31 33 û ë 31
& D 23 úú w
32
D
ê 21 D D 23 ú ê 21 D (21)
22 22
Considering Eq.'s (4)-(5), acceleration of the whole
&
êD D& D& ú êD D D ú
ë 31 32 33 û ë 31 32 33 û constraints of a system is derived from differentiation of Eq.
Considering Eq.'s (4)-(5), velocity of the whole constraints (22) with respect to time and is proposed by Eq. (29).
of a system is derived from differentiation of Eq. (14) with é ¶jC ¶jC ù
ê ú &
respect to time. It is given by Eq. (22). ¶P ú é V ù é g ù
C
ê ¶R ê ú =ê ú (29)
ê & p ú ê gp ú
¶jp ú êë V
é ù
ê ë 0 n B ´3 n B û ú û ë û
ë ¶P û
DYNAMICS
The Newton-Euler motion equations of a constrained
multibody system are represented by Eq.'s (36). It is obvious
Figure 3: Reciprocating and rotational SDA that the force and moment Eq.'s (36) are respectively expressed
in GCS and CCS of each body.
Reciprocating SDA MV & = fA + f C , I w& +w
% I w = mA + mC (36)
As a matter of fact, a reciprocating spring-damper-actuator
The Eq.'s (37)-(38) are obviously derived from Eq.'s (36)
is a rod joint that exerts two opposite equimagnitude forces on
within which the constraint forces and moments are expressed
the matched bodies. The forces are parallel with ¡ shown by
in terms of Jacobian and Lagrange multipliers corresponding to
Eq. (30).
the constraints. It should be noted that the Jacobian and
The reciprocating spring, damper, and actuator forces
Lagrange multipliers corresponding to the quaternions
exerted on point J i of the ith body are given by Eq.'s (31). They constraints have been also considered. Eq. (38) has been
are expressed in GCS. expressed in terms of quaternions.
ì Spring é LFree ù T
& + éê ¶j ùú l C = f A
C
ïFi = K L ê1 - ú¡ MV (37)
ï êë ¡ úû êë ¶R úû
ï
CL
ï Damper
(
= T é Vj - Vi + A j w ±r - A w )
± T ¡ù ¡ T T
é pù
& p + éê ¶j ùú l C + ê ¶j ú l p = 2G T ém A - w
C
íFi i i ri (31) °Iwù
ï ( ¡ ¡) ë ê j j úû é 4G T IG ù V
ë û
ëê ¶P ûú êë ¶P ûú ë û (38)
ï Actuator
ïFActuator = -f ¡
The method of solution is determined by the problem type.
ï i
¡ In inverse dynamics problems, algebraic equations and in
î
forward dynamics problems ordinary differential equations are
Resultant force exerted on points J i and J j of the ith and jth
to be solved. It is due to the fact that kinematics is decoupled
bodies are given by Eq. (32). from kinetics in inverse dynamics problems, on the contrary of
ìïFiSDA = FiSpring + FiDamper + FiActuator forward dynamics problems.
í SDA (32) An advanced numerical technique has been used in MASS
ïîFj = -FiSDA for solving holonomic algebraic differential Eq. (39) composing
The above forces in Eq. (32) produce two moments about of Eq.'s (29), (37)-(38). The technique iteratively modifies the
the mass centers of the matched bodies. Their projections onto results of explicit numerical integration in order for the
their CCS's are ri ´ A iT FiSDA and rj ´ A Tj FjSDA . constraints Eq.'s (14) and (22) to be complied with. The
modification can be interpreted as kinematical assembling
during integration. It is optional and might be activated. It is
Rotational SDA
essential in inverse dynamics problems, whereas it is sometimes
As a matter of fact, a rotational spring-damper-actuator is a
constructive and sometimes destructive in forward dynamics
revolute joint that exerts two opposite equimagnitude moments
problems. In inverse dynamics problems the number of
on the matched bodies. The moments are about the axis of the
constraints and coordinates are the same. In forward dynamics
revolute joint.
problems, however, the number of constraints is less than that of
The rotational spring, damper, and actuator moments
the coordinates, so MASS uses the optimization of SVD
exerted on the ith and jth bodies are given by Eq.'s (33)-(35).
They are expressed in their CCS's.
C m = éC1m Cm L Cm ù (48)
ë 2 nh û
T
éé ù é mù
T
é01´4( k -k -1) ù éC km ù
T
é01´4( n -k ) ù ùú
Cm
k = ê ë 01´ 4(k1 -1) û ë C k1 û ë û ë 2û ë B 2 û
(49)
ë û
2 1
uuuuuuur
ì C m = 2G T é C h ´ A T C f ù
Figure 4: Contact points on body surfaces ï k1 k 1 ë k1 k1 k1 k1 û
í m uuuuuuuur (50)
ïC k 2 = 2GkT2 éë Ck 2 hk 2 ´ A kT2 C kf 2 ùû
User should specify the friction and restitution coefficients î
between colliding bodies in MASS. When a number of
collisions are identified and captured by MASS, velocities FEATURES AND CAPABILITIES OF MASS
immediately after collision are found via the set of linear Eq.'s In this section, features and capabilities of MASS are
(41). Simultaneously, the impulses of Lagrange's multipliers and demonstrated via explaining the required steps for modeling
the impulses of normal colliding forces and eventually the and simulation of a multibody system in MASS.
impulses of the corresponding friction forces are computed.
é T ù Modeling a Four-Bar Linkage
é ¶jC ù Planar systems are three-dimensionally modeled and
ê M 0 ê ú 0 -C úf
ê êë ¶R úû ú numerically simulated by MASS. A 2D/3D linkage can be
ê ú é V ( t + e) ù
ê T T úê C
ú defined in MASS through the following steps:
ê 0 é ¶jC ù é ¶jp ù m ú ê Vp ( t + e )ú
T
4G IB G ê ú ê ú -C ú C Step 1: Creating simple shapes or importing complicated
ê ê ú
ê ëê ¶P ûú êë ¶P úû úê shapes from AutoCAD.
lC ú
ê C úê ú Step 2: Attaching JCS's to the bodies and locating them
ê ¶j ¶jC
0 0 0 úê lp ú properly so that they can be used in defining joints.
ê ¶R ¶P úê ú
ê úê N úû
ê 0 ¶jp ë
0 0 0 ú
ê ¶P ú (41)
ê ú
ë a 0 0 0 0 û
é MV ( t C ) ù
ê ú
ê 4G IB GV ( t C )
T p
ú
ê C C ú
ê ¶j ¶j ú
= ê ¶R V ( t C ) + ¶P V ( t C ) ú
p
ê ú
ê ¶jp p ú
ê V ( C)
t ú
ê ¶ P ú
ëê b úû
For the kth collision, the collided bodies, i.e. the k1th and Figure 5: Connecting bodies by joints
k th
2 bodies shown by Figure 4, have normal and tangential unit
uuuuuuuur Step 3: Creating joints by selecting the attached JCS's and
vectors n k1 , n k 2 , t k1 and t k 2 . The vectors C k1 hk1 and specifying the type of joints via determining each joint variable
uuuuuuuur as a free, fixed or a function of time.
C k 2 hk 2 are expressed in CCS's of the collided bodies. Exp.'s
Step 4: In order to reach the desired initial configuration
(42)-(50) are required for Eq. (41). and velocities, one should emphasize and mark some IC's
T
a = é a1T a T2 L a Tnh ù (42) (initial conditions) as far as the mechanism DoF permits. In the
ë û example shown by Figure 5, the revolute joint between ground
ak = éê éë01´3(k1 -1) ùû é n Tk1 ù éë01´3(k 2 - k1 -1) ùû é n kT2 ù éë01´3( n B - k 2 ) ùû ùú (43) and the 1st link as shown by Figure 6, and its angle and angular
ë ë û ë û û velocity are emphasized in the dialogue box shown by Figure 7.
T
b = éb1 b2 L bnh ù , bk = -sk a k V ( t C ) (44) This can be treated as one of the novelties of MASS in
ë û comparison with other application tools.
C f = é C1f C f2 L C fn h ù (45) The positions and velocities of the other bodies must be
ë û calculated via assembling process for having a set of initial
conditions consistent with constraints and their velocities.
VERIFICATIONS
In this section, simulation results of two selected problems
are verified via comparing with the corresponding results of
Working Model 4D ver. 6. Models built in the two applications
are completely similar in all aspects.
Figure 8: Simulation settings
Case I: Spatial Pendulum
Step 6: As shown by Figure 9, kinematical assembling of The spatial pendulum shown in the Figure 11 consists of
the mechanism in order to find positions and velocities three revolute joints about three different axes defined between
satisfying constraints and their velocities. The Newton-Raphson three similar boxes and ground. Time history diagrams of
process might be graphically traced for educational purposes. position and orientation of Box 3 as well as constraint forces
The user-defined conditions are used as initial guess for starting and moments applied to Box 1 due to its revolute joint with the
the process. The emphasized conditions are assumed as known ground are chosen to be compared in Figure 12 (a-h). The
values. results of MASS in black and thin can be readily distinguished
from the results of Working Model in green and thick. All
r r
(g) Constraint Force F (h) Constraint Moment M
Figure 12: Comparison between MASS and WM 4D results
REFERENCES
[1] Khorsandijou, S.M., and Shokouhfar, S., Computer Aided
Dynamic Modeling of Spatial Mechanisms (in Farsi),
Figure 16: Uniform density Figure 17: Custom density Ayeh Cultural Publication Institute, Tehran, Iran, 2004,
ISBN: 964-5741-03-3, Along with the CD of MASS.
CONCLUSIONS [2] Nikravesh, P., Computer Aided Analysis of Mechanical
► Unified dynamic model of 3D multibody systems has Systems, Prentice Hall, Englewood Cliffs, 1988.
been achieved based on coordinate viewpoint and thirteen basic [3] Haug, E.J., Computer Aided Kinematics and Dynamics of
constraints Eq.'s (9), (11)-(12). It includes the algebraic Mechanical Systems, Allyn and Bacon, Boston, 1989.
differential motion Eq. (39), impulse and collision governing [4] Shabana, A.A., Dynamics of Multibody Systems,
Eq.'s (40)-(41). Cambridge University Press, Cambridge, 2005.
► To observe these equations in detail, reveals that [5] Shabana, A.A., Computational Dynamics, John Wiley &
Jacobian and g in the constraints' velocity and acceleration Sons, Inc., New York, 2001.
Eq.'s (17), (25)-(27) have been exposed in quite fresh forms. [6] Haddadpour, H., Analysis of Kinematics and Dynamics of
They have the highest possible generality and quality of being 3D Mechanisms Using Constraint Equations Method,
closed-form. M.Sc. Thesis, Tehran University, 1995.
[7] Press, W.H., Numerical Recipes in C (The Art of Scientific
Computing), Cambridge University Press, 1992.