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
@@ -43,6 +49,7 @@ We also define a few accessor functions that return system information from the
43
49
*`ModelingToolkit.get_iv(sys::MomentEquations)`: The independent variable used in the system.
44
50
*`ModelingToolkit.get_ps(sys::MomentEquations)`: The parameters of the system.
45
51
*`ModelingToolkit.unknowns(sys::MomentEquations)`: The set of unknowns (moments) in the equations.
52
+
*`Catalyst.speciesmap(sys::MomentEquations)`: The dictionary mapping the chemical species in a `Catalyst.ReactionSystem` to their index within the corresponding moment equations.
46
53
*`MomentClosure.get_closure(sys::ClosedMomentEquations)`: The dictionary of moment closure functions for each higher order moment.
47
54
48
55
## [Displaying Equations and Closures](@id visualisation_api)
Let's first simulate the reaction network using SSA in order to have a reference point of the real system dynamics. We choose a relatively long simulation time span in order to clearly see how the molecule numbers converge to their steady-state values and opt for $5 \times 10^4$ SSA realisations:
@@ -73,7 +73,7 @@ tspan = (0., 200.)
73
73
# constructing the discrete jump problem using DifferentialEquations
Now the question is how can we extract the time evolution of the cumulant $\kappa_{03}$. Firstly, note that using the standard moment relationships it can be expressed in terms of raw moments as:
@@ -108,8 +107,7 @@ unknowns(dm3_eqs.odes)
108
107
```
109
108
and solve the moment equations, computing the required cumulant:
0 commit comments