Connections and Connection Sets

A connection associates two connectors on different subsystem models, and a connection set provides a grouping of connections.

This page discusses:

The <connectionSets> wrapper element defines connection sets. A connection set provides a convenient way to group multiple connections used by the numerical methods to define the analysis phase when the fields are exchanged. A simple example of this utility is the case where you want a certain set of fields to be exchanged only during the initial conditions, while others exchange during the time integration loop.

<ConnectionSet> Element

Use the <ConnectionSet> element to define a connection set.

The name attribute is an internal reference, for cross-referencing purposes within the Co-Simulation Configuration file.

Set the type attribute to FIELD if fields are exchanged, and set it to SIGNAL if signals are exchanged. All connections within a connection set must be of the same type.

A connection set can contain only one connection.

<connection> Element

Use the <connection> element to define a connection.

If a connector has multiple variables, the connectors must be complementary; that is, one connector's incoming fields must match the other connector's outgoing fields, and vice versa, in the order in which the variables are defined. The corresponding variable names are not required to match by field type name. Therefore, field type names can be different between the subsystems; for example, a temperature field might be represented by field type “NT” in one client and “TEMP” in the other client.

You can assign a mapping specification to a connection (see Mapping Specification). To add a mapping specification, set the mapSpec attribute equal to the mapping specification reference name.

You can use the mapOn attribute to specify which client performs the mapping. Set mapOn equal to one of the following:

  • INPUT to map incoming fields on the connection (default),
  • OUTPUT to map outgoing fields on the connection,
  • the component instance name to map both incoming and outgoing variables on a particular component instance, or
  • NOMAP when importing a remote mesh and the component provides its own mapping services.

Example

The following examples illustrates how to define connection sets and connections:

<connectionSets>
   <connectionSet name="ConnectionSet-1" type="FIELD"> 
       <connection mapOn=”INPUT”>
            <connector>Connector-1</connector>
            <connector>Connector-2</connector>
       </connection>
   </connectionSet>
</connectionSets>