adi_method
adi_method
ADI METHODS
Therefore we have stability for all values of m and l, and the order of accuracy of the scheme is O(k 2 +h2 ).
Thus we can take k = h and the scheme is efficient and accurate.
The Douglas–Rachford method starts with the backwardtime, centralspace scheme for ut = A1 u+A2 u
n+1 n
(I − kA1h − kA2h )vml = vml ,
The method is
The Mitchell–Fairweather method is secondorder accurate in time and fourthorder accurate in space.
Recall the operator δ 2 :
f (x + h) − 2f (x) + f (x − h)
δ 2 f (x) ≡
h2
and n n n n n n
vm+1,l − 2vml + vm−1,l vm,l+1 − 2vml + vm,l−1
δx2 vml
n
= and δ 2 n
y vml = .
h2 h2
Then
h2
δ 2 f = f �� + f ���� + O(h4 ) = f �� + O(h2 ),
12
so f �� = δ 2 f + O(h2 ). Then
h2 ����
δ2 f = f �� + f + O(h4 )
12
h2
= f �� + (f �� )�� + O(h4 )
12
�� h2 2 ��
= f + (δ f + O(h2 )) + O(h4 )
12
2
h
= f �� + δ 2 f �� + O(h4 )
12
h2
� � 2
d
= 2
δ f = 1 + δ2 f + O(h4 ). (3.1)
12 dx2
h2 2 k h2
� �� �
k
1+ δ − b1 δ 2 1 + δy2 − b2 δy2 un+1
12 x 2 x 12 2
h2 h2
� �� �
k k
= 1 + δx2 + b1 δx2 1 + δy2 + b2 δy2 un + O(k 3 ) + O(kh4 ).
12 2 12 2
(note that we use u’s and not v’s and keep everything is operator form for the moment) we get
� � � �
n+1/2 1 k n 1 k
u = I + A2 u + I − A2 un+1 .
2 2 2 2
n n+1/2 n+1/2
Now if the indices i and j in vij range from 1 to m, the desired boundary conditions at v1i and vmi
for i = 2, 3, . . . , m − 1 are computed as
� � � �
n+1/2 1 k n 1 k n+1
v1i = 1 + A2 v1i + 1 − A2 v1i
2 2 2 2
n n n n+1 n+1 n+1
b2 µv1,i−1 + 2(1 − b2 µ)v1i + b2 µv1,i+1 −b2 µv1,i−1 + 2(1 + b2 µ)v1i − b2 µv1,i+1
= + .
4 4
n+1/2
And similarly for vmi for i = 2, 3, . . . , m − 1.
The boundary condition
n+1/2
vij = u(tn+1/2 , xi , yj )
is only first order accurate and if used with the Peaceman–Rachford method (or other similar second order
accuracy) will result in the overall accuracy being only first order.
Boundary conditions for the Mitchell–Fairweather scheme are obtained as follows. First we eliminate
δx2 v n+1/2 terms by multiplying the first equation by 1+ 12 (b1 µ1 + 16 )h21 δx2 and the second by 1− 21 (b1 µ1 − 16 )h21 δx2
to obtain:
� n+1
b1 µ1 + 16 1 + 12 (b2 µ2 + 61 )h22 δy2 v1i + b1 µ1 − 16 1 − 21 (b2 µ2 − 16 )h22 δy2 v1i
� �� � n � ��
n+1/2
v1i =
2b1 µ1
for i = 2, 3, . . . , m − 1, and similarly for the other boundary.