-
-
Notifications
You must be signed in to change notification settings - Fork 231
Closed
Description
Following the tutorials this works:
using ModelingToolkit
@variables t x(t)
@parameters τ
D = Differential(t)
@variables RHS(t)
@named fol_separate = ODESystem([ RHS ~ (1 - x)/τ,
D(x) ~ RHS ])
fol_simplified = structural_simplify(fol_separate)
with
julia> fol_simplified.RHS
fol_separate₊RHS(t)
however
@named fol = ODESystem(equations(fol_simplified), ModelingToolkit.get_iv(fol_simplified); observed=observed(fol_simplified))
gives
julia> fol.RHS
fol₊RHS(t) ~ (1 - fol₊x(t)) / fol₊τ
Should the ODESystem
constructor be detecting the lhs
of observed equations and calling process_variables!
on them?
edit: I guess collect_var_to_name!
is what should actually be called on the lhs
.
Metadata
Metadata
Assignees
Labels
No labels