필터 지우기
필터 지우기

method of lines PDE which solver to use (stiff solvers are fast but quit earlier)

조회 수: 1 (최근 30일)
Hi,
I implemented the phenomenological sedimentation model in MATLAB via the method of lines. It works but i am not sure which solver is suited best: Below the call of the solver. The complete files are at: https://www.dropbox.com/l/PeyxXQfu8c4xtVipSwdKJe (Start with the file CallPhenSettlModel.m)
TSPAN=[0 2];
OPTIONS =[];
f=@PhenSettlModel;
tic
% ode113 takes 96 seconds
% ode15s takes 7 seconds but it stops earlier
% ode23s takes 53 secons same solution as ode15s NaN occurs
% ode23t stops at 0.4 seconds takes 5 seconds
% ode45 takes 160 seconds
% ode23tb stops at 0.4 seconds and takes 5 seconds
[T Y] = ode23tb(f,TSPAN,v,OPTIONS,r0,rb,omega,g,N,xcen,theta,Au,uclose)
toc
close all
surf(Y,'EdgeColor','none')
Any comments are appreciated.
Moritz
  댓글 수: 1
Moritz
Moritz 2013년 7월 21일
i have to add, that i tried ode45 first and since it is slow and a low order method is faster i guess it is a stiff system. But all stiff solvers quit at ¨ 0.4 seconds instead of 2 seconds.

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

답변 (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