Connectors

Connectors define incoming and outgoing fields/signals on a particular subsystem model.

This page discusses:

The <connectors> wrapper element defines incoming and outgoing fields/signals on a subsystem model. A subsystem model can have one or more connectors.

Define separate connectors for each interface region if the subsystem contains multiple interface regions. You commonly have a number of fields entering or leaving a connector; in general, we recommend that you define a connector such that the exchange variables form work-conjugate pairs (for example, heat flux and temperature, force and displacement, etc.) that appear together in the same connector.

When deciding how to assign fields to a connector, consider the following:

  • how the connector is paired in a connection (see Connections and Connection Sets);
  • separate connectors must be defined for fields and signals;
  • separate connectors must be defined for each region;
  • use a separate connector if a component instance communicates with multiple subsystem models (for example, a connector on component instance A cannot communicate with both a connector on component instance B and a connector on component instance C; you must duplicate the connector on component instance A with another name); and
  • how you might apply further configuration information (for example, mapping specification, field operations, etc.) to the connection definitions.

<connector> Element

Use the <connector> element to define a connector.

The name attribute is an internal reference name, for cross-referencing purposes within the Co-Simulation Configuration file. The <componentInstance> element refers to a component instance through its name.

Use the <input> and/or <output> elements to define incoming and outgoing fields or signals on the connector. Fields are specified by the field type name and region name, delimited with a period (for example, “velocity. Region A”) within a <variable> element. The field type must correspond to the field type registered by the subsystem solver. The field type name and region name are case sensitive. When specifying multiple fields, the order in which you list the fields is important, as discussed in Connections.

Example

The following example illustrates a connector definition:

<connectors>
  <connector name="Connector-1">
    <componentInstance>Structure</componentInstance>
    <variables>
         <input>
           <variable>temperature.SURF_A</variable>
         </input>
         <output>
           <variable>heat_flux.SURF_A</variable>
           <variable>heat_capacitance.SURF_A</variable>
          </output>
    </variables>
  </connector>

  <connector> name="Connector-2">
    <componentInstance>Fluid</componentInstance>
    <variables>
        <input>
           <variable>heat_flux.wetted.exteriorSurface</variable>
           <variable>heat_capacitance.exteriorSurface</variable>
        </input>
        <output>
           <variable>temperature.exteriorSurface</variable>
        </output>
      </variables>
  </connector>
</connectors>