How can I solve two PDEs connected by a jump boundary condition?
조회 수: 5 (최근 30일)
이전 댓글 표시
I'm trying to solve the following PDE problem:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/890675/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/890680/image.png)
with the transmission condition between the two domains:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/890685/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/890690/image.png)
Is this possible in Matlab, using pdepe? I saw this but I don't think the transmission conditions are satisfied automatically in my case, due to the jump in u.
댓글 수: 2
답변 (1개)
hamza karim
2022년 4월 25일
편집: hamza karim
2022년 4월 25일
as you said you can't use pdepe to solve this system due to the interface condition.
You need to mannually discitize your system. I have come accros the same problem before. My advice is to use implicite euler or Crank nicolson for the time derivative, and second order finite difference for your space derivative (for the interior nodes). I assume you also have no flux boundary condition at r=0 and r=D, these can be treated by a second order backward difference.
Now for your interface, in my problem is divided the interface into two nodal points (N/2 and N/2 +1)
the first condition can be written as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/977340/image.png)
the second one you need to do a second order backward difference for u1 and second order forwad difference for u2, you would have the following:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/977345/image.png)
댓글 수: 2
hamza karim
2022년 4월 26일
exactly you put your discritized linear equations of the first and second phase in the same matrix and you connect your nodes with the boundary condition and then solve the system using the backslash as you said
참고 항목
카테고리
Help Center 및 File Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!