Effacer les filtres
Effacer les filtres

How can I solve stiff equations by method of line (MOL)?

3 vues (au cours des 30 derniers jours)
fatemeh hosseini
fatemeh hosseini le 30 Déc 2015
Commenté : Are Mjaavatten le 31 Déc 2015
I want to solve 7 coupled equations.I use method of line(MOL) and discrete the equation in Length and radius and convert them to a system of ODEs in time.and use ode15s to solve them in MATLAB. But an error occur:
Warning: Failure at t=5.422028e-006. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.355253e-020) at time t.
It means that equations are too stiff. How can i solve them? Is there another method? I really confused.please help me. I attached my code and equations. Thanks.
  1 commentaire
Are Mjaavatten
Are Mjaavatten le 31 Déc 2015
The most likely cause is that there is some error or inconsistency in your function for the derivatives, or you may possibly have hit a singularity. Inspect the the values of the derivatives at t=0 to see if they look reasonable. You may also try to run ode15s over a very short interval, e.g. to t = 1e-6 or t = 5e-6 and inpect how your variables change.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by