How can I solve partial differential equation

Capture.PNG
I have this partial equation however i do not know how to solve it matlab. ive tried using the Linear Partial differential equation method however i could not be able to put it in the same format that was required.

 採用された回答

Asad Mirza
Asad Mirza 2019 年 2 月 28 日

0 投票

You have a couple of options:
  1. Use the PDE toolbox in MATLAB to solve it. Take a look at example 1 here.
  2. Assuming you know your initial conditions and boundary conditions for your equation, ie what the system looks like at say r=0 and r=R at t=0. Then you could convert all the 1st derivatives (the temporal part) using a forward finite difference and then for the 2nd derivatives (spatial part) use the central difference method. Here's some nice documentation I found online that explains it. Here's also a video that shows this finite difference method but for the classic heat equation instead.

1 件のコメント

Torsten
Torsten 2019 年 2 月 28 日
Use MATLAB's "pdepe".

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

その他の回答 (0 件)

製品

リリース

R2018b

タグ

質問済み:

2019 年 2 月 27 日

コメント済み:

2019 年 2 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by