How to specify initial conditions for two different subdomains in PDE solver?
1 次查看(过去 30 天)
显示 更早的评论
I am using the graphic PDE solver app in MATLAB. My aim is to model a diffusion equation in a 2-D rectangular space. I want have an initial condition where the molecules are released in the impulses form as initial condition, which requires kronecker delta function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/234619/image.png)
However when I try to input the same using `eq' in the parameter values it does not reflect anaychange in the solved PDE.
Is it possible to apply kronecker delta function in the PDE solver as initial condition?
As a work around, I try to create a very small circular domain in the rectangular space to give it the necassary initial condition. I tried to have initial condition in the circualar domain different than in the rectangular domain. In cicle I tried to have initial condition as `1' and in rectangle as `0'. However, I am not able to assign different initial condition in the circular and rectangular domain. Both are selected simulataneously. How can one specifty two diffrerent initial conditions to two different subdomains?
0 个评论
回答(1 个)
Ravi Kumar
2019-8-29
I suggest you to look at the programmatic workflow, refer to the programmatic workflow overview doc page.
In the programmatic wokflow, te setInitialConditions function should allow you to set ICs as functions for differnte subdomains.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PDE Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!