MATLAB: How to use internal solutions generated during ODE solver for the next ODE iteration

algebraic equationsdifferential equationsinternal valuesiterationsodeode solverrecalculationsavingsuccessful iteration

I have a set of differential equations to be solved using ode23, which depends on a variable called "heat flux Q".
However, the "heat flux Q" needs to be recalculated after every successful iteration using the formula shown in the image, indicating that the previous values of "radius r " and "time t" generated within the ODE solver are needed.
Does anyone have a way for this?

Best Answer

Use dde23 instead of ode23:
Best wishes
Torsten.
Related Question