The Advantages of Expandable Connectors

A connector is a Modelica class with the objective of interfacing two or more components/objects together. This said, one of the areas with higher relevance in Dymola is the connectors since they are the means that let the information flow through every component and therefore allow the model objects to be interfaced correctly.

There are three main types of connectors that can be used depending on the application; Hierarchical, Expandable and Conditional.

Hierarchical
Connectors nested within other connectors to enable connections at either the top or sub level.

Expandable
Connectors which provide a flexible and tidy way to build signal buses to transfer information between subsystems. 

Conditional
Connectors which include or exclude instances of classes for a given condition by the use of boolean parameters.

Figure 1. Types of connectors
Figure 1. Types of connectors

The central topic of discussion of this blog post is going to be focused on Expandable Connectors. In order to replicate and explain the procedure to establish a connection employing these connectors, a model of an electric motor and its controller are used as an example. Using the same example, the differences among the conventional and expandable connectors are also reviewed.

The expandable connectors used in this example comprise of 3 busses. The controlBus and two sub-busses, the electricMotorBus and the electricMotorControlBus.

Figure 2. Expandable connector elements
Figure 2. Expandable connector elements

The following procedure has to be followed to create a connection using expandable connectors (considering the electric motor model as reference):

  • First, the 3 busses previously mentioned have to be dragged into each system (controllerWithBus and electricMotorWithBus).
  • At the experiment top level, all the controlBus instances should be connected.
Figure 3. Connection at the top level
Figure 3. Connection at the top level
  • In every subsystem both the electricMotorBus and the electricMotorControlBus have to be connected to the matching sub-bus within the controlBus connector. 
  • The convention is such that: the sensors should be connected to the electricMotorBus and the actuators to the electricMotorControlBus.
Figure 4. Subsystem setup
Figure 4. Subsystem setup
  • When connecting the sensors and actuators signal outputs/inputs to a bus, if the variable to connect to does not already exist on the bus a variable has to be defined for each signal to complete the connection.
Figure 5. Defining a new variable
Figure 5. Defining a new variable

Additionally, different blocks were included in the model to receive feedback and to corroborate the results regarding the temperature, current and voltage sensors.

Figure 6. Blocks added
Figure 6. Blocks added

As a conclusion, when comparing the two types of connectors it can be seen that the most notorious advantage of the expandable connectors over the conventional ones is the ease of managing a higher number of connections in a tidier and clearer way. This feature is crucial when designing complex models such as vehicle tests with a considerable number of systems, subsystems and components all interconnected with each other.

Figure 7. Connectors comparison 
(view from the experiment top level)
Figure 7. Connectors comparison
(view from the experiment top level) . Left: Use of expandable connectors. Right: Use of standard input/output connectors.

On the other side, the biggest advantage of conventional connectors is the simplicity of building a connection by just “click and drag”. A really useful characteristic when designing lower level of complexity models.

Written by: Jose Miguel Ortiz Sanchez, Project Engineer

Please get in touch if you have any questions or have got a topic in mind that you would like us to write about. You can submit your questions / topics via: Tech Blog Questions / Topic Suggestion

CONTACT US

Got a question? Just fill in this form and send it to us and we'll get back to you shortly.

Sending

© Copyright 2010-2024 Claytex Services Ltd All Rights Reserved

Log in with your credentials

Forgot your details?