PDE solver- help me match up with the template
1 view (last 30 days)
Show older comments
I am trying to use the PDE solver, and am getting lost. I am trying to solve du/dt+du/dx=0 with I.C. u(0,x)=(cos(pi*x))^2 if -.5<=x<=.5 or u(0,x)=0 otherwise and u(t,-1)=0. So my first question is, is a right side boundary required? If so, make it 0. I want this PDE solved specifically on -1<=x<=3 and 0<=t<=2.4
So, I'm trying to paste the template but I honestly can not get it to look right. So I'll just assume someone knows how to do this process without seeing the template.
0 Comments
Answers (1)
Bill Greene
on 8 Feb 2013
Hi,
Are you trying to solve this equation with the MATLAB function pdepe? Your equation is a classical convection equation, a well-known hyperbolic PDE. The function pdepe is designed to solve parabolic or a combination of parabolic and elliptic equations rather than hyperbolic.
I don't know of a standard MATLAB function for solving this type of hyperbolic equation.
Take a look this book chapter: http://www.siam.org/books/textbooks/OT88sample.pdf for a discussion of numerical techniques appropriate to your equation.
Bill
0 Comments
See Also
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!