# Question:How can I extract the solution from pdsolve,numeric?

## Question:How can I extract the solution from pdsolve,numeric?

Maple

Dear All,

I solved the following partial differential equation numerically using pdsolve. As mentioned in the help pages, plotting the solution versus x at a given time is possible.
Can anyone help me extract the plot of the solution versus time at a given space variable x? Also, how can I extract the data of the mentioned plot, for example, u_numeric (0.75, 0.5)?
pd_numeric:=(D[2,2])(u_numeric)(x,t)+(D[1,1,1,1])(u_numeric)(x,t)-0*h(x,t)=0;
bc_numeric[1]:=u_numeric(0,t)=0;
bc_numeric[2]:=(u_numeric)(1,t)=0;
bc_numeric[3]:=D[1,1](u_numeric)(0,t)=0;
bc_numeric[4]:=D[1](u_numeric)(1,t)=0;
ic_numeric[1]:=u_numeric(x,0)=0.1*x*(x-1)^2;
ic_numeric[2]:=D[2](u_numeric)(x,0)=0;

sol:=pdsolve(pd_numeric, {seq(bc_numeric[i], i=1..4), seq(ic_numeric[i],i=1..2)}, u_numeric(x,t), time=t, range=0..1, numeric, spacestep=1/2000, timestep=1/2000);
sol:-plot(t=1);
sol:-animate(t=1, frames=2000, title="time=%f");
Best wishes

﻿