フィルターのクリア

Neumann boundary condition in a first order PDE

4 ビュー (過去 30 日間)
Antonio
Antonio 2012 年 9 月 25 日
I'm trying to solve the following equation using PDEPE:
dC/dt + v * dC/dx = constant
With the boundary conditions:
C(t,0)=Cin dC(t,L)/dx=0
My question is how can I incorporate the second BC in the PDEPE syntax, if I should define f = [-v]. Is there any posibility to call the penultime value and make it equal to ur, so dC/dx=0? u(x_n) = u(x_(n-1))
Thanks for your cooperation!
Antonio

回答 (1 件)

Tom
Tom 2012 年 9 月 25 日
編集済み: Tom 2012 年 9 月 25 日
In this case you want to set
pr = 0;
qr = -1/v; %to cancel out f
  11 件のコメント
Tom
Tom 2012 年 9 月 25 日
I'm not sure how PDEPE can deal with two time terms, maybe it would be better to solve numerically in a for loop.
Antonio
Antonio 2012 年 9 月 25 日
About the last term (dq/dt), ill solve it differently. My problem now is this bc!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePartial Differential Equation Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by