Is it possible to introduce time dependent function in any of the coefficient of pde form used in pde toolbox?

2 ビュー (過去 30 日間)
Hello,
I am trying to solve sine gordon equation with a dissipiation term using pde toolbox. I need to introduce partial derivative of u with respect to 't' and a function which is dependent on 't' where 't' stands for time. I tried to put all of them in coefficient 'f' using diff(u,t) but it doesn't work. Is there any way I can introduce them in the equaition?

採用された回答

MD AZIZ AR RAHMAN
MD AZIZ AR RAHMAN 2020 年 7 月 29 日
I solved this problem by using pde solver (pdepe) instead of pde toolbox. I needed to convert the sine gordon equation with du/dt term into a system of two pde as belows:
u1_t=u2
u2_t=u1_xx-sin(u1)+a*u2
and solved for both u1 and u2.

その他の回答 (1 件)

Alan Weiss
Alan Weiss 2020 年 7 月 20 日
編集済み: Alan Weiss 2020 年 7 月 20 日
This portion of the documentation describes how to set up a general PDE for solution by PDE Toolbox. This is the general workflow. You can specify coefficients as described, for example, here. Yes, coefficients can depend on time.
I do not know the Sine-Gordon equation with dissipation. The basic Sine-Gordon equation is a 1-D equation that is easy to put into the form required by the toolbox
You woud use , , , .
I suppose that you would use a 2-D model with constant values in one (essentially unused) dimension. But maybe I am wrong and this is not so easy to put into 2-D.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
  1 件のコメント
MD AZIZ AR RAHMAN
MD AZIZ AR RAHMAN 2020 年 7 月 26 日
I was in need of both non zero m and d. I didn't understand in the manual regarding what to do with d when m is nonzero.

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

カテゴリ

Help Center および File ExchangeEigenvalue Problems についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by