Beruflich Dokumente
Kultur Dokumente
where
we first need to shape the equations and the boundary conditions into
the following form:
where
ELLIPTIC PDE
For 0 x 4, 0 y 4
This can be cast into the following algorithm, called the explicit
forward Euler method, which is to be solved iteratively:
If the values of uk0 and ukM at both end points are given from the
Dirichlet type of boundary condition, then the above equation will
be cast into a system of simultaneous equations:
PARABOLIC PDE
with
PARABOLIC PDE
one-dimensional wave equation for the
amplitude function u(x, t)(x is position, t is
time) as
for 0 x 2, 0 y 2, and 0 t 2
for 0 x 2, 0 y 2 and 0 t 2
membrane
end
else
for i = 2:My
for j = 2:Mx %Eq.(<eqnr>9.3.10)</eqnr>
u(i,j) = rx*(u_1(i,j - 1)+ u_1(i,j + 1))...
+ ry*(u_1(i - 1,j) + u_1(i + 1,j)) + rxy2*u(i,j) -u_2(i,j);
end
end
end
u_2 = u_1; u_1 = u; %update the buffer memory
mesh(x,y,u), axis([0 2 0 2 -.1 .1]), pause
end