We get a good estimate of the error if we first assume a pointwise
approximation to the exact solution:
.
The
pointwise error estimate is then:
,
where A is a constant value, g denotes the grid being used, Sg is
the obtained solution, L is the exact solution and p is the
unknown error order.
The considered grid sizes follow the relationships:
and
,
then, using grid
th5, th20 and th80 in the refinement study:
Being Sth80 the numerical solution with the smallest truncation error, we can approximate the exact solution L by it. By evaluating the ratio between two successive error estimates Eth5 and Eth20 we can estimate p, the unknown order of the approximation error.
From the above three equations, eliminating L, A,
,
and taking the norm, we get the ratio
Ra=|| Sth5-Sth80 || / ||
Sth20 - Sth80 || = (4p-1)/(2p-1). Solving for p gives:
p =
log2( Ra-1).
The solution tested included the level .
Accuracy estimation
in the velocities u, v is the same.
Figure 7.1 represents level output at 3 points of the channel: P1 at the West border (inflow, x=0), P2 at the middle of the channel (x=100 km) and P3 at the East (outflow, x=200 km) border. At this ordinate axis scale output from the model running on th5, th20 or th80 shows no appreciable difference. It may be argued that the most significant point to measure the accuracy is P3 where the non reflective BC is being applied; however, we decided to use all 3 points along the channel to be more general.
Figure 7.2 shows the difference of the level output
running over the th5 (=2000 m) and th80 (
=500
m) grids. Figure 7.3 shows the difference of the
level output running over the th20 (
=1000 m) and th80grids. Notice the different y axis scale when compared to figure
7.1.
Table 7.1 represents the numerical values obtained in the above mentioned simulations. The infinite norm is employed.
|
The analytical accuracy presented in Section 7.1 suggests that the numerical scheme is at least second order accurate while this experiment shows a slightly better behavior instead.