Professional Documents
Culture Documents
Accuracy Tests For Comsol and Delaunay Meshes
Accuracy Tests For Comsol and Delaunay Meshes
1. Introduction
The accuracy of a numerical solution for a given
level of grid refinement depends, among other
factors, on the mesh quality.
We examine two test problems for the Laplace
equation, one in 2D and one in 3D, as a classical
partial differential equation and a generalized
problem with an inhomogeneous material
property. Both test problems represent typical
problem constellations with applications in
various fields, from electrostatics, porous media
flow to fluid dynamics.
We explore various model approaches,
concerning Lagrange Finite Element, and
meshing techniques. We demonstrate the gain
from using adaptive meshing. We also compare
with theoretical results: for most models the
convergence order lies between 1 and 1.5 (for
default quadratic elements), i.e. between a linear
and a quadratic increase of accuracy with the
e = O ( h )
(1)
= 2
ln ( e1 ) ln ( e2
(2)
ln ( DOF1 ) ln ( DOF2 )
q=
4 3A
h + h22 + h32
(3)
2
1
q=
72 3V
(h
2
1
3/ 2
(4)
3. Test-cases
3.1
2D Testcase 1
(5)
Refinements
DOF
1085
No.
elements
506
e
10
2
4
301
4193
2024
129
16481
8096
69
65345
32384
36
260225
129536
13
1.25
0.94
0.9
1
2.9
7
Mean
elem. size
10
-3
DOF
No.
elements
e
10
2
4
466
833
27000
10-3/2
917
1693
580
-3
10 /4
1788
3375
388
10-3/8
3529
6783
271
104
Mean
elem. size
DOF
No.
elements
10-3
1764
833
26897
-3
10 /2
3526
1693
126
10-3/4
6950
3375
101
-3
13840
6783
78
10 /8
Mean
elem. size
DOF
10-3
1849
854
177
10-3/2
3535
1678
133
-3
10 /4
6977
3352
102
10-3/8
13805
6728
73
-3
14257
6954
75
10 /8
No.
elements
104
elements
104
No.
elements
500
938
2302
1937
3752
996
7625
15008
433
30257
60032
188
120545
240128
79
DOF
3.2 2D Testcase 2
(u ) = 0
Refinements
1.22
1.23
1.21
1.25
elements
e
Refinements
DOF
No.
elements
104
1937
938
593
7625
3752
256
30257
15008
110
120545
60032
44
481217
240128
14
1.22
1.23
1.33
1.65
DOF
No.
elements
104
500
938
2302
1555
3026
318
4064
8002
155
9729
19268
137
21797
43318
132
46840
93313
132
Table 8:
Refinements
Residual
method
Refinem.
method
DOF
weak
longest
6971
3454
21
weak
longest
21840
10867
weak
regular
5505
2722
45
weak
regular
14395
7152
coeff.
regular
5107
2522
45
"
regular
12749
6326
No.
elements
eu
104
Refinements
DOF
No.
elements
Mesh
increase
1
2
3
4
5
6
7
8
9
10
11
12
13
1997
2089
2133
2185
2301
2401
2517
2577
2773
2973
3193
3505
3829
968
1014
1036
1062
1120
1170
1228
1258
1356
1456
1566
1722
1884
1.032
1.048
1.022
1.025
1.055
1.045
1.050
1.024
1.078
1.074
1.076
1.100
1.094
284
133
125
64
55
35
24
21
20
12
10
10
10
3.3 3D Testcase
Take the triangle with positions (0,0), (-1,-1) and
(-1,0) in (x,y) axis for z=0; extrude in z-direction
to level z=1 and twist at the same time by =
165 (=11/12). The resulting 3D domain is
narrow near the middle level of z=0.5, compared
to the ends at z=0 and z=1. If one applies a
potential difference (again 0 and 1), and sets all
other boundaries to isolators (no flow Neumann
condition), one obtains a potential field that has
almost no gradient near the ends. In the middle
there are steep gradients.
z
Figure 5: Model region for 3D testcase, with
elements.
Mesh
&
Refinements
extra
coarse
coarser
coarse
normal
fine
finer
extra
fine
extra
coarse
coarser
coarse
normal
fine
finer
extra
fine
normal
& ref.1
fine &
ref.
finer &
ref.
coarser
& ref.
normal
& ref
fine &
ref.
finer &
ref.
extra
fine &
ref.
DOF
Quality
optim.
No.
elements
Mesh
quality
381
162
0.0846
16.8
573
765
1461
2821
6668
18896
253
352
714
1492
3849
11801
0.0508
0.0567
0.0561
0.0248
0.0270
0.0192
12.5
9.72
2.28
0.79
0.22
0.09
382
161
0.2030
17.9
572
757
1425
2736
6452
18158
+
+
+
+
+
+
250
342
676
1407
3633
11063
0.1934
0.0697
0.1814
0.2049
0.1954
0.2191
12.2
9.61
1.69
0.81
0.11
0.06
4527
2636
0.0405
2.10
9192
5578
0.0205
0.57
23552
15155
0.0223
0.078
1656
880
0.0899
8.85
4289
2465
0.1174
2.02
8686
5197
0.1084
0.28
22415
14270
0.1373
0.035
63818
42183
0.1404
0.022
102
elements
Mesh
&
Refinements
extra
coarse
coarser
coarse
normal
fine
finer
extra
fine
extra
coarse
coarser
coarse
normal
fine
finer
extra
fine
normal
& ref.1
fine &
ref.
finer &
ref.
coarser
& ref.
normal
& ref
fine &
ref.
finer &
ref.
extra
fine &
ref.
DOF
Quality
optim.
No.
elements
Mesh
quality
74
162
0.0846
2.21
108
140
255
464
1028
2726
253
352
714
1492
3849
11801
0.0508
0.0567
0.0561
0.0248
0.0270
0.0192
2.21
1.46
0.55
0.42
0.25
0.127
75
161
0.2030
2.58
109
141
256
464
1028
2726
+
+
+
+
+
+
250
342
676
1407
3633
11063
0.1934
0.0697
0.1814
0.2049
0.1954
0.2191
0.90
1.47
0.60
0.38
0.26
0.109
732
2636
0.0405
3.82
1436
5578
0.0205
3.13
3510
15155
0.0223
1.46
286
880
0.0899
1.10
697
2465
0.1174
0.45
1368
5197
0.1084
0.311
3357
14270
0.1373
0.130
9273
42183
0.1404
0.072
102
4. Summary
5. References
1. Bradji A. & Holzbecher E., On the convergence
order of COMSOL solutions, European COMSOL
Conference, Grenoble, COMSOL (ed), 2007 (CDROM)
2. Bradji A. & Holzbecher E., On the convergence
order in Sobolev norms of COMSOL solutions,
COMSOL Conference, Budapest, 2008 (to appear)
3. Ciarlet Ph. P., Basic error estimates for elliptic
problems, in: Handbook of Numerical Analysis II,
Finite Element Methods (Part 1), P.G. Ciarlet & J.L.
Lions (eds.), North-Holand, Amsterdam, 17-352, 1991
4. Delaunay, B. Sur la sphre vide, Izvestia Akademii
Nauk SSSR, Otdelenie Matematicheskikh
i
Estestvennykh Nauk 7, 793800, 1934
5. Driscoll T.A., A MATLAB toolbox for SchwarzChristoffel mapping, ACM Trans. Math. Soft. 22, 168186, 1996
6. Driscoll T.A. & Trefethen L.N., SchwarzChristoffel mapping, Cambridge Univ. Press,
Cambridge, 132p, 2002
7. Jnicke L. & Kost A., Convergence Properties of
the Finite Element Method, IEEE Transactions on
Magnetics 35 (3), 1414-1417, 1999
8. Jnicke L. & Kost A., Error Estimation and
Adaptive Mesh Generation in the 2D and 3D Finite
Element Method, IEEE Transactions on Magnetics 32
(3), 1334-1337, 1996
9. Krause J., personal communication
10. MATLAB, The Mathworks,
http://mathworks.com, 2008
11. Rajan, V. T., Optimality of the Delaunay
triangulation in d , Discrete and Computational
Geometry 12, 189-202, 1994
12. Shewchuk J.R., A two-dimensional quality mesh
generator
and
Delaunay
triangulator,
http://www.cs.cmu.edu/~quake/triangle.htm, 2008