• Keine Ergebnisse gefunden

Winter 2016 / 17

N/A
N/A
Protected

Academic year: 2021

Aktie "Winter 2016 / 17"

Copied!
4
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Exercises to Wissenschaftliches Rechnen I/Scientific Computing I (V3E1/F4E1)

Winter 2016 / 17

Prof. Dr. Martin Rumpf

Alexander Effland — Stefanie Heyden — Stefan Simon — Sascha Tölkes

Problem sheet 3

Please hand in the solutions of exercise 8 and 9 on Tuesday November 15 ! Please prepare the solution of programming task 1 for Thursday November 24 !

Exercise 8 2+4 Points

(i.) Show that ∆ log (| x |) = 0 if x ∈ R

2

\{ 0 } .

(ii.) Determine the weak solution of the following boundary value problem in R

2

:

 

 

− div ( a ∇ u ) = 0 in B

2

( 0 ) \ B

1 2

( 0 ) , u = 1 on ∂B

1

2

( 0 ) , u = 0 on ∂B

2

( 0 ) with

a ( x ) =

( 1 if | x | ≤ 1 , 2 if | x | > 1 .

Exercise 9 4+2+2 Points

Consider the Argyris finite element ( T, P

5

, Γ ) with the following 21 degrees of free- dom

Γ ( p ) = ( Γ

α

( P ))

α=1,...,21

= { p ( x

i

) ,

k

p ( x

i

) ,

k

l

p ( x

i

) ,

ni

p ( m

i

)}

i∈{0,1,2},k,l∈{1,2}

, where n

i

denotes the outer normal associated with the edge E

i

at the edge midpoint m

i

.

(i.) Show that any function in P

5

( T ) is uniquely determined by an Argyris finite

element function on T.

(2)

x

0

x

1

x

2

E

0

E

1

E

2

Let T

h

be any triangulation of a polygonal domain Ω ⊂ R

2

, V

h

be the space of Argyris finite elements on T

h

.

(ii.) Show that a function v ∈ V

h

is continuous.

(iii.) Show that a function v ∈ V

h

restricted to an edge has continuous normal and

tangential derivatives and conclude that v is differentiable.

(3)

Programming task 1

Consider Poisson’s problem

− 4 u = f on Ω , ( 1 )

u = u

on ∂Ω .

We assume u

≡ 0. Then the weak formulation of ( 1 ) is

Z

u · ∇ ϕ dy =

Z

f ϕ dy ( 2 )

for f ∈ L

2

( ) .

Consider two different functions f : 1 . f ≡ 1 and

2 . a function f that is obtained by mapping [ 0, 1 ]

2

to [− 1, 1 ]

2

, interpreting that domain as the complex plain and then taking the imaginary part of z

23

. For details on the implementation and a simplified formula, we refer to ( 4 ) below.

In this programming task, problem ( 2 ) should be solved using linear ( P

1

) finite elements. On the lecture web site, you can download a code framework written in C++ which implements a general two-dimensional triangular mesh for 2 D problems and surfaces in 3 D using P

1

finite elements. All computations are performed on the unit triangle and then mapped to the respective element using a transformation X.

x ˆ

0

x ˆ

1

x ˆ

2

E

2

E

0

E

1

X ( x ˆ ) = A x ˆ + b

x

0

x

1

x

2

x

i

= X ( x ˆ

i

)

We denote the unit triangle by ˆ T and set ˆ u = u ◦ X and ˆ v = v ◦ X as the pullback of u and v. Using the transformation formula we derive

Z

T

∇ u · ∇ v dy =

Z

det DX

T

DX ∇ u ˆ

T

DX

T

DX

−1

∇ v ˆ d ˆ y ( 3 ) for a triangle T ∈ T

h

, where T

h

is a triangulation of Ω. The transformation formula also has to be applied to the right hand side integral.

To assemble the system matrix, we use the common scheme of iterating over all elements, assembling local matrices there and then mapping local indices on the element to global node indices.

The following code fragments have to be filled in:

lib/triangleMesh/unityTriangleIntegratorShellFE.h The local assembly of

Z

k,l

∇( φ

i

)

k

a

kl

∇( φ

j

)

l

d ˆ y

for basis functions φ

i

and φ

j

and a given matrix A = ( a

kl

)

k,l

.

(4)

lib/triangleMesh/unityTriangleIntegratorShellFE.h

The assembly of the global system matrix from local matrices.

course/stiffnessMatrixIntegrator.h Implement the transformation of R

T

∇ u · ∇ v dy using formula ( 3 ).

course/rhs.h

The assembly of the right hand sides. Implement f ≡ 1 and

f ( y ) = (− 1 + 2y

1

)

2

+ (− 1 + 2y

2

)

2

1

3

sin

23

atan2(1 + 2y

2

, − 1 + 2y

1

) . ( 4 ) atan2(y

2

, y

1

) is a C++ function computing the angle in radians.

In the operator structure given, you only have to implement the evaluation of the numerical quadrature of f on a triangle T (given as element el in the code).

Further information: The code can be downloaded from the lecture web site, where you can also find input files containing discretized computational domains of varying grid size, additional information and a documentation of the classes needed to solve this task. A configuration file for CMake , which can be used to create Makefiles and project files for different IDEs, is provided. To compile, you need to download and install the Eigen library.

Results will be saved in the legacy VTK format which can be visualized by a number of tools, e. g. Paraview.

• http://numod.ins.uni-bonn.de/teaching/ws 16 /WissRechI/

• https://cmake.org/

• http://eigen.tuxfamily.org/

• http://www.paraview.org

Referenzen

ÄHNLICHE DOKUMENTE

After connecting the scanner to your Macintosh computer, install the EPSON scanner software; EPSON TWAIN, EPSON Scanner Monitor, PageManager for EPSON and other application

❏ To access the EPSON Status Monitor 3 from your application, click the Print or Page Setup command on the File menu, click Properties, and then click the Utility tab, and click

Attach the printer’s side cover unless the optional Large Capacity Paper Unit is installed.. Follow these steps to attach the printer’s

When you no longer need to feed paper manually, be sure to clear the Manual Feed check box in the printer driver’s Basic Settings menu (Windows) or Basic Settings dialog box

For Windows, access the printer driver, click the Basic Settings tab, and select the paper source that you want to use from the Paper Source list.. Then

❏ Before printing, make sure that the Paper Size setting in your printer driver matches the paper you load.... Pinch the paper guide tab, then slide the paper guide outward

There are several setup option pages in this dialog box, such as General, Background Printing, Cover Page, Layout, Error Handling, PostScript Settings, and Printer Setting..

Make sure the EPSON Stylus Scan 2000 Software for Windows CD-ROM is still in your CD-ROM drive, and click