The PDE is
\[ \frac {\partial T\left ( x,t\right ) }{\partial t}=k\frac {\partial ^{2}T\left ( x,t\right ) }{\partial x^{2}} \]
Problem: given a bar of length \(L\) and initial conditions \(T\left ( x,0\right ) =\sin \left ( \pi x\right ) \) and boundary conditions \(T\left ( 0,t\right ) =0,T\left ( L,t\right ) =0\), solve the above PDE and plot the solution on 3D.
Use bar length of \(4\) and \(k=0.5\) and show the solution for \(1\) second.