SlideShare a Scribd company logo
1 of 17
Download to read offline
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Boundary Value Problems
Mohammad Tawfik
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Objectives
• Applying finite difference as a numerical
method for differentiation
• Solve a Boundary Value Problem using
finite difference method
• Applying weighted residual methods for
the solution of BVP’s
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Numerical Differentiation
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Numerical Differentiation
• In most of the practical applications, the
differentiation of the function does not present a
great challenge!
• In some cases, the differentiation becomes very
expensive in terms of the computational
requirements
• If you are using the computer, you need to teach
it how to differentiate!!!
• If the function is given in the form of a table,
what are you going to do?!
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Numerical Differentiation
• In the previous lectures, we learned that the
slope of the function may be approximated by a
difference expression
• Recall, the parachutist:
• Note that this evaluates the derivative at the
starting point in terms of what is going to happen
in the future!
12
12
tt
vv
t
v
dt
dv






Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Forward Difference
• When you evaluate the slope at some
point in terms of the value of the function
at higher values of time/space, then we
call this forward difference
t
vv
tt
vv
dt
dv
tt 






12
12
12
1
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
How about the second derivative?
• The second derivative of a function is
defined as the rate of change of slope.











 121
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Substitute for the 1st derivative











 121
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd














t
vv
t
vv
tdt
vd
tt
1223
2
2
1
1
2
123
2
2
2
1
t
vvv
dt
vd
tt




Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Backward Difference
• When you evaluate the slope at some point in
terms of the value of the function at lower
values of time/space, then we call this backward
difference
• Note that this is the same formula for the forward
difference!
t
vv
tt
vv
dt
dv
tt 






21
21
21
2
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
How about the second derivative?
• The second derivative of a function is
defined as the rate of change of slope.











 212
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Substitute for the 1st derivative











 212
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd














t
vv
t
vv
tdt
vd
tt
2110
2
2
1
2
2
210
2
2
2
2
t
vvv
dt
vd
tt




Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Central Difference
• If you know some information about the
previous and the upcoming points, why
don’t you make use of it?
t
vv
tt
vv
dt
dv
tt 





 2
02
02
02
1
2
012
2
2
2
1
t
vvv
dt
vd
tt




Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Applications
Finite Difference
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Finite Difference
• The finite difference is a direct application
of the numerical differentiation.
• Substitute each derivative in a DE by its
FD equivalent to transform the differential
equation into difference equation
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Example: The Parachutist
• The DE is:
• Applying the FD
relation:
• You get the
Euler formula!
m
cvmg
v


m
cv
g
t
vv
dt
dv



 12







m
cv
gtvv 1
12
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Example: Heat transfer problem
dx
q1=-kAdT/dx
q2=q1+(dq1/dx)dx
q3=hPdx(T-Ta)
Tin Tout
0 L x
Ta
d2T/dx2 - b2 T = -b2Ta
Area A
Perim. P
(b2 = hP/kA)
We need 2 conditions: T(0) = Tin; T(L) = Tout
Conditions at 2 boundaries: Boundary value problem
Boundary Value Problems – Finite Difference
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Finite difference methods
Discretize into n sub-domains
0 x1 x2 xn=Lxn-1
(equidistant for simplicity)
Approximate derivatives using neighboring points
d2T/dx2|i  (Ti-1-2Ti+Ti+1)/h2
h
Apply equation at each internal point:
(Ti-1-2Ti+Ti+1)/h2 - b2 Ti = -b2 Ta Solve n-1 equations in n-1 unknowns

More Related Content

What's hot

interpolation
interpolationinterpolation
interpolation
8laddu8
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
Ahmed Haider
 

What's hot (20)

Finite Difference Method
Finite Difference MethodFinite Difference Method
Finite Difference Method
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference method
 
interpolation
interpolationinterpolation
interpolation
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
 
Heun's Method
Heun's MethodHeun's Method
Heun's Method
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
Fvm fdm-fvm
Fvm fdm-fvmFvm fdm-fvm
Fvm fdm-fvm
 
Application of Ordinary Differential Equation in civil engineering
Application of Ordinary Differential Equation in civil engineeringApplication of Ordinary Differential Equation in civil engineering
Application of Ordinary Differential Equation in civil engineering
 
Interpolation
InterpolationInterpolation
Interpolation
 
Finite Element Methods
Finite Element  MethodsFinite Element  Methods
Finite Element Methods
 
Finite Element Analysis - UNIT-3
Finite Element Analysis - UNIT-3Finite Element Analysis - UNIT-3
Finite Element Analysis - UNIT-3
 
finite volume method
finite volume methodfinite volume method
finite volume method
 
application of partial differentiation
application of partial differentiationapplication of partial differentiation
application of partial differentiation
 
Taylor series
Taylor seriesTaylor series
Taylor series
 
Runge Kutta Method
Runge Kutta Method Runge Kutta Method
Runge Kutta Method
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1
 
Partial differential equation & its application.
Partial differential equation & its application.Partial differential equation & its application.
Partial differential equation & its application.
 

Viewers also liked

Viewers also liked (20)

Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
 
FEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual MethodsFEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual Methods
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time Integration
 
System of Initial Value Problems
System of Initial Value ProblemsSystem of Initial Value Problems
System of Initial Value Problems
 
What is Optimization
What is OptimizationWhat is Optimization
What is Optimization
 
Interpolation Generalized
Interpolation GeneralizedInterpolation Generalized
Interpolation Generalized
 
Bracketing Methods
Bracketing MethodsBracketing Methods
Bracketing Methods
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
 
