Skip to content

Commit c679dd9

Browse files
fix acausal tutorial
1 parent 7370a45 commit c679dd9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <[email protected]>", "Chris Rackauckas <[email protected]> and contributors"]
4-
version = "8.71.2"
4+
version = "8.72.0"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

docs/src/tutorials/acausal_components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ This is done as follows:
318318
u0 = [rc_model.capacitor.v => 0.0
319319
rc_model.capacitor.p.i => 0.0]
320320
321-
prob = ODEProblem(sys, u0, (0, 10.0))
321+
prob = ODEProblem(rc_model, u0, (0, 10.0))
322322
sol = solve(prob, Rodas4())
323323
plot(sol)
324324
```
@@ -331,7 +331,7 @@ letter `A`):
331331
u0 = [
332332
rc_model.capacitor.v => 0.0,
333333
]
334-
prob = ODAEProblem(sys, u0, (0, 10.0))
334+
prob = ODAEProblem(rc_model, u0, (0, 10.0))
335335
sol = solve(prob, Rodas4())
336336
plot(sol)
337337
```
@@ -344,7 +344,7 @@ like `structural_simplify` simply change state variables into observables which
344344
defined by `observed` equations.
345345

346346
```@example acausal
347-
observed(sys)
347+
observed(rc_model)
348348
```
349349

350350
These are explicit algebraic equations which can then be used to reconstruct

0 commit comments

Comments
 (0)