next up previous
Next: Problem 2 Up: Hints Previous: Hints

Problem 1

The variational form of (1) that should be specified in the file Poisson.m is

    du'*dv*dx + g(x,d,t)*u*v*ds

for the left-hand side and

    f(x,d,t)*v*dx + (g(x,d,t)*gd(x,d) - gn(x,d,t))*v*ds

for the right-hand side. To assemble the matrix, write

    A = AssembleMatrix(p, e, t, 'Poisson', [], 0)

and to assemble the vector, write

    b = AssembleVector(p, e, t, 'Poisson', [], 0)

The last two arguments are not used in this computer session, but will be very important in the coming computer sessions.



Christoffer Cromvik 2004-04-25