1 / 61

Numerical Methods for Engineering MECN 3500

Numerical Methods for Engineering MECN 3500. Professor: Dr. Omar E. Meza Castillo omeza@bayamon.inter.edu http://www.bc.inter.edu/facultad/omeza Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus. Tentative Lectures Schedule. Finite Difference.

robbin
Download Presentation

Numerical Methods for Engineering MECN 3500

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo omeza@bayamon.inter.edu http://www.bc.inter.edu/facultad/omeza Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus

  2. Tentative Lectures Schedule

  3. Finite Difference Best known numerical method of approximation

  4. Course Objectives • To understand the theory of finite differences. • To apply FD to the solution of specific problems as a function of accuracy, condition matrix, and performance of iterative methods.

  5. FINITE DIFFERENCE FORMULATION OF DIFFERENTIAL EQUATIONS finite difference form of the first derivative Taylor series expansionof the function f about the point x, The smaller the x, the smallerthe error, and thus the more accurate the approximation.

  6. FINITE DIFFERENCE APPROXIMATION OF HIGHER DERIVATIVE • The forward Taylor series expansion for f(xi+2) in terms of f(xi) is • Combine equations:

  7. Solve for f ''(xi): • This formula is called the second forward finite divided difference and the error of order O(h). • The second backward finite divided difference which has an error of order O(h) is

  8. The second centered finite divided difference which has an error of order O(h2) is

  9. High accurate estimates can be obtained by retaining more terms of the Taylor series. High-Accuracy Differentiation Formulas • The forward Taylor series expansion is: • From this, we can write

  10. Substitute the second derivative approximation into the formula to yield: • By collecting terms: • Inclusion of the 2nd derivative term has improved the accuracy to O(h2). • This is the forward divided difference formula for the first derivative.

  11. Forward Formulas

  12. Backward Formulas

  13. Centered Formulas

  14. Example Estimate f '(1) for f(x) = ex + x using the centered formula of O(h4) with h = 0.25. Solution • From Tables

  15. In substituting the values:

  16. Error • Truncation Error: introduced in the solution by the approximation of the derivative • Local Error: from each term of the equation • Global Error: from the accumulation of local error • RoundoffError: introduced in the computation by the finite number of digits used by the computer

  17. Introduction to Finite Difference • Numerical solutions can give answers at only discrete points in the domain, called grid points. • If the PDEs are totally replaced by a system of algebraic equations which can be solved for the values of the flow-field variables at the discrete points only, in this sense, the original PDEs have been discretized. Moreover, this method of discretization is called the method of finite differences. (i,j)

  18. Discretization: PDE FDE • ExplicitMethods • Simple • No stable • ImplicitMethods • More complex • Stables ∆x ¬ ® y n+1 ∆y y n u m,n y n-1 x x x m-1 m m+1

  19. Summary of nodal finite-difference relations for various configurations: Case 1: Interior Node

  20. Case 2: Node at an Internal Corner with Convection

  21. Case 3: Node at Plane Surface with Convection

  22. Case 4: Node at an External Corner with Convection

  23. Case 5: Node at Plane Surface with Uniform Heat Flux

  24. SolvingFiniteDifferenceEquations Heat Transfer Solved Problem

  25. The Matrix Inversion Method

  26. Jacobi Iteration Method

  27. Gauss-Seidel Iteration

  28. Error Definitions • Use absolute value. • Computations are repeated until stopping criterion is satisfied. • If the following Scarborough criterion is met Pre-specified % tolerance based on the knowledge of your solution

  29. Using Excel Matrix Inversion Method =MMULT(A7:C9,E2:E4) =MINVERSE(A2:C4)

  30. Jacobi Iteration Method using Excel

  31. Gauss-Seidel Iteration Method using Excel

  32. A large industrial furnace is supported on a long column of fireclay brick, which is 1 m by 1 m on a side. During steady-state operation is such that three surfaces of the column are maintained at 500 K while the remaining surface is exposed to 300 K. Using a grid of ∆x=∆y=0.25 m, determine the two-dimensional temperature distribution in the column. (2,3) (3,3) (1,3) (2,2) (3,2) (1,2) (2,1) (3,1) (1,1) Ts=300 K

  33. System of Linear Equations

  34. Matrix Inversion Method

  35. Iteration Method using Excel

  36. Jacobi Iteration Method using Excel

  37. Error Iteration Method using Excel

  38. Gauss-Seidel Iteration Method using Excel

More Related