Simulation error while integrating a DE like dy/dt = 1/y.
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Igor Batoukhtine
 am 12 Apr. 2016
  
    
    
    
    
    Beantwortet: Subin Kuttappan Stellal Mary
    
 am 15 Apr. 2016
            Hello,
I've got a DE where there for example dy = 1/y. Because my initial value equals zero, 1/0 equals infinite. Simulink gives an error and tells me that:
Derivative of state '1' in block 'Simulatie_van_Wijk_nieuw/Inertia centrifugal pump/Integrator' at time 0.0 is not finite.
Can somebody help me with this problem (what can I do to work around this?) I still need my DE solved..
0 Kommentare
Akzeptierte Antwort
  Subin Kuttappan Stellal Mary
    
 am 15 Apr. 2016
        As you had mentioned, Simulink is expected to give an error for 1/0.
As a workaround, you can try using 0+eps instead of 0 as the initial condition.
For more details about eps, refer the documentation link :
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu General Applications finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!