@@ -18,6 +18,17 @@ Symbolic variables can have metadata attached to them. The defaults and guesses
18
18
at variable construction time are examples of this metadata. ModelingToolkit also defines
19
19
additional types of metadata.
20
20
21
+ ## Variable defaults
22
+
23
+ Variables can be assigned default values to avoid having to specify defaults to the
24
+ [ ` System ` ] ( @ref ) constructor.
25
+
26
+ ``` @docs
27
+ ModelingToolkit.hasdefault
28
+ ModelingToolkit.getdefault
29
+ ModelingToolkit.setdefault
30
+ ```
31
+
21
32
## Variable descriptions
22
33
23
34
Descriptive strings can be attached to variables using the ` [description = "descriptive string"] ` syntax:
@@ -56,6 +67,7 @@ help?> u
56
67
``` @docs
57
68
hasdescription
58
69
getdescription
70
+ ModelingToolkit.VariableDescription
59
71
```
60
72
61
73
## Connect
@@ -83,6 +95,7 @@ getconnect(k)
83
95
``` @docs
84
96
hasconnect
85
97
getconnect
98
+ ModelingToolkit.VariableConnectType
86
99
```
87
100
88
101
``` @docs; canonical=false
@@ -112,6 +125,8 @@ isinput
112
125
isoutput
113
126
ModelingToolkit.setinput
114
127
ModelingToolkit.setoutput
128
+ ModelingToolkit.VariableInput
129
+ ModelingToolkit.VariableOutput
115
130
```
116
131
117
132
## Bounds
@@ -144,6 +159,7 @@ hasbounds(x[2])
144
159
``` @docs
145
160
hasbounds
146
161
getbounds
162
+ ModelingToolkit.VariableBounds
147
163
```
148
164
149
165
## Guess
@@ -232,6 +248,7 @@ isirreducible(important_value)
232
248
233
249
``` @docs
234
250
isirreducible
251
+ ModelingToolkit.VariableIrreducible
235
252
```
236
253
237
254
## State Priority
@@ -245,6 +262,7 @@ state_priority(important_dof)
245
262
246
263
``` @docs
247
264
state_priority
265
+ ModelingToolkit.VariableStatePriority
248
266
```
249
267
250
268
## Units
@@ -261,6 +279,17 @@ getunit(speed)
261
279
``` @docs
262
280
hasunit
263
281
getunit
282
+ ModelingToolkit.VariableUnit
283
+ ```
284
+
285
+ ## Variable type
286
+
287
+ This metadata is used by the [ ` System ` ] ( @ref ) constructor for automatically identifying the different types of variables in a system.
288
+
289
+ ``` @docs
290
+ ModelingToolkit.VariableType
291
+ ModelingToolkit.MTKVariableTypeCtx
292
+ ModelingToolkit.isparameter
264
293
```
265
294
266
295
## Miscellaneous metadata
@@ -277,6 +306,7 @@ getmisc(y)
277
306
``` @docs
278
307
hasmisc
279
308
getmisc
309
+ ModelingToolkit.VariableMisc
280
310
```
281
311
282
312
## Dumping metadata
0 commit comments