PDE solver- help me match up with the template
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Bill Greene
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu PDE Solvers finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!