How can I use pdepe to solve a PDE with an integral boundary condition?

8 次查看(过去 30 天)
I would like to solve a PDE of the form
du(x,t)/dt = - du/dx - u
with the boundary condition
u(0,t) = int(u(x,t),x0,xf).
Since the usual @bcfun does not have argument u, is this boundary condition possible? If so, how would I formulate it?
Thanks in advance for any help.

回答(2 个)

Youssef  Khmou
Youssef Khmou 2013-9-27
why not solve, first, for u(0,t) for known x0 and xf, using integral or quad or trapz next follow the routine ?
  1 个评论
Jessica
Jessica 2013-9-28
Thanks for the suggestion, Youssef. If I were writing my own PDE solver, I'm sure that I would follow such a scheme. However, I would like to use the PDE solver that is built in to Matlab, pdepe.

请先登录,再进行评论。


Youssef  Khmou
Youssef Khmou 2013-9-28
hi, take a look at the file,

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by