You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The species can of course also just be used as parameter - using the same modification
451
+
of the reaction, i.e.,
452
+
```@example tut2
453
+
rn = @reaction_network begin
454
+
k * X, Y --> 0
455
+
end
456
+
```
457
+
458
+
```@example tut2
459
+
ode_sys = convert(ODESystem, rn)
460
+
```
461
+
462
+
```@example tut2
463
+
equations(ode_sys)
464
+
```
465
+
466
+
The same result can also be achieved by declaring a species as fixed/constant
467
+
without having to change the reaction itself, i.e.,
468
+
```@example tut2
469
+
rn = @reaction_network begin
470
+
@parameters X [isconstantspecies = true]
471
+
k, X + Y --> 0
472
+
end
473
+
```
474
+
475
+
```@example tut2
476
+
ode_sys = convert(ODESystem, rn)
477
+
```
478
+
479
+
```@example tut2
480
+
equations(ode_sys)
481
+
```
482
+
415
483
## [Setting initial conditions that depend on parameters](@id dsl_description_parametric_initial_conditions)
416
484
It is possible to set the initial condition of one (or several) species so that they depend on some system parameter. This is done in a similar way as default initial conditions, but giving the parameter instead of a value. When doing this, we also need to ensure that the initial condition parameter is a variable of the system:
0 commit comments