PDE system - pdepe system example - error or incomplete description on Matlab website?

3 ビュー (過去 30 日間)
Leonid
Leonid 2019 年 12 月 19 日
コメント済み: Bill Greene 2019 年 12 月 24 日
I am no longer sure how to use Matlab's pdepe properly for solving a system of PDEs after checking the example given on Matlab's help website.
If you look to an example here https://www.mathworks.com/help/matlab/math/solve-angio-pde-system.html under the 'Code Equation' you'll see a rewritten pde system in a matrix form. Comparing it to the original equation it is obvious that either the term " a*dndx*dcdx " is missing from the first (rewritten) equation, or Matlab implicity assumes that the derivative is acting only on the dudx terms when it deals with pde systems (this will be very weird). Could anyone with an extensive experiece in solving pde systems in Matlab clarify this?
Thanks

採用された回答

Bill Greene
Bill Greene 2019 年 12 月 20 日
Looks like you have found an error in this documentation page. If you look at equation 3 in the referenced paper you will see that this equation corresponds to what is actually coded in the pdepe example. The results from the pdepe analysis agree with figures 3 and 4 in the referenced paper. It is the first PDE in the documentation page that is incorrect.
  2 件のコメント
Leonid
Leonid 2019 年 12 月 23 日
Thanks for your answer. Based on the referenced paper it is the documentation page that contains error.
One additional thing that will be helpful to clarify:
If the coefficients d and a were functins of x [for example defined by some discrete data (and then interpolated within the function)], whould their derivatives through the flux term be taken into account by Matlab pdepe?
Bill Greene
Bill Greene 2019 年 12 月 24 日
Yes, pdepe will handle this case correctly.

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

その他の回答 (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