Neumann boundary condition in a first order PDE
4 views (last 30 days)
Show older comments
I'm trying to solve the following equation using PDEPE:
dC/dt + v * dC/dx = constant
With the boundary conditions:
C(t,0)=Cin dC(t,L)/dx=0
My question is how can I incorporate the second BC in the PDEPE syntax, if I should define f = [-v]. Is there any posibility to call the penultime value and make it equal to ur, so dC/dx=0? u(x_n) = u(x_(n-1))
Thanks for your cooperation!
Antonio
0 Comments
See Also
Categories
Find more on Boundary Conditions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!