How to implement implicit methods in partial differential equations in matlab pdepe?
4 views (last 30 days)
Show older comments
Hello,
Refer to the above cited subject, I'm using pdepe for solving a complex partial dieeferntial equation. I'm not sure if matlab uses explicit or implicit method internally. However, at the right bondary for which I'm using newmann bc, I'm getting some erratic solutions which is not expected.
I'd like to know how to use implicit method in matlab, if you can show any example which can be referred, would help me.
1 Comment
Torsten
on 15 Jan 2025
Edited: Torsten
on 15 Jan 2025
MATLAB uses the method-of-lines within "pdepe". Thus it uses finite-difference approximations for the spatial coordinate derivatives and an implicit ODE-solver (ODE15S) to solve the resulting system of ordinary differential equations in the grid points. Changes to the solver method are impossible. Maybe you should include your code and the equations you try to solve with initial and boundary conditions here so that we can see if you somewhere made a mistake in the problem set-up.
If you are still working on your old equation: My guess is that "pdepe" is not suited in this case.
Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations 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!