Set initial condition to time different to 0
4 views (last 30 days)
Show older comments
Luca Macchi on 4 Nov 2022
I want to solve in matlab an ODE of second order for a problem of thermal diffusion, I need to set my temperrrature as boundary conditions at x=0 and at x=0,5 (or T'=0 at x=0,25).
How can I set my code?
I try to use ode45 but the problem is the initial conditions request are only for x=0.
this is my code
funz=@(x,T) [T(2); -sigma0*(1-b*(T(1)-Tw))/k];
Torsten on 4 Nov 2022
This is a boundary value problem, not an initial value problem.
Thus you should 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!