필터 지우기
필터 지우기

Optimizing ODE solver performance for very small step size

조회 수: 3 (최근 30일)
Angshuman Podder
Angshuman Podder 2021년 2월 21일
편집: Angshuman Podder 2021년 2월 23일
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
J. Alex Lee
J. Alex Lee 2021년 2월 23일
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 2021년 2월 23일
편집: Angshuman Podder 2021년 2월 23일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by