Device Model
As described in Creating Device Systems, the Device Model () defines a set of variables and equations that corresponds to a certain device characteristic. Typical examples from the field of electrical circuits are capacitors, resistors, voltages sources, and bipolar transistors.
To a device model you can add modifiable inputs, variables, equations, other devices, and ports as child nodes. Right-click the Device Model node to add Device Constants, Device Inputs, Device, Device Variables, Device Equations, Port, Port Connections, Port Model, Usage Condition, Discrete Device States, Explicit Device Events, and Implicit Device Events subnodes. You can also add other Device Model subnodes.
To add a Device Model to Features ():
1
Under the Building Blocks branch click Features.
2
On the Home toolbar, from the Building Blocks group, click to add any of the available features (for example, a Device Model Feature or Domain Condition).
3
Right-click the node (in this example the Device Model Feature or Domain Condition node) and choose Device Model from the Devices submenu.
To add a Device Model to Components ():
1
Under the Building Blocks branch click Components.
2
On the Home toolbar, from the Building Blocks group, click Component ().
3
Right-click the Component node and choose Device Model from the Devices submenu.
The Settings window has the following sections:
Device Model
In the Type field you define a unique string that identifies the device model. When you create a Device, you must specify a device model for that device. The device then instantiates the device model. A device model type should be unique, but if you declare several device models with the same type, the last one is used. In the Inherited type field, you can enter a parent type that this device model inherits all inputs, ports, variables, and equations from. Leave this field empty to skip inheritance. A device model can also be abstract, meaning that you can only specify this type as an inherited type of another device model. A device cannot instantiate an abstract device model. Select the Abstract model type check box to make a device model abstract.
Device Inputs
Fill the table in this section with the device inputs that the device model supports. Each device input also needs a default value. You can also define device inputs with the device input child node. Use the Input Modifier of a device to override the default value of a device input. For valid entries in the Dimension column, see Variable Declaration.