| Author |
Comment/Response |
Martin Wijaya
|
12/12/12 10:27am
Dear All
I have a PDE as a the following:
u is a function of z(depth) and t(time) and C is just a constant
du/dt=(d^2u/dz^2)*C
I try to solve it by writing it like this
NDSolve[{D[u[y, t], t] == D[u[y, t], {y, 2}], u[0, 0] == 100,
u[2, 0] == 0, D[u[2, 0]] == 0,
D[u[0, 0] == 0]}, u, {{y, 0, 2}, {t, 0, 10}}]
however, this is the result that I got
NDSolve::dsvar: {y,0,2} cannot be used as a variable. >>
The attachment is a notebook that I used
Please help
Regards
Martin Wijaya
Attachment: NDSsolve practice.nb, URL: , |
|