How to reinitialize ODE45 when solution blows up?

I have a Reduced Order Model that was derived from Proper Orthogonal Decomposition and it is known to be unstable over a finite period of integration time.
I also have a set of initial conditions for the entire duration of the integration. Hence, I wish to give a new set of initial conditions to the ODE solver whenever a failure (divergence) occurs in order to aid stability.
The problem I have is:
1) Do not know how to recognise a failure event of a solution blow-up such that I can input a new set of initial condition to continue the integration
Would appreciate any form of advice, thank you in advance!
Warm Regards,
Greg

Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 9 Jul. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by