This second Note is dedicated to the discussion of the case of 3-rd type boundary conditions posed on the edges of the modeling region and will present an outline of the algorithm for the account of both the Dirichlet and 3-rd type boundary conditions on different edges.

Before passing to the discussion of that scheme, a few words should be said about another ADI scheme – namely 2D Peaceman – Rachford finite difference scheme. The correct account of the intermediate boundary conditions for both Dirichlet and 3-rd order types has been thoroughly discussed in [1]. One essential difference between the 3D Douglas – Rachford and 2D Peaceman – Rachford schemes is that in the latter scheme the spatial coordinates enter symmetrically, such that the second equation (in 2D Peaceman – Rachford) contains finite difference representations of both spatial derivatives. This fact leads to a cumbersome infer of relation between the values of the unknown function on different edges – for details see [1].

Surprisingly, although the Douglas – Rachford scheme is designed for a 3D spatial region, it is easier to treat the 3-rd order boundary conditions for it correctly due to the “non-symmetrical” entrance of the spatial coordinates in three equations – see Eq. (1) – (3):

_{} , (1)

_{} , (2)

_{} , (3)

where _{} - is the Laplace operator; _{} - is the unknown function, defined on the following mesh:

_{}

_{} (4)

где _{} , (5)

_{} , (6)

* i,j,s*- - are the nodes numbers of the spatial mesh along the

*directions respectively.*

**X, Y and Z**_{}- are the total numbers of nodes of the spatial mesh along the

*directions respectively.*

**X, Y and Z**_{}- are the steps values along the directions

**respectively.**

*X, Y and Z*_{}- is the value of time sub-step : the full time step is equal to

_{}.

Let the following boundary conditions being posed on the faces of a rectangular modeling region (3-rd order boundary conditions on all the faces):

_{}, (7)

_{},(8)

_{},(9)

_{},(10)

_{},(11)

_{}.(12)

In eq. (7) – (12)the nodes with indexes _{} are fictitious nodes which lay outside the modeling region and are introduced with the purpose to retain the second order accuracy of the Douglas – Rachford scheme.

Let us now re-write the Eqs. (1), (2) and (3) in such a form, that the unknowns _{}, _{} and _{} stand in l.h.s.:

_{}, (13)

_{}, (14)

_{}, (15)

and determine which quantities are not known explicitly.

Now, let us consider Eq. (14). In order to find the values of _{}, one has to solve a system of linear algebraic equations:

_{} , (16)

_{} , (17)

_{}, (18)

… и т.д. _{}.

In its turn, the solution of this system requires the knowledge of _{} and _{}, which can be found from the Eq. (9):

_{} , (19)

_{}. (20)

В

While one can reasonably use Eq. (19), a natural question arises with the Eq. (20) – how one should interpret it for the time step _{}? _{} - is not the true unknown function * u* at an intermediate time step

_{}!

In order to overcome this difficulty, it would be naturally to take the known boundary condition (9) at time steps * k* and

*and, thus, to obtain (9) at*

**k+3***:*

**k+2**_{}, (21)

where the parameters _{} and *T* are taken at time moment * k+3*. This choice is based on the fact that our goal is to find

_{}.

After that, Eq. (17) takes the following form:

_{} . (22)

In absolute analogy, consider Eq. (15). In order to find the values of _{}, one has to solve a system of linear algebraic equations:

_{} , (23)

_{}, (24)

_{} , (25)

… and so on_{}.

Finally, let us consider Eq. (13). In order to find the values of _{}, one has to solve a system of linear algebraic equations:

_{}, (26)

_{}, (27)

**i=1**

... adn so on _{}. (28)

In Eq. (27) the values of _{}, _{}, _{} and _{} at _{}can be found from the corresponding 3-rd order boundary conditions. In case of the Dirichlet boundary conditions on one of the faces, the range of indexes in (28) must be changed appropriately (e.g._{}).

As one can see from the discussion above, the correct account of intermediate boundary conditions in case of the 3-rd order boundary conditions posed of the face of the modeling region is not so cumbersome as in case of the Dirichlet boundary conditions.

Now, let us discuss the account of intermediate boundary conditions in case of both Dirichlet and 3-rd order BC’s on different faces. Let the following boundary conditions being posed on the faces of a rectangular modeling region:

_{}, (29)

_{}, (30)

_{}, (31)

_{}, (32)

_{}, (33)

_{} . (34)

i.e., the Dirichlet boundary conditions are posed on the Y faces and the 3-rd order boundary conditions – on all the other.

In accordance with the above presented discussion, the algorithm for the account of intermediate boundary conditions is the following:

1. Find the values of _{} at _{}using the following relation (Eq. (19) of Note 1):

_{}. (35)

and _{} at _{} from the boundary conditions (29) and (30).

2. Find the values of _{} при _{}using the following relation (Eq. (18) of Note 1):

_{} . (36)

This is possible because we know the necessary values of _{} and _{} at _{}.

3. Solve the Eq. (13). One now has everything in order to find _{} at _{}.

4. Solve Eq. (14) by finding solution of a system (16) – (18).

5. Solve Eq. (15) by finding solution of a system (23) – (25).

Thus, following the steps 1 – 5, one finds the solution of the heat equation on the next time step.

One should note that the discussed above method for the account of intermediate boundary conditions has the order of approximation with respect to time variable not higher than _{} . In order to improve this approximation one must use a more sophisticated method for the account of boundary conditions.

The author acknowledges T.I. Lakoba (University of Vermont) for helpful discussions.

1. Lakoba, T. (13 04 2012 r.). Lecture notes on Numerical Differential Equations. Vermont, USA: University of Vermont. – internet resource. http://www.cems.uvm.edu/~tlakoba/