Skip to content

Commit

Permalink
another cases
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 28, 2024
1 parent d204603 commit f02eec9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cases/0011/index0.heta
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ comp1 @Compartment .= 1;

// parameters
k1 @Const = 0.01;
k2 @Const = 0.001;
k2 @Const = 0.001;
23 changes: 23 additions & 0 deletions cases/0011/index1.heta
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Make reactions reversibles
*/
// index.heta

// reactions
r1 @Reaction {actors: A + 2B => C} := (k1 * A * B^2 - k3 * C) * comp1;
r2 @Reaction {actors: C => D} := (k2 * C - k4 * D) * comp1;

// species
A @Species {compartment: comp1} .= 1;
B @Species {compartment: comp1} .= 10;
C @Species {compartment: comp1} .= 0;
D @Species {compartment: comp1} .= 0;

// compartments
comp1 @Compartment .= 1;

// parameters
k1 @Const = 0.01;
k2 @Const = 0.001;
k3 @Const = 0.001;
k4 @Const = 0.001;
9 changes: 9 additions & 0 deletions cases/0012/index0.heta
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Write two reactions in Heta notation based on stoicheometry:
x1 + 3x2 <=> x3
x1 + x4 <=> x5
*/

// reactions
r1 @Reaction {actors: x1 + 3x2 <=> x3} := (k1 * x1 * x2^3 - k2 * x3) * comp1;
r2 @Reaction {actors: x1 + x4 <=> x5} := (k3 * x1 * x4 - k4 * x5) * comp1;
2 changes: 1 addition & 1 deletion validation/0001/index0.heta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Create mass-action reaction in Heta notation by the stoicheometry: 2s1 + s2 => 2p1 + p2.
Create mass-action reaction in Heta notation with the stoicheometry: 2s1 + s2 => 2p1 + p2.
*/

// reactions
Expand Down

0 comments on commit f02eec9

Please sign in to comment.