Solving a PDE withconditions not situated on the left and right boundaries
Show older comments
I was able to solve a PDE using function pdepe. Currently my boundary conditions are situated at the left and right boundaries, that is at x=0 and x=L. However, the solution of my PDE is such that, with time, it should quickly overcome the boundaries, with values at x<0 and x>L. How do I implement this?
Answers (2)
Torsten
on 5 Oct 2015
0 votes
Transform your equation to the new coordinate x* such that the boundaries become 0 and 1 for all times t:
x* = (x-lower(t))/(upper(t)-lower(t))
where lower(t) and upper(t) are the lower and upper boundaries at time t.
This will give you a PDE over the fixed interval [0;1] which can be handled by pdepe.
Best wishes
Torsten.
Olivier L.
on 6 Oct 2015
0 votes
Categories
Find more on PDE Solvers 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!