How to solve PDE with two regions

조회 수: 7 (최근 30일)
Jagadeesh Korukonda
Jagadeesh Korukonda 2023년 1월 10일
댓글: Torsten 2023년 1월 11일
Suppose I've a PDE which is valid in two regions.
Can we solve this eqns with pdepe solver?

답변 (1개)

Torsten
Torsten 2023년 1월 10일
Yes.
Choose "a" as a grid point for pdepe. Then you can solve your system as one partial differential equation for C_B by adding the source term depending on whether z < a or z >= a.
  댓글 수: 4
Jagadeesh Korukonda
Jagadeesh Korukonda 2023년 1월 11일
yes, what I'm asking now is more general case. Can we solve above system with these BC's?
Torsten
Torsten 2023년 1월 11일
Can we solve above system with these BC's?
Not with pdepe.
You will have to discretize your equation and your transmission conditions in space, leave the time derivative in its continuous form and solve the system of ordinary differential equations using ODE15S.
Look up "method of lines" for more details.

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

카테고리

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

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by