







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The finite difference method (fdm) is a set of techniques used to numerically solve ordinary and partial differential equations (odes and pdes). It is mathematically simpler and easier to implement compared to finite element method. However, it has limitations when dealing with complex geometry in 2d or 3d. In this document, we discuss the finite difference method, its advantages, and its limitations with examples.
Typology: Lab Reports
1 / 13
This page cannot be seen from the preview
Don't miss anything!








FINITE DIFFERENCES
2
1
1 2 2
1 1
1 1 2
x
c c c cd dx
c x c c x c c x c dc dx
i i i
i i i i i i^
−
−
−
1
2
4
3
2
3
2
1
1 1
2
1
1
−
−
−
−
n
n
n
i i i i i
c xv D
c xv D
c
c xv D
c xv D c
c xv D
c xv D c
c x cv D
x
c c c
x
t
0 1 2
…
i^
….^
n
0 1 2... j... m
δ x
δ t c t c
x
c c c D
ji ji ji ji ji
δ
δ
, (^1) ,
2
, 1 , , 1
−
IC BC
dc^ dt cd dy cd dx D^
2 2 2 2
x
t
0 1 2
…
i^
….^
n
0 1 2... j... m
δ x
δ t
c t c
x
c c c D
ji ji ji ji ji
δ
δ
(^1) , (^1) ,
2
, 1 , , 1
−
−
+^
IC BC
dc^ dt cda dx 2 =^2 2
c t c
x
c c c a
ji ji ji ji ji
δ
δ
, (^1) ,
2
(^1) , 1 (^1) , (^1) , 1 2
+−
x
y
0 1 2
…
i^
….^
n
0 1 2... j... m
δ x
δ y
ji ji ji ji ji ji ji
f
y
c c c
x
c c c^
,
2
(^1) , , (^1) ,
2
, 1 , , 1
−
− −
BC
), ( 2 2 2 2
yx f cd dy cd (^) dx