key: cord-0709015-0k9y5cw8 authors: Shah, Z.; Raja, M. A. Z.; Khan, W. A.; Shoaib, M.; Asghar, Z.; Waqas, M.; Muhammad, Taseer title: Application of Levenberg–Marquardt technique for electrical conducting fluid subjected to variable viscosity date: 2022-04-18 journal: Indian J Phys Proc Indian Assoc Cultiv Sci (2004) DOI: 10.1007/s12648-022-02307-1 sha: 9a483ad071b293c987f4ce09d67bf4de29fb3147 doc_id: 709015 cord_uid: 0k9y5cw8 In the present study, design of intelligent numerical computing through backpropagated neural networks (BNNs) is presented for numerical treatment of the fluid mechanics problems governing the dynamics of magnetohydrodynamic fluidic model (MHD-NFM) past a stretching surface embedded in porous medium along with imposed heat source/sink and variable viscosity. The original system model MHD-NFM in terms of PDEs is converted to nonlinear ODEs by introducing the similarity transformations. A reference dataset for BNNs approach is generated with Adams numerical solver for different scenarios of MHD-NFM by variation of parameter of viscosity, parameter of heat source and sink, parameter of permeability, magnetic field parameter, and Prandtl number. To calculate the approximate solution for MHD-NFM for different scenarios, the training, testing, and validation processes are conducted in parallel to adapt neural networks by reducing the mean square error (MSE) function through Levenberg–Marquardt backpropagation. The comparative studies and performance analyses through outcomes of MSE, error histograms, correlation and regression demonstrate the effectiveness of proposed BNNs methodology. The fluid dynamics problem of boundary layer flow on stretching sheet has paramount importance in broad domains including pipe production with poly vinyl chloride, wiredrawing, metal casting, hot rolling, etc. Sakidas [1, 2] introduce studied for the first time related to the characteristic of boundary layer flow on stretched surface with a constant velocity. Crane [3] investigated further the stretch surface with a varying velocity. Tsou et al. [4] . Few recent applications of computational fluid dynamics addressed with boundary layer flow can be seen in [5] [6] [7] [8] [9] [10] [11] [12] [13] , while the nanofluidic models of paramount interest can be seen in [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] . In boundary layer, flow problem role of heat source and sink becomes essential due to the requirement of the cooling process. Cortell [24] investigated boundary layer flow problem on stretching sheet involving heat source and sink. Dessie and Kishan [25] examined the effect of heat transfer with varying viscosity in a permeable medium on stretching surface involving the heat source and sink. Similarity other related studies conducted by research community Abel et al. [26] , Khan et al. [27] [28] [29] , Shafiq [30] , Khan et al. [31] [32] [33] . The computational fluid dynamic problems involving nanofluidic models include thermal consideration in heat pipe involving n-pentane-acetone/methanol binary mixtures [34] , microchannel heat sink model [35] , turbulent heat transfer in double pipe heat exchanger model [36] , magnetic field effect on micro-cross jet injection involving nanoparticle in a channel [37] , electroosmosis-induced alterations in peristaltic pumping flow models [38] , Navier's slip condition along with magnetic field impacts on unsteady stagnation point nanofluidic flow models [39] and entropy generation and Cattaneo-Christov diffusion model involving micropolar magneto cross nanofluids [40] . Besides these applications, many studies based on deterministic solver like homotopy analysis method [41, 42] are exploited arising in the domain of fluid mechanics governed with boundary layer flow on stretching sheet with heat source and sink are conducted, while artificial intelligence (AI) based computing procedures through supervised/unsupervised neural networks looks to be a promising alternative implemented for these fluidics problems. Modern AI algorithms-based stochastic methods via neural networks, evolutionary/swarming heuristic procedures and efficient local search methodologies are implemented to variety of linear as well as nonlinear systems represented with integer and non-integer differential models [43, 44] . Recent applications of stochastic solvers include mathematical model in bioinformatics, such as model of heartbeat dynamics, HIV infection dynamics, nonlinear corneal shape model, mosquito dispersion model, nonlinear SITR model for COVID-19 virus spread and heat distribution dynamic of human head; application in physics, such as astrophysics, thermodynamics, atomic physics, plasma, nuclear physics, nonlinear optics, nanotechnology, magnetohydrodynamics and nonlinear circuits; application in fractional-order systems such as Riccati equation, Bagley-Torvik equation, and fractional different equations. Few renewed applications in fluid dynamics such as modeling the thermal conductivity of ZnO-EM with experimental datasets [45] , reliable synthesized CuFe2O4/SiO2 nanocomposites models [46] , modeling for Fe-CuO/Eg-Water nanofluid [47] , refrigeration system [48] , optimal thermal conductivity enhancement of nano-antifreeze using carbon nanotubes [49] , models for the dynamic viscosity of CuO/water nanofluids [50] , modeling of hybrid nanofluidic models [51, 52] , measuring thermophysical properties of carbon-based nanofluidic models [53] , effects of COOH-MWCNTs on thermal conductivity of antifreeze model [54] and entropy generation of hybrid nanofluidic systems [55] . The aforesaid evidences proved that AI-based solvers are reliable for viable analysis of still nonlinear mathematical model of • A novel application of backpropagated neural networks (BNNs)-based computing paradigm is presented for numerical treatment of the dynamics of magnetohydrodynamic nanofluidic model (MHD-NFM) past over a Step when . The organization for rest of paper is furnished as follows: The mathematical representation of the MHD-NFM is briefly introduced in Sect. 2, the methodology BNNs to solve system model is narrated in Sect. 3, the outcomes of BNNs with necessary descriptive details are provided in Sect. 4, while the concluding statements are compactly presented in the Sect. 5. The two-dimensional stretching sheet embedded in a porous medium is considered along with heat generation/absorption. A magnetic force is applied symmetrically in the region y C 0, which is shown in Fig. 1 The associated boundary conditions for the fluid flow are: where, shows the Prandtl number. The methodology presented here for the proposed BNNs is executed by utilizing 'nftool,' which is an effective algorithm in neural networks (NNs) toolbox of MATLAB software package, while weights of network is adopted by Levenberg-Marquardt (LM) approach. The methodology comprises two parts; in the first part, essential description is provided for creation of dataset for LM-NN, while in the second part, implementation procedure implemented for LM-NN is described. The overall process flow of methodology is presented in Fig. 2 , while the designed LM-NN through single neuron setup is shown in Fig. 3 . The reference solutions, i.e., dataset of LM-NN, is created for inputs between 0 and 10 with time interval of 0.05 by using approach of Adams numerical solver through 'NDSolve' program in Mathematica software package for each variant of MHD fluidic system as listed in Table 1 . Results of numerical investigation with essential explanation for the proposed BNNs via Levenberg are given here for dynamics of viscosity of MHD fluidic system as presented in Eqs. (17) (18) (19) . The five scenarios of the system model (17) (18) (19) by variation of A, k, K 1 , Pr, and M are formulated for four cases for both velocity and temperature parameter, respectively, of MHD flow model as tabulated in Table 1 . The reference solutions f ðgÞ, f 0 ðgÞ and hðgÞ i.e., dataset of LM-NNs, are estimated with Adams method for g between 0 and 10 for scenarios 1-5, for all four cases of LM-NN model in Eqs. (17) (18) (19) . The dataset created by Adams method in terms of f ðgÞ, f 0 ðgÞ and hðgÞ is used as a reference result throughout in the presented study. The proposed LM-NN approach is applied for creating the solution for fluid dynamics model of stretchable surface with porous medium involving heat source or sink as well as variable viscosity of MHD flow model Eqs. (17) (18) (19) using 'nftool' routine. The outcomes of reference solutions for velocity and temperature profile (f , f 0 and h) in the case of 201 inputs are given for training (70%), validation (15%) and testing (15%) for LM-NN approach using the network presented in Fig. 4 . The proposed LM-NN approach is repeated for 5 different scenarios by variety of A, k, K 1 , Pr, and M for four different cases for both velocity and temperature parameter, respectively, of MHD-NFM with values as tabulated in Table 1 . The outcomes of LM-NN for each scenario (4) Tables 2, 3 , 4, 5, 6, 7, 8 and 9 for scenarios 1 to 5, respectively, for both variations on velocity and temperature parameter of MHD-NFM. In subfigures 5(a), 5(b), 5(c) and 5(d), convergence of mean square error for train, test and validation best curve is given for second case of scenarios 1, 2, 3 and 5 of magnetohydrodynamics nanofluidic model (MHD-NFM). One may witness that the most excellent and unified execution is accomplished at 355, 383, 360 and 357 epochs with MSE in the range 10 -9 , 10 -9 , 10 -9 , and 10 -09 , individually. The gradient and Mu parameters of Levenberg-Marquardt backpropagation are [9.94 9 10 -08 , 9.77 9 10 -08 , 9.951 9 10 -08 and 9.92 9 10 -08 ] and [10 -07 , 10 -08 , 10 -07 , 10 -07 ] as shown in subfigures 6(a), 6(b), 6(c) and 6(d). The outputs prove correctness and convergent efficacy of LM-NN scheme for each case of MHD-NFM. The efficacy of LM-NN-based calculated results is observed with matching outcomes of Adams numerical solver for scenarios 1, 2, 3 and 5 of MHD-NFM as shown (17) (18) (19) . One may witness that the values of correlation index R are closed to unity, i.e., perfect modeling scenario, in case of training, testing as well as validation, which certified the correctness of LM-NN methodology for MHD-NFM. Furthermore, the respective numerical values listed in Tables 2, 3 Validation Testing 1 8.21 9 10 -8 1.39 9 10 -6 6.79 9 10 -8 8.21 9 10 -8 9.92 9 10 -8 1.00 9 10 -9 151 0 2 8.32 9 10 -7 2.98 9 10 -8 3.36 9 10 -7 8.32 9 10 -7 1.50 9 10 -5 1.00 9 10 -10 57 0 3 1.21 9 10 -9 2.70 9 10 -10 2.54 9 10 -10 1.21 9 10 -9 1.00 9 10 -7 1.00 9 10 -8 413 2 4 5.29 9 10 -9 3.70 9 10 -9 3.98 9 10 -9 5.29 9 10 -9 9.90 9 10 -8 1.00 9 10 -8 431 2 3.62 9 10 -9 4.91 9 10 -9 3.09 9 10 -9 3.62 9 10 -9 9.98 9 10 -8 1.00 9 10 -7 355 1 2 1.74 9 10 -9 1.81 9 10 -9 1.13 9 10 -9 1.74 9 10 -9 9.77 9 10 -8 1.00 9 10 -8 383 1 3 3.43 9 10 -9 3.44 9 10 -9 1.79 9 10 -9 3.43 9 10 -9 9.95 9 10 -8 1.00 9 10 -7 360 1 4 1.96 9 10 -9 1.64 9 10 -9 2.75 9 10 -9 1.96 9 10 -9 9.92 9 10 -8 1.00 9 10 -7 357 1 Execution Time Training Validation Testing 1 5.57 9 10 -10 5.74 9 10 -10 6.58 9 10 -10 5.57 9 10 -10 9.93 9 10 -8 1.00 9 10 -8 231 1 2 1.00 9 10 -9 9.66 9 10 -10 1.07 9 10 -9 1.00 9 10 -9 9.86 9 10 -8 1.00 9 10 -9 557 2 3 2.63 9 10 -9 2.82 9 10 -9 3.65 9 10 -9 2.63 9 10 -9 9.97 9 10 -8 1.00 9 10 -8 275 1 4 1.11 9 10 -10 1.16 9 10 -10 1.46 9 10 -10 1.11 9 10 -10 9.95 9 10 -8 1.00 9 10 -9 783 3 Validation Testing 1 5.55 9 10 -10 9.97 9 10 -10 8.75 9 10 -10 5.55 9 10 -10 5.80 9 10 -8 1.00 9 10 -9 673 3 2 3.33 9 10 -9 4.13 9 10 -9 3.36 9 10 -9 3.33 9 10 -9 9.97 9 10 -8 1.00 9 10 -7 371 1 3 1.30 9 10 -9 8.95 9 10 -9 2.70 9 10 -9 1.30 9 10 -9 9.94 9 10 -8 1.00 9 10 -9 583 3 4 5.91 9 10 -9 9.67 9 10 -9 8.85 9 10 -9 5.60 9 10 -9 5.56 9 10 -6 1.00 9 10 -8 402 1 2.50 9 10 -9 7.27 9 10 -10 1.30 9 10 -9 2.50 9 10 -9 9.92 9 10 -8 1.00 9 10 -8 584 3 2 2.57 9 10 -9 5.95 9 10 -10 6.98 9 10 -9 2.44 9 10 -9 8.32 9 10 -7 1.00 9 10 -9 554 3 3 3.98 9 10 -9 3.10 9 10 -9 7.46 9 10 -9 3.98 9 10 -9 9.94 9 10 -8 1.00 9 10 -8 651 2 4 2.70 9 10 -9 3.31 9 10 -9 4.48 9 10 -9 2.67 9 10 -9 9.86 9 10 -8 1.00 9 10 -8 204 1 Validation Testing 1 9.41 9 10 -10 6.21 9 10 -8 8.52 9 10 -9 9.41 9 10 -10 9.96 9 10 -8 1.00 9 10 -8 229 1 2 1.19 9 10 -7 2.40 9 10 -7 1.47 9 10 -7 1.19 9 10 -7 7.47 9 10 -6 1.00 9 10 -7 224 2 3 4.21 9 10 -9 4.19 9 10 -9 2.10 9 10 -9 4.21 9 10 -9 9.80 9 10 -8 1.00 9 10 -8 240 1 4 1.36 9 10 -9 3.51 9 10 -9 2.68 9 10 -9 1.36 9 10 -9 9.44 9 10 -8 1.00 9 10 -9 311 1 2.77 9 10 -9 8.51 9 10 -9 1.97 9 10 -9 2.77 9 10 -9 9.99 9 10 -8 1.00 9 10 -8 300 1 2 4.26 9 10 -9 5.41 9 10 -9 1.85 9 10 -8 4.26 9 10 -9 9.94 9 10 -8 1.00 9 10 -7 355 1 3 1.73 9 10 -9 2.64 9 10 -9 7.60 9 10 -9 1.73 9 10 -9 1.00 9 10 -7 1.00 9 10 -8 628 3 4 2.95 9 10 -9 9.99 9 10 -10 4.14 9 10 -9 2.95 9 10 -9 9.87 9 10 -8 1.00 9 10 -8 529 2 Execution Time Training Validation Testing 1 9.54 9 10 -10 6.08 9 10 -9 1.06 9 10 -8 9.54 9 10 -10 9.96 9 10 -8 1.00 9 10 -8 430 2 2 1.67 9 10 -9 3.26 9 10 -10 2.62 9 10 -10 1.67 9 10 -9 9.94 9 10 -8 1.00 9 10 -8 363 1 3 2.89 9 10 -9 9.03 9 10 -9 5.25 9 10 -10 2.89 9 10 -9 9.94 9 10 -8 1.00 9 10 -8 511 2 4 3.49 9 10 -9 4.83 9 10 -9 9.62 9 10 -9 3.49 9 10 -9 9.95 9 10 -8 1.00 9 10 -7 410 1 Fig. 16 Presentation of designed LM-NN with outputs of dataset of scenario 1 of MHD-NFM NN procedure is around 10 -09 to 10 -07 , 10 -09 , 10 -10 to 10 -09 , 10 -10 to 10 -09 , 10 -09 , 10 -10 to 10 -07 , 10 -09 and 10 -10 to 10 -09 for MHD-NFM. All numerical results and illustrations presented in Table 2 These results also show the consistent overlapping between proposed and reference results. The AE attain values for scenarios 1, 2 and 5 for velocity profile 10 -06 to 10 -02 , 10 -07 to 10 -03 and 10 -06 to 10 -03 , respectively. The AE attained for temperature profile is around 10 -08 to 10 -03 , 10 -07 to 10 -04 , 10 -07 to 10 -03 , 10 -07 to 10 -04 and 10 -07 to The integrated stochastic numerical computing solver is presented for finding the solution of fluid mechanics problem representing the dynamics of MHD-NFM along a stretchable surface with porous medium involving heat source or sink, as well as variable viscosity based on different scenarios for parameter of viscosity, parameter of heat source and sink, parameter of permeability, magnetic field parameter, and Prandtl number. The training (70%), validation (15%) and testing (15%) are exploited to develop the designed LM-NNs with 10 number of hidden neurons. The MSE level 10 -09 to 10 -04 authenticated the accuracy of the proposed structure based on LM-NNs. Additionally, the correctness is verified through numerical and graphical illustrations for the convergence plots on MSE index, regression dynamics as well as error histograms. Publisher's Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations