Specialized properties
In extension properties
An extension property makes the values of a set of variables [<v1>, <v2>, …, <vn>] subject to the tuples of a DEPS table.
Catalog([<v1>, <v2>, …, <vn>], <TableName>);
In practice the referenced table <TableName> can have much more columns than the number of variables. Then we can add a set of index [<i1>, …, <in>] that references the number of the column that we want to associate to each variables of [<v1>, …, <vn>].
Catalog([<v1>, …, <vn>], [<i1>, …, <in>], <TableName>);
Example
Table Battery
Attributes
ref : DipoleIndex;
V : Voltage;
Imax : Current;
Tuples
[1, 12, 30],
[2, 12, 40],
[3, 6, 30],
[4, 6, 20]
End
Model VSource()
Constants
Variables
ref : DipoleIndex;
e : Voltage;
Imax : Current;
I : Current;
Elements
Properties
Catalog([ref, e, Imax], Battery);
I <= Imax;
End