Error tolerance in matlab
古いコメントを表示
I'm using R2022a: I received this when I tried solve of mixed PDEs using finite difference method.
Warning: Failure at t=6.122922e-01. Unable to meet integration tolerances without reducing the step size below the
smallest value allowed (1.776357e-15) at time t.
3 件のコメント
Star Strider
2022 年 10 月 6 日
That indicates that your function has a singularity (±Inf) at that point.
Plotting the function is the easiest way to figure out what the problem is. If it’s inherent in the problem itself, there may not be much you can do about it other than to reformulate it to avoid the singularity. If it’s a coding error, that can be remedied.
University Glasgow
2022 年 10 月 6 日
Star Strider
2022 年 10 月 6 日
My pleasure!
採用された回答
その他の回答 (1 件)
Torsten
2022 年 10 月 6 日
0 投票
The ode integrators try to guarantee a predefined error tolerance when solving your system of ordinary differential equations. If they cannot succeed (even by reducing the stepsize dt to a very small value), they give up.
Usual reasons are errors in the implementation, singularities in the solutions for the differential equations etc.
4 件のコメント
University Glasgow
2022 年 10 月 6 日
University Glasgow
2022 年 10 月 6 日
Torsten
2022 年 10 月 6 日
I mean integrate up to t=0.6 and write out "rhsode" to inspect its values.
Further plot the solution up to 0.6 to see if it looks as expected.
カテゴリ
ヘルプ センター および File Exchange で Eigenvalue Problems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!