Next Article in Journal
Umbral Theory and the Algebra of Formal Power Series
Next Article in Special Issue
A Review of Convective Schemes Used for Detonation Simulations in OpenFOAM After a Decade of Development
Previous Article in Journal
Structured Over-Relaxed Monotone FISTA for Linear Inverse Problems in Image Restoration
Previous Article in Special Issue
Symmetry Group Analysis of the Unsteady Heat Transfer of Spherical Nanoparticles at a Small Reynolds Number Value
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Driven Prediction of Surface Transport Quantities in Williamson Nanofluid Flow via Hybrid Numerical Neural Approach

1
Department of Mathematics, Faculty of Engineering and Computing, National University of Modern Languages (NUML), Islamabad 44000, Pakistan
2
Department of Mathematics and Statistics, College of Science, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh 11623, Saudi Arabia
3
Basic and Applied Sciences, Department of Mathematics, Air University, Islamabad 44000, Pakistan
4
Department of Mathematics, COMSATS University Islamabad, Park Road, Islamabad 45550, Pakistan
*
Author to whom correspondence should be addressed.
Axioms 2026, 15(3), 236; https://doi.org/10.3390/axioms15030236
Submission received: 30 January 2026 / Revised: 14 March 2026 / Accepted: 18 March 2026 / Published: 20 March 2026
(This article belongs to the Special Issue Recent Developments in Mathematical Fluid Dynamics)

Abstract

This study introduces an efficient and accurate two-stage explicit computational scheme for solving partial differential equations (PDEs) containing first-order time derivatives. The suggested method is a modification of the classical Runge–Kutta scheme that introduces a new first-stage formulation. This minimizes numerical error with moderate step sizes while preserving the stability region of the classical method. Spatial discretization is performed using a sixth-order compact finite-difference scheme to obtain high-resolution solutions. The analysis of stability and convergence is strictly determined for both scalar and system forms of convection–diffusion-type equations. To illustrate the suitability of the method, a dimensionless mathematical model of the unsteady, incompressible, laminar flow of a Prandtl-type non-Newtonian nanofluid over a Riga plate is considered, accounting for viscous dissipation, thermophoresis, Brownian motion, and a magnetic field. Here, the Prandtl ternary nanofluid is defined as a non-Newtonian nanofluid that follows the Prandtl rheological model, and it exhibits three critical transport phenomena: heat conduction, viscous dissipation, and nanoparticle diffusion. Representative values of the Prandtl number P r = 3 and Reynolds number R e = 5 are used to perform the simulation, and other parameters, including but not limited to the Hartmann number H a , Williamson number W e , thermophoresis N t and Brownian motion N b , are varied to evaluate the flow behavior. Moreover, an artificial neural network (ANN)-developed surrogate model is used to calculate the skin friction coefficient and the local Sherwood number, using five input parameters: the Reynolds number, Prandtl number, Schmidt number, Brownian motion parameter, and thermophoresis parameter. The governing partial differential equations yield high-fidelity numerical data used to train the surrogate model. The data is split into 80% for training, 10% for validation, and 10% for testing. The ANN is tested using regression analysis and error histograms, which demonstrate high accuracy and generalization capacity. Numerical simulation combined with AI-based prediction is a cost-efficient method for real-time estimation of complex non-Newtonian nanofluid systems.

1. Introduction

Nonlinear, coupled, and parameter-sensitive time-dependent partial differential equations (PDEs) occur frequently in fluid dynamics, heat transfer, and mass transport. The correct numerical solution is a key problem in computational mathematics, especially when convection–diffusion and non-Newtonian rheology are solved simultaneously. Stability, convergence, and computational efficiency must be well-balanced in such systems. Runge–Kutta (RK) methods with explicit time-integration schemes have been widely applied due to their simplicity and ease of implementation. But in nonlinear convection–diffusion problems, classical RK methods can exhibit severe stability limits and greater numerical error, especially when combined with high-resolution spatial discretization.
To overcome these limitations, modified and multi-stage explicit schemes are proposed; the schemes aim to improve stability behavior and reduce truncation error, at the cost of computational efficiency. Such time integrators, together with compact finite difference schemes that offer high-order spatial accuracy with a very narrow stencil, constitute an effective toolkit for the numerical solution of transport-dominated PDEs in mathematical fluid dynamics.
At the same time, greater attention has been paid to modeling non-Newtonian nanofluid flows, which exhibit high thermal efficiency and complex rheological behavior. The Williamson fluid model particularly suits non-Newtonian models in defining shear-thinning behavior and does not yield to stress. When nanoparticles are suspended in such fluids, the resulting Williamson nanofluid exhibits better heat and mass transfer properties due to Brownian motion and thermophoresis. The governing equations describing unsteady Williamson nanofluid flow under magnetic and thermal effects are nonlinear convection–diffusion-type PDE systems, posing significant numerical challenges.
Kumar et al. [1] examined the flow of an unsteady magnetohydrodynamic (MHD) nanofluid over a vertical plate with porosity, thermal radiation, and heat generation, using the finite difference method, similarity transformations, and the Runge–Kutta method. Moreover, topological indices provide information on the structure and reactivity of chemicals; Nadeem et al. [2] used mathematical chemistry, specifically algebraic graph techniques, to evaluate topological indices. The modeling of complex events in nanofluid transport is indirectly supported by these indices, which are crucial for comprehending the thermophysical properties of nanomaterials. Abdal et al. [3] examined the flow of an Ellis nanofluid on a stretched surface under the influence of buoyancy, magnetic fields, and heat generation. Nandeppanavar and Jagadevappa [4] employed the BVP4C solver in MATLAB R2024b to investigate heat and mass transfer during nanofluid flows of swimming microorganisms in non-Newtonian and Newtonian regimes. The authors also examined nonlinear radiation, Joule heating, viscous dissipation, and similar phenomena. Benaissa et al. [5] highlighted the effects of thermal radiation and Joule heating, using the Keller box method to investigate power-law nanofluid flow over a vertically stretched sheet. Chemical graph theorists are also increasingly adopting the approaches of algebraic graph theorists, such as those of Nadeem et al. [2], to elucidate the behavior of molecular connectivity and reactions in terms of quasi-divisor graphs. By providing structural indicators and transport characteristics, these results advance nanofluid modeling. Ahmad et al. [6] found that magneto-Sutterby nanofluids in Darcy–Forchheimer porous media could transfer heat via radiation and Brownian motion. In contrast, Israr Ur Rehman et al. [7] demonstrated that RSM was highly sensitive to thermal radiation when employed to improve the movement of Williamson nanofluid in inclined stretching cylinders.
Recent advances in heat transfer have placed non-Newtonian hybrid nanofluids at the center stage due to their high thermal conductivity and rheological properties. They exhibit shear-thinning, viscoelasticity, and yield stress, which, compared with those of Newtonian fluids, enable more accurate modeling of a broad range of biological and industrial processes. Thermodynamic principles further enhance nanoparticles’ thermal performance, stability, and energy transfer. Flows with stretched surfaces, MHD boundary layers, and porous media are especially well-suited for these systems. At stagnation points across expanding porous sheets, radiative heat and mass transfer in Maxwell, micropolar, and Williamson nanofluids is significantly enhanced by suction, especially in micropolar nanofluids, as shown numerically by Nabway et al. [8]. Zeeshan et al. [9] utilized artificial neural networks to analyze Eyring–Powell hybrid nanofluid flows across porous cylinders under MHD and heat absorption effects, and they did the same thing here. Nonlinear radiation and MHD effects were considered in the study of ternary hybrid nanofluids between spinning discs conducted by Molla et al. [10].
On the other hand, Galal et al. [11] investigated the energy transmission and entropy production in solar thermal systems using the Cattaneo–Christov heat flux model. PV [12] studied chemical reactions, and Stefan blowing ternary nanofluid flows across nonlinear stretching surfaces. Graish et al. [13] used machine learning methods to estimate nanofluid viscosity. Also, in the context of the detailed transport networks of porous and nanofluid systems, Hazzabi et al. [14] examined the combinatorial and structural properties of algebraic quasigroup representations using Latin squares and edge labeling. Moreover, Ahmad et al. [15] demonstrated that the Cattaneo–Christov double-diffusion model is better than the classical Fourier–Fick laws in finite-speed thermal and solutal diffusion of nonlinear convection and chemistry in Sutterby nanofluids.
The suspension of nanoparticles can enhance thermal conductivity, as illustrated by Choi [16], and this development was a breakthrough in nanofluids. This observation has improved research on the dynamics of nanofluids, heat transfer, and their potential industrial applications. The ongoing events have considerably enlightened us about such complex fluids. Rashid et al. [17] reported that nanoparticle shape can determine magnetohydrodynamic flow properties along long surfaces and the generation of entropy. Alali and Megahed [18] investigated the effects of velocity slip on unstable Casson nanofluid flows in the presence of heat radiation and viscous dissipation. Abbas et al. [19] investigated the transport of chemically reactive species in numerical calculations of magnetized nanofluid flow around cones at high speeds. Amer et al. [20] investigated dissipative non-Newtonian nanofluid flow in porous media with surface roughness to address real-world engineering applications.
Conversely, Garvandha et al. [21] studied thermodynamic irreversibilities of inclined magnetic nanofluid flows on a cylindrical geometry. Recently, our understanding of nanofluid behavior has advanced through studies of more complex physical processes in modern thermal applications. Ali et al. [22] investigated the effects of magnetism, nanoparticle volume fraction dynamics, and Coriolis forces on entropy generation in mixed convection to better understand thermodynamic irreversibility in rotating nanofluid environments. Mishra and Pathak [23] went a step further by studying the thermal-flow characteristics of an expanding and contracting cylinder holding a hybrid nanofluid of polytetrafluoroethylene and single-walled carbon nanotubes. They argued that slip effects are crucial for enhancing heat transfer. Mishra [24] has gone one step further to examine the radiative Ellis hybrid nanofluid flow in a slip-permeable medium and has found that radiation and porosity influence the temperature response of hybrid suspensions. Collectively, these studies contribute to understanding the effects of multiphysics interactions on momentum and heat transfer and broaden the nanofluid transport modeling paradigm. The main objective of the current research is to develop advanced modeling tools that effectively describe the coupled thermal, electromagnetic, and rheological behavior of nanofluids. All these investigations make this a necessity.
Fluid flow systems also depend on thermal properties, which vary with temperature, as shown by several seminal studies. Hamad et al. [25] investigated radiative magnetohydrodynamic stagnation-point flow and concluded that dissimilar viscosity and thermal conductivity can significantly influence the flow behavior compared with constant-property assumptions. Khader and Megahed [26] employed the differential transformation method to analyze the flow through porous media with various sheet thicknesses and different thermal conductivities, and to measure the growth of the thermal boundary layer. In their study, Hamid and Khan [27] found that variations in thermal conductivity also have a considerable impact on the formation of a boundary layer in unstable Williamson nanofluid flows. The heat transfer’s sensitivity to surface conditions is amplified by thermal conductivity gradients, according to recent research on hybrid nanofluids by Jan et al. [28]. This work was extended by Khaleque et al. [29], who examined the coupled effects of viscosity and thermal conductivity in power-law fluids undergoing radiative and diffusive transport. These innovative studies were used to develop our approach for accurately describing heat transfer dynamics in complex nanofluid regimes under the influence of coupled thermal and electromagnetic fields, including variations in thermal conductivity.
Velocity, temperature, and concentration fields are not the only interesting quantities in engineering practice. These quantities are critical for drag estimation, lubrication processes, coating technologies, chemical transport systems, and thermal management devices. Traditionally, they are computed through repeated numerical simulations, which become computationally expensive when extensive parametric studies or optimization tasks are required.
Artificial intelligence is currently founded on ANN applications. Specifically, ANNs can be distinguished by their ability to learn and restore data from nonlinear events. Given their versatility, young researchers are becoming interested in and involved with them. Numerous fields make use of artificial neural networks (ANNs), including but not limited to quantum chemistry, machine translation, finance, visualization, medical diagnosis, sequence recognition, process control, data mining, pattern recognition, system identification, and social network filtering. ANNs are multidimensional and can analyze incoming data as it passes through the network. The effective and practical application of stochastic numerical methods, especially in backpropagation, by ANNs is well-known. Backpropagation uses the supervised learning approach of gradient descent to reduce the likelihood of errors. Although Paul Werbos originally suggested the backpropagation method in 1974, it was not until 1989 that Rumelhart and Parker rediscovered it. When learning, several feed-forward multilayer neural networks employ backpropagation. One new strategy for training ANNs to handle fluid flow-related computational problems is the Levenberg–Marquardt (LM) backpropagation method.
Some writers have achieved steady convergence in both Newtonian and non-Newtonian fluid systems by employing a Levenberg–Marquardt backpropagating ANN known as LBMBN. Ly et al. [30] conducted a metaheuristic analysis of LBM-BN’s structure and specifications to determine how accurately it predicts the shear capacity of foamed concrete in a short time. Reinforced concrete beam defects were investigated by Zhao et al. [31] using the LBM-BN technique. Nguyen et al. [32] studied the application of ANN-based linguistic models (LM) to enhance the precision of robot positioning. Ali et al. [33] forecast the volumetric flow rate across a steep crest weir using an ANN trained with a Language Model (LM) method.
Recently, due to a rise in ANN-based frameworks, nanofluid studies have increased to verify and predict fluid flow. Preliminary evidence suggests that ANNs can accurately forecast the transfer of heat and mass in bioconvective nanofluids over stretched sheets [34], and it was shown in [35] that, in comparison to conventional numerical models, ANN models display nonlinear transport properties. These studies show that numerical methods using ANNs are an effective alternative to the repetitive assessment of parameters and offer stronger predictive performance. This study responds to these enquiries by verifying, via NNTS in MATLAB, the accuracy of the numerical solutions to the Casson–Jeffrey hybrid nanofluid model. Unfortunately, there are currently no high-fidelity DNS/CFD datasets or experimental results accessible in the literature for the Casson–Jeffrey hybrid nanofluid model, which incorporates two stretching surfaces, nonlinear radiation, activation energy, Brownian motion, and porous medium effects. Since no prior formulation of this configuration has been found, it is not possible to directly compare the governing equations obtained in this study to experimental or benchmark data. Since the RK-Shooting numerical solution has been proven time and time again for boundary-layer nanofluid flows, it is used as a benchmark to validate the ANN prediction.
Recent developments in time-integration methods have focused on improving stability and efficiency for nonlinear PDEs. For example, Gu et al. [36] analyzed implicit–explicit Runge–Kutta schemes for reaction–diffusion systems with stochastic diffusion coefficients, while D’Afiero [37] developed embedded strong-stability-preserving Runge–Kutta methods with adaptive time stepping for shock-dominated flows. These studies highlight the ongoing effort to design robust Runge–Kutta frameworks for complex transport equations.
Research Gap: Despite the extensive literature on (i) numerical time-integration schemes, (ii) Williamson nanofluid modeling, and (iii) ANN-based prediction in fluid systems, the following gaps remain:
  • A modified explicit Runge–Kutta scheme, proven to be stable and convergent, tailored for nonlinear convection–diffusion systems, has not been systematically applied to Williamson nanofluid flow.
  • High-order compact spatial discretization has not been effectively coupled with such modified time integrators in this context.
  • AI-based surrogate prediction of both the skin friction coefficient and the local Sherwood number for Williamson nanofluid systems remains underexplored.
