Question: How do I save a data file for numerically solution from PDE ?

Hello my name is Irving 

I'm a Maple primer. I want to solve an PDE numerically and then save the data to file.

  I used:
> restart;
> g:=0.2;
> PDE := diff(u(x,t),t,t) -diff(u(x,t),x,x) + g*diff(u(x,t),t) - 1/2*(u(x,t)-u(x,t)^3)=0 ;
> IBC := {u(x,0)= tanh(x),u(-15,t)= -1,u(15,t)= 1 ,D[2](u)(x,0)= -1/(cosh(x))^2};
> sol:= pdsolve(PDE,IBC,numeric,u(x,t));

 Then how can I print the formated data from pdsolve, in the following form: (three row)

time  x   solution 

I mean for one time fixed , vary x in a especific range , and put the solution that pdsolve give me.

Thanks you.


Please Wait...