boundary conditions for PDE

4 ビュー (過去 30 日間)
Rushan
Rushan 2014 年 9 月 19 日
編集済み: Mohammad Abouali 2014 年 9 月 19 日
how do find the correct boundary conditions when with initial condition is: u(x, 0) = atan(x). and the PDE equation is: c*(∂u∂x) + ∂u∂t = 0 ?

採用された回答

Mohammad Abouali
Mohammad Abouali 2014 年 9 月 19 日
編集済み: Mohammad Abouali 2014 年 9 月 19 日
This has nothing to do with matlab.
For your linear advection equation, you can use periodic boundary condition, neumann boundary condition or mixture of neumann and Dirichlet.
All of them are valid depending on what you want to do. Just note that the boundary condition should be also valid at time t=0 so consistent with your atan(x) at the boundaries.
Start with Periodic boundary condition, that is the easiest, numerically the most accurate, and usually in most examples people use that anyway.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBoundary Conditions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by