How to solve a non-standard PDE using MATLAB pde-toolbox?

1 回表示 (過去 30 日間)
Shrishti
Shrishti 2013 年 10 月 30 日
コメント済み: Shrishti 2013 年 11 月 1 日
I need to solve a pde of the form: p*d2u/dx2 + d2u/dy2 -q*u = r*du/dx + s*x*du/dy
where p, q, r, s are constants.
The pdetool does not allow to enter different coefficients for the separate second order terms. Is it possible to enter different coefficients for the separate second order terms via command-line?
Thanks in advance.

採用された回答

Bill Greene
Bill Greene 2013 年 10 月 31 日
For a single dependent variable like you have, the c-coefficient can be a 2x2 matrix. That is explained on this documentation page:
For your case, it looks like the best way to define that is:
c = -[p 1]';
Bill
  1 件のコメント
Shrishti
Shrishti 2013 年 11 月 1 日
That worked! Thanks a lot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by