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
Copy file name to clipboardExpand all lines: docs/src/model_creation/constraint_equations.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ creating these two systems.
28
28
Here, to create differentials with respect to time (for our differential equations), we must import the time differential operator from Catalyst. We do this through `D = default_time_deriv()`. Here, `D(V)` denotes the differential of the variable `V` with respect to time.
29
29
30
30
```@example ceq1
31
-
using Catalyst, DifferentialEquations, Plots
31
+
using Catalyst, OrdinaryDiffEq, Plots
32
32
t = default_t()
33
33
D = default_time_deriv()
34
34
@@ -58,6 +58,7 @@ We can now merge the two systems into one complete `ReactionSystem` model using
58
58
[`ModelingToolkit.extend`](@ref):
59
59
```@example ceq1
60
60
@named growing_cell = extend(osys, rn)
61
+
growing_cell = complete(growing_cell)
61
62
```
62
63
63
64
We see that the combined model now has both the reactions and ODEs as its
@@ -72,7 +73,7 @@ plot(sol)
72
73
As an alternative to the previous approach, we could have constructed our
73
74
`ReactionSystem` all at once by directly using the symbolic interface:
0 commit comments