How to solve DAE system using ode15s and a modified mass matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to solve a system of differential algebraic equations using ode15s. I have modified the mass matrix accordingly. But I am getting an error related to 'odemass', perhaps because my new Mass matrix is singular. Can anyone help me..
Here is the error ...
* SWITCH expression must be a scalar or string constant.
Error in odemass (line 65) switch(mass)
Error in ode23t (line 180) [Mtype, Mt, Mfun, Margs, dMoptions] = odemass(FcnHandlesUsed,odeFcn,t0,y0,...
Error in TwoD_Main2 (line 22) [z,Y] = ode23t('Alphamodel2',zspan,Y0,options); *
2 Commenti
Torsten
il 4 Lug 2016
You will have to supply your MATLAB code to get an answer to your question.
Best wishes
Torsten.
Risposte (1)
Torsten
il 4 Lug 2016
You must not return the derivatives in "Alphamodel2.m" for all values of r.
The solver supplies a scalar value for r each time "Alphamodel2" is called.
Evaluate A, S and T for the value of r supplied by the ODE-integrator.
Best wishes
Torsten.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!