3. Numerical methods in Heat Conductions Finite Difference techniques The analytical solution, which is considered an exact solution, of engineering heat transfer problems is not available for all situations due to several reasons, e.g. complicated geometries, unusual boundary conditions …etc. One is seeking approximate solutions for such problems. Finite difference technique is a numerical technique for differential equations and according to this technique the solution of these equations is obtained at specified discrete position rather than the case of analytical solution, where the solution is a continuous function valid everywhere of domain. According to this technique, the differential equation transformed to an equivalent set of finite difference equation (set of linear algebraic equations). 3.1 Nodal mesh Fig. (1) Two dimensional conduction, (a) Nodal network, (b) Finite difference approximation. The domain of interest is covered with a mesh; each node of this mesh has an identifier. For x-y domain, every node has (m, n) identifier according to its x- and y-position. The distance (step size) between two successive nodes in x-direction is βx and in corresponding y-direction is βy. The first and second derivative of the temperature T at general interior node (m,n), can be approximated as shown in Fig. (1): ππ ππ+1,π − ππ,π | ≈ ππ₯ π+1/2,π βπ₯ ππ ππ,π − ππ−1,π | ≈ ππ₯ π−1/2,π βπ₯ 1 π 2π ππ+1,π + ππ−1,π − 2ππ,π | ≈ 2 (βπ₯)2 ππ₯ π,π In the same manner, the second derivative in ydirection is given by: π 2π ππ,π+1 + ππ,π−1 − 2ππ,π | ≈ (βπ₯)2 ππ¦ 2 π,π The nodes of mesh lie at the boundaries of the domain have different finite difference approximation depending upon the kind of such boundary: Specified temperature boundary: Simply, each node lies at this boundary has a temperature equal to this specified value as shown in Fig. (2). Fig. (2) Finite difference formulation of specified temperature boundary conditions on both surfaces of a plane wall. For other expected boundary conditions, energy balance of volume element of the considered node is carried out to determine its temperature as shown in figure: ∑ πΜ + πΊΜπππππππ‘ = 0 πππ π ππππ 1. Specified heat flux boundary condition As shown in figure (3), one can carry out the energy balance as follows; ππΜ π΄ + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ In case of specified heat flux boundary with no heat generation (π0Μ = 0), the finite difference equation of this boundary takes the form: ππΜ π΄ + ππ΄ π1 − π0 =0 βπ₯ And in case of insulated boundary ( ππΜ = 0), the finite difference equation takes the form: 2 Fig. (3) Finite difference formulation of the left boundary node of a plane. ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ Moreover for insulated boundary with no heat generation (ππΜ = 0 & π0Μ = 0) ππ΄ π1 −π0 βπ₯ =0 2. Convection boundary condition βπ΄(π∞ − π0 ) + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ 3. Radiation boundary condition 4 πππ΄(ππ π’ππ − π04 ) + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ 4. Combined Convection and radiation boundary condition As it is clear from figure (4): Fig.(4) Finite difference formulation of combined convection and radiation 4 βπ΄(π∞ − π0 ) + πππ΄(ππ π’ππ − π04 ) + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ Or βππππππππ π΄(π∞ − π0 ) + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯⁄2) = 0 βπ₯ 5. Combined convection, radiation and heat flux boundary condition 4 ππΜ π΄ + βπ΄(π∞ − π0 ) + πππ΄(ππ π’ππ − π04 ) + ππ΄ π1 − π0 + π0Μ (π΄ βπ₯ ⁄2) = 0 βπ₯ 6. Interface boundary condition Two different solid media A and B are assumed to be in perfect contact, and thus at the same temperature at the interface at node m (as shown in figure (5)): 3 Fig. (6) Finite difference formulation of boundary node is obtained by applying energy balance on its volume element. Fig.(5) Finite difference formulation of the interface boundary condition for two mediums A and B. For the condition of two dimensional problems the development of finite difference formulation of boundary nodes is similar to that of one dimensional case, taking in consideration that heat transfers in x- and y-directions as shown in figure (6). ∑ πΜ + πΊΜπππππππ‘ = 0 πππ π ππππ Figure 5 fig 5-16 C Figure 6 fig 5-16 C 3.2 Finite difference form of the steady heat conduction equation Taking in account the one dimensional steady heat conduction problems with heat generation πΜ , the differential equation describing this case is as follows: π 2 π πΜ + =0 ππ₯ 2 π Substitution in the foregoing equation with approximate second derivative of T for a general point (m) lie on the nodal mesh, yields to: ππ−1 + ππ+1 − 2ππ πΜ π + =0 βπ₯ 2 π For m=1,2,3……M-1 Where M is the total number of nodes. This recursive relation represents a set of linear algebraic equations of M-1 unknown. This set can be solved by Gauss-seidel method. 4