To address this challenge, artificial intelligence (AI) and data-driven modeling techniques have recently emerged as efficient alternatives for predicting complex flow-dependent quantities. By learning from high-fidelity numerical or experimental datasets, AI models can establish nonlinear mappings between governing parameters and output quantities of interest. In fluid dynamics, AI-based predictors have demonstrated the potential to predict heat transfer rates, drag coefficients, and transport properties at much lower computational cost. Nevertheless, there is still little evidence of AI models applied to predict skin friction and the Sherwood number in Williamson nanofluid flows, suggesting that this issue should be investigated further.
Inspired by these factors, the current paper proposes an adapted two-stage explicit Runge–Kutta scheme for the solution of time-dependent convection–diffusion-type PDEs arising in Williamson nanofluid flow. The proposed scheme changes the initial step of the classical Runge–Kutta method, resulting in a decrease in numerical error and the same stability region as the conventional RK scheme with the same step size. Spatial discretization is performed using high-order compact finite-difference schemes to achieve higher resolution and greater accuracy. The theory of the proposed method is shown to be reliable through a rigorous stability and convergence analysis conducted for both scalar equations and systems of convection–diffusion equations.
Objective of the Study: These shortcomings inspired the current investigation, which seeks to:
  • We developed a modified two-stage explicit Runge–Kutta scheme that preserves the classical stability region while reducing numerical error.
  • We coupled the scheme with a high-order compact finite difference method for spatial discretization.
  • We established rigorous stability and convergence analysis for scalar and coupled convection–diffusion systems.
  • We applied the developed framework to an unsteady Williamson nanofluid model with magnetic, thermal, and mass transfer effects.
  • We constructed an ANN-based surrogate model trained on high-fidelity numerical data to predict the skin friction coefficient and local Sherwood number efficiently.
The proposed model will fill the gap between classical numerical analysis and modern artificial intelligence, providing a powerful, reliable framework for simulating non-Newtonian nanofluid transport processes.
Justification of the Hybrid Numerical–AI Framework: It should be noted that the ANN component employed in the paper does not replace the numerical solver and does not aim to estimate the governing partial differential equations directly. Instead, the given hybrid scheme is sequential and physically consistent. A compact, modified Runge–Kutta scheme, shown to be stable and convergent, is first developed to yield high-fidelity numerical solutions of the nonlinear Williamson nanofluid PDE system. These methods provide accurate assessments of the engineering surface quantities, namely the skin friction coefficient and the local Sherwood number. Second, the ANN model is trained solely on this numerically validated dataset to develop a surrogate mapping between the controlling physical parameters and the transport quantities. Thus, an ANN is a data-driven regression model trained with a mathematically sound solver. Such a division of roles also enables the PDE model to maintain its physical fidelity while enabling rapid prediction for parametric studies, optimization, and real-time applications. In this respect, the numerical technique ensures mathematical accuracy, while the ANN improves calculation speed. The process is therefore complementary rather than overlapping, creating a coherent multilevel scheme that reconciles deterministic numerical analysis with data-driven prediction in mathematical fluid dynamics.
The remainder of the paper is organized as follows. Section 2 presents the proposed two-stage modified Runge–Kutta scheme, detailing the time discretization and the high-order compact spatial discretization. Section 3 provides a rigorous stability and convergence analysis of the scheme for coupled convection–diffusion systems. Section 4 will describe the mathematical modeling of unsteady heat and mass transfer in a Williamson nanofluid on an oscillatory plate, including the effects of thermophoresis and Brownian motion. Section 5 presents a comprehensive numerical parametric study that quantifies the effects of key physical parameters on the solutions for velocity, temperature, and nanoparticle concentration. Section 6 develops a neural network-based surrogate model to predict the skin friction coefficient and local Sherwood number, including details of network architecture, training protocol, and performance evaluation metrics. Finally, Section 7 summarizes the main findings and discusses the future directions and practical implications of the proposed numerical and AI-based modeling framework.

2. Modified Numerical Scheme

Runge–Kutta methods are well established in the literature for discretizing time-dependent terms in partial differential equations. Numerical discretization of time-dependent convection–diffusion equations using finite difference methods and Runge–Kutta time integrators has been extensively studied in the numerical analysis literature due to their effectiveness in solving transport type partial differential equations [38,39]. In this research, one of the existing Runge–Kutta methods is modified, and the modified scheme maintains the same order of accuracy as the original one. The modified method is second-order accurate in time. To construct the modified method, the whole domain [ 0 , L ] is divided into finite subintervals having equal length, denoted by Δ y . Also, the whole-time interval [ 0 , t f ] is divided into a finite number of equal subintervals having length Δ t . The scheme is constructed for the following time-dependent convection–diffusion PDE:
𝜕 f 𝜕 t = α 𝜕 f 𝜕 y + β 𝜕 2 f 𝜕 y 2
where the convective term α f y : advection/transport along the spatial direction and diffusion term β f y y : smoothing/spreading due to viscosity/thermal diffusivity/mass diffusivity. This is the mathematical “core” of many transport problems. In the real model, f can represent velocity, temperature, or nanoparticle concentration, and α , β represent the effective convection/diffusion strengths after nondimensionalization. Equation (1) is considered subject to the boundary conditions.
f t , 0 = f 1 , f t , L = f 2
where f 1 and f 2 are functions in time.
Classical Runge–Kutta schemes and their modified variants are widely used for time integration because of their simplicity, stability properties, and well-established order conditions derived from Taylor series expansions [39].

2.1. Predictor Stage

The first stage of the proposed scheme can be written as
f ¯ j n + 1 = f j n e Δ t + ( 1 e Δ t ) 𝜕 f 𝜕 t j n + f j n
Equation (3) is called the predictor stage and computes a solution at an arbitrary time level. This stage can be used to discretize the first-order time derivative term in Equation (1) using the forward Euler method. It is an explicit predictor that produces a “best-guess” at time n + 1 . It replaces the usual forward Euler first RK stage. The factor e Δ t / 1 e Δ t gives a built-in damping/weighting that behaves nicely as Δ t varies. In convection–diffusion problems, naive explicit predictors can amplify numerical oscillations. The exponential weighting acts as a controlled relaxation toward the RHS-driven update, often reducing overshoot and improving error for practical step sizes.

2.2. Corrector Stage

The second stage of the proposed scheme is expressed as
f j n + 1 = f j n + Δ t a 𝜕 f 𝜕 t j n + b 𝜕 f ¯ 𝜕 t j n + 1
where a and b are constants to be determined by applying the Taylor series Expansion to the left-hand side of Equation (4). This resembles a standard 2-stage RK update, but this predictor f ¯ is not the classical RK stage that is the key modification.
Expanding f j n + 1 using the Taylor series expansion, it yields
f j n + 1 = f j n + Δ t 𝜕 f 𝜕 t j n + Δ t 2 2 𝜕 2 f 𝜕 t 2 j n + O Δ t 3
Now, substituting the first stage (3) into Equation (4), it gives
f j n + 1 = f j n + Δ t a 𝜕 f 𝜕 t j n + b 𝜕 f 𝜕 t j n + b Δ t ( 1 e Δ t ) 𝜕 2 f 𝜕 t 2 j n
Using the Taylor series Expansion for f j n + 1 results in the following equations.
f j n + Δ t 𝜕 f 𝜕 t j n + Δ t 2 2 𝜕 2 f 𝜕 t 2 j n = f j n + Δ t a 𝜕 f 𝜕 t j n + b 𝜕 f 𝜕 t j n + b Δ t ( 1 e Δ t ) 𝜕 2 f 𝜕 t 2 j n
Comparing the coefficients of f j n , 𝜕 f 𝜕 t j n and 𝜕 2 f 𝜕 t 2 j n on both sides of Equation (7) gives
a + b = 1 b 1 e Δ t = Δ t 2
Solving linear Equation (8) gives the values of a = 1 b and b = Δ t 2 ( 1 e Δ t ) . It means this method is second-order accurate in time, because the matching terms up to Δ t 2 . For small Δ t , use the approximation 1 e Δ t Δ t Δ t 2 / 2 , so b 1 2 and a 1 2 .
So, the scheme smoothly connects to a familiar 2nd-order RK/trapezoid-like weighting. So, the modified proposed scheme for Equation (1) can be written as
f ¯ j n + 1 = f j n e Δ t + 1 e Δ t α 𝜕 f 𝜕 y j n + β 𝜕 2 f 𝜕 y 2 j n + f j n
f j n + 1 = f j n + Δ t a α 𝜕 f 𝜕 y j n + β 𝜕 2 f 𝜕 y 2 j n + b α 𝜕 f ¯ 𝜕 y j n + 1 + β 𝜕 2 f ¯ 𝜕 y 2 j n + 1
The proposed scheme discretizes only time-dependent terms in Equation (1).

2.3. Spatial Discretization Using Compact High-Order Schemes

For discretizing space-dependent terms in Equation (1), a compact high-order accurate scheme is applied.
By applying a compact scheme to Equations (9) and (10) fully discretized equations can be written as
f ¯ j n + 1 = f j n e Δ t + 1 e Δ t α M 1 1 N 1 f j n + β M 2 1 N 2 f j n f j n
f j n + 1 = f j n + Δ t a α M 1 1 N 1 f j n + β M 2 1 N 2 f j n + b α M 1 1 N 1 f ¯ j n + 1 + β M 2 1 N 2 f ¯ j n + 1
where the matrices M 1 and M 2 are constructed from the coefficients of 𝜕 f 𝜕 y j ± 1 n ,   𝜕 f 𝜕 y j n and 𝜕 2 f 𝜕 y 2 j ± 1 n , 𝜕 2 f 𝜕 y 2 j n and N 1 , N 2 are constructed from the coefficients of f j ± 1 n , f j ± 2 n , f j n of the following equations. For spatial discretization, compact finite difference schemes are particularly attractive since they achieve high-order accuracy using relatively small computational stencils while maintaining spectral-like resolution characteristics [40,41].
First derivative compact scheme:
μ 1 𝜕 f 𝜕 y j + 1 n + 𝜕 f 𝜕 y j n + μ 1 𝜕 f 𝜕 y j 1 n = b ( f j + 1 n f j 1 n ) 2 Δ y + b 1 ( f j + 2 n f j 2 n ) 4 Δ y
Second derivative compact scheme:
μ 2 𝜕 2 f 𝜕 y 2 j + 1 n + 𝜕 2 f 𝜕 y 2 j n + μ 2 𝜕 2 f 𝜕 y 2 j 1 n = b 2 ( f j + 1 n 2 f j n + f j 1 n ) Δ y 2 + b 3 ( f j + 2 n 2 f j n + f j 2 n ) 4 Δ y 2
where b = 2 3 μ 1 + 2 , b 1 = 1 3 1 4 μ 1 , b 2 = 4 3 1 μ 2 , b 3 = 1 3 ( 10 μ 2 1 ) . These can be written as linear algebra forms: M 1 f y = N 1 f , M 2 f y y = N 2 f , so f y = M 1 1 N 1 f ,   f y y = M 2 1 N 2 f . That is exactly how the fully discrete scheme becomes (11) and (12). In Equations (13) and (14), the parameters μ 1 and μ 2 are free compact-scheme weighting coefficients that control the coupling between derivative values at neighboring grid points. These parameters determine the order of spatial accuracy of the compact scheme. By selecting appropriate values of μ 1 and μ 2 , the scheme can achieve fourth- or sixth-order accuracy in space. For example, choosing μ 1 = 1 4 yields a fourth-order accurate approximation for the first derivative, while specific optimized values of μ 2 = 1 10 . Similarly, we ensure fourth- or sixth-order accuracy for the second derivative. These parameters are selected to satisfy Taylor-series consistency conditions and to minimize truncation error while preserving the compact stencil structure. This kind of scheme is very beneficial for high spatial accuracy, with narrow stencils and better spectral resolution.

