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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ function MassSpringDamper(; name)
43
43
D(x) ~ dx
44
44
D(dx) ~ ddx]
45
45
46
-
ODESystem(eqs, t; name, systems = [input])
46
+
System(eqs, t; name, systems = [input])
47
47
end
48
48
49
49
function MassSpringDamperSystem(data, time; name)
@@ -54,7 +54,7 @@ function MassSpringDamperSystem(data, time; name)
54
54
eqs = [connect(clk.output, src.input)
55
55
connect(src.output, model.input)]
56
56
57
-
ODESystem(eqs, t, [], []; name, systems = [src, clk, model])
57
+
System(eqs, t, [], []; name, systems = [src, clk, model])
58
58
end
59
59
60
60
function generate_data()
@@ -134,7 +134,7 @@ function MassSpringDamper(; name)
134
134
D(x) ~ dx
135
135
D(dx) ~ ddx]
136
136
137
-
ODESystem(eqs, t, vars, pars; name, systems = [input])
137
+
System(eqs, t, vars, pars; name, systems = [input])
138
138
end
139
139
140
140
function MassSpringDamperSystem(data, time; name)
@@ -145,7 +145,7 @@ function MassSpringDamperSystem(data, time; name)
145
145
eqs = [connect(model.input, src.output)
146
146
connect(clk.output, src.input)]
147
147
148
-
ODESystem(eqs, t; name, systems = [src, clk, model])
148
+
System(eqs, t; name, systems = [src, clk, model])
149
149
end
150
150
151
151
function generate_data()
@@ -213,7 +213,7 @@ function System(; name)
213
213
D(x) ~ dx
214
214
D(dx) ~ ddx]
215
215
216
-
ODESystem(eqs, t, vars, pars; name)
216
+
System(eqs, t, vars, pars; name)
217
217
end
218
218
219
219
@named system = System()
@@ -240,7 +240,7 @@ Additional code could be added to resolve this issue, for example by using a `Re
240
240
241
241
## `SampledData` Component
242
242
243
-
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()`.
243
+
To resolve the issues presented above, the `ModelingToolkitStandardLibrary.Blocks.SampledData` component can be used which allows for a resusable `System` 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()`.
244
244
245
245
```julia
246
246
using ModelingToolkit
@@ -259,7 +259,7 @@ function System(; name)
259
259
D(x) ~ dx
260
260
D(dx) ~ ddx]
261
261
262
-
ODESystem(eqs, t, vars, pars; systems = [src], name)
0 commit comments