[Paper Review] A Dual Number Approach for Numerical Calculation of Velocity and Acceleration in the Spherical 4R Mechanism
This paper presents a dual number-based numerical method to compute first and second derivatives of vector functions in a single step, enabling accurate and efficient calculation of velocity and acceleration in spherical 4R mechanisms. The approach uses extended dual numbers with three components (function, first derivative, second derivative), implemented in a Fortran module, and successfully applied to compute coupler-point kinematics with high precision.
This paper proposes a methodology to calculate both the first and second derivatives of a vector function of one variable in a single computation step. The method is based on the nested application of the dual number approach for first order derivatives. It has been implemented in Fortran language, a module which contains the dual version of elementary functions as well as more complex functions, which are common in the field of rotational kinematics. Since we have three quantities of interest, namely the function itself and its first and second derivative, our basic numerical entity has three elements. Then, for a given vector function $f:\mathbb{R} o \mathbb{R}^m$, its dual version will have the form $ ilde{f}:\mathbb{R}^3 o \mathbb{R}^{3m}$. As a study case, the proposed methodology is used to calculate the velocity and acceleration of a point moving on the coupler-point curve generated by a spherical four-bar mechanism.
Motivation & Objective
- To develop a numerical method for computing first and second derivatives of vector functions without approximation errors.
- To overcome the complexity and inefficiency of analytical derivatives in spherical 4R mechanisms.
- To enable efficient inclusion of velocity and acceleration in mechanism synthesis and optimization.
- To implement a Fortran-based module with dual versions of elementary and kinematic functions for practical use.
- To demonstrate the method’s accuracy and efficiency through application to a spherical four-bar mechanism.
Proposed method
- The method uses extended dual numbers of the form $\tilde{f} = f + \epsilon f' + \epsilon^2 f''$, where $\epsilon^2 = 0$ and $\epsilon^3 = 0$, enabling simultaneous computation of function, first, and second derivatives.
- Elementary functions (e.g., sin, cos, exp) and vector/matrix operations are implemented in dual form using operator overloading and chain rule propagation.
- The approach is applied to the position vector of a coupler point in a spherical 4R mechanism, expressed through rotation matrices and cross products.
- The coupler-point trajectory is modeled via rotation of a vector about an axis defined by the cross product of two link vectors.
- The extended dual version of the position vector directly yields velocity and acceleration as its first and second derivative components.
- The implementation is coded in Fortran, with a downloadable module providing dual versions of common kinematic functions.
Experimental results
Research questions
- RQ1Can dual numbers be extended to compute both first and second derivatives of vector functions in a single computational pass?
- RQ2How can the dual number approach be adapted to handle complex kinematic functions in spherical mechanisms?
- RQ3Can this method produce accurate velocity and acceleration values for coupler-point motion without analytical derivation?
- RQ4What is the computational efficiency and numerical accuracy of the dual-based method compared to finite-difference schemes?
- RQ5Can the method be practically implemented in a high-performance language like Fortran for mechanism design applications?
Key findings
- The dual number method enables exact computation of first and second derivatives without truncation or cancellation errors inherent in finite-difference methods.
- The velocity and acceleration components of the coupler point were computed accurately at various input angles $\theta$, with results provided in Table 2.
- At $\theta = 0.00000$, the velocity components were $\dot{x}_{\text{gen}} = -0.14255$, $\dot{y}_{\text{gen}} = -0.06884$, $\dot{z}_{\text{gen}} = 0.59467$ (in SI units).
- At $\theta = 3.14159$, the acceleration components were $\ddot{x}_{\text{gen}} = -0.00803$, $\ddot{y}_{\text{gen}} = 0.19437$, $\ddot{z}_{\text{gen}} = -0.09747$.
- The method allows direct extraction of derivatives from the extended dual representation, eliminating the need for separate derivative calculations.
- The implementation in Fortran provides a reusable, efficient, and accurate tool for kinematic analysis in spherical mechanisms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.