Student Support Forum: 'Encountered non-numerical Value, For Heat Eqn' topicStudent Support Forum > General > Archives > "Encountered non-numerical Value, For Heat Eqn"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Autobot 02/26/12 08:46am Hi there. Just wanted to make a 3d plot of the 1-d heat equation. Very new to Mathematica so a little green. This was all given (ut is partial wrt time, etc...) ut - 0.1uxx = f(x,t) 00 g1 = (sin[4*x] + cos[2*x])*(cos[t] + sin[t])/.x->2 g2 = (sin[4*x] + cos[2*x])*(cos[t] + sin[t])/.x->3 f = dt - 0.1*dxx Then using NDSolve pde = NDSolve[{D[u[x, t], {t, 1}] == 0.1*D[u[x, t], {x, 2}] + f, u[x, 0] == v, u[2, t] == g1, u[3, t] == g2}, u, {x, 2, 3}, {t, 0, 2}] NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0 Can't get away from this. Any help would be greatly appreciated. URL: ,

 Subject (listing for 'Encountered non-numerical Value, For Heat Eqn') Author Date Posted Encountered non-numerical Value, For Heat Eqn Autobot 02/26/12 08:46am Re: Encountered non-numerical Value, For Heat Eqn jf 02/26/12 7:02pm
 Next Comment > Help | Reply To Topic