What is the mf ?
8 次查看(过去 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!