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
- This block is for non symbolic input arguements. These are for inputs that usually are not meant to be part of components; but influence how they are defined. One can list inputs like boolean flags, functions etc... here.
108
+
- Whenever default values are specified, unlike parameters/variables, they are reflected in the keyword argument list.
109
+
72
110
#### `@parameters` and `@variables` begin block
73
111
74
112
- Parameters and variables are declared with respective begin blocks.
@@ -80,15 +118,10 @@ end
80
118
```julia
81
119
julia>@mtkbuild model_c1 =ModelC(; v =2.0);
82
120
83
-
julia> ModelingToolkit.getdefault(model_c.v)
121
+
julia> ModelingToolkit.getdefault(model_c1.v)
84
122
2.0
85
123
```
86
124
87
-
#### `@structural_parameters` begin block
88
-
89
-
- This block is for non symbolic input arguements. These are for inputs that usually are not meant to be part of components; but influence how they are defined. One can list inputs like boolean flags, functions etc... here.
90
-
- Whenever default values are specified, unlike parameters/variables, they are reflected in the keyword argument list.
91
-
92
125
#### `@extend` begin block
93
126
94
127
- Partial systems can be extended in a higher system as `@extend PartialSystem(; kwargs)`.
@@ -209,11 +242,12 @@ For example, the structure of `ModelC` is:
0 commit comments