首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代做program、Python,Java程序代写
项目预算:
开发周期:
发布时间:
要求地区:
Advanced Numerical Analysis Chapter 6
6.4.2 Uniform meshes in 2D
We can compute fpx, yq “ ´∆uex explicitly. Moreover, uex “ 0 on BΩ. Then, we consider the homogeneous
Dirichlet problem:
´ ∆u “ f, Ω; (6.30a)
u “ 0, BΩ. (6.30b)
It is immediate to see that uex satisfies the boundary condition. Therefore, by the construction of f, we see
that the exact solution of the above problem is uex.
Exercise 6.8. Show that u R H2
pΩq. (You do not have to show that u P H1` 2
3 ´ǫ
pΩq for any small 0 ă ǫ ă
2
3
.)
Exercise 6.9. Show that ∆pr
α sinpαθqq “ 0.
Exercise 6.10. Compute fpx, yq explicitly.
The 1st step of the FEM is to formulate Problem (6.30) in a weak form. Let V “ H1
0
pΩq. Then the weak
formulation is to find u P V such that
apu, vq “ pf, vq @ v P V. (6.31)
The 2nd step is to define the triangulation Th of Ω. We begin with a uniform triangulation with n and mesh
size h “
1
n
, which is composed of cubes of size h ˆ h. The smartest way of defining the vertex points of the
cubes which are in Ω may be as follows:
pxj , ykq “ hpj ´ n, k ´ nq,
$
&
%
j “ 0, ¨ ¨ ¨ , 2n ; k “ 0, ¨ ¨ ¨ , n;
j “ 0, ¨ ¨ ¨ , n ; k “ n ` 1, ¨ ¨ ¨ , 2n.
(6.32)
Let use denote Rjk “ pxj´1, xj q ˆ pyk´1, ykq.
Exercise 6.11. If g P C
0
pRjkq, for numerical approximation of the integral ş
Rjk
gpx, yq dx use the 2ˆ2 Gauss
quadrature rule. Give the explicit formula for this 2 ˆ 2 Gauss quadrature rule in terms of the coordinates
of Rjk “ pxj´1, xj q ˆ pyk´1, ykq and g.
The 3rd step is to define the finite element space Vh, associated with Th, which approximates V. Notice
that we are solving the Dirichlet boundary value problem, and therefore the basis functions associated with
Th can be given for every interior vertex points pxj , ykq. Denote by Vi
h
and Vb
h
the set of all interior and
boundary vertices of Th.
Let us use the Park-Sheen P1-nonconforming quadrilateral finite element, which consists of piecewise
©Dongwoo Sheen, Ph.D. (http://www.nasc.snu.ac.kr) 143
Advanced Numerical Analysis Chapter 6
linear polynomial on each cube that is continuous at the midpoint of interior edges. The benefit of the
Park-Sheen element is that the gradients of the basis function are a constant vector on each cube, so
that the integration on each element is trivial. Explicitly, let Vh be the the Park-Sheen P1-nonconforming
quadrilateral finite element space:
Vh “ tv P L
2
pΩq | v|Q P P1pQq @ Q P Th; rrvssepmq “ 0 @ midpoint m of interior edge e in Th;
vpmq “ 0 @ midpoint m of boundary edge in Thu,
where rrvssepmq denotes the jump of v across the interface e of Ql and Qr at m.
A set of basis functions for Vh consists of those functions φjk associated with the interior vertices pxj , ykq P
Ω defined as follows. First, notice that there are four rectangles which share an interior vertex pxj , ykq in
Th. Let us call them as
RI
jk “ pxj , xj`1q ˆ pyk, yk`1q, RII
jk “ pxj´1, xj q ˆ pyk, yk`1q, RIII
jk “ pxj´1, xj q ˆ pyk´1, ykq, RIV
jk “
pxj , xj`1q ˆ pyk´1, ykq.
The closure of these four rectangles is the support of φjk. That is, φjk is defined as zero on ΩzYι“I,II,III,IV Rι
jk,
and it is the defined such that it is piecewise linear and it has value 1 at the four midpoints of interior edges
of these four rectangles and value 0 at the eight midpoints of exterior edges of these four rectangles. Notice
that the four midpoints of interior edges of these four rectangles are pxj` 1
2
, ykq pxj , yk` 1
2
q, pxj´ 1
2
, ykq, and
pxj , yk´ 1
2
q. The eight midpoints of exterior edges of these four rectangles are
pxj`1, yk` 1
2
q, pxj` 1
2
, yk`1q on BRI
jk;
pxj´ 1
2
, yk`1q, pxj´1, yk` 1
2
q on BRII
jk;
pxj´1, yk´ 1
2
q, pxj´ 1
2
, yk´1q on BRIII
jk ;
pxj` 1
2
, yk´1q, pxj`1, yk´ 1
2
q on BRIV
jk .
Exercise 6.12. Define the basis function φjkpx, yq on each Rι
jk, ι “ I, II, III, IV. Also, write the formula
for the gradient of the basis function, ∇φjkpx, yq on each Rι
jk, ι “ I, II, III, IV.
By finishing defining the FEM basis functions, we have
Vh “ Spantφjk | pxj , ykq P Vi
h
u,
recalling that Vi
h
denotes the set of all interior vertices of Th.
The 4th step is to set up the linear system using the basis functions φjk in Vh. We will abuse the notation
as follows:
jk P Vi
h ðñ pxj , ykq P Vi
h
.
We will integrate on Ω by integrating over each Q P Th and summing up them. That is,
ahpu, vq :“
ÿ
QPTh
p∇u, ∇vqQ “
ÿ
QPTh
ż
Q
∇u ¨ ∇v dx .
The the finite element solution is to find uh “
ř
jkPVi
h
Ujkφjk such that
ahpuh, vq “ pf, vq @ v P Vh.
©Dongwoo Sheen, Ph.D. (http://www.nasc.snu.ac.kr) 144
Advanced Numerical Analysis Chapter 6
This is equivalent to finding the coefficient vector pUjkqjkPVi
h
such that
ÿ
jkPVi
h
ahpφjk, φlmqUjk “ pf, φlmq @ lm P Vi
h
. (6.33)
Exercise 6.13. For n “ 10, 20, 40, 80, 160 with h “
1
n
, use the CGM (COnjugate Gradient Method) to solve
(6.33) for pUjkqjkPVi
h
. You do not have to report the vectors pUjkqjkPVi
h
. Then, compute the error
Eh “
gffe
ÿ
jkPVi
h
ż
Rjk
|uhpx, yq ´ uexpx, yq|2 dx (6.34)
Then, compute the error reduction ratios
log2
E2h
Eh
, h “
1
10
,
1
20
,
1
40
,
1
80
,
1
160
.
Here, to appoximate ş
Rjk
gpx, yq dx use the 2 ˆ 2 Gauss quadrature rule.
Exercise 6.14. In the above exercise, we used the Park-Sheen P1-nonconforming FEM. But this time, repeat
the same exercise by using the conforming Q1-element (or bilinear element). For this, the space Vh in (6.33)
should be replaced by
Vh “ tv P C
0
pΩq | v|Q P Q1pQq @ Q P Th; v “ 0 on BΩu.
Here, and in what follows, for domain K Ă R
2
, Q1pKq “ Spant1, x, y, xyu “ ta0 ` a1x ` a2y ` a3xy |
a0, a1, a2, a3 P Ru. Then, in this Q1-conforming element case, define the basis function φjkpx, yq P Vh on
each Rι
jk, ι “ I, II, III, IV so that
φjk|Rι
jk
P Q1pR
ι
jkq @ ι “ I, II, III, IV
and
φjkpxl
, ymq “ δjlδkm @ lm P Vi
h
.
Of course, you need to have the gradient ∇φjk, too.
6.4.3 Graded meshes in 2D
Continuing from the previous subsection, now we proceed to work on graded meshes.
As in the 1D example, we attempt to introduce graded meshes on the corner singular elements.
This procedure is a recursive procedure.
They are three elements of size h ˆ h from Th that share their vertices with p0, 0q :
Rnn “ pxn´1, xnq ˆ pyn´1, ynq “: G
p0q
c
,
Rn`1,n “ pxn, xn`1q ˆ pyn´1, ynq “: G
p0q
r
,
Rn,n`1 “ pxn´1, xnq ˆ pyn, yn`1q “: G
p0q
t
.
©Dongwoo Sheen, Ph.D. (http://www.nasc.snu.ac.kr) 145
Advanced Numerical Analysis Chapter 6
Let us denote the above three rectangles by G
p0q
c , Gp0q
r , Gp0q
t and their centers by g
p1q
c , g
p1q
r , g
p1q
t
, respectively.
(“c,r,t” mean center, right, top.) Also the superscript pkq denotes the k-th level of mesh grading. Using the
centers g
p1q
ι , ι “ c, r, t, we subdive each of the rectangles G
p0q
ι , ι “ c, r, t, into two quadrilaterals Q
p1q
ι,1
, Qp1q
ι,2
,
and a cube G
p1q
ι of size h{2. The cubes G
p1q
ι are supposed to have common vertex p0, 0q and edges are parallel
to the x- and y-axes.
In this procedure, there are two new vertices, denoted by g
p1q
h “ hp´1
2
, 0q and g
p1q
v “ hp0, ´
1
2
q (“h,v”
represent horizontal and vertical).
By this, we have 5 more interior vertices g
p1q
ι , ι “ c, r, t, h, v and three original rectangles of size h are
subdivided to 6 quadrilaterals and 3 cubes G
p1q
ι of size h
2
.
We repeat this procedure for G
p1q
ι to get 3 cubes G
p2q
ι of size h
2
2 with 5 more vertices g
p2q
ι , ι “ c, r, t, h, v.
Repeating this procedure for s steps, we have 5s new graded vertices g
pkq
ι , ι “ c, r, t, h, v for k “ 1, 2, ¨ ¨ ¨ , s
in addition to the uniform vertices pxj , ykq
1
s.
For each of these graded vertices, we can creat new basis functions ψ
pkq
ι , ι “ c, r, t, h, v for k “ 1, 2, ¨ ¨ ¨ , s.
Hence we will have modified finite element space associated with the graded meshes:
V
psq
h “ Spantφjk,pj, kq P Vi
h
; ψ
pkq
ι
, ι “ c, r, t, h, v for k “ 1, 2, ¨ ¨ ¨ , su.
Here, observe that the five basis functions φn´1,n`1, φn´1,n, φn´1,n´1, φn,n´1, φn`1,n´1 are modified from
those associated with the uniform mesh due to the modification of the origianl uniform mesh, and they have
new supporting quadrilaterals.
The finite element solution is then to find uh P V
psq
h
of the form
uh “
ÿ
jkPVi
h
Ujkφjk `
ÿs
k“1
ÿ
ι“c,r,t,h,v
Gkιψ
pkq
ι
.
which satisfies
ÿ
jkPVi
h
ahpφjk, φlmqUjk `
ÿs
k“1
ÿ
ι“c,r,t,h,v
ahpψ
pkq
ι
, φlmqGkι “ pf, φlmq @ lm P Vi
h
, (6.35a)
ÿ
jkPVi
h
ahpφjk, ψppq
q
qUjk `
ÿs
k“1
ÿ
ι“c,r,t,h,v
ahpψ
pkq
ι
, ψppq
q
qGkι “ pf, ψppq
q
q (6.35b)
@ p “ 1, ¨ ¨ ¨ , s, q “ c, r, t, h, v.
In (6.35), observe those terms without common support are zeros. So the above system is sparse.
Exercise 6.15. You can choose to use either the Park-Sheen P1-nonconforming element or the conforming
Q1 element. Let the grading step number to be s “ 5.
1. Give the explicit formula of the basis functions and their gradients φn´1,n`1, φn´1,n, φn´1,n´1, φn,n´1, φn`1,n´1.
Also give the explicit formula of the basis functions and their gradients ψ
pkq
ι , ι “ c, r, t, h, v for k “
1, 2, ¨ ¨ ¨ , su.
©Dongwoo Sheen, Ph.D. (http://www.nasc.snu.ac.kr) 146
Advanced Numerical Analysis Chapter 6
2. Use the Conjugate Gradient Method to solve (6.35) in order to find the coefficients the coefficients
pUjkqjkPVi
h
and pGkιqι“c,r,t,h,v;k“1,2,¨¨¨ ,s.
Finally compute the error reduction ratios
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!