Connectors
There are several kinds of connectors and connections in Modelica. Here is a summary of them.
For further details, refer to Modelica language specifications (available at www.modelica.org).
- Standard connector
- From one simple connector to another. Requires no additional information.
Refer to Creating a Standard Connection.
- Array of connectors
- If one of the connectors in the connection is an array, then one of the connectors in the array needs to be selected for the connection.
The array dimension can either be a number or a simple parameter: ConnType a [3]; parameter Real n = 2; ConnType b[n]; An array of connectors can be connected to one or several logical ports. Refer to Creating and Connecting an Array of Connectors.
- Expandable connector
- The connection can be either to the whole bus connector, or to one of its sub-components or to a new sub-component added on the fly.
Components of expandable connectors are automatically treated as connectors. Refer to Creating and Connecting Expandable Connectors.
- Nested connectors
- A connector that contains sub-connectors. The connection can be either to the top connector or to one of the sub-connectors.
- Bus Modeling
- It is possible to draw connections from a connector back to itself. This allows signals on a bus to be re-routed.
Logical Connection
From the Dynamic Behavior Modeling workbench, a logical
behavior can be edited. The logical ports and behavior ports can be connected together, since the logical ports exist in the Dynamic Behavior Modeling workbench.
For this, logical ports must be synchronized from the Functional Logical Editor workbench:
Logical ports appear and can be activated from the PLMConnectors package, in the Package Browser:
Check of Connections
When a connection has been defined, the following checks are automatically performed:
Cross-connection Management
You can display a gap at the crossing point of two different connections, and a join (drawn as a bullet) at the separating point of two connections linked to the same port.
For this, use the Gap Bridge option from Tools > Options > Systems > Dynamic > Editor tab.
|