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
- Declare the subcomponents within `@components` begin block.
155
+
- Array of components can be declared with a for loop or a list comprehension.
149
156
- The arguments in these subcomponents are promoted as keyword arguments as `subcomponent_name__argname` with `nothing` as default value.
150
157
- Whenever components are created with `@named` macro, these can be accessed with `.` operator as `subcomponent_name.argname`
151
158
- In the above example, as `k` of `model_a` isn't listed while defining the sub-component in `ModelC`, its default value can't be modified by users. While `k_array` can be set as:
@@ -223,7 +230,7 @@ end
223
230
```
224
231
225
232
!!! note
226
-
233
+
227
234
For more examples of usage, checkout [ModelingToolkitStandardLibrary.jl](https://github.com/SciML/ModelingToolkitStandardLibrary.jl/)
228
235
229
236
## More on `Model.structure`
@@ -247,14 +254,13 @@ For example, the structure of `ModelC` is:
0 commit comments