How to automatically change the active state of zero-order uptake

Wei Wang on 4 Nov 2022
Latest activity Reply by Wei Wang on 8 Nov 2022

I have a species which is absorbed in a zero-order manner. I want to model the reaction rate as "UptakeRate*ActiveState". So I can give value of 1 or 0 to ActivateState to control the active state of this process. The species itself is under control multiple processes, so I want to use Event to automatically change the active state of absorption.
However, when I use these two events:
Event 1,trigger: species > 0, Function: ActiveState =1; Event 2, trigger: species <=0, Function: ActiveState=0
The simulation seems to be stuck without stop.
Is there any way to solve this ? Thanks
Arthur Goldsipe
Arthur Goldsipe on 4 Nov 2022 (Edited on 7 Nov 2022)
I don't see any obvious problem with this approach. Can you share the model? Some additional debugging tips would be to set MaximumWallClock and/or MaximumNumberOfLogs to see if you can get the simulation stop. Then, you might be able to inspect the results and see what the problem is.
Update: You can do this in the SimBiology Model App by clicking on Simulation Settings. See the screen shot below.
Wei Wang
Wei Wang on 6 Nov 2022
Hi, Arthur
Thanks for your concern. I am not familiar with coding of SimBiology. Can these two tips be performed in SimBiology APP?
Arthur Goldsipe
Arthur Goldsipe on 7 Nov 2022
Yes, I've updated my original answer to include information on how to do this in the app.
Wei Wang
Wei Wang on 8 Nov 2022
Hi, Arthur
Thanks for your suggestion. The simulation can stop but the problem still exists. However, I find a way to get round it. I use a Michaelis-Menten equation with a very small km, which does not result in negative species value.