Figures
Abstract
This paper presents a novel hybrid simulation framework by combining nonlinear model predictive control (NMPC) and the lattice Boltzmann method (LBM) for autonomous robot navigation in dynamic environments. We evaluated the control algorithm’s resilience by looking at fluid-structure interactions in both laminar (Re = 100) and turbulent (Re = 2000) flows. To ensure numerical accuracy and physical fidelity, a systematic grid independence study was conducted across various resolutions ( to
). The
grid was selected as the benchmark standard, providing 3–5 lattice units within the viscous boundary layer to minimize numerical diffusion and accurately resolve high-frequency vortex shedding patterns. This rigorous validation allowed us to test the NMPC trajectory planning across fundamentally different flow behaviors with high confidence in the underlying hydrodynamics. The aim is to enhance mobile robot navigation by integrating a resilient control algorithm with a comprehensive fluid dynamics study, focusing on enhancing trajectory planning, obstacle avoidance, and overall performance in dynamic fluid environments. Computational fluid dynamics (CFD) analysis is combined with a robust control algorithm. The robot’s interaction with the surrounding fluid is evaluated through different parameters such as Reynolds number, drag forces, the robot’s energy dissipation, and vorticity. Key performance metrics, including a path efficiency of 0.887 and low computational requirements with the LBM-NMPC framework maintaining a linear memory footprint of 2.88 MB at peak resolution, demonstrate NMPC algorithm’s viability as a fast and efficient trajectory planner. The robot maintained safe distances from obstacles, highlighting the effectiveness of the obstacle avoidance strategy and the robustness of the validated simulation environment.
Citation: Ali M, Das S, Townley S (2026) Analytical framework for evaluating NMPC-based robot navigation in fluid environments. PLoS One 21(3): e0333056. https://doi.org/10.1371/journal.pone.0333056
Editor: Muhammad Shakaib, NED University of Engineering and Technology, PAKISTAN
Received: September 4, 2025; Accepted: February 8, 2026; Published: March 30, 2026
Copyright: © 2026 Ali et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting information files.
Funding: The work of Maram Ali was supported by King Khalid University and the Saudi Arabia Cultural Bureau in the UK. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
Dynamic obstacle avoidance is a critical problem for autonomous robots that has gained significant attention due to its applications in areas such as industrial automation, autonomous vehicles, and intelligent navigation systems [1,2]. Developing robust methods to ensure reliable robot navigation in environments with static and dynamic obstacles while considering external influences, such as fluid interactions, remains a challenging task. This paper presents a hybrid approach that combines the nonlinear model predictive control (NMPC) method and the lattice Boltzmann method (LBM) to address this problem effectively. NMPC framework has been widely used for trajectory tracking and obstacle avoidance in robotics due to its ability to handle nonlinear dynamics and constraints explicitly. NMPC optimizes control inputs by predicting future states over a finite time horizon, making it an appropriate option for real-time applications in dynamic environments [3,4]. However, standard NMPC controllers for undersea vehicles frequently depend on simpler kinematic or dynamic models, which are insufficient for accurately representing intricate fluid phenomena such as vortex shedding and dynamic drag. This creates a significant gap: whereas a controller may excel in a simplified simulation, its actual efficacy in a complicated fluid environment is unverified. This research addresses this gap by introducing an innovative two-stage approach for evaluating the performance of NMPC trajectories in a high-fidelity fluid environment.
In this study, NMPC is utilized to guide a robot toward its goal while dynamically avoiding obstacles. The robot’s kinematics are modeled using a differential drive system, and the NMPC controller ensures collision avoidance while adhering to velocity and workspace constraints. To enhance the realism of the simulation, LBM is employed to model fluid flow interactions with the robot and obstacles. The framework combines the strengths of NMPC for high-precision trajectory planning and LBM for accurate fluid interaction modeling. The NMPC module uses the CasADi library and the IPOPT solver [5] for optimal control, incorporating constraints such as velocity limits, angular velocity bounds, and collision avoidance. LBM is a mesoscopic numerical method derived from the Boltzmann equation and has been extensively used for fluid dynamics simulations. It allows for the efficient modeling of complex flow patterns, including laminar and turbulent regimes, as well as interactions between fluids and moving bodies [6]. One key phenomenon that emerges from these interactions is wake turbulence, which occurs when a moving object disturbs the surrounding fluid, creating swirling vortices and unstable flow patterns behind it. In simpler terms, wake turbulence is similar to the ripples left behind by a boat moving through water. In this study, the wake turbulence generated by the robot and obstacles influences the fluid forces acting on the system, affecting both navigation efficiency and obstacle avoidance performance. By integrating LBM, our two-stage framework not only ensures collision-free navigation but also accounts for the fluid forces acting on the robot and obstacles, making the simulations more representative of real-world conditions.
This two-stage, decoupled framework provides a technically sound, rigorous precursor to a fully coupled control-fluid system by quantifying the maximum uncompensated fluid impact, e.g., drag and energy loss, on an ideal kinematic path. The core of our methodology is the two-stage process: an NMPC controller first devises a robust, unobstructed trajectory, which is then simulated within a high-fidelity LBM fluid environment. This method facilitates a thorough analysis of the interaction between the robot’s intended trajectory and intricate fluid dynamics, such as drag and vorticity, providing essential insights into the efficacy of the control strategy. The simulation results illustrate the efficacy of this method in achieving smooth trajectory planning, robust obstacle avoidance, and detailed visualization of fluid interactions. The results indicate that the proposed framework can be applied to a wide range of applications, including underwater robotics and aerospace systems. The primary goal is the quantitative assessment of fluid effects on the planned trajectory, rather than the final verification on an experimental test-bed. The main contributions of this work are as follows:
- We introduce a novel two-stage analytical framework that integrates a conventional nonlinear model predictive control (NMPC) planner with a high-fidelity lattice Boltzmann method (LBM) fluid simulation. This decoupled approach allows for the post-hoc assessment of a robot’s kinematically planned trajectory within intricate fluid environments.
- Our methodology provides a robust instrument for elucidating the effects of fluid forces, such as drag and vorticity, on planned trajectories. This bridges the gap between simplified control models and complex physical realities, enabling the validation of control techniques and informing robot design prior to real-world deployment.
- We present a detailed analysis of NMPC performance, demonstrating its efficacy for kinematic obstacle avoidance and quantifying key metrics like path efficiency and energy consumption across various fluid flow regimes.
This paper is organized as follows: Sect 2 reviews previous research. Sect 3 outlines the materials and methods employed in this study, including the overall simulation framework. Sect 4 shows in detail the instantaneous drag computation. Section. Sect 5 shows the formulation of the methodology through simulation scenarios. Sect 6 discuss the fluid dynamics metrics and averaging. outlines the key performance indicators derived from the lattice Boltzmann method (LBM) simulations. Sect 7 shows the results, and Sect 8 discusses the advantages of the LBM method. Furthermore, Sect 9 explains the benefits of NMPC over other standard control approaches. In Sect 10, we show a comparison of robots operating in fluid and land-based scenarios. In Sect 11, we discuss the impact of fluid interaction on robot motion. Sect 12 presents the conclusion and suggestions for future work. Lastly, Sect 13 this section evaluates the limitations of the proposed NMPC-LBM hybrid framework.
2 Related previous works
The dynamic obstacle avoidance problem has been extensively studied in robotics, with researchers proposing various methodologies to ensure robust navigation in both static and dynamic environments [7,8]. This section reviews key contributions to obstacle avoidance, trajectory planning, and the integration of fluid dynamics in robotic systems. Although some works have investigated NMPC for obstacle avoidance and others focused on LBM for fluid simulation, a comprehensive framework for assessing NMPC-based navigation in dynamic fluid settings is yet insufficiently examined. This paper addresses this gap in the literature. Our novelty lies in presenting the first decoupled analytical framework that rigorously assesses the performance limits of an NMPC planner by exposing its trajectories to a high-fidelity, nonlinear LBM fluid simulation. This bridges the gap between robust control theory and complex fluid simulation. The primary assumption is that the NMPC trajectory planning is a purely kinematic problem (ignoring fluid forces) and that the hydrodynamic effects can be accurately assessed in post-hoc manner using the decoupled LBM simulation framework explained in Table 1.
2.1 Obstacle avoidance and trajectory planning
Traditional methods for obstacle avoidance often rely on reactive approaches, such as potential fields [9] and vector field histograms [10]. While these methods are computationally efficient, they suffer from limitations such as local minima and suboptimal trajectories in complex environments. To overcome these challenges, model predictive control (MPC) has emerged as a promising framework for trajectory planning and collision avoidance. For example, in [11], MPC is employed for path tracking as a constrained control problem, maximizing the vehicle’s trajectory while conforming to various constraints on control actions and output. Similarly, NMPC has been effectively employed in robotic systems, taking advantage of its ability to handle non-linear dynamics and incorporate constraints directly into the optimization problem [12]. CasADi and IPOPT [5], popular numerical tools to solve optimization problems, have further facilitated the implementation of NMPC in real-time applications. The work in [13] shows how NMPC can achieve real-time performance in dynamic environments by leveraging these tools, particularly in systems with limited computational resources. Dynamic obstacle avoidance remains critical for autonomous systems in unpredictable environments [14]. Liu et al. [15] proposed a reinforcement learning (RL)-based strategy for real-time dynamic obstacle avoidance in cable-driven parallel robots, effectively integrating trajectory tracking controllers with RL for real-world applications. Similarly, Xu et al. [16] designed a gradient-based B-spline trajectory optimization algorithm for vision-aided UAV navigation, allowing real-time obstacle prediction and avoidance in dynamic environments [16]. Another innovative approach by Koutras et al. [17] integrated compliance and accuracy to enforce dynamic obstacle avoidance in collaborative robots, maintaining task execution safety.
2.2 Fluid dynamics integration in robotics
The integration of fluid dynamics into robotic systems has been explored in domains such as underwater robotics and aerial vehicles. LBM has been widely adopted for fluid simulations due to its ability to efficiently model complex flow patterns and interactions with solid bodies [18]. In [19], LBM was used to simulate underwater robotic motion, showcasing the method’s accuracy in capturing fluid-structure interactions. Another study [20] combined LBM with RL to optimize the motion of underwater robots, highlighting the potential of hybrid approaches. Zhao et al. [21] coupled LBM with a pore network model to simulate fluid flow behavior, emphasizing computational efficiency and accuracy. Sedaghat et al. [22] advanced this by integrating the immersed boundary technique utilizing the lattice Boltzmann method to model viscoelastic fluid flows around complex structures, highlighting its applicability in industrial and biological domains. Additionally, Wang et al. [23] demonstrated LBM’s effectiveness in real-time interactive 3D fluid simulations, enabling adjustments during runtime without compromising physical relevance. NMPC is widely recognised for trajectory optimization in dynamic and constrained environments. Hedjar [24] transformed NMPC optimization into a constrained quadratic problem, demonstrating its efficacy in tracking constrained spaces. Meanwhile, Zhu et al. [25] combined NMPC with a recurrent fuzzy neural network (FNN) for robust navigation in dynamic environments, enhancing optimization and collision avoidance [26]. In autonomous mobile robots, Villemazet et al. [27] validated NMPC’s potential for precise navigation through orchards using multi-camera GPS-free systems. Our method offers a robust instrument for comprehending the impact of fluid dynamics on robotic movement in intricate settings.
2.3 Hybrid computational approaches
Recent works have attempted to combine various methodologies to achieve robust performance in complex environments. For example, the hybridization of MPC and artificial intelligence techniques, such as RL, has shown promise in dynamic obstacle-rich environments [28]. Another example shows the design of obstacle avoidance controller with NMPC. This approach allows for real-time trajectory tracking while considering dynamic obstacles in the vehicle’s path [29]. Similarly, NMPC is implemented on a rapid prototyping system for vehicle dynamics as it can handle the complexities of nonlinear systems effectively [30]. However, these methods rarely incorporate physical environmental factors such as fluid dynamics. In [31], a hybrid method combining LBM for fluid simulation and traditional control techniques was proposed, but the focus was limited to static obstacles. This paper addresses this gap by presenting our two-stage analytical framework, which integrates NMPC and LBM.
3 Materials and methods
This study utilizes a two-stage analytical framework incorporating the lattice Boltzmann method (LBM) for precise fluid dynamics modeling and nonlinear model predictive control (NMPC) for autonomous robotic trajectory planning. This method facilitates a comprehensive post-hoc study of the NMPC-generated trajectory, permitting an accurate assessment of its performance under diverse fluid flow conditions and turbulence scenarios. The LBM utilizes a uniform grid resolution of lattice units. This resolution was specifically chosen to accurately capture the robot’s viscous boundary layer (
), ensuring (
) was resolved by 3–5 lattice units. This resolution is critical for maintaining stability, achieving reliable hydrodynamic force computation, and accurately capturing key flow features, such as the vortex.
3.1 Overall simulation framework
Our simulation system utilizes a two-stage, decoupled methodology to evaluate the efficacy of NMPC trajectories within a high-fidelity fluid environment. This approach directly addresses the distinction between a kinematically planned trajectory and its physical performance under fluid-dynamic influences. The separation of the kinematic NMPC planning from LBM fluid analysis is a deliberate and necessary technical choice. This work is not intended as a real-time experiment on fluid-mechanics informed controller design implementation, but rather it serves as a foundational simulation based validation study. By first isolating the kinematically optimal NMPC path and then subjecting it to LBM simulation, we can quantify the maximum impact of fluid dynamics specifically instantaneous drag forces and total energy dissipation that a standard kinematic planner inherently ignores. Consequently, the resulting data establishes a critical performance benchmark required for the subsequent development of fully coupled, fluid-flow aware NMPC algorithms.
- Stage 1: NMPC Trajectory Generation: The NMPC controller, executed in a Simulink environment, calculates a comprehensive and collision-free trajectory from a specified initial condition to the target. This phase functions without real-time fluid feedback, producing a pre-established dataset of the robot’s and obstacles’ positions and velocities during the whole simulation period. This dataset functions as the “sensor inputs” for the following fluid simulation.
- Stage 2: Offline LBM Analysis: The pre-computed position and velocity data from the NMPC output serve as dynamic boundary conditions for an offline lattice Boltzmann method (LBM) simulation. The LBM model does not affect the trajectory; rather, it is designed to conduct a comprehensive post-hoc examination of the fluid’s reaction to the intended path. This facilitates the calculation of critical fluid-dynamic parameters, including drag forces and vorticity, which influence the robot’s mobility in a realistic environment.
This decoupling framework offers a reliable tool for assessing control techniques by evaluating their performance in realistic physical settings. A practical application necessitates a physical sensor suite, e.g., visual-inertial odometry or sonar, that provides the real-time state information that is predetermined in our simulation.
3.2 Numerical validation and grid convergence
To ensure the numerical stability and physical accuracy of the LBM solver, a systematic grid resolution study was conducted. We evaluated lattice sizes ranging from to
. The quantitative results of this study, highlighting the convergence of physical metrics and computational requirements, are summarized in Table 2.
Based on the data presented in Table 2, the following observations justify our framework configuration:
- Accuracy: As evidenced by the force error reduction from 43.2% to 0%, increased grid densities were essential to minimize numerical diffusion and accurately resolve high-frequency vortex shedding patterns in the robot’s wake.
- Computational Cost: While the
grid is the most demanding in terms of runtime (300.00 s), it provides the essential benchmark for high-fidelity Fluid-Structure Interaction (FSI) analysis, ensuring the reference solution is free from artifacts.
- Selection: The
resolution was selected because it achieves the optimal 3–5 lattice units required for boundary layer resolution. This is critical for the convergence of hydrodynamic force computations used by the NMPC during trajectory optimization.
The results reveal a definitive trade-off between computational overhead and physical fidelity. To verify the numerical reliability, the relative error was monitored across the four resolutions. As shown in Fig 1, the error curve plateaus at the benchmark, suggesting that further mesh refinement would yield diminishing returns. This confirms that the selected resolution has achieved grid independence, providing a stable and trustworthy foundation for all subsequent NMPC evaluations.
Relative errors are calculated against the benchmark resolution.
3.3 Lattice Boltzmann Method (LBM)
- Derivation from the Boltzmann Equation: The LBM is derived from the Boltzmann equation [32], which models the statistical behavior of a gas at the mesoscopic level. In this context
is the particle distribution function that describe the distribution of particles at position x, velocity v, and time t [33]. The term v denotes the particle velocity, f represents external forces acting on the particles, and
is the collision operator that models particle interactions. The Boltzmann equation is expressed as:
The collision operator is simplified using the Bhatnagar-Gross-Krook (BGK) model, which assumes relaxation of the distribution function f towards an equilibrium distribution feq. The BGK approximation is given as:
where, denotes the relaxation time associated with the fluid’s viscosity and feq is the equilibrium distribution function derived from the Maxwell-Boltzmann distribution.
- Lattice Boltzmann Equation (LBE): The Boltzmann equation is discretized in time, space, and velocity space, resulting in LBE. In LBE,
represents the particle distribution function along the discrete velocity direction [34] i, ei is the lattice velocity vector, and
is the time step. The LBE is expressed as:
- Equilibrium Distribution Function: The equilibrium distribution function
is defined to satisfy the conservation laws and is given as [35]:
In this equation wi are weighting factors that depend on the lattice structure and represent the fluid density, u while the macroscopic velocity vector, and cs is the speed of sound in the lattice. For the D2Q9 lattice, a specific, popular way to set up a 2D grid for fluid simulations using the LBM. D2 determines two dimensions, and Q9 means nine velocities/directions. The weights are w0 = 4/9 for the rest particle,
for the cardinal directions, and
for the diagonal directions [36].
- Lattice Boltzmann simulation steps:
Initialization: The fluid density , macroscopic velocity u, and distribution function fi are initialized.
Collision Step: The collision term is computed using:
Streaming Step: The updated distributions are propagated to neighboring lattice nodes:
Boundary Conditions: No-slip boundary conditions at walls (u = 0).
Macroscopic Variable Updates: The fluid density and velocity are calculated as:
3.3.1 LBM implementation and reproducibility parameters.
The essential lattice and physical parameters are defined in Table 3 as follows:
3.3.2 Boundary conditions and solid–fluid coupling.
The accurate and stable implementation of the Lattice Boltzmann Method (LBM) simulation necessitates precise definitions for the time discretization, domain boundaries, and the interaction between the solid robot and the surrounding fluid, as outlined below:
- Time Step and Scaling: The NMPC sampling time (
) corresponds to one macroscopic LBM step.
- External Boundaries: An inflow profile is applied on the left boundary using a non-equilibrium extrapolation method. A zero-gradient outflow condition is implemented on the right boundary. The top and bottom walls use standard no-slip boundary conditions.
- Solid-Fluid Coupling Scheme: The motion of the robot and obstacles is handled using a variation of the Immersed Boundary Method (IBM). The velocities of all fluid nodes inside the solid bodies are explicitly reset in each time step to match the translational velocity of the moving object, effectively imposing a no-slip condition on the boundary surface.
3.3.3 Instantaneous drag computation.
The transient hydrodynamic drag force FD exerted by the fluid on the robot is computed using the Momentum Exchange Method (MEM). This method measures the change in momentum across the links connecting the solid domain to the surrounding fluid domain. For a link between a fluid node x and a solid node (x + ei) in direction i, the momentum change is calculated from the pre- and post-collision distribution functions, fi and fʹi as:
where, ei is the lattice velocity vector in direction i, and the sum is performed over all nodes x adjacent to the solid boundary.
3.3.4 Energy consumption calculation.
The instantaneous energy consumption rate (Power, P) required by the robot to overcome the fluid resistance is computed as the mechanical power dissipated by the robot against the hydrodynamic drag force. This is given by the dot product of the instantaneous drag force FD(t) and the robot’s instantaneous velocity uR(t):
The total energy consumption over a trajectory T is then calculated by integrating the power over time.
4 Computational methods, speed, and scalability
This section addresses the computational aspects of the coupled NMPC-LBM framework, defining the environment, timing scope, and justifying the stability observed in the results (Table 4).
The total time required for one full simulation run (from robot start to goal) is defined as the time taken for one full NMPC-LBM loop, multiplied by the total number of time steps (Ttotal) as:
- tLBM (Fluid Dynamics Time): This is the dominant computing cost, encompassing the collision, streaming, and macroscopic update steps.
- tNMPC (Control Time): This is the time required for the NMPC solver (CasADi) to solve the constrained optimization problem at the current state, which runs much faster than the fluid solver.
The complexity of the LBM stage is dictated by the grid resolution () and is linearly proportional to the number of lattice points (
) per time step, as the collision and streaming operations are local and identical at every node.
Grid Resolution (): Since the problem involves coupling, the grid resolution, e.g., N = 10002 directly impacts the computational time (
).
Time Step (): Time step refinement requires more steps to cover the same physical duration, increasing total runtime
.
The choice of Nonlinear Model Predictive Control (NMPC) is primarily justified by its superior ability to handle both the nonlinear robot dynamics and the explicit constraints of the confined fluid environment. As summarized in Table 5, standard reactive (PID) and linear optimal (LQR) controllers are architecturally incapable of managing these nonlinearities and constraints simultaneously. Furthermore, NMPC provides stability guarantees and optimization of system cost values, drag, and energy over a predictive horizon, making it a better robust choice for trajectory generation in this analytical framework.
4.1 Nonlinear Model Predictive Control (NMPC)
- Robot Kinematics: The motion of the robot is governed by a kinematic model, which relates the position (x,y), orientation
, linear velocity v, and angular velocity
as follows [37]:
(11)
(12)
- Optimization Problem: NMPC framework predicts the future behavior of the system over a finite time horizon and computes the optimal control inputs at each step, as shown in Fig 2 [39]. The control horizon spans from t = 0 to
, while the predictive horizon extends from t = 1 to t = N [40]. The optimization problem minimizes the following cost function [6]:
(13)
At each time step, the controller calculates an optimal sequence of control actions across a finite prediction horizon. Only the initial control action is executed, and the procedure is replicated at the subsequent time step [38].
In this expression, denotes the operational cost, which quantifies the deviation of the robot state xk and the control input uk from the reference state
and control input
. The term
is the terminal cost, defining the deviation of the final predictive state xN from the reference state
, ensuring the stability of the controller. This ensures that new controls are capable of being computed in each decision instance, have the ability to handle complex dynamics and constraints, and be an effective local optimizer, balancing immediate actions and future behavior [41].
NMPC optimization is subjected to several constraints. The initial state constraint ensures that the robot begins at a known position and is defined as:
The system dynamics constraint guarantees that the evolution of the state variables xk adheres to the robot’s kinematic model:
To ensure safety, collision avoidance is maintained by requiring the distance between the robot and obstacles to remain greater than the sum of their radii [15]:
Additionally, the robot’s state variables are constrained to stay within physical or environmental limits:
Similarly, the control inputs are bound to ensure feasible velocities and angular velocities:
4.2 Cost function for the control system
The cost function explicitly balances the state and control inputs across the prediction horizon [18]:
In this equation, Xk represents the robot’s state variables at time step k, while Xref is the desired reference state. The term Uk refers to the control inputs and the matrices Q, R, and Qf weights of the costs of the state deviation, control effort, and terminal state deviation, respectively.
4.3 NMPC tuning and parameter rationale
The performance and computational cost of the NMPC planner are determined by the tuning parameters: the prediction horizon N, the state weighting matrix Q, and the control input weighting matrix R.
Tuning parameters are the key numerical values set by the control system designer that directly influence the planner’s behavior. Performance refers to how well the planner controls the system (e.g., speed, accuracy, stability), while computational cost refers to the time and processing power required to calculate the optimal control sequence in real-time, which must be faster than the system’s sampling time ().
The selected values for N, Q, and R were chosen based on a sensitivity analysis that balanced path efficiency, convergence speed, and control smoothness. The sampling time Ts was fixed at 0.1 s. The prediction horizon N was set to 20 steps, with the control horizon (Nc) set equal to N to ensure maximum trajectory flexibility. This horizon length was empirically determined as the minimum duration required for the robot, operating within its velocity limits, to effectively detect and execute an avoidance maneuver around the given dynamic obstacles. The objective function utilizes the weighting matrices Q and R to define the penalty for state error and control effort, respectively.
- State Weighting Q: The matrix
was set to diag(1, 1, 0.001). The equally high weight on the positional errors (
) ensures that the controller prioritizes driving the robot directly to the goal, minimizing path length. Conversely, the significantly lower weight on orientation error (
) reflects the focus on achieving the target position over strict angular alignment, which is typical for a kinematically constrained robot.
- Control Weighting R: The matrix
was set to diag(1, 1). These equal weights penalize changes in both linear velocity (rv = 1) and angular velocity (
). This promotes smooth, physically realistic control inputs throughout the trajectory, ensuring low control and implicitly minimizing unnecessary energy expenditure.
- Terminal Cost Qf: A high terminal cost,
, was applied to the final state to guarantee stability and convergence toward the target.
The NMPC formulation relies on explicit constraints to ensure safety and physical realism. States were bounded by the simulation domain ( dimensions in
units), and control inputs were bounded: linear velocity
m/s and angular velocity
rad/s.
The underlying IPOPT solver was configured with a tolerance (tol) of and a maximum iteration limit of 100 steps per control cycle. To handle potential solver failures or non-convergence within the iteration limit, the system was configured to ‘warm-start’ the next cycle using the previous optimal solution. If a feasible solution was not found, the controller was programmed to implement the first control command from the previously calculated optimal sequence to maintain safety while re-initializing the solver.
5 Simulation scenarios
The simulation investigates robot navigation in fluid environments under different flow regimes, obstacle dynamics, and boundary conditions. The scenarios are implemented in MATLAB/Simulink, incorporating the CasaDi framework [5], a two-stage methodology is used: NMPC is leveraged for robot trajectory optimization, while the LBM is used for high-fidelity fluid dynamics modeling to analyze the performance of the generated trajectory [13].
5.1 The effect of Reynolds number
The Reynolds number(Re) is a dimensionless quantity that characterizes the ratio of inertial forces to viscous forces. The specific orders of magnitude used in this study, Re = 100 (laminar) and Re = 2000 (turbulent), reflect the typical operating regimes for small, subaqueous autonomous vehicles in near-surface or enclosed fluid environments. The transition from 102 to 103 allows for a robust assessment of the NMPC strategy across fundamentally different flow behaviors.
5.1.1 Laminar Flow (Re = 100):.
Laminar flow occurs when the Reynolds number (Re) is low, typically below 2000, resulting in smooth, orderly fluid layers [19].
• Reynolds number calculation is carried out as:
where:
- -.
: Fluid density (set to 1000 kg/m3 for water).
- -. U: Velocity of the robot relative to the obstacle (m/s).
- -. Lc: Length, defined as the obstacle diameter (
).
- -.
: Dynamic viscosity of the fluid (
) [42].
For example for Re = 100, the flow exhibits minimal turbulence, which is modeled using LBM framework. The velocity field is initialized to ensure uniform flow conditions, and the simulation verifies the formation of layered flow patterns around static and moving obstacles. The simulation was designed to achieve a flow regime characteristic of slow navigation. The key dimensional values established were:
- -. Velocity (U): 0.005 m/s
- -. Obstacle Diameter (Lc): 0.02 m
- -. Dynamic Viscosity (
):
Substituting these values yields the operating Reynolds number:
The simulation operates consistently at Re = 100.
- Drag force on the robot is given by:
The drag force acting on the robot is influenced by several factors [43]. The drag coefficient Cd, which is a dimensionless number, depends on the shape and surface characteristics of the robot. The cross-sectional area A refers to the area that faces the fluid flow, which plays a significant role in determining the amount of force experienced. Lastly, the relative velocity urel represents the speed of the fluid in relation to the robot, affecting how much drag force is exerted on it.
5.1.2 Turbulent Flow (Re = 2000):.
Turbulent flow arises at high Reynolds numbers, leading to chaotic and irregular fluid motion. This phenomenon is clearly observed at Re = 2000 within the simulation.
- Adjustments for Turbulent Flow:
Step 1: Increase U or reduce the Reynolds number in Eq (20) to simulate high-velocity or low-viscosity conditions.
Step 2: LBM collision term adapts to capture vortex formation:
Step 3: Here, the relaxation time controls the viscosity and is given by:
Here is the kinematic viscosity and cs the lattice speed of sound.
- Vorticity Calculation: Vorticity
measures local rotation in the fluid.
where, represent the velocity components in the X and Y directions. The simulation visualizes turbulent eddies and their impact on robot navigation.
5.2 Boundary condition variations
Boundary conditions significantly affect the flow and interaction between fluid and obstacles. Two primary configurations are studied:
- Flow from the Left Wall: A unidirectional flow is simulated by imposing a constant velocity at the left boundary, given that Uinlet is the prescribed velocity at the left wall, and all other boundaries enforce no-slip conditions (u = 0). i.e.,
LBM handles this boundary condition through streaming and reflection steps, ensuring fluid continuity and stability.
- Radial Flow from Obstacles: This scenario models fluid emanating radially from a circular obstacle, where Ur the radial velocity is also
, i.e., a unit vector in the radial direction.
Dynamic obstacles are initialized with prescribed motion:
The obstacle’s position and velocity are updated in each step, affecting the fluid flow and robot’s trajectory.
5.3 Whole system simulation framework
Robot Kinematics and NMPC: The NMPC controller calculates the optimal trajectory by solving the optimization problem [44]:
Subject to Dynamics: To accurately compute the state Xk+1 at the next time step, the fourth-order Runge-Kutta method (RK4) is employed. This method improves accuracy as compared to simpler numerical approaches like Euler integration. The intermediate steps of the RK4 integration are calculated as [45,46]:
The state at the next time step is updated as:
Here, represents the robot’s dynamic model, Xk is the current state, Uk is the control input, and
is the integration time step. By averaging the weighted contributions from the four intermediate steps, RK4 provides a highly accurate prediction of the next state [47].
Obstacle avoidance can be achieved by [9]:
Goal check and stop condition: Equation (35) details the logic to compute the robot’s distance to the goal and terminate the simulation once that distance is below a specified threshold. We compute the Euclidean distance as follows:
5.4 Fluid-structure interaction
The robot’s position and velocity influence fluid dynamics through the boundary conditions:
5.5 Visualization of the spatial fields
Velocity fields , vorticity, and robot trajectories are visualized. The robot’s trajectory
is updated as [48]:
The robot’s ability to achieve smooth trajectory planning, maintain safe distances from obstacles, and reduce the error toward the goal are analyzed. The use of descriptive statistics and graphical insights provides a comprehensive understanding of the robot’s behavior under dynamic environmental conditions under the influence of dynamic fluid. The results are structured to highlight the robot’s path, error reduction trends, velocity control, and obstacle avoidance capabilities.
6 Fluid dynamics metrics and averaging
To quantify the distinct flow regimes and the associated energetic cost of navigation, several fundamental fluid mechanics metrics were analyzed. The selection of these metrics fluid velocity, vorticity (), and energy dissipation (
) is crucial for characterizing the dynamic interaction between the navigating robot and the fluid medium.
Vorticity () was determined using Eq (24). This metric provides insight into the rotational behavior of the fluid, where high local values indicate the formation and strength of dynamic structures such as vortices and wake trails. Analyzing vorticity is essential for understanding the momentum transfer and the fluid structures generated by the robot’s movement.
Energy Dissipation () metric directly quantifies the viscous losses within the fluid, serving as a physical measure of the total energy expended to overcome hydrodynamic drag and sustain the trajectory. It is the primary metric for assessing the overall energy efficiency of the path planning algorithm.
The calculated average values for velocity, vorticity, and energy dissipation (as reported in Table 9) were obtained via a rigorous averaging methodology. First, a volume average was calculated across the entire two-dimensional simulation domain () at the conclusion of the simulation. This process is formally defined for any variable
as:
Eq (40) calculates the mean state of the entire fluid environment by integrating the variable over the domain
and normalizing it by the domain size
. This step is critical because it mathematically eliminates localized numerical bias, where data might appear artificially high or low depending on proximity to an obstacle or the robot.
To further ensure the reliability of these metrics, the volume averages were smoothed by taking a temporal average over the final 50 simulation steps. This dual-averaging approach was necessary to capture stable, steady-state characteristics of the flow and filter out transient numerical noise. By blending both spatial (volume) and temporal averaging, the resulting metrics provide a robust statistical foundation. This methodology ensures that the reported values reflect the true mean conditions of the flow field, effectively bypassing the initial fluctuations that occur at the simulation’s onset and validating the results as scientifically sufficient for characterizing the fluid flow regimes.
7 Results and discussions
This section looks at the evaluation of the robot navigation performance in simulation under the influence of dynamic fluid around it. In the first part, the analysis focuses on parameters such as trajectory, Euclidean error, velocities, and distances to obstacles, with an emphasis on interpreting the statistical results and visualizations to evaluate the efficacy of the NMPC algorithm.
7.1 Descriptive statistics
The robot’s performance during the simulation demonstrates effective navigation, obstacle avoidance, and goal convergence, supported by the descriptive statistics of the key parameters are shown in Tables 6 and 7. In Table 6, the robot’s X_Position and Y_Position values indicate that the robot predominantly operated near its initial region, navigating slightly to the left and below the origin on average. The theta (orientation) parameter, with an average value of 0.600 radians, suggests the robot primarily maintained a forward-facing direction, with smooth orientation adjustments over time. However, a range of to 1.360 radians and a standard deviation 0.447 indicate that the robot had to reorient itself periodically to navigate effectively around the obstacles. The Euclidean error shows the robot’s progress towards its goal. The mean error of 1.679 m, along with a gradual decrease reflected in the range 2.129 to 2.828 m, which confirms steady movement towards the goal. A standard deviation of 0.619 m suggests manageable deviations from the optimal path, with minor fluctuations likely due to obstacle avoidance. The linear velocity and angular velocity metrics reflect the robot’s controlled motion during the simulation.
The linear velocity was highly stable, with a mean of 0.042 m/s and a negligible standard deviation of 0.001 m/s. This consistency underscores the robot’s ability to maintain smooth forward motion. The angular velocity, with a mean of 0.023 rad/s and a broader standard deviation of 0.356 rad/s, reveals occasional sharp turns during obstacle avoidance.
In Table 7, the robot’s ability to avoid obstacles is confirmed by the distance-to-obstacles metrics. For example, the average distance to the obstacle 1 was 1.334 meters (std = 0.171 m), while for obstacle 2, it was 0.609 meters (std = 0.354 m). Although the robot occasionally came close to the obstacles, as indicated by minimum distances as low as 0.005 meters, it maintained a safe buffer zone, with the average minimum distance to obstacles being 0.377 meters. The robot and obstacles were defined with a physical radius of (for a combined minimum separation distance of 0.10 m). All distances reported in Table 7 are in meters. The NMPC constraint was enforced
. The non-zero, small minimum distance (0.005 m) is attributed to lattice interpolation artifacts inherent to the Immersed Boundary Method (IBM) used for the LBM coupling. When the solid boundary is mapped onto the discrete lattice nodes, a slight, instantaneous penetration can occur before the no-slip condition is enforced at the next time step. This is a common numerical effect, where the true continuous position of the robot momentarily falls slightly inside the collision boundary defined by the NMPC. This small residual distance is a numerical artifact equivalent to a
error relative to the defined 0.10 m safety margin. Crucially, the presence of this small gap confirms that no sustained or problematic collision occurred, and the NMPC system successfully prevented the robot from achieving a zero or negative distance, i.e., complete overlap. Positive skewness values for all distance metrics show that closer proximity was less frequent, while flat kurtosis values suggest the distances were evenly distributed without extreme outliers.
The linear and angular velocity plots in Fig 3 below show the robot’s speed and rotational adjustments during navigation. The linear velocity remains constant for most of the journey, suggesting steady forward motion. The angular velocity shows the changes when the robot adjusts its orientation, particularly during obstacle avoidance towards the end. During turbulent region traversal, the required corrective angular velocity reached the maximum allowable limit of the robot model, suggesting that in a real-world scenario, the robot would have lost control of its orientation and path-following accuracy.
The Euclidean error shows the straight-line distance between the robot and the goal position over time. As expected in Fig 4, the error decreases steadily as the robot moves closer to the target. This trend indicates that the control algorithm effectively guides the robot toward the target. Minor errors in obstacle avoidance maneuvers.
The plot of the robot’s trajectory in the x-y plane demonstrates the path followed by the robot during the simulation, as shown in Fig 5. The clear path shown in Fig 6 shows that the robot starts at the initial position (marked in green) and progresses to the goal position (marked in red). The trajectory reflects the robot’s ability to navigate while avoiding the obstacles. The path appears smooth, indicating efficient trajectory planning with minimal deviations.
The minimum distance to obstacles in Fig 7 tracks the robot’s proximity to the nearest obstacle during the simulation. The robot consistently maintains a safe distance from obstacles, with no values approaching zero, indicating successful collision avoidance. This behavior validates the obstacle avoidance strategy employed in the control algorithm.
It illustrates that the robot is maintaining distance from surrounding obstacles during the simulation.
Table 8 shows the robot’s performance in simulation, demonstrating high different path efficiency before 0.887. The actual path length was 2.828 m, which was longer than the optimal straight-line distance of 2.508 m, indicating that the robot performed well.
The shortest path distance, doptimal = 2.508 m, is defined as the straight-line Euclidean distance between the robot’s starting position (Pstart) and the target position (Ptarget). This distance serves as a non-collision baseline ideal for evaluating the kinematic cost of the NMPC trajectory. It is important to note that this doptimal value does not account for the obstacle constraints and it is the absolute theoretical minimum distance in free space.
The computational efficiency of NMPC algorithm is evident, with an average computation time of seconds per step and a total computation time of 0.0004 seconds, confirming its suitability for real-time trajectory planning. These results reflect a well-balanced approach to safe, efficient, and computationally feasible navigation.
The robot trajectory series plots in Fig 8 show effective navigation from the start to the goal while avoiding the obstacles. At t = 0, the robot is stationary, and by t = 20 seconds, it begins to move along a smooth path, maintaining safe distances from obstacles.
At t = 25, it adjusts its path to navigate through a cluster of obstacles, demonstrating precise maneuvering. By t = 60, the robot successfully achieves the objective without collisions, highlighting the robustness and efficiency of the control algorithm in dynamic environments.
7.2 CFD based spatial analysis
Table 9 presents key performance metrics for the fluid-robot interaction, highlighting how the robot navigates the fluid under different Reynolds number conditions. The Table 9 includes drag force components along the X and Y axes, representing the resistive forces acting on the robot. Energy dissipation quantifies the loss of energy due to fluid resistance, while the average velocity and the average vorticity describe the flow characteristics around the robot. Various Reynolds numbers indicate different flow regimes that affect the robot’s movement and stability.
This data is further analyzed in subsequent plots to evaluate robot efficiency and the impact of fluid dynamics on its movement.
The Reynolds number plot in Fig 9 reveals significant variations between successive frames, with values starting low and rising as the simulation progresses. The initial low values suggest a laminar flow regime, as shown in Fig 10, while the spike and subsequent fluctuations indicate a transition to turbulent flow. In this scenario shown in Fig 11, the boundary condition was modified to allow fluid to flow from the left wall while also generating flow from an obstacle, creating a radial flow pattern.
The purpose of this adjustment was to observe how the system responds to different boundary constraints and fluid interactions. By setting the boundary condition to flow exclusively from the left wall, the fluid moves from left to the right, interacting with obstacles along its path. This creates turbulence, as shown in the simulation results. The visualization highlights areas of high velocity near the left boundary (in blue) and regions of recirculating flow around obstacles, demonstrating the impact of boundary conditions on fluid behavior. This simulation in time steps: 266 in Fig 12 shows the movement of the robot navigating through a turbulent fluid environment with obstacles. The color map represents the velocity of the fluid, with white indicating low-velocity regions and blue indicating high-velocity areas. At this stage, the robot has progressed significantly from its initial position (bottom left) towards its goal, following a trajectory (indicated by the red line). The fluid dynamics around the obstacles create complex vortices, especially near the clustered obstacles in the upper-mid region. The high-velocity zone around the robot shows that it is maneuvering through strong fluid forces, likely adjusting its path to avoid collisions with the obstacles. This evolution highlights the robot’s influence on the surrounding fluid and how it modifies the flow conditions as it moves. Such transitions may impact the robot’s performance and stability in dynamic environments.
The drag forces in the X and Y directions start at zero and increase sharply during the initial frames as the robot begins to interact with the fluid. The plot in Fig 13 shows that the drag force X is significantly larger than the drag force Y, indicating that most of the resistance experienced by the robot is aligned with its primary motion direction. Following the initial steep rise, the drag forces stabilize, reflecting the robot’s steady velocity and maintaining efficient movement. The initial spike in Y is a result of transient hydrodynamic forces when the robot begins its first forward and turning, not a continuous moving in the Y direction. The fact that the line immediately flattens proves the robot does not continue moving in the Y direction.
The energy dissipation seen in Fig 14 shows the rate at which kinetic energy is lost in the fluid due to viscous effects. The initial values are minimal, corresponding to the laminar flow regime. As the Reynolds number increases and turbulence develops, energy dissipation spikes occur dramatically, particularly at specific frames where instabilities are observed. The peak energy dissipation indicates regions of high turbulence or flow instability, which may necessitate adjustments to the robot’s design or control strategies to minimize energy losses and enhance efficiency.
The average velocity seen in Fig 15 reflects the overall speed of the fluid, which increases steadily as the simulation progresses, likely due to the movement of the robot and its impact on the fluid flow.
The most striking observation is the time history of the average velocity, which does not follow a single path but separates into two distinct, stable ranges, a phenomenon known as bimodal oscillation. This indicates the fluid rapidly cycles between two energetic states, likely transitioning between its high-power thrust generation phase and a lower-power recovery stroke.
The spikes in velocity suggest regions of intensified flow, possibly resulting from wake-up effects or interactions with obstacles. The average vorticity plot complements this by showing the rotational dynamics of the fluid. The higher vorticity values correspond to the formation of vortices behind the robot, indicating wake turbulence, as shown in Fig 16.
The qualitative features of the vorticity contours in Fig 12, serve as a crucial proxy for the unquantified pressure distribution and drag forces acting on the robot. Specifically, the wake, the region immediately downstream of the body, is characterized by strong shear layers and the rapid diffusion of vortex structures. The size and intensity of this wake are directly proportional to the magnitude of the low-pressure region forming behind the body, which dictates the pressure drag. The NMPC actively controls the trajectory to minimize the size of this low-pressure, high-vorticity zone. The resulting small, diffuse vortices indicate that the controlled motion is effectively minimizing the time-averaged pressure difference between the front and rear faces of the robot. This successful active shaping of the wake is essential for limiting the net resistance (drag) and thereby validates the NMPC’s role in optimizing the robot’s path-following energy expenditure in highly dynamic fluidic environments.
7.3 Comparison with existing studies
This work significantly contributes to mobile robot navigation by addressing a critical gap in recent research. While existing studies have focused on disturbance rejection or effective path planning, they often overlook the impact of fluid dynamics on robot performance. To highlight the value of our analytical framework, we provide a comparison in Table 10, which delineates the techniques, key objectives, and significant outcomes of each study, enabling a clear contrast with our current research.
Our study is distinguished by its innovative analytical framework that integrates a navigation technique with an in-depth fluid dynamics analysis, offering novel insights into the interaction between fluid environments and robotic mobility. The NMPC-planned trajectory achieves a high path efficiency of 0.887 and a short actual path length of 2.828 m, demonstrating its navigational efficiency. Its low computation time confirms NMPC’s suitability for real-time trajectory planning.
Our framework’s distinctive value lies in its capacity to achieve robust performance while also offering essential post-hoc analysis of fluid forces, a feature lacking in most similar studies. This allows us to measure the actual energetic expense and stability of the trajectory, representing a substantial improvement over purely kinematic or simplified dynamic models.
The LBM analysis of the Reynolds number progression from laminar to turbulent regimes highlights the robot’s influence on flow dynamics and the necessity for robust stability measures in high-turbulence conditions. Drag forces underscore the significant resistance faced by the robot, while their eventual stabilization demonstrates the robot’s controlled motion and its ability to maintain efficient movement. Energy dissipation trends reveal critical regions of turbulence, indicating areas where energy losses can be minimized through optimized design [21]. Additionally, the average velocity and vorticity plots illustrate intensified flow and rotational dynamics, pointing to wake turbulence and vortex formation. These findings collectively underline the significance of integrating navigation and fluid interaction analyses for designing efficient and robust robotic navigation systems [22].
8 Advantages of LBM method
This study employs the LBM for modeling fluid dynamics. Both LBM and classic techniques such as the finite volume method (FVM) are CFD approaches employed to resolve the Navier-Stokes equations, however they fundamentally differ in their methodologies. Conventional CFD techniques describe fluid dynamics in continuum mechanics by solving partial differential equations (PDEs), which can be computationally intensive and challenging to resolve for intricate geometries and turbulent flow. These PDEs control multiple variables, such as velocity and pressure [54]. They are based on principles of Newtonian physics and involve solving nonlinear coupled PDEs, which can be quite difficult, especially in situations that involve intricate geometries and turbulent flow. Fluid simulations employ several CFD techniques, such as the finite volume method (FVM), finite difference method (FDM), and finite element method (FEM). The research utilized LBM due to its high level of computing efficiency, scalability, and effectiveness in dealing with complex geometries. A significant advantage of LBM is its capacity to handle the complex interactions between fluids and solid materials effectively. Unlike FVM and FDM, which approach the Navier-Stokes equations from a larger perspective, LBM operates at a more granular, mesoscopic level by using particle distribution functions. This capability enables LBM to accurately replicate small-scale flow behaviors, like wake turbulence and vortices, making it particularly well-suited for robotic navigation in fluid settings [55]. Moreover, LBM performs exceptionally well with parallel processing, which boosts its speed and efficiency when compared to FEM, known for demanding a solution of large linear systems. Its lattice design further enhances its effectiveness in high-performance computing settings, significantly reducing the time needed for extensive simulations.
9 Advantages of NMPC over traditional control methods
NMPC has several benefits over other traditional control methods in dynamic and complex settings, making it a good choice for mobile robot navigation in this study. Unlike classical controllers like PID or active techniques, NMPC takes into account system constraints, nonlinear dynamics, and predictions of future states, which helps in identifying more optimized and collision-free paths. Furthermore, in contrast to approaches reliant on RL, NMPC provides deterministic solutions that can be analytically validated without requiring significant training datasets. Another notable benefit of NMPC is its effectiveness in managing external disturbances and environmental constraints. Fluid interactions can generate vortices, turbulence, and drag forces that unpredictably influence the robot’s movement. Although PID controllers occasionally encounter difficulties in adapting to fluctuations induced by fluid dynamics, the predictive characteristics of NMPC enable it to devise smooth, robust paths that may automatically mitigate these effects [56].
10 Autonomous navigation in Fluid Environments vs. Land Environments
Autonomous robots functioning in fluid environments encounter significantly different challenges than those traversing terrestrial terrains [14]. Terrestrial robots interact with fixed or organized terrains, where locomotion mostly depends on friction and traction. In contrast, fluid-based robots traverse a dynamic and constantly evolving medium, where forces such as drag, buoyancy, and wake turbulence influence their motion. External factors produce unexpected disturbances, requiring advanced control systems to maintain stability and efficiency. Land robots utilize wheels or legs for locomotion, whereas fluid robots encounter persistent opposition from the surrounding fluid. This persistent opposition necessitates advanced techniques for forecasting their trajectories. Moreover, maneuvering around obstacles in fluid environments is more intricate due to the necessity of accounting for wake turbulence and disruptions induced by the flow. In contrast to land robots that depend on direct sensor feedback, robots operating in a fluid medium must also consider fluid-induced drifts that dynamically influence their position over time. The predictive features of NMPC approach make it an ideal option for addressing these challenges, since it facilitates effective navigation for robots while accounting for dynamic barriers. A thorough comprehension of the intricate fluid interactions influencing the robot’s motion necessitates a more in-depth analysis than what NMPC model alone offers.
11 Impact of fluid interactions on robot motion
The hybrid simulation framework reveals deeper insights into the impact of fluid–structure interaction on the robot’s trajectory, control effort, and stability. While the robot demonstrates successful navigation and convergence toward the goal, the recorded data indicates that fluid dynamics, especially under high Reynolds number conditions, where the flow transitions from laminar to turbulent, introduce substantial challenges to robot stability and control. In such regimes, the fluid behavior becomes increasingly unsteady, leading to phenomena such as vortex shedding, fluctuating pressure zones, and asymmetric drag forces. These effects introduce complex, time-varying disturbances to the robot, which can destabilize its motion, increase energy consumption, and demand higher control effort from NMPC to maintain trajectory accuracy and obstacle avoidance performance [18]. For instance, at timestep 266 frames, as illustrated in Fig 12, the robot enters a highly dynamic fluid region marked by dense vortex structures and elevated vorticity. This portion of the domain lies downstream of several closely spaced obstacles, where the fluid flow becomes disrupted and transitions into a state of unsteady turbulence. The formation of alternating vortices in the robot’s wake creates localized zones of low and high pressure along the body’s lateral surfaces. These unbalanced pressure distributions exert oscillatory lateral forces on the robot, inducing minor angular deviations and fluctuations in yaw. Such a phenomenon is indicative of a classical vortex-induced vibration (VIV) response, commonly encountered in fluid–structure interaction (FSI) systems where bodies move through or remain stationary in turbulent flow fields [57]. In the context of this simulation, the robot responds to these forces by initiating frequent and sharp corrective rotations observable as a spike in angular velocity in Fig 3 and supported by the peak values listed in Table 6. These corrective actions are a direct result of NMPC attempting to stabilize the robot’s pose amidst external disturbances caused by unsteady flow separation. The presence of these instabilities not only impacts motion stability but also increases the control system’s computational load, as NMPC must resolve more aggressive trajectory corrections within each prediction horizon. In practical scenarios, if unaccounted for, such conditions could lead to cumulative yaw drift, loss of localization, or inefficient energy usage. The observation at the timestep 266 frames therefore serves as a strong example of how localized fluid dynamics phenomena such as wake turbulence and vortex shedding can temporarily compromise trajectory fidelity and demand significant control input to restore motion.
Furthermore, under radial inflow boundary conditions in Fig 11, the robot exhibits a noticeably higher standard deviation in angular velocity, indicating less stable rotational motion. The robot’s unstable behavior under radial inflow conditions can be traced back to how the fluid enters the domain. Instead of coming from one direction, like in the left-wall inflow case, the fluid in the radial setup approaches from all sides of the obstacle region. This means the robot is surrounded by flow that is constantly changing direction and intensity. As it moves, it is hit by drag forces from different angles, and this throws off its orientation slightly, forcing the controller to keep correcting. These corrections show up as fluctuations in angular velocity, as seen in Fig 3. On the other hand, with unidirectional inflow from the left wall, the fluid moves more uniformly. The robot can move through it with fewer surprises. The velocity field is consistent, the drag is more predictable, and the controller does not need to exert as much effort to maintain the robot’s stability. This contrast makes it clear that the direction of fluid inflow has a major impact on how much effort the robot needs to stay on track. There were also times during the simulation when the robot hit its maximum allowed angular velocity of ±1.57 rad/s. These spikes mostly happened in areas with strong vortices or right near obstacles, where the fluid flow became highly unsteady. When this happens, it means the controller was basically maxed out, and it could not do much more to help the robot stay oriented. That is not ideal, especially in turbulent or unpredictable environments where the robot might still need to respond to new forces. It highlights a limitation in using fixed control parameters when the environment itself is constantly shifting. Looking ahead, the simulation could be expanded by digging deeper into the generated data. For instance, it would be useful to check how the robot’s turning behavior (curvature) relates to local vorticity in the fluid. That could tell us exactly how turbulent zones affect the robot’s ability to steer. It would also help to divide the domain into zones based on how intense the flow is and then see where the controller is working the hardest. This study aims to enhance the precision of performance assessments for autonomous robotic systems in fluid environments Utilizing an innovative two-stage analytical framework, we present a methodology for evaluating the resilience of control systems to intricate fluid-structure interactions. This methodology is crucial for the dependable validation of control algorithms prior to the actual implementation of autonomous robots in genuine underwater settings, where dynamic and unpredictable fluid dynamics present an ongoing challenge [58].
12 Conclusions and future work
The analysis of the robot’s navigation in a fluid environment was conducted through a two-phase simulation, supported by a rigorous grid independence study to ensure the physical integrity of the results. This demonstrates its effectiveness in achieving smooth trajectory planning, obstacle avoidance, and convergence. Statistical evaluation of key parameters, including Euclidean error, velocity, and distances to obstacles, validates the robustness of NMPC control algorithm. Validation against a benchmark grid confirms that the control inputs are derived from a converged hydrodynamic field, where numerical diffusion is minimized and the viscous boundary layer is resolved by 3–5 lattice units. Consequently, the robot maintained stable motion and consistently avoided collisions, reflecting precise navigation even in complex and dynamic environments. LBM analysis presented information on the fluid dynamics around the robot, highlighting the impact of Reynolds number, drag forces, energy dissipation, and vorticity. The use of a high-resolution lattice was critical for capturing the high-frequency vortex shedding and shear layer gradients that characterize these regimes. The progression from laminar to turbulent flow and the identification of regions with high drag and energy loss underscore the importance of optimizing the robot’s design and motion to enhance efficiency, especially where the application of the robot is either local or global. Notably, metrics such as, a high path efficiency of 0.887 and a peak memory footprint of only 2.88 MB confirm the viability of the algorithm for real-time deployment. This minimal computational overhead suggests that the framework is uniquely suited for integration into embedded systems and low-power onboard microcontrollers in autonomous underwater or aerial vehicles, where the hardware resources are strictly limited.
Future works may include:
- Optimizing the robot geometry to minimize drag forces and reduce energy dissipation, thereby improving overall performance in fluid environments.
- Strategies for managing turbulence and wake dynamics, such as implementing flow control techniques or adjusting motion parameters, should be explored to improve stability and efficiency.
- Experimental studies in physical environments, such as underwater or aerial scenarios, should be conducted to validate the findings of the simulations.
- Navigation in multiphase reacting fluid environments.
- Continuation of this work in future will include the external validation of the LBM solver. This will involve simulating the canonical case of flow past a circular cylinder Re = 100 to precisely calculate and benchmark the drag coefficient (CD), lift coefficient (CL), and Strouhal number (St) against literature values, ensuring an accuracy within the required
error margin.
- The framework necessitates full statistical validation of the NMPC performance to demonstrate robustness. This requires running the planner across multiple randomized trials to calculate the mean (
) and standard deviation (
) for all key metrics.
- The current work establishes the analytical power of the hybrid NMPC-LBM framework, while a comprehensive quantitative baseline comparison is a critical next step. This analysis will involve running the NMPC against PID, LQR, and RL controllers under identical fluid conditions and obstacle configurations.
- Extending the simulation cases to include Re > 104 will require integrating a turbulence model, e.g., large eddy simulation or a specific
model into the LBM. This is essential for clarifying the framework’s applicability in highly turbulent industrial or oceanic scenarios. We will incorporate viscosity models (such as the Carreau or power-law model) into the LBM. This will clarify the framework’s scope for analyzing robot performance and energy metrics in non-Newtonian environments, such as industrial slurries or deep-sea muds.
13 Acknowledging the limits
Despite the successful demonstration of the NMPC-LBM framework, it is crucial to recognize the inherent simplifications and limitations of the decoupled methodology before drawing generalized conclusions:
- The results demonstrate that while NMPC provides a near-optimal kinematic path (efficiency 0.887), the decoupled fluid analysis reveals a significant challenge. The required control effort for dynamic stability is non-trivial and, at times, saturates the control input.
- This finding invalidates the direct translation of the NMPC trajectory to a real-world fluid environment without the inclusion of a dynamic model in the control loop.
- The current study models the robot as a simplified shape, e.g., a circle or cylinder, and does not account for complex, high-frequency body oscillations or deformable surfaces.
- We explicitly acknowledge that the framework utilizes a two-stage, decoupled analytical design where the NMPC trajectory is kinematically determined a priori, and the hydrodynamic forces are calculated a posteriori using the LBM. This design is highly effective for its intended purpose for assessing the performance envelope and energy cost of a kinematically optimal plan.
Supporting information
S1 Data. We have provided the minimal data set as Supporting information in a single zipped folder labeled S1 Data. This archive contains two Excel files: `Fluid_Dynamics_Analysis.xlsx', which includes the raw hydrodynamic results (Reynolds numbers, drag coefficients, and vorticity values), and `Simulation_Metrics.xlsx', which provides the control performance data (path efficiency, Euclidean error, and computation times) used to generate the figures and statistics in the paper.
https://doi.org/10.1371/journal.pone.0333056.s001
(ZIP)
Acknowledgments
For the purpose of open access, the author has applied for a Creative Commons Attribution (CC BY) license to any Author Accepted Manuscript version arising from this submission.
References
- 1.
Ali M, Das S. In: 2023. 1–6. 10.1109/IEMENTech60402.2023.10423495
- 2.
Ali M, Das S. Mobile Robots with Dynamic Obstacle Avoidance. In: 2023 IEEE 3rd International Conference on Sustainable Energy and Future Electric Transportation (SEFET), 2023. p. 1–6. 10.1109/sefet57834.2023.10245465
- 3. Bemporad A, Morari M. Robust model predictive control: a survey. Automatica. 2000;36(12):1973–85.
- 4. Hu Q, Xie J, Wang C. Dynamic path planning and trajectory tracking using MPC for satellite with collision avoidance. ISA Trans. 2019;84:128–41. pmid:30316573
- 5. Andersson JAE, Gillis J, Horn G, Rawlings JB, Diehl M. CasADi: a software framework for nonlinear optimization and optimal control. Math Prog Comp. 2018;11(1):1–36.
- 6. Yeomans JM. The Lattice Boltzmann Equation for Fluid Dynamics and Beyond. Physics Today. 2002;55(12):58-60.
- 7.
Cheniouni I, Tayebi A, Berkane S. Safe and Quasi-Optimal Autonomous Navigation in Sphere Worlds. In: 2023 American Control Conference (ACC), 2023. p. 2678–83. https://doi.org/10.23919/acc55779.2023.10156634
- 8.
Ali M, Das S, Townley S. Comparison of optimizing path planning for mobile robots with obstacle avoidance. In: 2024. 168–75. https://doi.org/10.1109/WiDS-PSU61003.2024.00044
- 9. Khatib O. Real-time obstacle avoidance for manipulators and mobile robots. International Journal of Robotics Research. 1986;5(1):90–8.
- 10.
Kumar JS, Kaleeswari R. Implementation of Vector Field Histogram based obstacle avoidance wheeled robot. In: 2016 Online International Conference on Green Engineering and Technologies (IC-GET), 2016. p. 1–6. https://doi.org/10.1109/get.2016.7916842
- 11. Ji J, Khajepour A, Melek WW, Huang Y. Path Planning and Tracking for Vehicle Collision Avoidance Based on Model Predictive Control With Multiconstraints. IEEE Trans Veh Technol. 2017;66(2):952–64.
- 12. Mayne DQ, Rawlings JB, Rao CV, Scokaert POM. Constrained model predictive control: stability and optimality. Automatica. 2000;36(6):789–814.
- 13. Andersson JA, Gillis J, Horn G, Rawlings JB, Diehl M. Casadi: A software framework for nonlinear optimization. Mathematical Programming Computation. 2018;11:1–36.
- 14. Ali M, Das S, Townley S. Robot Differential Drive Navigation Through Probabilistic Roadmap and Pure Pursuit. IEEE Access. 2025;13:22118–32.
- 15. Liu Y, Cao Z, Xiong H, Du J, Cao H, Zhang L. Dynamic Obstacle Avoidance for Cable-Driven Parallel Robots With Mobile Bases via Sim-to-Real Reinforcement Learning. IEEE Robot Autom Lett. 2023;8(3):1683–90.
- 16.
Xu Z, Xiu Y, Zhan X, Chen B, Shimada K. Vision-aided UAV Navigation and Dynamic Obstacle Avoidance using Gradient-based B-spline Trajectory Optimization. In: 2023 IEEE International Conference on Robotics and Automation (ICRA), 2023. p. 1214–20. https://doi.org/10.1109/icra48891.2023.10160638
- 17.
Koutras L, Vlachos K, Kanakis GS, Dimeas F, Doulgeri Z, Rovithakis GA. Enforcing Constraints for Dynamic Obstacle Avoidance by Compliant Robots. In: 2023 IEEE International Conference on Robotics and Automation (ICRA), 2023. p. 5221–7. https://doi.org/10.1109/icra48891.2023.10160360
- 18. Chen S, Doolen GD. LATTICE BOLTZMANN METHOD FOR FLUID FLOWS. Annu Rev Fluid Mech. 1998;30(1):329–64.
- 19. He X, Luo L-S. Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation. Phys Rev E. 1997;56(6):6811–7.
- 20. Fu Q, Song A, Zhang F, Pan M. Reinforcement Learning-Based Trajectory Optimization for Data Muling With Underwater Mobile Nodes. IEEE Access. 2022;10:38774–84.
- 21. Zhao J, Liu Y, Qin F, Fei L. Pore-scale fluid flow simulation coupling lattice Boltzmann method and pore network model. Capillarity. 2023;7(3):41–6.
- 22. H. Sedaghat M, A. H. Bagheri A, M. Shahmardan M, Norouzi M, C. Khoo B, G. Jayathilake P. A Hybrid Immersed Boundary-Lattice Boltzmann Method for Simulation of Viscoelastic Fluid Flows Interaction with Complex Boundaries. CiCP. 2021;29(5):1411–45.
- 23.
Wang M, Ferey N, Bourdot P, Magoules F. Interactive 3D Fluid Simulation: Steering the Simulation in Progress Using Lattice Boltzmann Method. In: 2019 18th International Symposium on Distributed Computing and Applications for Business Engineering and Science (DCABES), 2019. p. 72–5. https://doi.org/10.1109/dcabes48411.2019.00025
- 24. Hedjar R. Approximate Quadratic Programming Algorithm for Nonlinear Model Predictive Tracking Control of a Wheeled Mobile Robot. IEEE Access. 2022;10:65067–79.
- 25. Chen F, Fei J, Xue Y. Double Recurrent Perturbation Fuzzy Neural Network Fractional-Order Sliding Mode Control of Micro Gyroscope. IEEE Access. 2021;9:55352–63.
- 26. Zhu Q, Han Y, Cai C, Xiao Y. Robust optimal navigation using nonlinear model predictive control method combined with recurrent fuzzy neural network. Mathematical Problems in Engineering. 2018;2018(1):8014019.
- 27.
Villemazet A, Durand-Petiteville A, Cadenat V. Multi-Camera GPS-Free Nonlinear Model Predictive Control Strategy to Traverse Orchards. In: 2023 European Conference on Mobile Robots (ECMR), 2023. p. 1–7. https://doi.org/10.1109/ecmr59166.2023.10256300
- 28. Hou L, Li B, Liu W, Xu Y, Yang S, Rong X. Deep Reinforcement Learning for Model Predictive Controller Based on Disturbed Single Rigid Body Model of Biped Robots. Machines. 2022;10(11):975.
- 29. Li S, Li Z, Yu Z, Zhang B, Zhang N. Dynamic Trajectory Planning and Tracking for Autonomous Vehicle With Obstacle Avoidance Based on Model Predictive Control. IEEE Access. 2019;7:132074–86.
- 30. Falcone P, Borrelli F, Asgari J, Tseng HE, Hrovat D. Predictive Active Steering Control for Autonomous Vehicle Systems. IEEE Trans Contr Syst Technol. 2007;15(3):566–80.
- 31. Li Z, Yang M, Zhang Y. Hybrid Lattice Boltzmann and Finite Volume Method for Natural Convection. Journal of Thermophysics and Heat Transfer. 2014;28(1):68–77.
- 32. Zhang L, Jebakumar AS, Abraham J. Lattice Boltzmann method simulations of Stokes number effects on particle motion in a channel flow. Physics of Fluids. 2016;28(6).
- 33. Pandya RVR, Mashayek F. Non-isothermal dispersed phase of particles in turbulent flow. J Fluid Mech. 2003;475:205–45.
- 34. Tian Z-W, Chen S, Zheng C-G. Lattice Boltzmann simulation of gaseous finite-Knudsen microflows. Int J Mod Phys C. 2010;21(06):769–83.
- 35. Park J, Matsubara M, Li X. Application of lattice Boltzmann method to a micro-scale flow simulation in the porous electrode of a PEM fuel cell. Journal of Power Sources. 2007;173(1):404–14.
- 36. Gschaider BFW, Honeger CC, Redl CEP, Leixnering J. Soot Particle Deposition within Porous Structures using a Method-of-Moments-Lattice-Boltzmann Approach. Int J Mult Comp Eng. 2006;v4(i2):221–32.
- 37. Mathew R, Hiremath SS. Trajectory Tracking and Control of Differential Drive Robot for Predefined Regular Geometrical Path. Procedia Technology. 2016;25:1273–80.
- 38.
Lim H, et al. Nonlinear Model Predictive Controller Design with Obstacle Avoidance for a Mobile Robot. In: IEEE/ASME International Conference on Mechatronic and Embedded Systems and Applications (MESA), 2008. 494–9. https://doi.org/10.1109/MESA.2008.4735699
- 39.
Lim H, et al. Nonlinear model predictive controller design with obstacle avoidance for a mobile robot. In: IEEE/ASME International Conference on Mechatronic and Embedded Systems and Applications (MESA), 2008. p. 494–9. https://doi.org/10.1109/MESA.2008.4735699
- 40. Lim H, Kang Y, Kim C, Kim J. Experimental verification of nonlinear model predictive tracking control for six-wheeled unmanned ground vehicles. Int J Precis Eng Manuf. 2014;15(5):831–40.
- 41.
Sani M, Robu B, Hably A. Pursuit-evasion Game for Nonholonomic Mobile Robots With Obstacle Avoidance using NMPC. In: 2020 28th Mediterranean Conference on Control and Automation (MED), 2020. p. 978–83. https://doi.org/10.1109/med48518.2020.9182862
- 42.
Meng J, Li M, Zhang L, Lv M, Liu L. Aerodynamic performance analysis of hybrid air vehicles with large Reynolds number. In: 2019 IEEE International Conference on Unmanned Systems (ICUS), 2019. p. 403–9. https://doi.org/10.1109/icus48101.2019.8996035
- 43.
Bong-Huan Jun, Jihong Lee, Pan-Mook Lee. A repetitive periodic motion planning of articulated underwater robots subject to drag optimization. In: 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, 2005. p. 1917–22. https://doi.org/10.1109/iros.2005.1545572
- 44.
Li Q, Yang H. Model Predictive Control with Gaussian Process Regression Compensation for Power Management in Fuel Cell Hybrid Electric Buses. In: 2023 IEEE 14th International Symposium on Power Electronics for Distributed Generation Systems (PEDG), 2023. p. 886–90. https://doi.org/10.1109/pedg56097.2023.10215114
- 45.
Xiangqi M, Weiyu S, Xingbin Z. Design of intelligent positioning omnidirectional driverless vehicle based on fourth-order Runge-Kutta encoder combined IMU. In: 34th Chinese Control and Decision Conference (CCDC), 2022. 1674–9. https://doi.org/10.1109/CCDC55256.2022.10033841
- 46. Krupa F, Nemcik J, Ozana S, Slanina Z. NMPC Design and Embedded Application for Overhead Crane: Case Study. IFAC-PapersOnLine. 2022;55(4):356–61.
- 47.
Nurhakim A, et al. Modified Fourth-Order Runge-Kutta Method Based on Trapezoid Approach. In: 2018. p. 1–5. https://doi.org/10.1109/ICWT.2018.8527811
- 48. Narumi T, et al. An agent-based modeling and simulation for the first stage of honeycomb construction. Journal of Physics: Conference Series. 2022;2207(1):012013.
- 49. Desouza GN, Kak AC. Vision for mobile robot navigation: a survey. IEEE Trans Pattern Anal Machine Intell. 2002;24(2):237–67.
- 50.
Lu Z, Huang R. Autonomous mobile robot navigation in uncertain dynamic environments based on deep reinforcement learning. In: 2021 IEEE International Conference on Real-time Computing and Robotics (RCAR). 2021. p. 423–8. https://doi.org/10.1109/rcar52367.2021.9517635
- 51.
Ali M, Das S. Swarms of mobile robots for area exploration. In: 2023. 138–43. https://doi.org/10.1109/WiDS-PSU57071.2023.00038
- 52. Xu W, et al. Research on path planning multiple mobile robots based on the LAPGWO algorithm. Applied Sciences. 2025;15(10):5232.
- 53. Hai X, Zhu Z, Liu Y, Khong AWH, Wen C. Resilient Real-Time Decision-Making for Autonomous Mobile Robot Path Planning in Complex Dynamic Environments. IEEE Trans Ind Electron. 2025;72(11):11551–62.
- 54. Taira K, Brunton SL, Dawson STM, Rowley CW, Colonius T, McKeon BJ, et al. Correction: Modal Analysis of Fluid Flows: An Overview. AIAA Journal. 2020;58(11):AU9–AU9.
- 55. Nochetto RH, Savaré G, Verdi C. A posteriori error estimates for variable time-step discretizations of nonlinear evolution equations. Comm Pure Appl Math. 2000;53(5):525–89.
- 56. Kim J, Moin P. Application of a fractional-step method to incompressible Navier-Stokes equations. Journal of Computational Physics. 1985;59(2):308–23.
- 57. Sarkar S, Sarkar S. Vortex dynamics of a cylinder wake in proximity to a wall. Journal of Fluids and Structures. 2010;26(1):19–40.
- 58. Choi H, Jeon W-P, Kim J. Control of Flow Over a Bluff Body. Annu Rev Fluid Mech. 2008;40(1):113–39.