FEM: Element Equations
FEM: Element EquationsFEM: Element Equations
FEM: Element Equations
 
Initial valueproblems
Initial valueproblemsInitial valueproblems
Initial valueproblems
 
FEM: Stationary Functional Approach
FEM: Stationary Functional ApproachFEM: Stationary Functional Approach
FEM: Stationary Functional Approach
 
FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)
 
Vibration Absorber
Vibration AbsorberVibration Absorber
Vibration Absorber
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
 
Introduction to finite element method(fem)
Introduction to finite element method(fem)Introduction to finite element method(fem)
Introduction to finite element method(fem)
 
Numerical Integration
Numerical IntegrationNumerical Integration
Numerical Integration
 
FEM: 2-D Problems
FEM: 2-D ProblemsFEM: 2-D Problems
FEM: 2-D Problems
 
Boundary Value Problems
Boundary Value ProblemsBoundary Value Problems
Boundary Value Problems
 

Similar to Boundary Value Problems - Finite Difference

12 boundary value problem
12 boundary value problem12 boundary value problem
12 boundary value problem
Mohammad Tawfik
 
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp0101introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
Cem Güneş
 

Similar to Boundary Value Problems - Finite Difference (6)

12 boundary value problem
12 boundary value problem12 boundary value problem
12 boundary value problem
 
Regression
RegressionRegression
Regression
 
H transformer-1d paper review!!
H transformer-1d paper review!!H transformer-1d paper review!!
H transformer-1d paper review!!
 
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp0101introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
 
Asufe juniors-training session2
Asufe juniors-training session2Asufe juniors-training session2
Asufe juniors-training session2
 
Part 3 Practical CFD(1).pdf
Part 3 Practical CFD(1).pdfPart 3 Practical CFD(1).pdf
Part 3 Practical CFD(1).pdf
 

More from Mohammad Tawfik

More from Mohammad Tawfik (20)

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
 
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Boundary Value Problems - Finite Difference

  • 1. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Boundary Value Problems Mohammad Tawfik
  • 2. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Objectives • Applying finite difference as a numerical method for differentiation • Solve a Boundary Value Problem using finite difference method • Applying weighted residual methods for the solution of BVP’s
  • 3. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Numerical Differentiation
  • 4. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Numerical Differentiation • In most of the practical applications, the differentiation of the function does not present a great challenge! • In some cases, the differentiation becomes very expensive in terms of the computational requirements • If you are using the computer, you need to teach it how to differentiate!!! • If the function is given in the form of a table, what are you going to do?!
  • 5. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Numerical Differentiation • In the previous lectures, we learned that the slope of the function may be approximated by a difference expression • Recall, the parachutist: • Note that this evaluates the derivative at the starting point in terms of what is going to happen in the future! 12 12 tt vv t v dt dv      
  • 6. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Forward Difference • When you evaluate the slope at some point in terms of the value of the function at higher values of time/space, then we call this forward difference t vv tt vv dt dv tt        12 12 12 1
  • 7. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com How about the second derivative? • The second derivative of a function is defined as the rate of change of slope.             121 1 2 2 tttttt dt dv dt dv tdt vd
  • 8. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Substitute for the 1st derivative             121 1 2 2 tttttt dt dv dt dv tdt vd               t vv t vv tdt vd tt 1223 2 2 1 1 2 123 2 2 2 1 t vvv dt vd tt    
  • 9. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Backward Difference • When you evaluate the slope at some point in terms of the value of the function at lower values of time/space, then we call this backward difference • Note that this is the same formula for the forward difference! t vv tt vv dt dv tt        21 21 21 2
  • 10. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com How about the second derivative? • The second derivative of a function is defined as the rate of change of slope.             212 1 2 2 tttttt dt dv dt dv tdt vd
  • 11. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Substitute for the 1st derivative             212 1 2 2 tttttt dt dv dt dv tdt vd               t vv t vv tdt vd tt 2110 2 2 1 2 2 210 2 2 2 2 t vvv dt vd tt    
  • 12. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Central Difference • If you know some information about the previous and the upcoming points, why don’t you make use of it? t vv tt vv dt dv tt        2 02 02 02 1 2 012 2 2 2 1 t vvv dt vd tt    
  • 13. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Applications Finite Difference
  • 14. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Finite Difference • The finite difference is a direct application of the numerical differentiation. • Substitute each derivative in a DE by its FD equivalent to transform the differential equation into difference equation
  • 15. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Example: The Parachutist • The DE is: • Applying the FD relation: • You get the Euler formula! m cvmg v   m cv g t vv dt dv     12        m cv gtvv 1 12
  • 16. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Example: Heat transfer problem dx q1=-kAdT/dx q2=q1+(dq1/dx)dx q3=hPdx(T-Ta) Tin Tout 0 L x Ta d2T/dx2 - b2 T = -b2Ta Area A Perim. P (b2 = hP/kA) We need 2 conditions: T(0) = Tin; T(L) = Tout Conditions at 2 boundaries: Boundary value problem
  • 17. Boundary Value Problems – Finite Difference Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Finite difference methods Discretize into n sub-domains 0 x1 x2 xn=Lxn-1 (equidistant for simplicity) Approximate derivatives using neighboring points d2T/dx2|i  (Ti-1-2Ti+Ti+1)/h2 h Apply equation at each internal point: (Ti-1-2Ti+Ti+1)/h2 - b2 Ti = -b2 Ta Solve n-1 equations in n-1 unknowns