@@ -153,27 +153,12 @@ context-aware single variable of the IR. Its fields are described as follows:
153
153
- ` name ` : the name of the ` Variable ` . Note that this is not necessarily
154
154
the same as the name of the Julia variable. But this symbol itself is considered
155
155
the core identifier of the ` Variable ` in the sense of equality.
156
- - ` value_type ` : the type that the values have to be. It's disconnected
157
- from the ` value ` because in many cases the ` value ` may not be able to be
158
- specified in advance even when we may already know the type. This can be used
159
- to set units or denote a variable as being of higher precision.
160
156
- ` subtype ` : the main denotation of context. Variables within systems
161
157
are grouped according to their ` subtype ` .
162
158
- ` diff ` : the ` Differential ` object representing the quantity the variable is differentiated with respect to, or ` nothing `
163
159
- ` dependents ` : the vector of variables on which the current variable
164
160
is dependent. For example, ` u(t,x) ` has dependents ` [t,x] ` . Derivatives thus
165
161
require this information in order to simplify down.
166
- - ` flow ` : a boolean that describes the connection behavior between systems,
167
- whether it should connect to have summation to zero or equality.
168
- - ` description ` : a string description of the variable used for building
169
- printouts and other descriptive outputs.
170
- - ` domain ` : a type which describes the domain in which the values of the variable
171
- lives.
172
- - ` size ` : the size of the variable. By default it's ` nothing ` , denoting that the
173
- variable is a scalar. Otherwise it's a tuple of numbers which describes the
174
- size of the array for the variable.
175
- - ` context ` : this is an open field for DSLs to carry along more context
176
- in the variables, but is not used in the systems themselves.
177
162
178
163
### Constants
179
164
0 commit comments