PDE solver- help me match up with the template

1 回表示 (過去 30 日間)
Eric
Eric 2013 年 2 月 7 日
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.

回答 (1 件)

Bill Greene
Bill Greene 2013 年 2 月 8 日
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

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by