Scilab ignores SciNotes' cancellation of the closing event.

Iai Masafumi ax iai at axelspace.com
Wed Aug 3 00:27:15 CEST 2011


Hi

Suppose you have some unsaved text on SciNotes. Then you close the main 
window of Scilab by typing "exit" or by pressing [x] button on the 
window. You'll see a message box popped up by SciNotes saying " 
<filename> has been modified since last save save it?" Now when you 
press "Cancel" button, this cancellation is ignored. Scilab closes 
SciNote and itself anyway. Unsaved text is lost.

I think this behavior upsets users, and would like to see it fixed.

Scilab 5.3.3 (32bit) on Windows 7 64bit.

Iai


(2011/08/02 18:01), Jaundre Venter wrote:
> Hi all
>
> I am busy programming a penicillin growth inside a fed batch reactor
> model in SCILAB.
>
> Now I have 9 ordinary differential equations where i am supposed to get
> 6 graphs from the 9 ordinary differential equations.
>
> Now when using only the 6 main ordinary differential equations, then i
> am getting six graphs but the graphs is wrong because the other 3
> ordinary differential equations is going to have a impact on the six
> graphs. As soon as i am programming the other 3 ordinary differential
> equations my model doesnt want to run graph 7 till 9.
>
> it runs but only shows title name and y label and x label.
>
> the error i am getting says the following.
>
> "plot2d(t,y(7,:))
>                  !--error 21
> Invalid index.
> t line      58 of function f called by :
> y=ode(x0, 0, t, f);"
>
> i am not familiar with SCILAB so can someone assist me and explaining if
> i should programm the last 3 ordinary differential equations differently?
>
>
> the 9 equations are as follows.
>
>
> dx(1)  = (((mu)*(x(1)))-((x(1))/(x(6)))*(dx_6)); // biomass concentration X
> dx(2)  = z*(mu*x(1)-(F*x(1))/x(6))+QQ; // hydrogen ion concentration H+
> dx(3)  = mupp*(x(1))-(K)*(x(3))-((x(3))/x(6))*(dx_6); // Penicilin
> concentration P
> dx(4)  = -mu/Yxs*x(1)-mupp/Yps*x(1)-mx*x(1)+Fsf/x(6)-x(4)/x(6)*dx_6; //
> Substrate concentration S
> dx(5)  =
> -mu/Yxo*x(1)-mupp/Ypo*x(1)-mo*x(1)+kla*(cll-x(5))-x(5)/x(6)*dx_6;
> //dissolved oxygen concentration Cl
> dx(6)  = F+Fab+Floss; //Culture Volume V
> dx(7)  = ((rq1(x(1))*x(6))+(rq2*(x(1))*(x(6))));  //  Heat of reaction Qrxn
>
> dx(8)  = ((((F/sf)(Tf-(x(8))))+(1/(x(6)*pcp)))*(QT));  //  Temperature T
>
> dx(9)  = (a1*(dx_1)+a2*x(1)+a3);  //  CO2 evolution, CO2
>
>
> As you can see that eqaution 7 till 9 has some effects on other ordinary
> differential eqautions.
>
>
>



More information about the users mailing list