second order ode45-where to put boundary and initial condition?
1 view (last 30 days)
Show older comments
I am solving this equation with ode45 method, p0 is already known:
and I have two conditions,
initial condition: r=0: du/dr=0;
boundary condition where r=1: u=0.
Where to put these conditions, because I can put initial condition in ode45 solver, but where to put boundary condition in this case?
Torsten on 8 May 2018
u(r) = -1/(16*B)*dp0/dz*(1-r^2)
If the analytical solution is not what you want, use "bvp4c" instead of "ode45".
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!