Skip to content

Commit 339b4a7

Browse files
committed
Minor fixes ode modelling tutorial
1 parent 9ae1b46 commit 339b4a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/tutorials/ode_modeling.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ but allows for customization:
203203
@named fol_2 = fol_factory(true) # has observable RHS
204204
```
205205

206+
The `@named` macro rewrites `fol_2 = fol_factory(true)` into `fol_2 = fol_factory(true,:fol_2)`.
206207
Now, these two components can be used as subsystems of a parent system, i.e.
207208
one level higher in the model hierarchy. The connections between the components
208209
again are just algebraic relations:
@@ -218,7 +219,7 @@ connected = compose(ODESystem(connections,name=:connected), fol_1, fol_2)
218219
# fol_2₊f(t)
219220
# fol_1₊x(t)
220221
# fol_2₊x(t)
221-
#
222+
# fol_2₊RHS(t)
222223
# Parameters (2):
223224
# fol_1₊τ
224225
# fol_2₊τ
@@ -350,7 +351,7 @@ Here are some notes that may be helpful during your initial steps with MTK:
350351
Where to go next?
351352

352353
* Not sure how MTK relates to similar tools and packages? Read
353-
[Comparison of ModelingToolkit vs Equation-Based Modeling Languages](@ref).
354+
[Comparison of ModelingToolkit vs Equation-Based and Block Modeling Languages](@ref).
354355
* Depending on what you want to do with MTK, have a look at some of the other
355356
**Symbolic Modeling Tutorials**.
356357
* If you want to automatically convert an existing function to a symbolic

0 commit comments

Comments
 (0)