Hello brainer101,
Sorry that it took so long to come back, it was a busy week.
I will give some info on how to obtain the solution, with intermediate
results, but the calculation itself is something you need to do by
yourself. Come back if anything is unclear.
So, the way to solve this problem is by stating that the solution
is made up of two parts, one part the steady-state and the other
the transient. This means that you need to write the solution as:
U(z,t)=V(z,t)+W(z,t)
with V(z,t) the steady-state solution and W(z,t) the transient part.
The steady-state solution is independent of time t. Thus we have V(z).
Substituting this into the original PDE gives then the following two
equations:
\frac{dV^2}{dz^2}=0
\frac{\partial W}{\partial t}=C \cdot \frac{\partial^2 W}{\partial t^2}
The first equation (steady-state) has the following boundary conditions:
V(L)=0
\left . \frac{dV}{dz}\right|_{z=0}=-B
The solution is thus:
V(z)=B(L-z)
The second equation can be solved by separation of the variables. This gives
two ODEs:
\frac{T'}{T}=C\frac{Z''}{Z}=\sigma
which is:
T'-\sigma T=0
Z''-\frac{\sigma}{C}Z=0
The boundary conditions are here now:
Z(L)=0
Z'(0)=0
Now there are three possible values for sigma, smaller, equal and larger than zero.
First let's consider zero. This gives the zero solution and must be discarded.
Secondly consider a positive value, this gives a non-bounded solution and must be discarded. Finally let's consider a negative value and set it equal to:
\sigma=\lambda^2
The equation for T gives now:
T(t)=K_1\cdot e^{-\lambda^2 t}
The one for Z is now:
Z''+\frac{\lambda^2}{C}Z=0
The solution:
Z(z)=K_3 cos\left(\frac{\lambda}{\sqrt{C}}z\right)
after applying the boundary conditions. The value for lambda is:
\lambda_k=\frac{\sqrt{C}}{L}(2k+1)\frac{\pi}{2}
and k=0,1,2,...
The total solution (transient and steady-state) is now given as:
U(z,t)=B(L-z)+\sum_{k=0}^{\infty}K_k\cdot e^{-\lambda^2_k t}\cdot cos\left(\frac{(2k+1)\pi z}{2L}\right)
At t=0 the initial condition gives:
U_0-B(L-z)=\sum_{k=0}^{\infty}K_k\cdot cos\left(\frac{(2k+1)\pi z}{2L}\right)
The coefficients Kk can be found by using a Fourier series expansion by a quarter
periodic extension with odd terms.
This gives after some integrals:
K_k=\frac{4U_0(-1)^k}{(2k+1)\pi}-\frac{8BL}{(2k+1)^2\pi^2}
and the total solution is now complete.
Hopefully I didn't make any mistakes, so check this very carefully.
best regards,
coomast