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 CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by