71
71
72
72
# ## Package Constants ###
73
73
74
+ # Union type of types that can occur in expressions.
75
+ const ExprValues = Union{Expr, Symbol, Float64, Int, Bool}
76
+
77
+ # The symbol used for conserved quantities in conservation law eliminations.
78
+ const CONSERVED_CONSTANT_SYMBOL = :Γ
79
+
74
80
# Declares symbols which may neither be used as parameters nor unknowns.
75
81
const forbidden_symbols_skip = Set ([:ℯ , :pi , :π , :t , :∅ ])
76
82
const forbidden_symbols_error = union (Set ([:im , :nothing , CONSERVED_CONSTANT_SYMBOL]),
84
90
# Union type for `Reaction`s and `Eqiation`s.
85
91
const CatalystEqType = Union{Reaction, Equation}
86
92
87
- # The symbol used for conserved quantities in conservation law eliminations.
88
- const CONSERVED_CONSTANT_SYMBOL = :Γ
89
-
90
93
# ## Package Main ###
91
94
92
95
# The `Reaction` structure and its functions.
@@ -117,6 +120,11 @@ export ODEProblem,
117
120
export ismassaction, oderatelaw, jumpratelaw
118
121
export symmap_to_varmap
119
122
123
+ # reaction_network macro
124
+ include (" expression_utils.jl" )
125
+ include (" dsl.jl" )
126
+ export @reaction_network , @network_component , @reaction , @species
127
+
120
128
# Network analysis functionality.
121
129
include (" network_analysis.jl.jl" )
122
130
export reactioncomplexmap, reactioncomplexes, incidencemat
@@ -125,12 +133,6 @@ export complexoutgoingmat, incidencematgraph, linkageclasses, deficiency, subnet
125
133
export linkagedeficiencies, isreversible, isweaklyreversible
126
134
export conservationlaws, conservedquantities, conservedequations, conservationlaw_constants
127
135
128
- # reaction_network macro
129
- const ExprValues = Union{Expr, Symbol, Float64, Int, Bool}
130
- include (" expression_utils.jl" )
131
- include (" dsl.jl" )
132
- export @reaction_network , @network_component , @reaction , @species
133
-
134
136
# registers CRN specific functions using Symbolics.jl
135
137
include (" registered_functions.jl" )
136
138
export mm, mmr, hill, hillr, hillar
0 commit comments