-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi everyone! Apologies if this isn't the right place to put this.
I'm interested in applying a time-dependent rate law for one of my reactions. Currently what I've found to work is a structure like this, where I create a pseudo-species that increases linearly with time as a reaction and then define my time-varying rate law using that.
begin seed species
A 100
B 100
C 0
T 0
end seed species
begin observables
Molecules A A()
Molecules B B()
Molecules C C()
Molecules T T()
end observables
begin functions
tfunc() = sin(T)+1
end functions
begin reaction rules
A() + B() <-> C() tfunc(), 1
0 -> T 1
end reaction rules
simulate({method=>"ode",t_end=>100,n_steps=>1000})
But, is there a better way to do this? Is it possible to just access the current time state from within the BioNetGen file without having to do this workaround? I noticed that there's a "time" constant reserved in the syntax file in the VSCode extension, and what I know of cvode I'd expect there should be a way to access time from inside the problem function that's passed to it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels