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
Copy file name to clipboardExpand all lines: docs/src/tutorials/input_component.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ function MassSpringDamper(; name)
44
44
D(x) ~ dx
45
45
D(dx) ~ ddx]
46
46
47
-
ODESystem(eqs, t, [], []; name, systems = [input])
47
+
ODESystem(eqs, t; name, systems = [input])
48
48
end
49
49
50
50
function MassSpringDamperSystem(data, time; name)
@@ -122,7 +122,7 @@ function MassSpringDamperSystem(data, time; name)
122
122
connect(src.input, clk.output)
123
123
]
124
124
125
-
ODESystem(eqs, t, [], []; name, systems = [src, clk, model])
125
+
ODESystem(eqs, t; name, systems = [src, clk, model])
126
126
end
127
127
128
128
function generate_data()
@@ -217,7 +217,7 @@ Additional code could be added to resolve this issue, for example by using a `Re
217
217
218
218
To resolve the issues presented above, the `ModelingToolkitStandardLibrary.Blocks.SampledData` component can be used which allows for a resusable `ODESystem` and self contained data which ensures a solution which remains valid for it's lifetime. Now it's possible to also parallelize the call to `solve()`.
219
219
220
-
```@example sampled_data_component
220
+
```julia
221
221
using ModelingToolkit
222
222
using ModelingToolkit: t_nounits as t, D_nounits as D
0 commit comments