Spatial discretization in pdepe compared to others
Show older comments
The spatial discretization in pdepe seems to be a unique one. Could someone please explain it briefly so that it is understandable in terms of how it differs from other finite differences? Also on the stability and accuracy.
11 Comments
Did you read the reference for "pdepe" ?
[1] Skeel, R. D. and M. Berzins, "A Method for the Spatial Discretization of Parabolic Equations in One Space Variable," SIAM Journal on Scientific and Statistical Computing, Vol. 11, 1990, pp.1–32.
?
It should be a usual finite-element discretization in 1d, shouldn't it ?
feynman feynman
on 30 Jan 2024
The authors claim in the introduction that they "propose a simple piecewise nonlinear Galerkin / Petrov-Galerkin method that is second-order accurate in space". These methods are summarized under Finite Element Methods as far as I know. But if you have doubts, you can either read the relevant chapters in a book on the numerical solution of partial differential equations or contact Technical Support to get further details.
feynman feynman
on 1 Feb 2024
Simply speaking, hyperbolic equations need specific discretization schemes for the flux terms so that the solution remains stable. The schemes used for parabolic-elliptic differential equations don't account for this.
Since there is an interaction of spatial discretization and integration in time with ode45, I think not much about the stability of the integration with "pdepe" can be said.
But why do you need these specific information ? Do you want to compare different pde solvers with respect to their capability in solving pdes of different type ?
feynman feynman
on 1 Feb 2024
"pdepe" is for one-dimensional, "solvepde" for two- and three-dimensional problems (as far as I can see).
Define "better" !
Broader range of equations that can be solved, more user-friendly, faster, less memory consumption ? I cannot answer this, but "better" is always related to what is required. And since both codes solve problems of different dimension, I don't know exactly how to compare them.
feynman feynman
on 2 Feb 2024
Torsten
on 2 Feb 2024
I guess solvepde can also solve 1d problems, then in terms of dimensions of solvepde is superior to pdepe.
If this is the case, my guess is that internally, "pdepe" is called.
By better, I mean if solvepde can solve all hyperbolic equations that pdepe can't?
There is no official MATLAB solver that can solve hyperbolic PDEs.
feynman feynman
on 2 Feb 2024
feynman feynman
on 4 Mar 2024
Answers (0)
Categories
Find more on Eigenvalue Problems 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!