How to solve PDE with two regions
5 次查看(过去 30 天)
显示 更早的评论
Suppose I've a PDE which is valid in two regions.
Can we solve this eqns with pdepe solver?
0 个评论
回答(1 个)
Torsten
2023-1-10
Yes.
Choose "a" as a grid point for pdepe. Then you can solve your system as one partial differential equation for C_B by adding the source term depending on whether z < a or z >= a.
4 个评论
Torsten
2023-1-11
Can we solve above system with these BC's?
Not with pdepe.
You will have to discretize your equation and your transmission conditions in space, leave the time derivative in its continuous form and solve the system of ordinary differential equations using ODE15S.
Look up "method of lines" for more details.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PDE Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!