2.4. Physical Relevance to the Real-World Williamson Nanofluid Problem

The time-space discretization suggested is based on the physical properties of the transport structure of the Williamson nanofluid model, in which equations of momentum, energy, and the concentration of nanoparticles have convection–diffusion operators, which are coupled by nonlinear rheology and nanoparticle flux physics. Accurate evaluation of wall gradients is essential for consistent predictions of engineering quantities, such as the skin friction coefficient and the Sherwood number. The use of a modified two-stage Runge–Kutta time integrator combined with a high-order compact scheme enhances the resolution of thin boundary layers. It suppresses nonphysical oscillations in transient and magnetohydrodynamic regimes, thereby improving the fidelity of heat and mass transfer predictions in practical applications, including magnetically controlled cooling, shear-thinning process fluids, and nanoparticle transport systems.

3. Stability and Convergence Analysis

Fourier series analysis is one of the existing stability analyses for finding stability conditions of finite difference schemes. The analysis can be applied to both linear and nonlinear partial differential equations. But the nonlinear partial differential equations must be linearized before applying this stability analysis. For linear PDEs, it gives exact stability conditions; for nonlinear PDEs, it provides an estimate of the exact stability conditions. Furthermore, the stability properties of finite difference schemes for convection–diffusion equations are commonly analyzed using the von Neumann Fourier stability analysis, which has been widely applied in the numerical analysis of PDE discretization [42].
This analysis converts the difference equations into trigonometric equations. Then, stability conditions are imposed on the obtained trigonometric equations. To apply this stability analysis, consider the following transformations:
M 1 e j i P = μ 1 e ( j + 1 ) i P + e j i P + μ 1 e ( j 1 ) i P
N 1 e j i P = b ( e j + 1 i P e ( j 1 ) i P ) 2 Δ y + b 1 ( e j + 2 i P e ( j 2 ) i P ) 4 Δ y
M 2 e j i = μ 2 e ( j + 1 ) i P + e j i P + μ 2 e ( j 1 ) i P
N 2 e j i P = b 2 ( e j + 1 i P 2 e j i P + e ( j 1 ) i P ) Δ y 2 + b 3 ( e j + 2 i P 2 e j i P + e ( j 2 ) i P ) 4 Δ y 2
where i = 1 .
Transformations (15)–(18) convert Equation (11) into the following trigonometric equation.
f ¯ j n + 1 = f j n e Δ t + ( 1 e Δ t ) α 2 b i s i n P + b 1 i s i n 2 P 2 Δ y 2 μ 1 cos P + 1 + β 4 b 2 ( c o s P 1 ) + b 3 ( c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 + 1 f j n
Let c 1 = e Δ t + ( 1 e Δ t ) β 4 b 2 ( c o s P 1 ) + b 3 ( c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 and c 2 = ( 1 e Δ t ) α 2 b i s i n P + b 1 i s i n 2 P 2 Δ y 2 μ 1 cos P + 1 .
Then Equation (19) can be rewritten as
f ¯ j n + 1 = ( c 1 + i c 2 ) f j n
Now, substituting the transformations (15)–(18) into Equation (12) results in
f j n + 1 = f j n + Δ t [ a { α 2 b i s i n P + b 1 i s i n 2 P 2 Δ y 2 μ 1 cos P + 1 + β 4 b 2 ( c o s P 1 ) + b 3 ( c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 } f j n + b { α 2 b i s i n P + b 1 i s i n 2 P 2 Δ y 2 μ 1 cos P + 1 + β 4 b 2 ( c o s P 1 ) + b 3 ( c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 } f ¯ j n + 1 ]  
Separating the real and imaginary parts in Equation (21) yields
f j n + 1 = c 3 + i c 4 f j n 6 + ( c 5 + i c 6 ) f ¯ j n + 1
where c 3 = 1 + a Δ t β ( 4 b 2 c o s P 1 + b 3 c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 , c 4 = a Δ t α ( 2 b i s i n P + b 1 i s i n 2 P ) 2 Δ y 2 μ 1 cos P + 1 , c 5 = b Δ t β ( 4 b 2 c o s P 1 + b 3 c o s 2 P 1 ) 4 Δ y 2 2 μ 2 cos P + 1 , and c 6 = b Δ t α ( 2 b i s i n P + b 1 i s i n 2 P ) 2 Δ y 2 μ 1 cos P + 1 .
Using the first stage (20) in the second stage (22) and simplifying gives
f j n + 1 = c 7 + i c 8 f j n
where c 7 = c 3 + c 5 c 1 c 2 c 6 and c 8 = c 4 + c 1 c 6 + c 2 c 5 .
The stability condition can be written as
c 7 + i c 8 1
i.e.,
c 7 2 + c 8 2 1
So, if the scheme satisfies inequality (25), it will remain stable, or a stable solution can be achieved. But if the time and space step sizes and the parameters involved in Equation (1) do not satisfy inequality (25), an unstable solution can be obtained.

3.1. Numerical Stability Verification

A representative stability comparison plot is provided in Figure 1. The figure demonstrates the magnitude of the amplification factor G versus the time step Δ t for both the classical RK2 scheme and the proposed modified scheme. The proposed method maintains stability across the admissible time-step range while providing enhanced damping through exponential weighting in the predictor stage. The stability threshold remains consistent with the classical RK scheme, confirming that the proposed modification neither reduces the stability region nor improves numerical robustness.

3.2. Convergence of the Proposed Scheme

The stability of the scalar convection–diffusion problem was found. Now, convergence for the system of convection diffusion will be provided. The system of convection–diffusion equations can be written in vector-matrix form.
𝜕 P 𝜕 t = λ 1 𝜕 P 𝜕 y + λ 2 𝜕 2 P 𝜕 y 2 + λ 3 P
where P is a vector and λ 1 , λ 2 and λ 3 are matrices.
In Equation (26), the vector P represents the collection of primary dependent variables of the coupled Williamson nanofluid system. In the present application, P = u θ ϕ , where u denotes the dimensionless velocity, θ the dimensionless temperature, and ϕ the dimensionless nanoparticle concentration. The matrices λ 1 , λ 2 , and λ 3 arise from the linearized form of the governing nonlinear PDE system and represent the effective convection, diffusion, and reaction/source operators, respectively. Specifically:
  • λ 1 corresponds to the convective transport coefficients (e.g., Reynolds number-dependent advection terms);
  • λ 2 represents the diffusive transport coefficients (including viscous, thermal, and mass diffusivity contributions);
  • λ 3 accounts for source terms such as magnetic damping (Hartmann effect), buoyancy forces (Grashof terms), and chemical reaction parameters.
Thus, Equation (26) provides a compact matrix representation of the coupled momentum-energy-concentration system used to establish convergence of the proposed scheme. The stability and convergence proofs are carried out for this generalized operator form to ensure applicability to the full Williamson nanofluid model. By applying the proposed scheme for Equation (26), the following equations can be obtained:
P ¯ j n + 1 = P j n e Δ t + ( 1 e Δ t ) λ 1 M 1 1 N 1   P j n + λ 2 M 2 1 N 2   P j n + λ 3 P j n + P j n
P j n + 1 = P j n + Δ t a λ 1 M 1 1 N 1   P j n + λ 2 M 2 1 N 2   P j n + λ 3 P j n + b λ 1 M 1 1 N 1   P ¯ j n + 1 + λ 2 M 2 1 N 2   P ¯ j n + 1 + λ 3 P ¯ j n + 1    
Theorem 1. 
Assume that:
  • The matrices  λ 1 , λ 2 , λ 3  are bounded linear operators.
  • The compact discretization matrices   M 1 1 N 1   and  M 2 1 N 2   are bounded in the  -norm.
  • The time step  Δ t   and spatial step  Δ y  are chosen such that
ζ 4 < 1 ,
where ζ 4 is defined in Equation (37).
Then the proposed schemes (27) and (28) are convergent, and the global error satisfies
E n = O ( Δ t 2 ) + O ( Δ y 6 ) .
Proof. 
To prove this theorem, consider the exact scheme for Equation (26) as
P ¯ j n + 1 = P j n e Δ t + ( 1 e Δ t ) λ 1 M 1 1 N 1   P j n + λ 2 M 2 1 N 2   P j n + λ 3 P j n + P j n
P j n + 1 = P j n + Δ t a λ 1 M 1 1 N 1   P j n + λ 2 M 2 1 N 2   P j n + λ 3 P j n + b λ 1 M 1 1 N 1   P ¯ j n + 1 + λ 2 M 2 1 N 2   P ¯ j n + 1 + λ 3 P ¯ j n + 1
Subtracting the first stage of the proposed and exact scheme (29), the following error equation can be obtained, and, letting p j n P j n = E j n , it yields
E ¯ j n + 1 = E j n e Δ t + ( 1 e Δ t ) λ 1 M 1 1 N 1   E j n + λ 2 M 2 1 N 2   E j n + λ 3 E j n
By applying the norm · on both sides of Equation (31), it results in
E ¯ n + 1 E n e Δ t + ( 1 e Δ t ) λ 1 M 1 1 N 1 E n + λ 2 M 2 1 N 2 E n + λ 3 E n
Inequality (32) can be written as
E ¯ n + 1 ζ 1 E n
where ζ 1 = e Δ t + ( 1 e Δ t ) λ 1 M 1 1 N 1 + λ 2 M 2 1 N 2 + λ 3 .
Subtracting the second stage of the proposed scheme (28) and the exact scheme (30) results in
E j n + 1 = E j n + Δ t a λ 1 M 1 1 N 1   E j n + λ 2 M 2 1 N 2   E j n + λ 3 E j n + b λ 1 M 1 1 N 1   E ¯ j n + 1 + λ 2 M 2 1 N 2   E ¯ j n + 1 + λ 3 E ¯ j n + 1    
Applying norm · on both sides of Equation (34), it yields
E n + 1 E n + Δ t [ a λ 1 M 1 1 N 1 E n + λ 2 M 2 1 N 2 E n + λ 3 E n + b λ 1 M 1 1 N 1 E ¯ n + 1 + λ 2 M 2 1 N 2 E ¯ n + 1 + λ 3 E ¯ n + 1 ]
Inequality (35) can be written as follows:
E n + 1 ζ 2 E n + ζ 3 E ¯ n + 1 + C O Δ t 2 , Δ y 6
where ζ 2 = 1 + a Δ t λ 1 M 1 1 N 1 + λ 2 M 2 1 N 2 + λ 3 .
The terms O ( Δ t 2 ) and O Δ y 6 , appearing in Equation (36), arise from the local truncation errors of the temporal and spatial discretizations, respectively. The proposed modified Runge–Kutta scheme is constructed by matching Taylor series expansions up to second-order terms in time, which ensures a local truncation error of order O ( Δ t 3 ) and hence a global temporal error of order O ( Δ t 2 ) . Similarly, the compact finite difference approximations used in Equations (13) and (14) are designed to achieve sixth-order spatial accuracy through Taylor series consistency conditions. Consequently, the local spatial truncation error is O ( Δ y 6 ) . Therefore, the combined consistency error in Equation (36) reflects the second-order temporal accuracy and sixth-order spatial accuracy of the proposed scheme. The truncation errors associated with finite difference approximations are typically obtained using Taylor series expansions around the grid points, which provide a systematic framework for determining the order of accuracy of numerical schemes [42].
Here, the constant C   denotes a generic positive constant independent of the discretization parameters Δ t and Δ y . It may depend on the final time t f , the bounds of the exact solution and its derivatives, and the norms of the coefficient matrices λ 1 , λ 2 , λ 3 , but it does not depend on the time step or spatial grid size. This independence is essential to ensure that the global error estimate remains valid as Δ t 0 and Δ y 0 .
Using Inequality (33) in Inequality (36) results in
E n + 1 ζ 2 E n + ζ 3 ζ 1 E n + C ( O ( Δ t ) 2 , ( Δ y ) 6 ) = ζ 4 E n + C ( O ( Δ t ) 2 , ( Δ y ) 6 )
where ζ 4 = ζ 1 ζ 3 .
Let n = 0 in Inequality (37), which gives
E 1 ζ 4 E 0 + C ( O ( Δ t ) 2 , ( Δ y ) 6 )
Since the initial condition is exact, E 0 = 0 , Inequality (38) becomes
E 1 C ( O ( Δ t ) 2 , ( Δ y ) 6 )
Substituting n = 1 in Inequality (37), it yields
E 2 ζ 4 E 1 + C ( O ( Δ t ) 2 , ( Δ y ) 6 ) ( ζ 4 + 1 ) C ( O ( Δ t ) 2 , ( Δ y ) 6 )    
Assuming n = 2 in Inequality (37), that gives
E 3 ζ 4 E 2 + C ( O ( Δ t ) 2 , ( Δ y ) 6 ) ( ζ 4 2 + ζ 4 + 1 ) C ( O ( Δ t ) 2 , ( Δ y ) 6 )    
If this is continuous, then for finite N ,
E n ( ζ 4 N 1 + ζ 4 N 2 + + ζ 4 + 1 ) C ( O ( Δ t ) 2 , ( Δ y ) 6 ) ( 1 ζ 4 N 1 ζ 47 ) C ( O ( Δ t ) 2 , ( Δ y ) 6 )      
Applying the limit as N in (42), the series 1 + + ζ 4 N 1 + ζ 4 + becomes an infinite geometric series that will converge if ζ 4 < 1 . The expression for ζ 4 contains norms, time, and space step sizes. So if the norm of the matrices is large, then the time and space step sizes should be appropriately chosen so that they satisfy the convergence inequality. □

3.3. Clarification About ζ 4

It is important to emphasize that the condition ζ 4 < 1 is a theoretically sufficient condition ensuring convergence and is not intended to be verified explicitly during practical computations. In numerical practice, stability and convergence are controlled by selecting appropriate time-step and spatial grid sizes according to standard CFL-type constraints and spectral radius considerations. The quantity ζ 4 provides an analytical bound that captures the combined effects of operator norms and discretization parameters. Like classical Runge–Kutta schemes, stability is ensured by choosing Δ t and Δ y within admissible ranges determined by the problem coefficients. The proposed method does not require direct evaluation of ζ 4 ; rather, it preserves the same stability region as the classical second-order Runge–Kutta method while decreasing numerical error. Thus, the theoretical condition serves as a rigorous mathematical guarantee rather than a computational burden.

4. Problem Formulation

Consider unsteady, incompressible, laminar Williamson nanofluid flow over the flat and oscillatory plates. The x * -axis is placed vertically, whereas the y * -axis is taken perpendicular to the x * -axis. The plate moves with a velocity u w and has higher temperatures and concentrations than the ambient values. A magnetic field B 0 is applied perpendicular to the plate. It is assumed that the temperature and concentration are higher along the plate than away from it. The temperature and concentration away from the plate are called the ambient temperature and ambient concentration, respectively. Heat and mass transfer occur via conduction/diffusion, and non-Newtonian rheology follows the Williamson model. Nanoparticle effects such as Brownian motion and thermophoresis are included. Chemical reaction affects the concentration equation. The governing three coupled PDEs for Williamson nanofluid can be written as follows:
𝜕 u * 𝜕 t * = ν 𝜕 𝜕 y * 1 + Γ 𝜕 u * 𝜕 y * 1 𝜕 u * 𝜕 y * + g β T T T + g β C C C σ B 2 ρ u *  
𝜕 T 𝜕 t * = α 𝜕 2 T 𝜕 y * 2 + μ c p ρ 1 + Γ 𝜕 u * 𝜕 y * 1 𝜕 u * 𝜕 y * 2   + τ D B 𝜕 C 𝜕 y * 𝜕 T 𝜕 y * + D T T 𝜕 T 𝜕 y * 2
𝜕 C 𝜕 t *   = D B 𝜕 2 C 𝜕 y * 2 + D T T 𝜕 2 T 𝜕 y * 2 k 1 C C
Here is the physical interpretation of these governing equations:
Momentum Equation (43) (Williamson viscous diffusion): 𝜕 u * 𝜕 t * represents the fluid’s unsteady acceleration. It captures time-dependent behavior such as startup flow, oscillatory plate motion, and transient magnetic forcing. Also, it is important in real systems such as pulsatile blood flow, time-varying cooling systems, and oscillating surfaces. ν 𝜕 𝜕 y * 1 + Γ 𝜕 u * 𝜕 y * 1 𝜕 u * 𝜕 y * is the core Williamson non-Newtonian stress term, where ν is the kinematic viscosity of the base fluid, 𝜕 u * 𝜕 y * is the shear rate, and Γ is the relaxation time parameter that controls non-Newtonian effects. When Γ = 0 , the term reduces to the classical Newtonian viscous diffusion ν u y * y * . When Γ > 0 , viscosity decreases with increasing shear rate, representing shear-thinning behavior. This is typical of polymer solutions, blood, paints, and food suspensions. Lower effective viscosity near the wall reduces drag and alters velocity gradients, directly affecting skin friction. g β T T T is the thermal buoyancy force where g is the gravitational acceleration, β T is the thermal expansion coefficient, and T T is the temperature difference between the fluid and the ambient temperature. It represents thermal natural convection. Hot fluid becomes less dense and rises along the vertical plate. It drives flow even in the absence of external forcing. g β C C C represents the Solutal buoyancy force, where β C is the solutal expansion coefficient, and C C is the concentration difference. σ B 2 ρ u * is the magnetic (Lorentz) force, where σ is the electrical conductivity, B 0 is the applied magnetic field strength, and ρ is the fluid density. It represents magnetic damping (Lorentz force), opposing fluid motion, and reducing velocity.
Energy Equation (44) (Heat Transfer with Nanoparticle Effects): 𝜕 T 𝜕 t * is the unsteady heat storage. It describes the temporal change in temperature and is important in transient heating/cooling processes. α 𝜕 2 T 𝜕 y * 2 is the thermal conduction, where α is the thermal diffusivity, and it governs heat diffusion away from the heated plate. μ c p ρ 1 + Γ 𝜕 u * 𝜕 y * 1 𝜕 u * 𝜕 y * 2 is the viscous dissipation (non-Newtonian). It converts mechanical energy into heat due to internal friction, modified by Williamson rheology (shear-dependent viscosity). τ D B 𝜕 C 𝜕 y * 𝜕 T 𝜕 y * represents the energy transport caused by random nanoparticle motion and couples the concentration and temperature fields. τ D T T 𝜕 T 𝜕 y * 2 represents nanoparticle migration due to temperature gradients and enhances heat transfer near the wall.
Nanoparticle Concentration Equation (45): 𝜕 C 𝜕 t * is the unsteady nanoparticle transport, D B 𝜕 2 C 𝜕 y * 2 is the Brownian diffusion, the random motion of nanoparticles, D T T 𝜕 2 T 𝜕 y * 2 is the thermophoretic diffusion, when nanoparticles migrate from hot to cold regions, and k 1 C C represents the consumption or decay of nanoparticles.
Subject to initial and boundary conditions
u * = 0 ,   T = 0 ,   C = 0   f o r   t * = 0 u * = u w + L S 𝜕 u * 𝜕 y * ,   T = T w ,   C = C w   w h e n   y * = 0 u * 0 ,   T T ,   C C   w h e n   y *
where u * is the horizontal component of the velocity, Γ is the relaxation time parameter, g is gravity, β T is the coefficient of Thermal convection, β C is the coefficient of solutal convection, D B is the Brownian motion coefficient, D T represents thermophoresis coefficients, α is the thermal diffusivity, c p is the specific heat capacity, B is the strength of the magnetic field applied perpendicular to the plate, σ is the electrical conductivity, ρ is the density, T is ambient temperature, and k 1 is the reaction rate parameter.
Equations (43)–(46) collectively model unsteady Williamson nanofluid flow with magnetic damping, buoyancy forces, nanoparticle transport, viscous heating, and chemical reaction effects. Each term is physically motivated and corresponds to mechanisms encountered in polymer processing, biomedical transport, nanofluid cooling, and magnetohydrodynamic applications.
Using the transformations
y = y * L , u = u * u w ,   t = u w t * L , θ = T T T w T ,   ϕ = C C C w C
Into governing Equations (44)–(47), the dimensionless system of equations can be written as
𝜕 u 𝜕 t = 1 R e 𝜕 𝜕 y u y 1 + W e 𝜕 u 𝜕 y + G r T R e 2 θ + G r C R e 2 ϕ H a 2 R e u      
𝜕 θ 𝜕 t = 1 P r 1 R e 𝜕 2 θ 𝜕 y 2 + E c R e 1 + W e 𝜕 u 𝜕 y 1 𝜕 u 𝜕 y 2 + N b R e 𝜕 ϕ 𝜕 y 𝜕 θ 𝜕 y + N t R e 𝜕 θ 𝜕 y 2
𝜕 ϕ 𝜕 t = 1 S c 1 R e 𝜕 2 ϕ 𝜕 y 2 + N t S c N b R e 𝜕 2 θ 𝜕 y 2 γ ϕ
Subject to the dimensionless initial and boundary conditions
u = 0 ,   θ = 0 , ϕ = 0   f o r   t = 0 u = 1 + Λ 𝜕 u 𝜕 y , θ = 1 , ϕ = 1   w h e n   y = 0 u 0 ,   θ 0 , ϕ 0   w h e n   y
where H a Hartman number, W e is Williamson’s number, R e is the Reynold number, G r T and G r C are the thermal and solutal Grashof numbers respectively, E c is the Eckert number, P r is the Prandtl number, S c is Schmidt number, N b is the Brownian motion parameter, N t is the thermophoresis parameter, γ is the reaction rate parameter, and Λ is the velocity slip, which are given as follows:
H a = B L σ ρ ν ,   W e = Γ u w L ,   R e = L u w ν ,   G r T = L 3 g β T T w T ν 2 ,   G r C = g β C C w C ν 2 ,   E c = ν u 2 c p ( T w T ) ,     P r     = ν α ,   S c = ν D B ,   N b = τ D B C w C ν ,   N t = τ D T T w T ν T ,   γ = k 1 L u w ,   Λ = L s L
The skin friction coefficient, local Nusselt, and Sherwood numbers are defined as
C f = τ w ρ u w 2 N u L = L q w k T w T S h L = L j w D B C w C
where τ w = μ 1 + Γ 𝜕 u * 𝜕 y * y * = 0 𝜕 u * 𝜕 y * y * = 0 ,   q w = k 𝜕 T 𝜕 y * y * = 0 , j w = D B 𝜕 C 𝜕 y * y * = 0 D T T 𝜕 T 𝜕 y * y * = 0 .
Using transformations (48), the dimensionless skin friction coefficient, local Nusselt, and Sherwood numbers are expressed as follows:
R e C f = 1 + W e 𝜕 u 𝜕 y y = 0 1 𝜕 u 𝜕 y y = 0 N u L = 𝜕 θ 𝜕 y y = 0 S h L = 𝜕 ϕ 𝜕 y y = 0 N t N b 𝜕 θ 𝜕 y y = 0

4.1. Time Discretization with Modified Runge–Kutta Scheme

Discretization of Equations (48)–(50) using the proposed scheme is given as
Predictor Stage (for Velocity Equation):
u ¯ j n + 1 = u j n e Δ t + 1 e Δ t { 1 R e M 2 1 N 2   u j n 1 + W e M 1 1 N 1   u j n W e M 1 1 N 1   u j n M 2 1 N 2   u j n 1 + W e M 1 1 N 1   u j n 2 + G γ L R e 2 θ j n + G γ C R e 2 ϕ j n H a 2 R e u j n + u j n   }    
Corrector Stage:
u j n + 1 = u j n   + Δ t [ a M 2 1 N 2   u j n 1 + W e M 1 1 N 1   u j n W e M 1 1 N 1   u j n M 2 1 N 2   u j n R e 1 + W e M 1 1 N 1   u j n 2 + G γ L R e 2 θ j n + G γ C R e 2 ϕ j n H a 2 R e u j n   + b { M 2 1 N 2   u ¯ j n + 1 1 + W e M 1 1 N 1   u ¯ j n + 1 W e M 1 1 N 1   u ¯ j n + 1 M 2 1 N 2   u ¯ j n + 1 R e 1 + W e M 1 1 N 1   u ¯ j n + 1 2 + G γ L R e 2   θ ¯ j n + 1   + G γ C R e 2 ϕ ¯ j n + 1 H a 2 R e   u ¯ j n + 1 } ]
The constants a and b are chosen to ensure second-order time accuracy.
Predictor Stage (for Energy Equation):
θ ¯ j n + 1 = θ j n e Δ t   + 1 e Δ t { 1 P r . R e M 2 1 N 2   θ j n + E c R e M 1 1 N 1   u j n 2 1 + W e M 1 1 N 1   u j n + N b R e M 1 1 N 1   θ j n M 1 1 N 1   ϕ j n + N t R e ( M 1 1 N 1   θ j n ) 2 + θ j n   }  
Corrector Stage:
θ j n + 1 = θ j n + Δ t { a [ 1 P r . R e M 2 1 N 2   θ j n + E c R e M 1 1 N 1   u j n 2 1 + W e M 1 1 N 1   u j n + N b R e M 1 1 N 1   θ j n M 1 1 N 1   ϕ j n + N t R e M 1 1 N 1   θ j n 2 ] + b [ 1 P r . R e M 2 1 N 2   θ ¯ j n + 1 + E c R e M 1 1 N 1   u ¯ j n + 1 2 1 + W e M 1 1 N 1   u ¯ j n + 1 + N b R e M 1 1 N 1   θ ¯ j n + 1 M 1 1 N 1   ϕ ¯ j n + 1 + N t R e M 1 1 N 1   θ ¯ j n + 1 2 ] }
Predictor Stage (for Concentration Equation):
ϕ ¯ j n + 1 = ϕ j n e Δ t + ( 1 e Δ t ) 1 S c R e M 2 1 N 2 ϕ j n + N t N b S c R e M 2 1 N 2 θ j n γ ϕ j n + ϕ j n
Corrector Stage:
ϕ j n + 1 = ϕ j n + Δ t a 1 S c R e M 2 1 N 2 ϕ j n + N t N b   S c   R e M 2 1 N 2 θ j n γ ϕ j n + b 1 S c   R e M 2 1 N 2 ϕ ¯ j n + 1 + N t N b   S c   R e M 2 1 N 2 θ ¯ j n + 1 γ ϕ ¯ j n + 1

4.2. Why This Scheme Is Powerful

The proposed numerical scheme combines the efficiency of an explicit Runge–Kutta-type time integrator with enhanced stability and accuracy through a novel predictor–corrector modification. Unlike traditional explicit methods, the scheme incorporates exponential damping in the predictor stage, allowing it to better handle stiffness and sharp gradients without sacrificing computational simplicity. Using time-stepping coefficients tuned by a Taylor series expansion, it is possible to achieve second-order time accuracy with the same stability region as any classical Runge–Kutta method. Furthermore, sampling compact high-order finite difference schemes for spatial discretization yields spectral-like resolution with a very narrow stencil width, thereby achieving much greater accuracy in resolving near-wall gradients, which are important for computing engineering quantities such as skin friction and the Sherwood number. The modular design of the scheme makes it easy to couple to nonlinear rheological models, such as the Williamson fluid, and to other physics, such as thermophoresis, Brownian motion, and MHD effects. The scheme is a highly effective and robust model for complex unsteady transport flows in non-Newtonian nanofluid systems, thanks to its adaptability, accuracy, and low computational cost.

4.3. Physical Relevance to Real-World Williamson Nanofluid Problems

The mathematical model and calculational framework currently in place are physically applicable to numerous real-life transport processes of shear-thinning nanofluids. The Williamson fluid model is a good model for describing the rheological behavior of a wide variety of real-world fluids that exhibit decreasing viscosity with increasing shear rate, including polymer solutions, biological fluids (blood), lubricants, and food suspensions. The inclusion of nanoparticle dynamics, including Brownian motion and thermophoresis, underscores the use of nanoparticles in modern nanofluid applications to enhance heat and mass transfer. The magnetic field term encompasses magnetohydrodynamic control, which is widely used in electromagnetic pumps, cooling of electronic equipment, and stabilization of flow in conductive fluids. Temperature and concentration gradient buoyancy forces are critical in modeling natural and mixed convection in solar collectors, chemical reactors, and environmental flows. Furthermore, the velocity slip condition at the surface is particularly pertinent to micro- and nanoscale systems, e.g., microfluidic devices and surfaces with coatings, where classical no-slip conditions do not hold. The suggested values of transport, such as the coefficient of the skin friction and the Sherwood number, give the straight engineering intuition on the nature of the drag and the efficiency of a mass transfer, which makes the proposed framework applicable to the biomedical transport, thermal management, polymer processing, and heat and mass transfer systems based on nanotechnology.

5. Results and Discussion

We conduct a comprehensive simulation study with the following aims:
  • A numerical scheme is proposed for solving time-dependent partial differential equations, with a focus on nonlinear unsteady nanofluid flows. The scheme is structured to discretise only the temporal derivative terms, allowing it to be paired with various spatial discretization techniques.
  • Spatial discretization is performed using a high-order compact finite difference scheme with a three-point stencil, achieving fourth- or sixth-order accuracy and effectively resolving near-wall gradients.
  • The compact schemes are derived via Taylor series expansions and are well established for high-precision convection–diffusion problems.
  • A modified explicit two-stage time integrator is proposed, in which an exponential predictor replaces the first Runge–Kutta stage to enhance temporal accuracy for stiff and nonlinear systems.
  • The scheme is conditionally stable; the stability analysis confirms a stability region comparable to that of the classical Runge–Kutta method.
  • Being an explicit approach, it does not use iterative solvers or matrix inversion, minimizing computational costs and implementation complexity.
  • In nonlinear systems, explicit methods might be more accurate than large-step implicit methods, although explicit schemes only need small time steps to be stable.
  • The proposed framework is applied to the dimensionless Williamson nanofluid model (Equations (48)–(51)), yielding velocity, temperature, and concentration profiles for a detailed parametric analysis of heat and mass transfer.
Remark 1. 
It is well known that high-order central or compact finite difference schemes may produce non-physical oscillations in strongly advection-dominated problems with very large Peclet numbers [38,43]. In such cases, stabilization techniques such as upwind discretization or flux-limiter methods are often used to control numerical oscillations.

5.1. Velocity Profile Analysis

The effect of the Hartmann number H a on the velocity profile u ( y ) in an unsteady Williamson nanofluid flow over a flat or vibrating plate is shown in Figure 2. Fixed values of Λ = 5 (velocity slip), W e = 0.04 (Williamson number), R e = 5 (Reynolds number), N t = N b = 0.1 (thermophoresis and Brownian motion parameters), G r T = G r C = 0.1 (thermal and solutal Grashof numbers), E c = 0.1 (Eckert number), P r = 3 (Prandtl number), S c = 3 (Schmidt number), and γ = 0.1 (chemical reaction rate) are used to give the simulation. A significant reduction in fluid velocity is observed throughout the boundary layer as the Hartmann number increases from 0.1 to 2.4. This is because the Lorentz force from the applied magnetic field effectively acts as a resistive drag force against the flow of the electrically conducting fluid. The higher the value of H a , the higher the magnetic damping, the thinner the boundary layers and the weaker the surface fluid motion. This fact is in line with the physics of magnetohydrodynamics (MHD), in which the Lorentz force minimizes momentum transport and slows the fluid. One can also tell in the plot that the velocity profile near the wall is stiffer than H a , that is, the shear stress on the wall, which is directly proportional to the skin friction coefficient. This figure emphasizes the role of magnetic field strength in controlling the velocity field in MHD nanofluid flows, with applications in flow control, magnetic drug targeting, and electromagnetic cooling systems.
Figure 3 presents the influence of the Williamson number W e on the velocity profile u ( y ) for unsteady nanofluid flow over a plate, under fixed physical parameters: Λ = 5 (velocity slip), H a = 0.1 (Hartmann number), N t = N b = 0.1 (thermophoresis and Brownian motion parameters), R e = 5 (Reynolds number), G r T = G r C = 0.1 (thermal and solutal Grashof numbers), E c = 0.1 (Eckert number), P r = 3 , S c = 3 , and γ = 0.1 (chemical reaction rate). The plot compares velocity profiles for three values of the Williamson number: W e = 0.04 , W e = 1.4 , and W e = 4.0 . As W e increases, the velocity profile noticeably decreases throughout the boundary layer, indicating a reduction in flow momentum. This is indicative of the non-Newtonian shear-thinning of the Williamson fluid model: increased W e values imply increased nonlinearity and increased shear-thinning, i.e., the fluid’s resistance to shear deformation, effectively slowing the flow velocity. There is a decrease in momentum diffusion and a reduction in the boundary layer thickness. This is particularly significant in applications involving polymeric or biofluids, where rheological effects strongly influence flow behavior near solid boundaries. The velocity suppression effect is agreeable to physical intuition: the longer the relaxation time, Γ (embodied in W e ) the longer the delay of the fluid in its response to shear, the smaller will be the fluid motion. Overall, enhancing the Williamson number compromises the flow and strengthens shear-thinning, thereby minimizing wall shear stress and providing a means to manipulate transport in blood flow modeling, polymer extrusion in industry, and nanofluid-powered heat and mass transfer.

5.2. Temperature Profile Analysis

In Figure 4, the impact of a rise in the thermophoresis parameter N t on the dimensionless temperature distribution θ ( y ) across the boundary layer is illustrated. As it is demonstrated, the growth of N t up to 0.3 results in a significant increase in the temperature profile, particularly near the wall and in the thermal boundary layer. Thermophoresis (physically) causes a movement of nanoparticles (away) from the hot surface to cooler parts. Through this particle motion, more energy is lost out of the wall, and the effect is the retarding of the thermal diffusion process, which means that more thermal energy is retained close to the wall. As a result, local temperature gradients are reduced, and the overall temperature profile is brought higher with increased N t . Such an improvement in the thermal field with the help of N t is essential in nanofluid-based heat transfer systems, where fine adjustments of the thermal layering are necessary. The results imply that the greater the thermophoresis effect, the higher the likelihood of thermal resistance in the area around the wall, which could be either positive or negative, depending on whether one wants thermal insulation or cooling. It is also seen in the plot that the thermal boundary layer becomes thicker with increasing N t .
Figure 5 displays the effects of changing the parameter of Brownian motion, N b , on the temperature distribution θ y in the boundary layer. Fixed values of all the other parameters are used to obtain the results, with N b as the only variable that is varied between 0.1 and 0.4. As indicated in the figure, the temperature profile across the boundary layer increases with an increase in N b . This is because Brownian motion enhances thermal transport in the nanofluid. The higher the N b , the higher the random motion of the suspended nanoparticles, the greater the interaction between the fluid particles and the suspended nanoparticles. This contact will facilitate further exchange of microscopic energy, leading to increased effective thermal conductivity of the fluid and higher temperatures. However, this increased energy distribution contributes to a thicker thermal boundary layer, as heat is spread over a wider area. The predicted thermal behavior of nanofluids can also explain the trend observed under enhanced Brownian motion and is particularly applicable to the design of efficient heat transfer systems that use nanofluids, where controlling thermal layering is important.

5.3. Concentration Profile

In Figure 6, the range of the nanoparticle concentration profile is displayed in relation to varying the Brownian motion parameter N b = 0.1,0.2,0.3 , and the other parameters remain constant. As the graph illustrates, the concentration boundary layer increases with the increase of N b , and the concentration profile becomes more pronounced as the approach to the wall is closer, with the deterioration towards the free stream slower. In the case of lower N b = 0.1 : The concentration profile will begin with a higher concentration towards the wall and will decrease at a steeper rate, which means that nanoparticles will be concentrated more around the surface. Further increasing N b to 0.3 causes the profile to flatten and the concentration distribution to become more widespread across the domain, indicating increased Brownian motion that broadens nanoparticle dispersion. Brownian motion is a contributing factor to the random motion of nanoparticles due to thermal agitation. This randomness is increased by increasing N b and this decreases the concentration gradient near the wall, as particles are more evenly distributed throughout the fluid. This reduces the local Sherwood number, indicating low surface mass transfer rates.

5.4. Different Parameter Analysis

Figure 7 shows how the Williamson number W e varies with time on the skin friction coefficient of a nanofluid flow in unsteady non-Newtonian Williamson fluid dynamics. The surface velocity assumes an oscillatory decaying profile u w = c o s ( 5 t ) e 0.4 t , which is a realistic unsteady boundary condition that occurs in other applications of density control in industry and biofluid physics. The smaller the value of the Williamson number, e.g., W e = 0.04 , the larger the amplitude oscillations of a skin friction profile, with slower decay. Physically, this can be seen as the increased elastic response of the fluid at low W e , in which the fluid is strongly memory-effective and shear-thinning, and the velocity gradients are sharper near the wall. The higher the Williamson number (i.e., to 0.4 and 1.4), the lower the amplitude of oscillations in the skin friction and the wetter the profile becomes. This implies that the fluid would tend towards being Newtonian-like at high W e where the non-Newtonian elasticity is low, decreasing the effects of the wall shear. In general, Figure 6 verifies the fact that the skin friction coefficient of the Williamson nanofluid flow is extremely dependent on the relaxation properties of the fluid, and that the near-wall shear stress behavior can be successfully controlled by adjusting the Williamson number under the oscillatory driving forces.
Figure 8 shows how the local Nusselt number changes with time at various values of the Eckert number E c , which reflects the impact of the viscous dissipation on the nature of heat transfer in the unsteady Williamson nanofluid flow over an oscillatory plate. According to the plot, the local Nusselt number decreases as E c does. Physically, a larger Eckert number implies greater viscous dissipation, which adds thermal energy to the fluid due to internal friction, thereby increasing the local fluid temperature. This rise in the temperature gradient within the thermal boundary layer reduces the rate of heat transfer at the surface, lowering the Nusselt number. Also, oscillatory behavior in the case of lower E c smooths out with increasing E c , which implies a stabilizing influence of the accumulation of thermal energy. This phenomenon illustrates the importance of dissipative heating in thermal boundary layer modulation, especially in high-velocity or highly viscous flows, where the conversion of kinetic energy into internal energy is high.
Figure 9 illustrates how the local Sherwood number (a measure of mass transfer at the surface) is influenced by varying the thermophoresis parameter N t , with other parameters fixed as shown in the caption of the Figure, and a time-dependent stretching velocity u w = c o s ( 5 t ) e 0.4 t . The higher the N t As the increment between 0.1 and 0.5, the higher the amplitude of oscillations in the Sherwood number that occurs close to the surface (the initial time zone). The first peak and trough values increase with thermophoresis, indicating that nanoparticle movement increases with thermal gradients. With time, the oscillations dissipate and approach an equilibrium state, although the ultimate amplitude is a little smaller with increasing N t , which means that increasing thermophoretic strength in the medium decreases mass transfer to the wall in the long run. Physically, an increase in N t increases nanoparticle transport at the wall in response to a temperature gradient, thereby decreasing the surface concentration gradient and, in turn, the Sherwood number.

5.5. Contour Plot for Velocity, Temperature, and Concentration Profiles

Figure 10, Figure 11 and Figure 12 present contour plots of the velocity, temperature, and nanoparticle concentration fields for unsteady Williamson nanofluid flow under the influence of mixed convection and Riga plate actuation. These contours are generated for the parameter set Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 , with domain length y L =   17 and a wall velocity function u w = c o s ( 5 t ) e 0.4 t . In Figure 9, the velocity contours exhibit strong near-wall oscillations and periodic wavefronts that gradually dissipate away from the wall, indicating the dominant influence of the time-oscillating Lorentz force generated by the Riga plate. The disturbance decays in the transverse direction, showcasing the effectiveness of the magnetic control near the surface. Figure 10 shows the temperature contours, in which the heat field slowly diffuses from the wall into the fluid domain. The gradual gradient and the presence of red-yellow areas that are prevalent in proximity to the wall imply high temperature areas because of viscous dissipation E c   =   5 and thermal conduction. The shift between warm and cold regions is consistent with conductive heat transfer in nanofluids, which depends on Brownian motion and thermophoresis. The slow temperature gradient demonstrates the damping effect on the velocity field’s oscillations, thereby enhancing the homogenization of the thermal field.
Figure 11 shows that the contours of nanoparticle concentration are relatively diffuse, with a high-concentration region developing near the wall and spreading outward. The thermophoresis N t =   0.5 and Brownian motion N b =   0.1 causes nanoparticles to move out of the hot area (wall) into the cooler fluid, replacing the individual red-blue lobes. The oscillatory zones around the wall also indicate that particle transport is not steady due to fluctuations in the velocity and activity of the oscillatory plates. Combining these numbers allows one to emphasize the intertwined nature of flow, thermal, and mass transfer processes in non-Newtonian nanofluid conditions and to assess the validity of the suggested numerical framework for tackling the complex spatiotemporal dynamics.

5.6. Computational Time for the Proposed Scheme

The contour plot of the computational time distribution of the developed hybrid numerical scheme to solve the system of governing Equations (48)–(51) under the impact of thermophoresis, magnetic field, viscous dissipation, and oscillatory stretching to the unsteady Williamson nanofluid flow is given in Figure 13. Simulations are done using the parameter set (see the captions to the figures). The horizontal axis is likely to use time steps or simulation time, and the vertical axis is likely to use spatial position or an internal iteration count. The color bar indicates a value gradient from blue (less time to compute) to red (more time to compute), so the areas of the domain where the scheme required more processing resources are shown in red. The uniform distribution of the domain shows that the computational load and stability of the proposed scheme are even. The contours’ flow and the lack of sharp elevations and shape arrangement point to a regular flow of time and a good grid resolution throughout the environment. The red area on the right-hand side indicates that regions of time-space might require greater computational power due to time effects, boundary layers, or nonlinear term interactions. This is why the scheme’s computational efficiency, stability, and scalability on a medium-sized grid are justified. The gradients consistently indicate that the method is robust even in the presence of exponential decay and periodic forcing. Therefore, the contour plot justifies the feasibility of applying this mixed numerical approach to complex Williamson nanofluid problems in two real-life industries and biomedical applications.

5.7. Convergence Comparison of the Proposed Scheme and Runge–Kutta Method for Stokes First Problem

Figure 14 shows a quantitative comparison between the Runge–Kutta method and the proposed computational scheme with respect to the computed error norm at a final time of simulation of t f = 1 . The first Stokes problem is tested using the two methods under the same conditions; it is a classical unsteady fluid-dynamics problem used to test time-integration methods. The spatial discretization in both cases is carried out using a second-order central difference scheme, ensuring consistent spatial accuracy and isolating differences solely to time integration. The graph shows that both schemes exhibit decreasing error with mesh refinement (as desired in convergent methods). Still, the proposed scheme always gives smaller error norms than the classical Runge–Kutta method. The outcome highlights the new scheme’s increased accuracy in resolving transient dynamics, particularly in problems where part of the flow regime is dominated by diffusion, such as the Stokes problem. The increased accuracy of the proposed method can be explained by the refined first-stage time predictor, which is mathematically defined as
f ¯ j n + 1 = f j n e 15 Δ t + 1 e 15 Δ t 15 𝜕 f 𝜕 t j n + 15 f j n
It is an exponential decomposition of the decay term that integrates both the instantaneous value and the time derivative from the previous step, thereby improving the method’s ability to reproduce short-time dynamics with greater accuracy. The coefficient 15 in the exponential and derivative-weighted average indicates the problem’s physical or numerical stiffness and is used to accelerate convergence. In general, the reduction in errors caused by the proposed scheme is stronger at coarser time steps, indicating robustness and efficiency, particularly in problems where high accuracy is needed but fine discretization is too costly to compute. Such a performance advantage is necessary for real-time simulations or for extending the scheme to a nonlinear or coupled system.
Remark 2. 
The modified Runge–Kutta scheme developed in the preceding sections is employed to obtain high-fidelity numerical solutions of the governing Williamson nanofluid flow equations. The resulting simulation dataset is subsequently used to train an artificial neural network (ANN), which acts as a surrogate model for predicting the skin friction coefficient and the local Sherwood number without repeatedly solving the PDE system.

6. Neural Network-Based Surrogate Model

To effectively forecast the transport behavior of Williamson nanofluid flow, a neural network surrogate model is constructed to approximate the skin friction coefficient and the local Sherwood number. The surrogate model is designed to capture the complex nonlinear interactions among governing parameters and transport responses without resorting to repeated numerical simulations. The non-Newtonian Williamson rheology, the dynamics of nanoparticle diffusion, and the viscous dissipation are thoroughly represented and trained using high-fidelity numerical data derived from the coupled momentum, energy, and species-concentration equations. The Reynolds number, thermophoresis parameter, Brownian motion parameter, Prandtl number, and Schmidt number are input parameters that strongly influence the behavior of wall shear stress and mass transfer. The network outputs will be the skin-friction coefficient and the local Sherwood number, which are significant parameters for drag and mass transfer. Following training, the neural network surrogate can predict these transport quantities with great accuracy solely from the input parameters, without necessarily solving the transport equations governing each quantity, each with its own set of parameters. It is a numerical model that offers significant savings in computation and execution time, particularly in large parameter studies, optimization, and real-time prediction. The surrogate model is also modular and easily generalizes to other non-Newtonian nanofluid flow types, including heat and mass transfer; therefore, it is a versatile and effective technique for studying fluid transport.

6.1. Neural Network Configuration and Training Protocol

The artificial neural network (ANN) model is built using a feedforward multilayer perceptron (MLP) framework optimized for regression. The network architecture and training process are configured as follows:
  • Input Layer: Five neurons corresponding to input parameters R e , N t , N b , P r , S c ;
  • Hidden Layers: Two hidden layers, each consisting of 10 neurons;
  • Activation Functions: tansig (hyperbolic tangent sigmoid) for hidden layers, and purelin (linear) for output layer;
  • Output Layer: Two neurons representing the predicted values of C f and S h .
Training is carried out using the Levenberg–Marquardt backpropagation algorithm, known for its efficiency in nonlinear function approximation. The model is trained for up to 500 epochs, with early stopping based on validation performance to avoid overfitting.
Training methodology includes:
  • Data Partitioning: 70% training, 15% validation, and 15% testing;
  • Loss Function: Mean Squared Error (MSE);
  • Regularization: Coefficient μ [ 10 8 , 10 7 ] to improve generalization;
  • Cross-validation: Applied to ensure robust predictive performance.
Each data point used for training corresponds to one simulation case with fixed flow parameters (e.g., Λ = 5 , H a = 0.1 , E c = 5 , W e = 0.1 , γ = 0.1 , G r T = 0.1 , G r C = 0.1 ) while the core input parameters are varied. The resulting outputs C f and S h are used to teach the network the underlying nonlinear response of the system.

6.2. Model Performance Evaluation

To validate the surrogate model’s performance, the following metrics and tools were used:
  • Root Mean Square Error (RMSE):
RMSE = 1 N i = 1 N y i pred y i true 2
where y i pred and y i true denote the predicted and actual values, respectively.
  • Visual Evaluation:
    Regression plots for both C f and S h ;
    Error histograms and residual scatter plots.
In the regression plots, the surrogate model shows a low RMSE and high correlation, confirming its ability to capture the nonlinear dynamics of Williamson nanofluid flow. This capability makes the model well-suited for:
  • Real-time parametric studies;
  • Sensitivity analysis;
  • Inverse design and control applications.
The developed ANN surrogate model thus offers a computationally efficient and accurate approach for estimating surface transport quantities in non-Newtonian nanofluid systems, eliminating the need for repeated expensive numerical simulations.

6.3. Schematic Illustration of the Artificial Neural Network (ANN) for Flow Prediction

The architecture of the feedforward ANN was utilized as a surrogate model to estimate the surface transport characteristics, e.g., the skin friction coefficient C f and the local Sherwood number S h of the Williamson nanofluid flow are shown in Figure 15. The input layer is made of five neurons that represent major non-dimensional parameters affecting the flow, i.e., Reynolds number R e , Prandtl number P r , Schmidt number S c , Brownian motion parameter N b , and the thermophoresis parameter N t . The two hidden layers, fully connected and consisting of 10 neurons each, form the hidden structure, with the tansig (hyperbolic tangent sigmoid) activation function to model the nonlinear relationship between the inputs and outputs. The third layer is the output layer, which has two neurons with a purelin (linear) activation function that generates the predicted values of C f and S h . The high-fidelity numerical simulation data are used to train this surrogate ANN model.

6.4. Prediction of Skin Friction Coefficient and Local Sherwood Number Using ANN

Figure 16 demonstrates the prediction performance of a trained ANN model in estimating two critical surface transport metrics: the skin friction coefficient C f and the local Sherwood number S h . The figure consists of two subplots: Left plot: ANN-predicted vs. true values for skin friction coefficient. Right plot: ANN-predicted vs. true values for local Sherwood number. Simulation and Input Parameters: The ANN model was trained using high-fidelity data generated by solving the governing equations for Williamson nanofluid flow over a Riga plate under the following physical parameters: Λ = 5 , H a = 0.1 , E c = 5 , G r T = 0.1 , G r C = 0.1 , W e = 0.1 , γ = 0.1 The input parameters to the ANN include: the Reynolds number: R e = 50 + w 1 ; Prandtl number: P r = 0.7 + w 2 ; Schmidt number: S c = 0.6 + w 3 ; Brownian motion parameter: N b = 0.01 + w 4 ; and thermophoresis parameter:
N t = 0.01 + w 5
where w j   for j = 1,2 , , 5 are vectors of random perturbations ensuring generalization. The wall velocity function is time-dependent, u w = c o s ( 5 t ) e 0.4 t , and the computational domain height is y L = 17 . Skin friction coefficient (left plot): The predicted values are closely aligned along the 45-degree reference line, indicating excellent agreement between the ANN model and the numerical solver. Local Sherwood number (right plot): Similarly, the predictions for the Sherwood number cluster around the ideal diagonal line with small deviations, confirming the ANN’s ability to generalize across varied input scenarios. These plots validate the ANN as an efficient surrogate model capable of replacing computationally expensive numerical solvers for rapid prediction tasks in complex non-Newtonian nanofluid flow systems with high accuracy.

6.5. Neural Network Training Performance

The development of the Mean Squared Error (MSE) during the neural network-based surrogate model’s training epochs is shown in Figure 17. The curves show the training, validation, and test datasets, and the green line shows the best validation (minimum validation MSE), which occurs around the 6th epoch. The experimental setup consists of simulations with Λ = 5 , H a = 0.1 , E c = 5 , G r T = 0.1 , G r C = 0.1 , W e = 0.1 , γ = 0.1 , and randomized vectors added to R e , P r , S c , N b , and N t , and a large number of possibilities are simulated to improve generalization. First, the MSE decreases rapidly across all datasets, indicating rapid learning and successful error reduction. The training error keeps decreasing with the number of epochs, indicating that the network is learning from the information. However, the validation and test errors level off after some epochs and stabilize, showing no overfitting. The early stopping rule is applied when the validation loss stops decreasing, so that pre-training is not performed to the point where the model will not generalize well. The network consistently achieves low errors across all sets, demonstrating that the ANN is an effective predictor of the skin friction coefficient and Sherwood number in a changing flow and thermophysical regime of the Williamson nanofluid.

6.6. Error Histogram for Surrogate Model Prediction

Figure 18 presents the error histogram evaluating the performance of the ANN surrogate model in predicting the skin friction coefficient and the local Sherwood number under varying parameter perturbations. These perturbations are introduced via random vectors w j in key input parameters such as the Reynolds number ( R e = 50 + w 1 ), Prandtl number ( P r = 0.7 + w 2 ), Schmidt number ( S c = 0.6 + w 3 ), Brownian motion parameter ( N b = 0.01 + w 4 ), and thermophoresis parameter ( N t = 0.01 + w 5 ), while all other governing physical parameters (e.g., Λ = 5 , H a = 0.1 , E c = 5 , etc.) are held constant. In this histogram:
  • The x-axis represents the range of prediction errors (i.e., differences between true and predicted values).
  • The y-axis shows the number of instances (data samples) corresponding to each error bin.
  • The bars are color-coded: blue for training data, green for validation data, and red for test data.
  • The orange vertical line denotes the zero-error mark, i.e., perfect prediction.
The histogram reveals that:
  • A majority of errors are centered around zero, indicating that the model performs with high precision.
  • Most predictions fall into narrow error bins near the zero line, especially for the training data, suggesting that the ANN has effectively learned the underlying data distribution.
  • The validation and test errors also show a tight distribution near zero, indicating strong generalization and minimal overfitting.
  • The presence of only a few outlier bins with higher error magnitudes reflects occasional deviations, likely due to nonlinear interactions under certain random parameter combinations.
In general, this error histogram validates the accuracy, reliability, and strength of the trained ANN surrogate model in predicting the nonlinear relationship between input parameters and output physical quantities, i.e., shear stress and mass transfer rate in unsteady Williamson nanofluid flow.

6.7. Regression Performance of Neural Network Model

Figure 19 shows the regression efficiency of the trained ANN model in predicting two important physical quantities: the skin friction coefficient and the local Sherwood number for unsteady Williamson nanofluid flowing under oscillatory wall conditions. An ANN model is experimented with a dataset created by taking high-fidelity numerical simulations, whereby five input parameters R e , P r , S c , N b , and N t are perturbed by incorporating randomized perturbations w j (where j = 1,2 , . . . , 5 ). The other physical parameters are given: Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   y L = 17 ,   a n d   u w = c o s ( 5 t ) e 0.4 t . The figure’s subplots correspond to the various dataset splits: training (top-left), validation (top-right), testing (bottom-left), and combined data (bottom-right). The black circles indicate the real (target) values of the numerical solver, and the colored regression line indicates the values predicted by the ANN. The dotted line Y = T is the optimum reference line where the forecasts get the exact figures. The training regression plot (blue line) shows almost a perfect linear fit, indicating that the underlying data patterns are well learned. Nonetheless, the validation (green) and test (red) plots exhibit greater scatter and move farther from the optimal line, at least towards high magnitudes, suggesting some small underfitting or sparse data in those areas. The total regression (black line) continues to exhibit strong generalization, maintaining continuous alignment near the Y = T line. This analysis verifies that the ANN model accurately predicts skin friction and the Sherwood number across a wide range of parametric variables, while also identifying areas where additional training samples could improve resilience.
The ANN architecture emerged from comparative experimentation with several architectures and different hidden-layer sizes and activation functions. To achieve the right bias-variance trade-off, validation RMSE and regression performance were used to select the model. The surrogate model is interpolative within the sampled parameter space and is not intended to extrapolate beyond the training space.
The inputs were zero-centered to avoid gradient saturation during the tansig activation function. The medium network size had guaranteed approximately steady conditioning of the Levenberg–Marquardt Hessian approximation. While the current architecture performs efficiently for moderate dataset sizes, extending it to high-dimensional parameter spaces or large-scale datasets may require alternative optimization strategies.

7. Conclusions

This research paper presented a cohesive computational and artificial intelligence model for numerical analysis and the effective prediction of transport phenomena in Williamson nanofluid flow. An explicit two-step Runge–Kutta scheme, with a modified version, was developed to solve time-dependent convection–diffusion partial differential equations. The suggested time integration scheme is a modification of the initial step of the classical Runge–Kutta scheme, resulting in a decrease in numerical error with the same stability region as the conventional scheme, provided the time-step sizes are appropriately chosen.
The suggested scheme was to be combined with a high-order compact finite-difference spatial discretization that provided higher resolution and accuracy for nonlinear transport problems. Both scaling equations and systems of convection–diffusion equations were tested for strict stability and convergence, confirming that the numerical method was reliable and robust. The comparison indicated that the proposed scheme is convergent and stable, and that its results are superior to those of the classical Runge–Kutta schemes.
It relied on a numerical model of Williamson nanofluid flow based on surface heat and mass transfer on a dimensionless basis. The resulting simulations provided an in-depth analysis of the dynamics of velocity, temperature, and nanoparticle concentration. The parametric tests also showed that, at a high Williamson number, shear-thinning behavior is severely disrupted, leading to a reduction in flow velocity. On the other hand, higher Hartmann numbers slow down the flow due to greater magnetic damping. In addition, the parameters of thermophoresis and Brownian motion were found to be essential for controlling nanoparticle concentration distribution and mass transfer.
In addition to numerical simulation, an AI-based predictive model was constructed to estimate the skin friction coefficient and the local Sherwood number using key physical input parameters, including the Reynolds number, Prandtl number, Schmidt number, thermophoresis parameter, and Brownian motion parameter. The AI model was found to be highly predictive, reflecting numerical trends at a much lower computational cost. This underscores the usefulness of data-driven methods as an efficient proxy of recurrent high-fidelity numerical simulations. The final arguments can be made as follows:
  • The hybrid numerical method that uses the modified exponential integrator with a compact finite difference scheme has a superior performance to the classical Runge–Kutta method in terms of nonlinearities and stiffness in the governing equations, convergence, and computational cost.
  • This proves to be crucial since machine learning combined with high-order numerical solvers can realize the real-time prediction and parametric sensitivity analysis of complex non-Newtonian nanofluid systems; this will lead to AI-based design optimization of thermal-fluid systems.
  • The regression and error histogram plots demonstrate the validity of the ANN-based surrogate model, with low RMSE and close concentration around the optimal prediction line, indicating that it can be used for high-fidelity numerical simulations.
  • The error plots and regression diagrams of the training, validation, and testing data sets show that the accuracy of the predictions is directly related to the diversity and the balance of training samples, which highlights the importance of the creation of representative datasets in the form of tables at the stage of surrogate model design.
In general, the findings support the supposition that the proposed modified Runge–Kutta scheme is an effective, accurate, and computationally efficient method for modeling the transport of nonlinear non-Newtonian nanofluids. The incorporation of artificial intelligence also contributes to greater practical use of the framework, enabling rapid prediction of engineering quantities of interest.
It can be anticipated that the current approach will be generalized to fractional- and fractal-time models, turbulent flow regimes, and three-dimensional configurations. Also, the introduction of experimental data to train AI models and investigate more sophisticated deep learning designs may enhance predictive precision and expand the range of proposed solutions.

Author Contributions

Conceptualization, methodology, and analysis, Y.N.; funding acquisition, N.K.; investigation, M.S.A.; methodology, M.B.; project administration, N.K.; resources, M.B.; supervision, M.S.A.; visualization, N.K.; writing—review and editing, M.S.A.; proofreading and editing, N.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported and funded by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University (IMSIU) (grant number IMSIU-DDRSP2603).

Data Availability Statement

The manuscript included all required data and the implementation of information.

Acknowledgments

This research was supported and funded by the Deanship of Scientific Research, Imam Mohammad Ibn Saud Islamic University (IMSIU), Saudi Arabia.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kumar, V.V.; Shekar, M.R.; Bejawada, S.G. Thermo-diffusion, diffusion-thermo impacts on heat and mass transfer casson fluid flow with porous medium in the presence of heat generation and radiation. Partial Differ. Equ. Appl. Math. 2025, 13, 101039. [Google Scholar] [CrossRef]
  2. Nadeem, M.; Alam, M.A.; Ali, N.; Elashiry, M. An algebraic approach of topological indices connected with finite quasigroups. J. Funct. Spaces 2024, 2024, 1948465. [Google Scholar] [CrossRef]
  3. Abdal, S.; Ajmal, M.; Prasannakumara, B.; Shah, N.A.; Zulqarnain, R.M.; Yook, S.-J. Significance of nanoparticles concentration for heat and mass transfer of ellis fluid dynamics across a stretching wall. J. Therm. Anal. Calorim. 2025, 150, 4617–4629. [Google Scholar] [CrossRef]
  4. Nandeppanavar, M.M.; Jagadevappa, V. Mathematical analysis of gyrotactic microorganisms swim in non-Newtonian nanofluid slip flow, convective heat and mass transfer due to stretching sheet. Proc. Inst. Mech. Eng. Part N J. Nanomater. Nanoeng. Nanosyst. 2025, 23977914251350600. [Google Scholar] [CrossRef]
  5. Benaissa, M.; Ullah, Z.; Dahshan, A.; Alam, M.M.; Abualnaja, K.M.; Abu-Zinadah, H.; Faqihi, A.A.; Khedher, N.B. Heat and mass transfer performance of power-law nanofluid flow with thermal radiation and joule heating aspects: Surface heat flux analysis. Case Stud. Therm. Eng. 2025, 67, 105843. [Google Scholar] [CrossRef]
  6. Ahmad, W.; Rehman, M.I.U.; Hamid, A.; Hou, M. Numerical investigation of bioconvection flow of Sutterby nanofluid with Darcy–Forchheimer porous media past an inclined stretching cylinder. Eur. Phys. J. Plus 2024, 139, 842. [Google Scholar] [CrossRef]
  7. Rehman, M.I.U.; Hamid, A.; Xiaoping, W.; Qi, H. Magnetohydrodynamic and thermal radiation effects with stability analysis on shear-thinning Williamson nanofluid by using response surface methodology. J. Therm. Anal. Calorim. 2025, 150, 16685–16700. [Google Scholar] [CrossRef]
  8. Nabwey, H.A.; EL-Hakiem, A.; Khan, W.A.; Rashad, A.; Awad, M.M. Heat and mass transfer of non-Newtonian nanofluids in assisting/reverse flow over shrinking/stretching surfaces in porous media. Multiscale Multidiscip. Model. Exp. Des. 2025, 8, 225. [Google Scholar] [CrossRef]
  9. Zeeshan, A.; Yousif, M.A.; Khan, M.I.; Latif, M.A.; Ali, S.S.; Mohammed, P.O. Non-similar analysis of boundary layer flow and heat transfer in non-Newtonian hybrid nanofluid over a cylinder with viscous dissipation effects. Energies 2025, 18, 1660. [Google Scholar] [CrossRef]
  10. Molla, M.M.; Hasan, M.F.; Islam, M.M. Elucidating thermal phenomena of non-Newtonian experimental data based copper-alumina-ethylene glycol hybrid nanofluid in a cubic enclosure with central heated plate by machine learning validations of D3q27 MRT-LBM. Int. J. Thermofluids 2025, 26, 101033. [Google Scholar] [CrossRef]
  11. Galal, A.M.; Obalalu, A.M.; Akindele, A.O.; Khan, U.; Usman, A.A.; Olayemi, O.A.; Khashi’ie, N.S. Thermal Performance of Entropy-Optimized Tri-Hybrid Nanofluid Flow within the Context of Two Distinct Non-Newtonian Models: Application of Solar-Powered Residential Buildings. Comput. Model. Eng. Sci. 2025, 142, 3089–3113. [Google Scholar]
  12. Naidu, K.K.; Babu, D.H.; Reddy, S.H.; Narayana, P.V.S. Magneto-stefan blow enhanced heat and mass transfer flow in non-Newtonian ternary hybrid nanofluid across the non-linear elongated surface. Numer. Heat Transf. Part B Fundam. 2025, 86, 1463–1482. [Google Scholar]
  13. Graish, M.S.; Ali, A.B.; Al-Zahiwat, M.M.; Alardhi, S.M.; Baghoolizadeh, M.; Salahshour, S.; Pirmoradian, M. Prediction of the viscosity of iron-CuO/waterethylene glycol non-Newtonian hybrid nanofluids using different machine learning algorithms. Case Stud. Chem. Environ. Eng. 2025, 11, 101180. [Google Scholar] [CrossRef]
  14. Hazzazi, M.M.; Nadeem, M.; Kamran, M.; Cangul, I.N.; Akhter, J. Holomorphism and edge labeling: An inner study of latin squares associated with antiautomorphic inverse property moufang quasigroups with applications. Complexity 2024, 2024, 8575569. [Google Scholar] [CrossRef]
  15. Ahmad, W.; Rehman, M.I.U.; Hamid, A.; Hou, M. Heat and mass transfer analysis for thermally radiative Sutterby fluid along a stretching cylinder with Cattaneo–Christov heat flux theory. J. Therm. Anal. Calorim. 2025, 150, 2961–2973. [Google Scholar] [CrossRef]
  16. Choi, S.U.S. Enhancing thermal conductivity of fluid with nanoparticles. In Proceedings of the ASME 1995 International Mechanical Engineering Congress and Exposition, San Francisco, CA, USA, 12–17 November 1995; Volume 231, pp. 99–105. [Google Scholar] [CrossRef]
  17. Rashid, U.; Baleanu, D.; Iqbal, A.; Abbas, M. Shape effect of nanosize particles on magnetohydrodynamic nanofluid flow and heat transfer over a stretching sheet with entropy generation. Entropy 2020, 22, 1171. [Google Scholar] [CrossRef] [PubMed]
  18. Alali, E.; Megahed, A.M. MHD dissipative Casson nanofluid liquid film flow due to an unsteady stretching sheet with radiation influence and slip velocity phenomenon. Nanotechnol. Rev. 2022, 11, 463–472. [Google Scholar] [CrossRef]
  19. Abbas, W.; Ibrahim, M.A.; Mokhtar, O.; Megahed, A.M.; Said, A.A.M. Numerical analysis of MHD nanofluid flow characteristics with heat and mass transfer over a vertical cone subjected to thermal radiation and chemical reaction. J. Non-Linear Math. Phys. 2023, 30, 1540–1566. [Google Scholar] [CrossRef]
  20. Amer, A.M.; Ghoneim, N.I.; Megahed, A.M. Investigation of dissipation phenomenon of non-Newtonian nanofluid due to a horizontal stretching rough sheet through a Darcy porous medium. Appl. Eng. Sci. 2024, 17, 100171. [Google Scholar] [CrossRef]
  21. Garvandha, M.; Gajjeia, N.; Naria, V.; Kumar, D. Thermodynamic entropy of a magnetized nanofluid flow over an inclined stretching cylindrical surface. J. Therm. Eng. 2024, 10, 1253–1265. [Google Scholar] [CrossRef]
  22. Ali, L.; Apsari, R.; Abbas, A.; Tak, P. Entropy generation on the dynamics of volume fraction of nanoparticles and Coriolis force impacts on mixed convective nanofluid flow with significant magnetic effect. Numer. Heat Transfer Part A Appl. 2025, 86, 8509–8524. [Google Scholar] [CrossRef]
  23. Mishra, A.; Pathak, G. Thermal-flow characteristics of an Ellis hybrid nanofluid containing polytetrafluoroethylene-SWCNTs over a stretching/shrinking cylinder with slip effect. Nanostruct. Nano-Objects 2025, 43, 101515. [Google Scholar] [CrossRef]
  24. Mishra, A. Analysis of radiative Ellis hybrid nanofluid flow over a stretching/shrinking cylinder embedded in a porous medium with slip condition. Multiscale Multi. Mod. 2025, 8, 282. [Google Scholar] [CrossRef]
  25. Hamad, M.A.A.; Uddin, M.J.; Ismail, A.M. Radiation effects on heat and mass transfer in MHD stagnation-point flow over a permeable flat plate with convective boundary condition. Nucl. Eng. Des. 2012, 242, 194–200. [Google Scholar] [CrossRef]
  26. Khader, M.M.; Megahed, A.M. Differential transformation method for flow and heat transfer due to a stretching sheet embedded in a porous medium. Appl. Math. Mech. 2014, 35, 1387–1400. [Google Scholar] [CrossRef]
  27. Hamid, A.; Khan, M. Unsteady mixed convective flow of Williamson nanofluid in the presence of variable thermal conductivity and magnetic field. J. Mol. Liq. 2018, 260, 436–446. [Google Scholar] [CrossRef]
  28. Jan, S.U.; Khan, U.; El-Rahman, M.A.; Islam, S.; Hassan, A.M.; Ullah, A. Effect of variable thermal conductivity of ternary hybrid nanofluids over a stretching sheet with convective boundary conditions and magnetic field. Results Eng. 2023, 20, 101531. [Google Scholar] [CrossRef]
  29. Khaleque, T.S.; Hossain, A.; Shamshuddin, M.D.; Ferdows, M.; Salawu, S.O.; Sun, S. Soret and Dufour impacts on radiative power-law fluid flow via a continuously stretchablesurface with varying viscosity and thermal conductivity. Sci. Rep. 2024, 14, 23152. [Google Scholar] [CrossRef]
  30. Ly, H.-B.; Nguyen, M.H.; Pham, B.T. Metaheuristic optimization of levenberg–marquardt-based artificial neural network using particle swarm optimization for prediction of foamed concrete compressive strength. Neural Comput. Appl. 2021, 33, 17331–17351. [Google Scholar] [CrossRef]
  31. Zhao, J.; Nguyen, H.; Nguyen-Thoi, T.; Asteris, P.G.; Zhou, J. Improved levenberg–marquardt backpropagation neural network by particle swarm andwhale optimization algorithms to predict the deflection of rc beams. Eng. Comput. 2022, 38, 3847–3869. [Google Scholar] [CrossRef]
  32. Nguyen, H.X.; Cao, H.Q.; Nguyen, T.T.; Tran, T.N.-C.; Tran, H.N.; Jeon, J.W. Improving robot precision positioning using a neural network based on levenberg marquardt–apso algorithm. IEEE Access 2021, 9, 75415–75425. [Google Scholar] [CrossRef]
  33. Ali, M.S.; Ayaz, M.; Mansoor, T. Prediction of discharge through a sharp crested triangular weir using ann model trained with levenberg–marquardt algorithm. Model. Earth Syst. Environ. 2022, 8, 1405–1417. [Google Scholar] [CrossRef]
  34. Rehman, K.U.; Shatanawi, W.; Alharbi, W.G. A Comparative Artificial Neural Networks for Schwarzschild Black Hole (SBH) Radius. Physics Open 2025, 24, 100287. [Google Scholar] [CrossRef]
  35. Rehman, K.U.; Shatanawi, W.; Alharbi, W.G. On non-linear coupled differential equations for corrugated backward facing step (CBFS) with circular obstacle: AI-neural networking. AIMS Math. 2025, 10, 4579–4597. [Google Scholar] [CrossRef]
  36. Quan, X.M.; Xin, Q. Stability and convergence of implicit-explicit Runge-Kutta methods for the reaction-diffusion equation with random diffusion coefficient. Commun. Nonlinear Sci. Numer. Simul. 2025, 155, 109602. [Google Scholar]
  37. D’Afiero, F.M. Embedded Strong Stability Preserving Runge–Kutta methods with adaptive time stepping for shock-dominated Flows. Comput. Fluids 2025, 305, 106916. [Google Scholar] [CrossRef]
  38. LeVeque, R.J. Finite Difference Methods for Ordinary and Partial Differential Equations: Steady-State and Time-Dependent Problems; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2007. [Google Scholar]
  39. Butcher, J.C. Numerical Methods for Ordinary Differential Equations; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  40. Lele, S.K. Compact finite difference schemes with spectral-like resolution. J. Comput. Phys. 1992, 103, 16–42. [Google Scholar] [CrossRef]
  41. Fletcher, C.A. Computational Techniques for Fluid Dynamics 2: Specific Techniques for Different Flow Categories; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  42. Strikwerda, J.C. Finite Difference Schemes and Partial Differential Equations; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2004. [Google Scholar]
  43. Roos, H.G.; Stynes, M.; Tobiska, L. Robust Numerical Methods for Singularly Perturbed Differential Equations: Convection-Diffusion-reaction and Flow Problems; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
Figure 1. Stability comparison between the classical second-order Runge–Kutta scheme and the proposed modified scheme based on amplification factor behavior.
Figure 1. Stability comparison between the classical second-order Runge–Kutta scheme and the proposed modified scheme based on amplification factor behavior.
Axioms 15 00236 g001
Figure 2. Variation in Hartmann number on velocity profile using Λ = 5 ,   W e = 0.04 ,   N t = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Figure 2. Variation in Hartmann number on velocity profile using Λ = 5 ,   W e = 0.04 ,   N t = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Axioms 15 00236 g002
Figure 3. Effect of variation in the Williamson number on velocity profile using Λ = 5 ,   H a = 0.1 ,   N t = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Figure 3. Effect of variation in the Williamson number on velocity profile using Λ = 5 ,   H a = 0.1 ,   N t = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Axioms 15 00236 g003
Figure 4. Effect of variation in the thermophoresis parameter on the temperature profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 , l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Figure 4. Effect of variation in the thermophoresis parameter on the temperature profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N b = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 , l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Axioms 15 00236 g004
Figure 5. Effect of variation in Brownian motion parameter on temperature profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Figure 5. Effect of variation in Brownian motion parameter on temperature profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Axioms 15 00236 g005
Figure 6. Effect of variation in Brownian motion parameter on nanoparticle concentration profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Figure 6. Effect of variation in Brownian motion parameter on nanoparticle concentration profile using Λ = 5 ,   H a = 0.1 ,   W e = 0.1 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 0.1 ,   l   P r = 3 ,   S c = 3 ,   γ = 0.1 .
Axioms 15 00236 g006
Figure 7. Effect of variation in Williamson number on skin friction coefficient using Λ = 5 ,   H a = 0.1 ,   N b = 0.2 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 5 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Figure 7. Effect of variation in Williamson number on skin friction coefficient using Λ = 5 ,   H a = 0.1 ,   N b = 0.2 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   E c = 5 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g007
Figure 8. Variation in Eckert number on local Nusselt number using Λ = 5 ,   H a = 0.1 ,   N b = 0.2 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Figure 8. Variation in Eckert number on local Nusselt number using Λ = 5 ,   H a = 0.1 ,   N b = 0.2 ,   N t = 0.1 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g008
Figure 9. Effect of variation in thermophoresis parameter on local Sherwood number using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Figure 9. Effect of variation in thermophoresis parameter on local Sherwood number using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , P r = 3 ,   S c = 3 ,   γ = 0.1 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g009
Figure 10. Contour plot for velocity profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Figure 10. Contour plot for velocity profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g010
Figure 11. Contour plot for temperature profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Figure 11. Contour plot for temperature profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g011
Figure 12. Contour plot for nanoparticle concentration profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Figure 12. Contour plot for nanoparticle concentration profile using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t .
Axioms 15 00236 g012
Figure 13. Contour plot for computational time for the proposed scheme in solving Equations (48)–(51) using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t ,   n t t i m e   s t e p s = 500 ,   n x g r i d   p o i n t s = 70 .
Figure 13. Contour plot for computational time for the proposed scheme in solving Equations (48)–(51) using Λ = 5 ,   H a = 0.1 ,   N b = 0.1 ,   E c = 5 ,   R e = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   P r = 3 ,   S c = 3 ,   γ = 0.1 ,   N t = 0.5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t ,   n t t i m e   s t e p s = 500 ,   n x g r i d   p o i n t s = 70 .
Axioms 15 00236 g013
Figure 14. Comparison of proposed and existing computational schemes in finding norm of error using t f f i n a l   t i m e = 1 .
Figure 14. Comparison of proposed and existing computational schemes in finding norm of error using t f f i n a l   t i m e = 1 .
Axioms 15 00236 g014
Figure 15. Schematic illustration of the artificial neural network (ANN) for flow prediction.
Figure 15. Schematic illustration of the artificial neural network (ANN) for flow prediction.
Axioms 15 00236 g015
Figure 16. Prediction of skin friction coefficient and local Sherwood number using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j , j = 1,2 , , 5 are vectors of random numbers.
Figure 16. Prediction of skin friction coefficient and local Sherwood number using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 , γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j , j = 1,2 , , 5 are vectors of random numbers.
Axioms 15 00236 g016
Figure 17. Mean square error over epochs using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1 , 2 , , 5 are vectors of random numbers.
Figure 17. Mean square error over epochs using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1 , 2 , , 5 are vectors of random numbers.
Axioms 15 00236 g017
Figure 18. Error histogram using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1,2 , , 5 are vectors of random numbers.
Figure 18. Error histogram using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1,2 , , 5 are vectors of random numbers.
Axioms 15 00236 g018
Figure 19. Regression plot using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1,2 , , 5 are vectors of random numbers.
Figure 19. Regression plot using Λ = 5 ,   H a = 0.1 ,   E c = 5 ,   G r T = 0.1 ,   G r C = 0.1 ,   W e = 0.1 ,   γ = 0.1 ,   R e = 50 + w 1 ,   P r = 0.7 + w 2 ,   S c = 0.6 + w 3 ,   N b = 0.01 + w 4 ,   N t = 0.01 + w 5 ,   y L = 17 ,   u w = c o s 5 t e 0.4 t , where w j ,   j = 1,2 , , 5 are vectors of random numbers.
Axioms 15 00236 g019
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Nawaz, Y.; Kerdid, N.; Arif, M.S.; Bibi, M. Data-Driven Prediction of Surface Transport Quantities in Williamson Nanofluid Flow via Hybrid Numerical Neural Approach. Axioms 2026, 15, 236. https://doi.org/10.3390/axioms15030236

AMA Style

Nawaz Y, Kerdid N, Arif MS, Bibi M. Data-Driven Prediction of Surface Transport Quantities in Williamson Nanofluid Flow via Hybrid Numerical Neural Approach. Axioms. 2026; 15(3):236. https://doi.org/10.3390/axioms15030236

Chicago/Turabian Style

Nawaz, Yasir, Nabil Kerdid, Muhammad Shoaib Arif, and Mairaj Bibi. 2026. "Data-Driven Prediction of Surface Transport Quantities in Williamson Nanofluid Flow via Hybrid Numerical Neural Approach" Axioms 15, no. 3: 236. https://doi.org/10.3390/axioms15030236

APA Style

Nawaz, Y., Kerdid, N., Arif, M. S., & Bibi, M. (2026). Data-Driven Prediction of Surface Transport Quantities in Williamson Nanofluid Flow via Hybrid Numerical Neural Approach. Axioms, 15(3), 236. https://doi.org/10.3390/axioms15030236

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop