필터 지우기
필터 지우기

different PDEs to solve through events in pdepe

조회 수: 1 (최근 30일)
feynman feynman
feynman feynman 2024년 2월 8일
댓글: feynman feynman 2024년 2월 8일
There is a model defined by a pointwise PDE solving for u(x,t), i.e. it is PDE1 when u(x,t)>0 and PDE2 when u(x,t)<=0. Can one use pdepe events to solve this pointwise PDE? I don't think the following code works because once umesh=0 anywhere the whole PDE will be switched to the other (e.g. PDE2 on the global domain rather than locally will be triggered if PDE1 is terminated by events).
function [value, isterminal, direction] = pdevents(m,t,xmesh,umesh)
value = umesh;
isterminal = ones(size(umesh));
direction = zeros(size(umesh));
  댓글 수: 4
Torsten
Torsten 2024년 2월 8일
Then you should try to manage these discontinuities within the function that defines the PDE equation, not by using the "events" facility.
"Events" might be useful in this context to stop an integration (e.g. if the PDE has reached a steady state or if some value has reached a certain limit level).
feynman feynman
feynman feynman 2024년 2월 8일
that makes sense, thank you!

댓글을 달려면 로그인하십시오.

답변 (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