What is the mf ?

3 次查看(过去 30 天)
Daniyar
Daniyar 2013-2-21
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?

回答(1 个)

Youssef  Khmou
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 个评论
Daniyar
Daniyar 2013-2-21
Thanks.
Do you have any source of information clearly explaining ndss, ndout, and fm. I tried to look for them in mathworks.co.uk but they give different meaning.
Youssef  Khmou
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 CenterFile Exchange 中查找有关 Mathematics and Optimization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by