03.12.2012 Views

C++ for Scientists - Technische Universität Dresden

C++ for Scientists - Technische Universität Dresden

C++ for Scientists - Technische Universität Dresden

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How to Handle Physics on the<br />

Computer<br />

Chapter 9<br />

9.1 Finite Elements<br />

Discretization schemes lead in general to a linear system of equations:<br />

These matrices are typically:<br />

• sparse (there are only few non-zero elements per row)<br />

• large dimension N (10 4 − 10 9 unknowns)<br />

—xx<br />

A x = f (9.1)<br />

The non-zero elements of the matrix Ai,j represent a finite element with both degrees of freedom<br />

i and j connected.<br />

To demonstrate the transfer of a continuous <strong>for</strong>mulated equation such as the Laplace or Poisson<br />

equation to the finite regime of a computer, a simple Dirichlet problem is used. If an implicit<br />

(uni<strong>for</strong>m) 1D-grid with n elements is used, the contribution of each element to the system<br />

matrix A is constant, so called stencil sub-matrix.<br />

⎛<br />

⎜<br />

A = ⎜<br />

⎝<br />

2 −1<br />

−1 2 −1<br />

2D implicit grid of dimension N = (n − 1) 2 is:<br />

−1 2 −1<br />

−1 2<br />

233<br />

⎞<br />

⎟<br />

⎠<br />

(n−1)x(n−1)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!