• Nie Znaleziono Wyników

Discretization error estimation

N/A
N/A
Protected

Academic year: 2021

Share "Discretization error estimation"

Copied!
6
0
0

Pełen tekst

(1)

Discretization error estimation

Witold Cecot e-mail: plcecot@cyf-kr.edu.pl

Jerzy Pamin e-mail: jpamin@L5.pk.edu.pl

This lecture was prepared within project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction”, co-financed by the European Union within the European Social Fund

(2)

Discretization error

Errors committed

I Modelling error

I Discretization error (of FEM approximation)

I Solution error

Methods of discretization error estimation

I hierarchical (Runge)

I explicit residual (implicit not considered here)

I based on averaging (Zienkiewicz-Zhu)

I interpolation error analysis (not considered here)

(3)

FE approximation using linear functions

Example problem

Solve BVP using 4 linear elements

−u 00 + u = f , f = x 3 − 6x 2 + 12 , x ∈ (0, 5) bcs: u(0) = 0 , u(5) = 5

Analytical solution:

u analit = x 3 − 6x 2 + 6x

Approximate solution u h (h - element size)

x 0 1 2 4 5

u h 0 0.938 -4.797 9.153 5

Error measure: e def = u − u h

4

−4

−8

x

1 2 3 4

u

h

This lecture was prepared within project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction”, co-financed by the European Union within the European Social Fund

(4)

Hierarchical method e H ≈ u h/2 − u h

u h u h/2

x 0 0.5 1 1.5 2 3 4 4.5 5

u h 0 0.469 0.938 -1.930 -4.797 -6.975 -9.153 -2.077 5 u h/2 0 1.647 1.000 -1.179 -4.138 -9.324 -8.299 -3.543 5 u h/2 −u h 0 1.178 0.062 0.751 0.660 -2.349 0.855 -1.467 0 η H i = q R x i+1

x i (u h/2 − u h ) 2 dx → η 1 H = 0.69, η 2 H = 0.59, η H 3 = 1.70, η H 4 = 0.79

||e H || 2 ≈ ||u h/2 − u h || 2 = R 5

0 (u h/2 − u h ) 2 dx → ||e H || ≈ 2.08

||u h/2 || 2 = R 5

0 (u h/2 ) 2 dx → ||u h/2 || = 12.35 → ||u ||e H ||

h/2 || ≈ 17%

(5)

Error estimation based on residuum (explicit)

Residuum of differential equation

−u 00 + u = f, f = x 3 − 6x 2 + 12 → R(x) = f − (−u 00 h + u h ) Residuum provides bound on error

||e|| ≤ C||R||

In 2D (J - jump of 1st derivative)

||e|| 2 ≤ C(h 2 ||R|| 2 + h||J || 2 ) Error indicator in 1D element i η R i = h i

q R x i+1

x i R 2 dx, u 00 h = 0 → R = x 3 − 6x 2 + 12 − u h

Substitute interpolation for u h , e.g.

η R 1 = 1 q

R 1

0 {x 3 − 6x 2 + 12 − [0(x − 1) + 0.938x]} 2 dx = 9.94 Compute relative error norm

η R 1

||f || ≈ 33%

and compare solution quality in elements

This lecture was prepared within project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction”, co-financed by the European Union within the European Social Fund

(6)

Error estimation based on smoothing e S = ˜ u 0 h − u 0 h

x 4

1 8

−2

−5

3 4

2 1 u

0h

13

˜ u

0h

Smoothed solution derivative ˜ u 0 h (through points determined at element edges)

h

1

h

2

y d

1

d

2

d

1

− d

2

y = h h 2

1 +h 2 (d 1 − d 2 )

˜

u 0 = d 2 + y = d 1 h 2

h 1 +h 2 + d 2 h 1 h 1 +h 2

If h 1 = h 2 then ˜ u 0 = d 1 +d 2 2

˜

u 0 1 = 4.2 (extrapolation to node 1),

˜

u 0 2 = −2.4, ˜ u 0 3 = −4.5, ˜ u 0 4 = 8.7, ˜ u 0 5 = 19.6 η i S = q

R x i+1

x i (˜ u 0 h − u 0 h ) 2 dx η 1 S =

q R 1

0 {[4.2(1 − x) + (−2.4)x] − 0.94} 2 dx = 1.93 η 2 S = 2.35, η S 3 = 8.09, η 4 S = 3.14

||e S || 2 = R 5

0 (˜ u 0 h − u 0 h ) 2 dx = P

i (η i S ) 2||e || ˜ u S 0 ||

h || ≈ 57%

Cytaty

Powiązane dokumenty

Its main targets, 3x20%, a 20% decrease of emissions of CO 2 in general energy balance by 2020, a 20% increase of energy efficiency (in comparison with 1990), and a

Consider- ing the future demographic trends and growing participation in the labour force of the more mature people, it is necessary to increase the involvement of all

This lecture was prepared within project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction”, co-financed by the

This lecture was prepared within project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction”, co-financed by the

Project ”The development of the didactic potential of Cracow University of Technology in the range of modern...

Project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction” is co-financed by the European Union.. Example for

Project ”The development of the didactic potential of Cracow University of Technology in the range of modern construction” is co-financed by the European Union within the confines

“Training for Future Primary School Teachers to Use the Learning Apps Service in Teaching Mathematics,” prepared by Ukrainian researchers Svetlana Skvortsova and Tetiana Britskan,