Borrar filtros
Borrar filtros

Optimizing ODE solver performance for very small step size

3 visualizaciones (últimos 30 días)
Angshuman Podder
Angshuman Podder el 21 de Feb. de 2021
Editada: Angshuman Podder el 23 de Feb. de 2021
Hi, I have a function (containing 2 diff. eqns) that needs to be solved. Unfortunately, the time step needed is 1e-11. I think the program will run into a memory issue. Is there any way to save values at a certain time interval? OR Do I need to non-dimensionalize the eqns.?
P.S. I am using the ode45 solver.
  8 comentarios
J. Alex Lee
J. Alex Lee el 23 de Feb. de 2021
Not knowing details, the first thing I would always look at is if the problem can be nondimensionalized to remove units and more easily uncover stiffness. Especially since the plots shown have such huge orders of magnitude.
Angshuman Podder
Angshuman Podder el 23 de Feb. de 2021
Editada: Angshuman Podder el 23 de Feb. de 2021
I am sorry about that. Convergence is not the right word, it should be stability. For e.g the diameter/number density is going negative.
I think the ODEs are stiff. I just saw that there are ODE solvers for stiff eqns. Thanks again @Jan.
@J. Alex Lee, you are right. I will sit down with non-dimensionalizing the equations.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by