How to I stop an integrator when steady-state is reached in simulink?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have modeled the gas pressure buildup of a system with restrictive orifices. When the flow_in is equal to the flow_out, I would like my model to stop integrating at that time and produce a constant steady-state pressure value and a curve to reflect the steady state approach. My pressure curve currently shows an infinite pressure buildup. I've thought about using the switch block or potentially state flow. But I'm still not sure how to go about it.
Thanks!
1 Commento
Ced
il 11 Mar 2016
If I understand correctly, you have it modelled in a Simulink model?
If your system is truly at steady state, then it should automatically "stop integrating", unless I misunderstood the setting. If your flow_in is equal to flow_out, your derivative should be zero, and thus the integrated value constant.
If not, then it's not at steady state. If there are some physical bounds, then I would implement them by saturating them ( either in the integrator itself, or with a saturation block ).
If you insist on manually stopping the loop, you could just have a switch which leads you through a multiplication with a zero gain.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Continuous in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!