From f02eec9e216e198f9231d7695eff813187e583e9 Mon Sep 17 00:00:00 2001 From: Evgeny Metelkin Date: Fri, 28 Jun 2024 10:37:52 +0300 Subject: [PATCH] another cases --- cases/0011/index0.heta | 2 +- cases/0011/index1.heta | 23 +++++++++++++++++++++++ cases/0012/index0.heta | 9 +++++++++ validation/0001/index0.heta | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 cases/0011/index1.heta create mode 100644 cases/0012/index0.heta diff --git a/cases/0011/index0.heta b/cases/0011/index0.heta index 74524af..c3965e0 100644 --- a/cases/0011/index0.heta +++ b/cases/0011/index0.heta @@ -18,4 +18,4 @@ comp1 @Compartment .= 1; // parameters k1 @Const = 0.01; -k2 @Const = 0.001; \ No newline at end of file +k2 @Const = 0.001; diff --git a/cases/0011/index1.heta b/cases/0011/index1.heta new file mode 100644 index 0000000..4273f70 --- /dev/null +++ b/cases/0011/index1.heta @@ -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; diff --git a/cases/0012/index0.heta b/cases/0012/index0.heta new file mode 100644 index 0000000..4967bce --- /dev/null +++ b/cases/0012/index0.heta @@ -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; diff --git a/validation/0001/index0.heta b/validation/0001/index0.heta index bf491f3..d189254 100644 --- a/validation/0001/index0.heta +++ b/validation/0001/index0.heta @@ -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