help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ode45


From: biogas-1
Subject: ode45
Date: Sun, 28 Jul 2013 07:06:25 -0700 (PDT)

seems that any ode reports the same error with my function which returns
zeroes.  it does integrate, but the error is:

error: Solving has not been successful. The iterative integration loop
exited at time t = 0.010679 before endpoint at tend = 2.822581 was reached.
This may happen if the stepsize grows smaller than defined in vminstepsize.
Try to reduce the value of "InitialStep" and/or "MaxStep" with the command
"odeset".

the script is:

function retval = odefunction2(Z, vars, varargs)
retval(1,1) = 0;
retval(2,1) = 0;
endfunction

z0  = -248;
# Set up solver                                                                 
A = odeset("RelTol",1e-5,"AbsTol",1e-5,"InitialStep",0.01,"MaxStep",0.01);      
                                                                                
# Run solver                                                                    
                                                                                
Z = [ 0 -700 ] ./ z0;         # real length of throat                           
ode45(@odefunction2, Z, [0 0 ], A);                                             


--------------I've also tried setting Z(1) = 0; to no avail



-----
Hefty, hefty, hefty!
--
View this message in context: 
http://octave.1599824.n4.nabble.com/ode45-tp4656156.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]