1. Introduction
The increasing implementation of underwater vehicles in ocean exploration for scientific or commercial benefits, rescue maneuvers, and transporting operations implies an efficiency improvement in matters of design, as well as the development of new control techniques and methodologies, which, in conjunction, evoke significant advances in terms of technology for underwater applications [
1,
2,
3].
The identification of the hydrodynamic parameters of autonomous underwater vehicles (AUVs) at the early stages of conception stands as the main motivation of the present work, since the hydrodynamic parameters could potentially serve as a measure of the design efficiency [
4,
5,
6,
7].
In order to estimate the hydrodynamic parameters of a prescribed underwater vehicle, different experimental methodologies have been reported in the literature [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17], yet, the majority of them require the implementation of top-technological expensive gadgets and tools, which makes the design task difficult for those researchers whose budget and facilities are an issue to overcome. In this regard, the implementation of Computed Fluid Dynamics (CFD) software and other computational resources has emerged as an alternative to conceive the vehicles at the first stages of research.
Recent publications provide evidence of the efforts to improve hydrodynamic parameters estimation techniques, emphasizing the increasing importance of the implementation of computational resources. In [
18], a maximum likelihood identification algorithm in conjunction with CFD calculations is proposed and validated via experimentation. On the other hand, the hydrodynamic parameters are treated as a function of the angular position in the performance of sharp maneuvers, as exposed in [
19,
20]. A control-oriented modeling approach is proposed for a low-speed complex-shaped semi-AUV at [
21], and a low-cost, efficient CFD procedure is introduced to compute the parameters.
The methodologies that were adopted by a scientist to accurately estimate the vehicles hydrodynamic characteristics are mainly those that have been used in experimental studies; thus, the issue to overcome, besides the computational cost, is to imitate the real scenario conditions in the software environment; issue that has been widely discussed in the literature and that has gathered the attention of researchers in early decades [
6,
7,
8,
9,
10,
17].
The authors consider that the efforts for modeling the hydrodynamic effects in a virtual environment have produced a faster conception and evaluation processes of the vehicles, as such, an action facilitates the recursive improvement process, similar to that of the control algorithms validation [
1,
2,
3,
22].
In the control vein, the knowledge of the hydrodynamics coefficients and the physical properties of the system could lead to a potential misconception of the control laws, whereas they are used for position stabilization [
23] or trajectory tracking and path planning [
22], among other complex tasks [
24,
25,
26]. Nonetheless, the estimation techniques and observers theory have been adopted in maritime engineering, since they allow for the vehicle to know the external disturbances and the hydrodynamic effects that deteriorate the system itself, extending the concept of “Autonomous” vehicles.
At the early stages of the design of underwater vehicles, the stability of the system is a concern that draws the attention of researchers, since the success of the majority of other maneuvers highly depends on the capability of the robot to stay at a given desired point, and to remain at a specific orientation, as could be the study of sunken ships, species observation, and the monitoring of underwater structures, to mention a few [
1,
2,
3].
A brief survey on this topic gives evidence of the diverse techniques that were implemented to ensure the stability of underwater vehicles [
23,
24,
25,
26], being the PD and PID controllers, with different variations, the most commonly adopted. The aforementioned controllers have been implemented in order to accomplish tasks as depth control under continuous waves conditions [
27,
28,
29,
30] or the path following adversarial environmental conditions [
31]. Nonetheless, robust control techniques have been adopted in order to improve the behavior of the system, as in [
32,
33,
34], where the corresponding authors show the effectiveness of the Sliding Mode Control (SMC) applied over these vehicles, extending the capabilities of the theory to the observation domain [
35]. Moreover, some techniques [
36] consider an iterative identification method to estimate the parameters of the system and the design of the controller at the same time.
In all of the cited works, the control design considers that the physical properties and the hydrodynamic coefficients of the system are known, even when some observers are implemented to compute such coefficients on-board; these are needed before the real operation takes place, as the estimations must be validated. Thus, characterizing the vehicle in terms of the hydrodynamics has a considerable impact on the overall performance of the AUVs.
Problem Statement and Paper Contributions
The early identification of the hydrodynamic effects that a mini-AUV experiences during motion is the issue to overcome in this manuscript by:
The adaptation of a yet-virtually-translated experimental test set [
11,
12,
13] to the environment of the CFX on ANSYS™ Workbench software (ANSYS CFX) may be referred to as the industry-leading computational fluid dynamics software for turbo-machinery applications.
The simulation of the mini-AUV as a submerged body in the ANSYS CFX environment for determining the forces, accelerations, and velocities during motion.
The conception of the control laws and the stability study, including the estimated hydrodynamic parameters of the mini-AUV, through the robot manipulator control theory, in order to validate the behavior of the system.
It must be highlighted that, even when Finite Volume Method (FVM) simulations are most commonly adopted for hydrodynamics and fluid applications, this work considers, at the same time, the FEM simulation, as it is more appropriate for structural applications, which include forces definition. The ANSYS CFX module manages both methods, which allows for an accurate simulation of both phenomena [
37,
38]. Nonetheless, recent works on the literature report, for specific cases of study and simulation conditions, slight differences in computation efficiency between the methods mentioned above, and the results do not vary significantly [
39,
40].
In this regard, the current manuscript is structured by six sections and an appendix; the description of the mini-AUV, including its dynamics, is presented in
Section 2.
Section 3 establishes the procedure in order to estimate the corresponding hydrodynamic parameters and the conditions programmed within the software environment. In
Section 4, the conception of the controllers and corresponding Lyapunov stability analysis are presented, while
Section 5 presents the results of the hydrodynamic parameters identification process and the position control task. The concluding remarks and the proposal of future work are comprised in
Section 6. Finally,
Appendix A contains all of the data generated during the computing process of the hydrodynamic parameters that are exposed in
Section 3.
2. Mini-AUV Mathematical Modelling
The current work considers the mini-AUV prototype that was conceived at the Institute and is depicted in
Figure 1, in which the four propellers propulsion system is easily identified. Furthermore, the inertial reference frame
and the body–fixed reference frame
are defined. It is worth highlighting that the origin of the body–fixed reference frame coincides with the center of gravity
of the mini-AUV.
stands for the buoyancy center of the vehicle, which is supposed to be aligned with
.
The maximal dimensions of the vehicle (established as
m in
,
, and
, respectively) place it in the “mini vehicle” category [
23,
41]. According to the CAD software that was used for its conception (Solidworks™), the volume of the mini-AUV is 0.006 m
, which in conjunction with its mass,
kg, defines the principal moments of inertia about the axis
,
, and
as
,
, and
, respectively.
The additional information that is provided by
Figure 1b,c regarding the position of the motors, with respect to the body–fixed reference frame, is used in the following paragraphs to define the dynamics of the mini-AUV.
According to the Newton–Euler method [
42,
43], the dynamics of a rigid body of mass
with six-Degrees of Freedom (DOFs), and whose principal axis of inertia (with their respective moments of inertia
) coincide with the axis of the body–fixed reference frame, and the corresponding origin matches with the center of gravity, as in the case of the mini-AUV, is described by:
such that:
where
, and
denote the position of the vehicle in the space and the rotational velocities in the body–fixed reference frame, respectively,
stands for the gravity vector,
does for the zero vector,
and
stand for the identity and the zero matrices,
does for the rotational inertia tensor, and
is the skew-symmetric operator over the vector
. In this regard,
and
include, correspondingly, the forces and torques that are produced by the propulsion system
, and the hydrodynamic effects due to the motion of the vehicle
, not to mention the influence of the external disturbances, which is neglected in this paper. In this sense:
Taking the geometry of the mini-AUV depicted in
Figure 1, and the forces produced by each motor
(with
), into consideration, it leads to:
where
provides a vector mapping from to the body–reference frame to the inertial frame and it corresponds to the rotation matrix that is described by the Euler angles contained in the vector
whose rate of change,
, is related to
, such that:
Additionally, stands for the proportional factor that relates the force that is produced by the propeller to its corresponding exerted free moment .
On the other hand, the hydrodynamic forces and torques,
, respectively, are produced by complex phenomena, which include the added mass effects, radiation-induced potential damping, and restoring forces. The magnitude of these terms depends on the velocities of the body expressed in the body–reference frame
and
; thus, they are provided in the reference frame that is mentioned above and modeled by an equation of the form of Equation (
1) with an added mass inertia matrix
, a Coriolis terms matrix
, a damping matrix
, and a vector of restoring forces
, which comprises the buoyant force
. A fully extended treatment of these terms can be consulted at [
11,
12,
13,
44,
45,
46,
47]. Furthermore, the SNAME notation, regarding the hydrodynamic parameters, is adopted now-on, and the hydrodynamic effects are included within the dynamics of the mini-AUV, such that Equation (
1) can be rewritten as:
with
. It must be highlighted that the matrices
and the vector
correspond, respectively, to
, and
with the proper conversion of the translational terms to the inertial frame.
Because the mini-AUV dynamics is highly nonlinear and coupled, several assumptions are suggested to be considered throughout the literature [
11,
12,
13,
46,
47]. In this regard, the off-diagonal elements of the matrix
are neglected, as they are smaller than those of the diagonal; the mini-AUV is assumed to be naturally stable in roll and pitch (
and
), and
, as the actuators only produce forces along the body axis
and
. Additionally, the mini-AUV operates at low speeds, such that the Coriolis and centripetal effects, and the quadratic damping terms, are small enough to be neglected yet, the factor
is still considered, since
and
; thus, the six-DOFs model of the mini-AUV can be reduced to a four-DOFs dynamical model of the form:
where Equation (
8) holds for the motion that is described in the inertial frame, and Equation (9) does the proper for the motion described in the body reference frame. Additionally,
,
and
Notice that the v dynamics has been considered to keep the matrices within .
Equations (
8) and (
9) are respectively used in the following sections to identify the hydrodynamic parameters of the mini-AUV, and to conceive the controllers and their stability analysis; meanwhile, Equation (
7) was used to carry out the corresponding numerical simulations to validate the controllers.
5. Simulation Results
In this section, the ANSYS CFX simulation results and the treatment of the data obtained are exposed. In the second subsection, the hydrodynamic parameters identification results are used in order to design the controllers and show their accuracy by numerical simulations.
5.1. ANSYS CFX Simulation Results and Data Treatment
The information given by the fluid dynamics simulations was processed while using Matlab™.
Figure 4 shows that the position, velocity, and acceleration of the mini-AUV, as provided by the ANSYS CFX module, are depicted, highlighting that such results correspond to its motion in
. Recalling [
11,
12,
13,
14,
15,
44,
45], the plots can be considered to describe a close-to-reality behavior whose evidence is shown in
Figure 5 [
11,
12,
13] (Figures taken from [
11,
12,
13] for comparison purposes only, no copyright infringement is intended.).
From
Figure 4, it can be concluded that the time step variation of 0.05 s does not have a notorious impact on the displacement and velocity simulation results. On the other hand, notice that the position and velocities of the system follow the curves that were obtained by real experiments, with the differences due to the design and the dimensions of the vehicles being evident. Nevertheless, the accelerations seem not to have the same behavior, as the one provided by ANSYS CFX is noisy, in such a manner that it needs to be filtered, as suggested in the methodologies provided throughout [
11,
12,
13,
14,
15]. In this vein, the acceleration results that are depicted in
Figure 4 were used to estimate the parameters as an isolated possible scenario, as such behavior would potentially lead to a larger estimation error, as explained in the following paragraphs.
The Savitzky–Golay filter was used in order to filter the velocity and acceleration signals since, according to [
11,
51,
52], the main filter characteristic relays on an accurate curve tracking and following, with an attenuation of abrupt signal changes.
In Matlab™, the function of the Savitzky–Golay filter is given by the instruction
. The input parameters of the function are: the vector
x, which is the signal to be filtered, the polynomial grade
k, and the size of the window
with this being an odd number [
51,
52].
The data were analyzed with a set of different filter parameters to evaluate the performance of the filter. Moreover, according to the documentation [
51,
52], the acceleration can also be computed from the velocity by applying the Savitzky–Golay method, which filters the input signal and numerically computes its first derivative. In Matlab™, this method is comprised of the function
, where
N is the polynomial grade, and
F the size of the window. In
Table 1, the parameters of the Savitzky–Golay filter and the corresponding case identifier number (label) are established.
Case 1, as exposed in
Table 1, corresponds to the data without any filtering process, i.e., as it was previously obtained from the ANSYS CFX simulation. Cases 2–5 stand for the cases in which a Savitzky–Golay filter was independently applied to the velocity and the acceleration.
Figure 6 and
Figure 7 depict the results of this filtering stage with the values that are provided in
Table 1.
Figure 7 shows an appreciable attenuation of the acceleration; meanwhile, it can be appreciated that the velocity curves have been smothered.
Figure 6 suggests that, mainly, the filter at case 4 has a better performance in this matter. In
Figure 8, the velocities and the accelerations concerning case 3 (randomly selected) of
Table 1 are isolated in order to present a comparison to appreciate the differences between the filtering process with 120 and 150 data points.
Smoother signals are appreciated in the cases where 150 data points were available for the analysis, which, alongside the results presented in [
13,
14,
15], led to the conclusion that the more data points available, the better the estimation process. Nevertheless, conclusions cannot be firmly established at this point of the data treatment process, as the Least Squares Method has not been used yet.
A second filter was applied to the already filtered accelerations obtained at cases 2–5, as suggested by [
11,
12,
13]. For such a task, the second filter parameters, as shown in
Table 2, were established, and new labels for these cases were assigned.
Figure 9 depicts the double-filtered accelerations, where the attenuation of the signals is notorious.
Figure 10 shows case 8 of the data treatment strategy.
Two supplementary cases were considered. Case 10 corresponds to the implementation of the
function to filter the velocity and compute the acceleration from the velocity data provided. Finally, case 11 corresponds to case 10 yet, with an additional Savitzky–Golay filter applied to the acceleration signal that was previously computed by the
function.
Table 3 introduces the parameters for these two cases.
Figure 11 and
Figure 12 depict the corresponding results.
With the data acquired and arranged in the form of Equation (
19), the expressions in Equations (
16) and (
17) were applied in order to obtain the estimated values of the hydrodynamic parameters.
In
Appendix A, the tables containing the statistical data for each analysis are presented. Based on the data set that was obtained with 120 data points concerning the positive surge motion of the mini-AUV, the added mass value is observed to adopt a magnitude near
, while the linear and quadratic damping coefficients are close to
and
, respectively.
By definition, the added mass and the damping matrices must be strictly positive definite, implying that
,
, and
[
46,
47]. Most of the parameters estimated with the 120 iterations simulation results do not satisfy the conditions mentioned above. On the other hand, on matters of the hydrodynamic coefficients that are computed with the data of the ANSYS CFX simulation with 150 iterations, it was found that more results fit the specifications, which suggests a close relationship between the accuracy of the estimation and the number of data points in such a manner that the more information is obtained, the more accurate the estimation may be. Several works in the literature have also given evidence of this result [
8,
9,
10,
37]. The fact that the standard deviation of the linear damping coefficient is close to the value of the parameter could be attributed to the data points used to compute the parameters [
4,
5,
6,
16,
37].
Based on the lowest variance and standard deviation of the parameters in the
Appendix A, and in comparison with the results exposed by [
11,
12,
13,
14], the estimation that is selected to be valid is that of the case 11; thus, the hydrodynamics coefficients that characterize the positive
motion of the vehicle correspond to:
The same identification procedure was followed in order to estimate each of the hydrodynamic coefficients. The overall set of hydrodynamic parameters of the mini-AUV is available at
Table 4.
Upon conclusion of the parameters identification procedure, the information obtained was used to define and simulate the controllers proposed in
Section 4.
5.2. Control Simulations Results
Because the vertical motion of the mini-AUV is decoupled from the horizontal plane, the control algorithm is divided into two parts: one for the control depth and the other for the motion in the horizontal plane; as depicted by the block diagram in
Figure 13. The motion of the mini-AUV in the
and
directions is coupled to the
dynamics. Subsequently, given a desired point in the space
, the desired angle
is computed when considering the initial positions
and
, such that:
First, the mini-AUV is driven to the desired angle and, once it has reached the commanded set-point, it starts to move forwards to reach the desired point , . In the meantime, the depth (z) control drives the mini-AUV to the desired vertical position.
For the simulations, the geometric parameter
was set to be
m, and the estimates of the hydrodynamic parameters, as introduced in
Table 4, were used. Additionally, the gains of the PD, PID, and SM controllers correspond to those in
Table 5. Such gains ensure a slow-motion of the vehicle, as it had been assumed in
Section 2 and
Section 4.
The simulation was run for a total time
s with a constant sampling time
s in Matlab/Simulink™2018b while using a computer that was embedded with an 8 GB RAM and an Inter Core™i5-8250 CPU @ 1.60 GHz & 1.80 GHz processor. The initial conditions of the system were set to 0 and the reference point to reach was selected to be at
,
,
. The results of such control studies are exposed through
Figure 14,
Figure 15,
Figure 16 and
Figure 17.
In
Figure 14 and
Figure 15, it is possible to appreciate the performance of the controllers regarding the translational horizontal motion of the mini-AUV. In this matter, the difference in the settling time is notorious.
The mini-AUV under the PD and SM control techniques has an oscillatory behavior, while the system under the influence of the PID controller does not, due to the effect of the integral term. Nevertheless, such oscillatory behavior can be attenuated by a detailed tuning procedure, according to the desired performance or task requirements.
Figure 15 gives evidence of the steady-state response of the mini-AUV, which has a better performance when implementing the PID and SM controllers, since the error tends to 0 as times goes to infinity, which is produced due to the integral term in the case of the PID controller, and to the robust approach and conception of the Sliding Mode controller.
Based on the gains presented in
Table 5, it can be observed that the PID and PD control drive the mini-AUV to
at similar times; on the other hand, the SM controller drives the system to
more slowly, yet, in the three cases, the desired orientation seemed to be reached, which is reinforced by the result that is depicted in
Figure 16.
Concerning the dynamics, no oscillation behavior was desired as an arbitrary requirement, thus the set of control gains previously introduced ensures such a requirement. Not a notorious difference is appreciated when the PD and PID controllers are applied, yet the response of the mini-AUV, when controlled by the SMC, is slower, which cannot be considered to be an issue, since it can be fixed by selecting a new set of gains.
In
Figure 17, for the motion in
, a difference between the transient response of the three controllers is appreciable, yet, similar results can be obtained by selecting the proper set of parameters, depending on the controller.
Some considerations have to be taken, even when the three controllers accomplish the goal of controlling the position of the vehicle. The results suggest that these controllers can successfully drive the system to the desired point, yet external disturbances influences have not been considered; thus, this scenario must be validated in simulations and reality. Besides, it can be commented that a better performance is expected from the SM controller, since it is a robust control technique.
6. Concluding Remarks and Future Work
In this paper, the issue of identifying the hydrodynamic parameters of a mini-AUV in the early stages of the design was treated. In this regard, the dynamic model has been described and simplified in order to study the position stability problem under three different control approaches. The robot manipulator control theory was used to design the three controllers and study the stability of the closed-loop system. The adaptation mentioned above may be considered to be a new control design methodology for this kind of vehicle.
The hydrodynamic parameters of the mini-AUV were estimated by close-to-reality hydrodynamics simulations. A real experimentation procedure and the environmental conditions were adapted; additionally, the Immersed Solid option in ANSYS CFX to analyze the behavior of these vehicles may establish new options and capabilities to be explored and exploited in the upcoming works. Such options, alongside the recent founds and improving methods on the Least Squares estimation technique [
20,
49,
53,
54,
55], could improve the estimation of such parameters and lead to more efficient simulation algorithms. Nevertheless, some issues that are described in [
6] can emerge, thus a careful use of the CFD software is suggested, yet it is a useful tool in early design stages, the estimation of the parameters should take place in real and virtual scenarios.
A detailed and refined 3D model of the mini-AUV can be improved in the upcoming projects to increase the efficiency of the vehicle in operation, based on the results that were provided by the ANSYS CFX software, since the hydrodynamic parameters can be considered to be a tool for measuring the design efficiency [
4,
5,
6,
16]. A continuous improvement process also implies exploring more options and several parameters configuration to develop the simulations and obtain more accurate estimations, not to mention the real experimentation and problems that come with the data acquisition task.
The use of a Work Station Computer is strongly encouraged, since this would allow for performing faster simulations; thus, more data points can be obtained, and the precision of the estimation can be improved as well as the quality of the mesh. Performinf more simulations considering different real approaches and new methodologies is part of the upcoming work, as suggested by [
4,
5,
6].
Numerical simulations validated the controllers; however, to control the mini-AUV, when considering the whole phenomena in its dynamics and uncertainties, is opened to new projects at the Institute. This manuscript pretends to serve as an introductory work to the conception procedure of underwater vehicles and their hydrodynamic parameters identification.