How to include constraint for pdepe solution (e.g., u>0)

조회 수: 2 (최근 30일)
Abedeh Abd
Abedeh Abd 2016년 10월 3일
댓글: Abedeh Abd 2016년 10월 3일
Hello, I want to solve a parabolic partial differential equation (i.e., mixed Richards' Eq): du/dt=d/dz(A(z)*du/dz+B(z)) I want to put a constraint so that all solution are greater than a constant value, c (u>c). I would be grateful if you help me.
Thanks, Abedeh

답변 (1개)

Gareth Thomas
Gareth Thomas 2016년 10월 3일
In R2016b one can use the Piecewise function. I hope that this helps you.
  댓글 수: 1
Abedeh Abd
Abedeh Abd 2016년 10월 3일
Sorry! I did not get your hint. Would you please explain more. Assume I use pdepe and pdepe solve it (i.e., u). some elements of solution (u) is less than 0.05. However, I know u never is less than 0.05 in nature (physically basis). How should I define this constraint to pdepe? I do not want to manually change it using u(find(u<0.05))=0.05 after pdepe solve equation.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by