What is the mf ?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hey, guys
I will be happy if you help me to understand the following terms:
1) What does "mf" imply in the following code?
mf=1; reltol=1.0e-04; abstol=1.0e-04; options=odeset(’RelTol’,reltol,’AbsTol’,abstol); if(mf==1) % explicit FDs [t,u]=ode15s(@pde_1,tout,u0,options); end
2) What does nout mean in the following code?
% Independent variable for ODE integration t0=0.0; tf=2.5; tout=linspace(t0,tf,n); nout=n; ncall=0;
3) What does ndss mean n the follwoing code?
if(mf==2) ndss=4; % ndss = 2, 4, 6, 8 or 10 required [t,u]=ode15s(@pde_2,tout,u0,options); end
Can you please explain each variable of interest in relation to the whole code?
댓글 수: 0
답변 (1개)
Youssef Khmou
2013년 2월 21일
편집: Youssef Khmou
2013년 2월 21일
hi,
they are constants (mf,nout, ndss) it depends on the system on which you want apply the ODE .
AT least : you have to give a comprehensive description on the title like " MOL parameters " or something else so to target a large audience .
You have to study the theory & algorithm, next you will answer for yourself , but anyway :
1.ndss refers to a library of differentiation routines for use in the MOL solution of PDEs
2.nout : Number of outputs in the graph .
3.fm : a parameter to adjust the ndss .
댓글 수: 2
Youssef Khmou
2013년 2월 23일
no, they are not predefined in Mat, every programs has its own variables names , http://www.scholarpedia.org/article/Method_of_lines/example_implementation Did yu see this link before , it contains the MOL
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!