Solving a system of ODE with BCs
2 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to solve a system of 2 ODE with boundary conditions.
The integration variable is r, which is the sferical coordinate (radius of a sphere). At the end of the simulation I should get the values of A and B as a functions of r, where the maximum value of r is 1.
k,c,a,b are constants.
The system is as follows:
Equations:
BCs:
I converted the system to first order one, as follows:
Equations:
BCs:
Y3(0)=Y4(0)=0
Y1(1)=a
Y2(1)=b
How can I solve it?
Thank you!
0 个评论
采纳的回答
Divija Aleti
2021-4-23
Hi Elia,
The following link gives an example of how to solve a system of two first-order differential equations with boundary conditions. Similarly, you can solve for your converted system of four first order differential equations.
Hope this helps!
Regards,
Divija
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!