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

카테고리

Help CenterFile Exchange에서 PDE Solvers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by