-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for bidirectional reactions (#10)
* update index.md with shorthand for reaction keywords * debugging * found error * remove commented out line [skip ci]
- Loading branch information
Showing
3 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using ReactiveDynamics | ||
|
||
# acs = @ReactionNetwork begin | ||
# 1.0, X ⟺ Y | ||
# end | ||
|
||
acs = @ReactionNetwork begin 1.0, X ⟺ Y, name => "transition1" end | ||
|
||
@prob_init acs X=10 Y=20 | ||
@prob_params acs | ||
@prob_meta acs tspan=250 dt=0.1 | ||
|
||
prob = @problematize acs | ||
|
||
# sol = ReactiveDynamics.solve(prob) | ||
|
||
sol = @solve prob trajectories=20 | ||
|
||
using Plots | ||
|
||
@plot sol plot_type=summary |