Catalyst.jl icon indicating copy to clipboard operation
Catalyst.jl copied to clipboard

WIP: add discrete_events to DSL

Open tstrey opened this issue 2 years ago • 1 comments

Adds @discrete_events option to the DSL such that reaction_system can be can be written in the following way:

rn = @reaction_network rxs begin
     @variables t
     @parameters k
     @species A(t) B(t)
     @discrete_events begin
          (t == 2.0) => [B ~ 0.0]
     end
     k, A --> B
end

tstrey avatar Nov 05 '23 17:11 tstrey

Needs to be modified for multiple discrete events.

tstrey avatar Dec 22 '23 14:12 tstrey

@TorkelE ended up adding this as part of Catalyst 14, but thanks for your getting this started!

isaacsas avatar Jun 08 '24 16:06 isaacsas