PDEPE Solver: implement boundary condition with time derivative
2 次查看(过去 30 天)
显示 更早的评论
I have a partial differential equation which I would like to solve with the pdepe solver of Matlab R2019a. The equations, initial and boundary conditions can be found below. For the sake of readibility, I simplified the equations a bit. In these equations
are constants.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231734/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231728/image.png)
The boundary conditions are:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231729/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231735/image.png)
With the initial condition:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231731/image.png)
My problem is implementing the boundary condition at
in pdepe. The shape of the boundary condition of pdepe does not allow a time derivative. I tried to rewrite the boundary condition by, substituting the expression for
from the PDE in the boundary condition which results in:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231732/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231733/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231736/image.png)
However, this results in a boundary condition with a second order derivative, which is also not allowed by the boundary condition shape of the pdepe solver.
What would be the best and most elegant way to implement this boundary condition in a shape so it can be solved by pdepe? Hopefully someone has some experience with this. Thanks in advance!
0 个评论
回答(1 个)
Roshni Garnayak
2019-8-23
As of now boundary conditions of these form are not supported by ‘pdepe’ function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Partial Differential Equation Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!