An Automatic Program of Generation of Equation of Motion and ‎Dynamic Analysis for Multi-body Mechanical System using GNU Octave

Document Type : Research Paper


Department of Mechanical Engineering, Yuhan University, 590, Gyeongin-ro, Bucheon-si, Gyeonggi-do, Republic of Korea


Multi-body dynamics is used to calculate the physical quantities required for component design, such as calculating the dynamic response of mechanical components and the time history of dynamic loads. Advances in analysis software, including DADS, ADAMS, RecurDyn, and DAFUL, have made it possible to easily calculate dynamic responses by defining relationships between components and operating environments from 3D modeling on user-created components. However, when the understating of dynamic analysis is lacking, it is difficult to apply multi-body dynamics analysis in the design process, and it is difficult to analyze the acquired response data. In this study, we developed an automatic code to derive equations of motion in the matrix format and calculate dynamic responses of multi-body systems using GNU Octave, a free high level language. In particular, the process of defining matrices and vectors such as inertia matrix, stiffness matrix, and external force vector concerning the degrees of freedom of components by using Euler-Lagrange equations is shown to understand the structure and process of dynamic analysis. The code application by explaining how to use the code in a different mechanical system is also shown to help understand the usage method for who wants to study Multi-body dynamics.


Main Subjects

[1] Yoo, W. S., Park, S. J., Dmitrochenko, O., Pogorelov, D., Verification of Absolute Nodal Coordinate Formulation in Flexible Multibody Dynamics via Physical Experiments of Large Deformation Problems, Journal of Computational and Nonlinear Dynamics, 1(1), 2006, 81-93.
[2] Yoo, W. S., Kim, T. Y., Jung, S., History and Future of Multi-body Dynamics, Transactions of the Korean Society of Mechanical Engineers - A, 43(7), 2019, 483-491.
[3] Munro, N., Symbolic methods in control system analysis and design, Institution of Engineering and Technology, Stevenage, 1999.
[4] Van Khang, N., Kronecker product and a new matrix form of Lagrangian equations with multipliers for constrained multi-body systems, Mechanics Research Communications, 38(4), 2011, 294-299.
[5] Negrut, D., Dyer, A., ADAMS/Solver Primer, MSC Software Documentation, Ann Arbor, 2004.
[6] Bonev, I. A., Geometric analysis of parallel mechanisms, Université Laval, Qubec City, 2002.
[7] vander Linde, R. Q., Schwab, A. L., Lecture Notes Multi-body Dynamics B, Delft University, Delft, 1998.
[8] Sadati, S. M. H., Naghibi, S. E., Naraghi, M., An automatic algorithm to derive linear vector form of Lagrangian equation of motion with collision and constraint, Procedia Computer Science, 76, 2015, 217-222.
[9] Sadati, S. M. H., Naghibi, S. E., Shiva, A., Zschaler, S., Hauser, H., Walker, I., Althoefer, K., Nanayakkara, T., AutoTMTDyn: A Matlab software package to drive TMT Lagrange dynamics of series rigid-and continuum-link mechanisms, IROS 2018 Workshop on Soft Robotic Modeling and Control: Bringing Together Articulated Soft Robots and Soft-Bodied Robots, Madrid, Spain, 2018.
[10] Newmark, N. M., A method of computation for structural dynamics, Journal of the Engineering Mechanics Division, 85, 1959, 67-94.
[11]Wong, C., Online Referencing, fileexchange/71007-newmark-beta-method-for-non-linear-single-dof-structures (2019, accessed 9 March 2020). 
[12] Kane, R. T., Levinsdon, D. A., Dynamics: Theory and Application, McGraw Hill College, New York, 1985.
[13] Udwadia, F. E., Wanichanon, T., Nonlinear Approaches in Engineering Applications 2: A New Approach to the Tracking Control of Uncertain Nonlinear Multi-Body Mechanical Systems, Springer, New York, 2006.
[14] Schutte, A., Udwadia, New approach to the modeling of complex multibody dynamical systems. Journal of Applied Mechanics, 78(2), 2011, 1-11.
[15] Udwadia, F. E., Wanichanon, T., Control of uncertain nonlinear multibody mechanical systems, Journal of Applied Mechanics, 81(4), 2014, 1-11.
[16] Singiresu, S. R., Mechanical vibrations, Addison Wesley, Boston, 1995.