I am attempting to set up a Neumann boundary condition for a PDE that evaluates differently for different times. I am using Piecewise to do this. Here is the Boundary condition:
$$U^{3/2}[x=L,t] = -\frac{c_2}{c_1}\frac{\partial U}{\partial x}[x=L,t] $$
In this problem, the initial condition is defined to be:
$$U[x,t=0] = z\:(a\:constant) $$
One can see that at t=0, there is an inconsistency at x = L. I have been seeking a work around for this, First by introducing the BC as piecewise defined, such that at t = 0, the derivative of the surface at the edge is 0, and at t > 0 it is as seen above. Here is the code I have been using for the definition of the boundary condition:
BC = -C2/C1 (D[u[x, t], x] /. x -> L) ==
Piecewise[{ {1, t = 0}, {((u[x, t])^(3/2) /. x -> L), t > 0 } } ]
This is the output: $$-1. u^{(1,0)}(1,t)=\left( \begin{array}{cc} \begin{array}{cc} u(1,t)^{3/2} & t>0 \\ 1 & t\leq 0 \\ 0 & True \\ \end{array} \\ \end{array} \right) $$
Beyond that I don't understand the third line "0 True", this is not working to generate a consitent boundary condition at x=L and t=0 for NDSolve. Am I using [Piecewise] incorrectly, or misapplying it here?