Solving a first order hyperbolic PDE using matlab solvers.
9 views (last 30 days)
Show older comments
Hi all,
I'm looking to see whether Matlab has an in-built solver for hyperbolic partial differential equations. I know of pdepe and I'm looking for an equivalent for hyperbolic equations:
du/dt = a(x,t) du/dx + f(u)
I already know how to write my own code for it using LW methods and I can already solve analytically using the method of characteristics. The reason I want a Matlab solver is that I'm looking at the efficiency of Matlab solvers and I'm building up from very basic equations which have clear analytic solutions to rather more complicated equations which have a whole mass of nonlinear terms.
I've checked out a lot of other Matlab questions but I keep seeing the answers 'use method of characteristics' or 'write some code for it' which doesn't quite fit with the work I'm trying to do.
Thanks,
A
0 Comments
Answers (1)
Ayush
on 3 Oct 2024
In order to solve the hyperbolic PDE problem you can use hyperbolic function. You may refer to this link:
However, solvepde is recommened over hyperbolic to solve such PDEs. Refer to this link:
Please note that solvepde is introduced from R2016a release.
I hope it helps!
0 Comments
See Also
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!