It is also possible to calculate gradient of this func-
tion of the form as mentioned below.
(b + dy, c +dx) (60)
It is also necessary to calculate the Gradient super-
approximation presented in section 3. Two bilinear
functions φ
x
and φ
y
that define gradient in the follow-
ing form.
(φ
x
, φ
y
) (61)
Now it is possible to calculate a posteriori error
estimation on element t using the following formula.
τ
t
=
1
|t|
Z
t
∂Π
t
[φ]
∂x
− Π
t
[φ
x
]
2
+
+
∂Π
t
[φ]
∂y
− Π
t
[φ
y
]
2
dxdy
(62)
A posteriori error estimation is the volume be-
tween two curves (for derivative by x and also by y)
which is normalized to the element area (|t|).
This formula is not applicable directly for the
wave equation because it is suitable only for static
boundary value problems (like Laplace’s equation).
The wave equation includes time domain and it is nec-
essary to reflect that.
τ
t
(t) is calculated for each time step and maxi-
mum value is chosen. This is considered as an a pos-
teriori error estimation for element t. Note that this
value τ
t
does not reflect real error of the solution but
it provides the capability to find an element with the
biggest error.
4.2 Using a Posteriori Error Estimation
It is possible to define a method which attempts to
iteratively adapt triangulation to obtain a more pre-
cise solution. The idea behind this method is to start
with very rough triangulation, which produces quite
big error of the solution. A posteriori error estimation
is calculated and elements with big error are identi-
fied. These elements are then replaced by smoother
triangulation, thus more precise solution is obtained
(Ainsworth and Oden, 1997), (Babu
ˇ
ska and Rhein-
boldt, 1978) and (Verf
¨
urth, 1994) .
The advantage is that it is not necessary to update
triangulation uniformly, which means that less equa-
tions are solved and the system can converge faster.
The following algorithm is used:
1. initialize a rough triangulation,
2. solve the wave equation,
3. calculate a posteriori error estimation,
4. find element with big error and update the trian-
gulation,
5. if error is still big enough, continue with point 2.
4.3 Triangulation Update
When a posteriori error estimation is calculated and
the elements with big error are identified, triangula-
tion update is made. Because of using a specific tri-
angulation with the orthogonal edges only, it is nec-
essary to split an element (vertically or horizontally)
and all the elements of the same horizontal (eventu-
aly vertical) position. The scheme is shown on the
following Figure 7.
-
Figure 7: Vertical triangulation update.
5 RESULTS
A posteriori error estimation is used to wave equation
in the following form
∂
2
u
∂x
2
+
∂
2
u
∂y
2
=
∂
2
u
∂t
2
(63)
with the following domain Ω and Dirichlet bound-
ary values on Ω
Ω = h0, 1i × h0, 1i × h0, 1i (64)
u(0, y,t) = u(1, y,t) (65)
u(1, y,t) = sin(πy) (cos(πt) + sin(πt)) (66)
u(x, 0, t) = u(x, 1, t) (67)
u(x, 1, t) = sin(πx) (cos(πt) + sin(πt)) (68)
and following Cauchy initial values.
u(x, y, 0) = sin (πx) + sin(πy) (69)
∂u(x, y, 0)
∂t
= π(sin (πx) + sin(πy)) (70)
It is well known that this equation has the analyti-
cal solution in the following form.
u(x, y,t) =sin(πx)(cos (πt) + sin (πt))
+sin (πy)(cos (πt) + sin(πt))
(71)
The Finite difference method is used to create a set
of ordinary differential equations that were solved
using the Modern Taylor Series Method. The system
is solved for time interval t ∈ h0, 1i.
SIMULTECH2015-5thInternationalConferenceonSimulationandModelingMethodologies,Technologiesand
Applications
160