memory requirement for ode solvers

10 ビュー (過去 30 日間)
Bo
Bo 2015 年 1 月 15 日
コメント済み: Timmy 2015 年 1 月 19 日
Hi,
I have a large set of ODEs solved by ode45. It works fine but take a bit long. I tried to use other ode solvers and all the stiff solvers generated "out of memory" errors. My question is: what is the memory requirements for the ODE solvers? If no precise answer is possible, do we have some general ideas?
My rough guess is that for the explicit solvers the memory needed is O(N) and the implicit solvers need O(N^2), with N being the number of variables. But I have not found any information about this anywhere.
Bo
  3 件のコメント
Bo
Bo 2015 年 1 月 15 日
編集済み: Bo 2015 年 1 月 15 日
I have 16 GB of memory, running Windows 7 64 bit. The problem I am trying to solve is a 2D wave propagation problem with 128x128 for the grid. There are 9 equations to solve. So the total number of equations is 147456, which is a lot.
The error message is just "Out of memory. Type HELP MEMORY for your options."
Timmy
Timmy 2015 年 1 月 19 日
When you type "memory" on your command window, what does it say?

サインインしてコメントする。

回答 (1 件)

Zoltán Csáti
Zoltán Csáti 2015 年 1 月 16 日
編集済み: Zoltán Csáti 2015 年 1 月 16 日
I recommend you to discretize first in time and then in space. Then you don't have to handle large number of ordinary differential equations. Or if you insist on this approach, use another solver written by yourself which is less demanding in this case.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by