Device Package
The Device Package () is a predefined package of Device Models, Port Models, and Device Constants. A Device Package node can also contain Device Package subnodes. A Device Model can use items declared in a package using a Device Import node (see Device Import below). A Device Package is typically not very useful if its content is only used within the same physics interface as the package. Instead, you typically use it when a physics interface wants to share its device models with other physics interfaces. If a Device Package node is added directly under the physics interface, the interface only contributes with a package to the device repository without actually adding any real equations or variables from the device models it defines. All device models and port models defined by that interface will then be part of the interface’s package. Device Package nodes can also be added directly under Definitions Library > Auxiliary Definitions. The device packages under this branch make it possible to use them in several different physics interfaces provided that they list the Physics Builder file or a folder containing it as a resource in the physics interface’s Device Model node.
To add a Device Package to Features, Properties, or Components:
1
Under the Building Blocks branch, click Features, Properties, or Components.
2
In the Home toolbar, from the Building Blocks group, click to add any of the available features.
3
Right-click the add node and choose Device Package from the Devices submenu.
To add a Device Package to a Physics Interface () or any physics feature or physics property node, right-click the node and choose Device Package from the Devices submenu. If added under any of these nodes or a Component node, the device package belongs to the device models closest in the hierarchy. For most cases this will be the device model added by the physics interface.
The Settings window has the following section:
Device Package
In the Type field you define a unique string that identifies the device package. When you create a Device for a Device Model that a package defines, you must typically include a package reference for that device model. The exact syntax for the reference is decided by a Device Import node that refers to the package. In the Inherited type field, you can enter a parent package that this package inherits all device models or port models form. Leave this field empty to skip inheritance.