What is the mf ?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Youssef Khmou
le 21 Fév 2013
Modifié(e) : Youssef Khmou
le 21 Fév 2013
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 commentaires
Youssef Khmou
le 23 Fév 2013
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
Voir également
Catégories
En savoir plus sur Ordinary Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!