• Keine Ergebnisse gefunden

)()(xfxu=Δ− Follow the lecture material and implement the calculation of the stiffness matrix A as:

N/A
N/A
Protected

Academic year: 2021

Aktie ")()(xfxu=Δ− Follow the lecture material and implement the calculation of the stiffness matrix A as:"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Computational seismology – Finite element method

1. Finite Element: static problem. Calculate with the help of the finite-element formulation in Matlab® the following problem:

) ( )

( x f x

u =

Δ

Follow the lecture material and implement the calculation of the stiffness matrix A as:

% assemble matrix Aij A=zeros(nx);

for i=2:nx-1, for j=2:nx-1, if i==j,

A(i,j)=1/h(i-1)+1/h(i);

elseif i==j+1

A(i,j)=-1/h(i-1);

elseif i+1==j A(i,j)=-1/h(i);

else

A(i,j)=0;

end end end

The calculation should be made in the interval [0,1]. The space is discretised with 5 points:

1/10 * [0, 2, 3, 8, 10]. The boundary conditions are u(0)=0.5, u(1) =3. The forcing is given as )

( )

(x x xs

f =δ − , xs=3. Complement the above Matlab code part to the complete solution.

Note that through the Delta function the elements of the source vector are simply the boundary value divided by the element size.

2. Finite element, time-dependent problem

We want to compare the numerical solutions of the acoustic wave equation using finite differences and finite elements. Download the program femfd.m and the circular shift function csh.m and run it (>> femfd). Inspect the source code and appreciate the entirely different approach to solving the acoustic wave equation (by matrix inversion in the FEM case and by differencing in the FD case). We want to demonstrate the flexibility of the FEM approach by modifying the regular grid spacing. Options are (1) to add a random perturbation to the regular grid spacing, (2) to make a sinusoidal perturbation of the grid spacing, (3) Gaussian perturbation, (4) Chebyshev collocation points. Implement one or several of those perturbations and investigate the influence on the solution.

Access to codes here:

http://www.geophysik.uni-muenchen.de/~igel/Utrecht07/practical.html

Referenzen

ÄHNLICHE DOKUMENTE

meteorite contains C-rich material at some individual measurement po- sitions. The other points can be identi fi ed as a mixture of melilite and albite. 6d) show that the

Idea: Reduce infinite sequence f 0 of initial data points to the vector F 0 defining the limit function f on [0,

In exactly this way the working individual in his or her everyday life-world is able to experience the “total- ity” of the life-world with its different reality spheres; the

c) Ich bin ursprünglich ein Mann, der dem Himmel gefügig und einem ruhigen Leben ergeben ist. Weil das Mingreich mit den Cahar und den Kalka mich allzu schwer beleidigt, kann ich

(b) Describe how to construct a standard array and a syndrome look-up table. Explain how the standard array and the syndrome look-up table can be used for decoding with

A matriz de insumo-produto é uma excelente ferramenta de análise nesse sentido, permitindo visualizar as articulações entre o turismo e o restante da economia, bem como estimar

In accord with public choice theory, exist an “affinity” of a social group - local communities in this case - for a certain political party or political coalition, in which

Nevertheless, the framework of the fermionic projector differs from standard quantum theory in that for many-particle wave functions, the superposition principle does not hold on