Skip to content

Commit 6b6f16b

Browse files
committed
up
1 parent 1bda3e4 commit 6b6f16b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/src/catalyst_functionality/example_networks/basic_CRN_library.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,36 @@ jplt3 = plot(jsol3; title = "No outbreak")
154154
plot(jplt1, jplt2, jplt3; lw = 3, size=(800,700), layout = (3,1))
155155
```
156156

157+
## [Chemical cross coupling](@id basic_CRN_library_cc)
158+
In chemistry, [cross-coupling](https://en.wikipedia.org/wiki/Cross-coupling_reaction) is when a catalyst combines two substrates to form a product. In this example, the catalyst ($C$) first binds one substrate ($S₁$) to form an intermediary complex ($S₁Cat$). Next, the complex binds the second substrate ($S₂$) to form another complex ($CP$). Finally, the catalyst releases the now-formed product ($P$). This system is an extended version of the M[Michaelis-Menten system presented earlier](@ref basic_CRN_library_mm).
159+
```@example crn_library_cc
160+
using Catalyst
161+
cc_system = @reaction_network begin
162+
k₁, S₁ + C --> S₁C
163+
k₂, S₁C + S₂ --> CP
164+
k₃, CP --> C + P
165+
end
166+
```
167+
Below, we perform a simple deterministic ODE simulation of teh system. Next, we plot both:
168+
- The concentration of the catalyst and the intermediaries.
169+
- The concentration of the substrates and the product.
170+
171+
In two separate plots.
172+
```@example crn_library_cc
173+
using OrdinaryDiffEq, Plots
174+
u0 = [:S₁ => 1.0, :C => 0.05, :S₂ => 1.2, :S₁C => 0.0, :CP => 0.0, :P => 0.0]
175+
tspan = (0., 15.)
176+
ps = [:k₁ => 10.0, :k₂ => 5.0, :k₃ => 100.0]
177+
178+
# solve ODEs
179+
oprob = ODEProblem(cc_system, u0, tspan, ps)
180+
osol = solve(oprob, Tsit5())
181+
182+
plt1 = plot(osol; idxs = [:S₁, :S₂, :P], title = "Substrate and product dynamics")
183+
plt2 = plot(osol; idxs = [:C, :S₁C, :CP], title = "Catalyst and intermediaries dynamics")
184+
plot(plt1, plt2; lw = 3, size = (800,600), layout = (2,1))
185+
```
186+
157187
## [The Wilhelm model](@id basic_CRN_library_wilhelm)
158188
The Wilhelm model was introduced in [*Wilhelm (2009)*](https://bmcsystbiol.biomedcentral.com/articles/10.1186/1752-0509-3-90) as the smallest CRN model (with constant rates) that exhibits bistability.
159189
```@example crn_library_wilhelm

0 commit comments

Comments
 (0)