Question: Code derivative boundary conditions

I would like to be able to code boundary conditions of the following type: u[x](0,t)=0 and u[x](1,t)=4 where u[x] is differentiating u with respect to x. I can code for non derivative boundary conditions using a for loop. Is the process similar? I have tried to find some examples on the internet but can't find any.
Please Wait...