pde toolbox - setting initial conditions

조회 수: 7 (최근 30일)
Graham W Griffiths
Graham W Griffiths 2017년 10월 17일
댓글: NGENDAHAYO Jean Pierre 2022년 8월 25일
How to apply a script to set initial conditions in 'solve parameters' dialog box when using PDE Modeler. The problem is a 2D hyperbolic PDE with two intersecting geometric areas.

채택된 답변

Graham W Griffiths
Graham W Griffiths 2017년 10월 18일
편집: Graham W Griffiths 2017년 10월 18일
I could not find any definitive description in PDE toolbox documentation. However, by trial and error I found that a function defined in a separate script file can be made to work. Write the initial condition function, say uic(), with inputs x and y, and return value equal to the desired u0 array. Then, in the solver parameter dialog box for u0, include the function name in quotes, i.e. 'uic(x,y)' and select OK. That's all.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PDE Solvers에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by