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
4 Comments
Time DescendingI 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.

Sign in to participate