Please use Jupyter Notebook (Python)
Heat is conducted along a metal rod positioned between two fxed temperature walls. Aside from conduction, heat is transferred between the rod and the surrounding air by convection. Based on a heat balance, the distribution of temperature along the rod is described by the following second-order differential equation. dx2d2T?+h?(Ta??T) where T= temperature (?C),h?= a bulk heat transfer coefficient reflecting the relative importance of corvection to conduction (0.01 m?3),x= distance along the rod (10 m), and Ta ?= temperature of the surrounding fluid (20?C), a) Given values for the parameters, forcing functions, and boundary conditions, calculus can be used to develop an analytical solution. if T(0)=40?C and T(10)=200?C, , b bain anslutical solution (t.e. solve differential equation (1)). Write out all the detailed procodure and steps you have taken. b) Above heat transfer equation can be transformed into a sot of linear algobraic equations by conceptualizing the rod as consisting of a series of nodes. For example, the rod in Figure is divided into six equi-spaced nodes. Since the rod has a length of 10 , the spacing between nodes is Ax=2. Finite-difference approximations prowide a means to transtom derivatives into algebraic form. For example, the second derivative at each node can be approximated as dx2d2T?=?x2Ti+1??2Ti?+Ti=1?? where Tidesignates the temperature at node i. This approximation can be substituted into Eq. (1) to give ?x2Ti+1??2Ti?+Ti=1??+h?(Te??T1?)=0 Develop linear equations applied to each of the nodes (for i=1,2,3,4). Write out the linear equations you developed. c) Calculate node temperatures (T1 - T4) with Python code. d) Plot the results of analytical solution (a) and temperatures obtained in (c) into one graph. Use black solid line for the analytical solution, and for the results of (c), use blue open circle. e) h?=h/k, and h is convective heat transfer coefficient and k is the thermal conductivity of solid material. We can analyze the temperature distribution in the solid material by changing the thernal conductivity. Ler's use the k values (50,25,5, and 1 W/mK K) while using foxed h value of 1 W/m2 K, and plet temeerature disiribution. f) Explain the results (le, impact of different k values on temperature distribution). (Hint: think how much temperature will be varied in the length direction when a solid bar contacts the hot surface on its one end While the other surfaces expose to the air at room temperature, and how much themal conductivity of the solid material will affect the temperalure distribution. You may consider the high k-value materials as steel bars, and the smaller k-value materials as wood bars to catch the effect of themal conductivity]