Are you ready to talk?

Creating and using subsystems

Table of contents

A subsystem in Dymola is a model that is used inside other models and is usually used to define models that correspond to physical parts. Making use of subsystems is important as it reduces the work required to build new models by increasing the reuse of existing models and reducing the future maintenance effort.

The model below is an example of a rear wheel drive model that contains flexible shafts in a simple test rig.

Rear wheel drive driveline model with flexible shafts in Dymola

In the Rear Wheel Drive driveline above the simple flexible shafts are used to represent the propshaft, and the halfshafts. The differential consists of an ideal planetary gear with an ideal gear to model the bevel gear. The actuator is a step input torque and the left and right halfshafts are attached to two large inertias.

In the RWD driveline three flexible shafts are being used, a better way to model this would be to create a flexible shaft model (this is the subsystem) and use it three times. We could also create a differential model that combines the planetary and ideal gear in to one component model.

To create the flexible shaft model, create a new model in Dymola and call it FlexibleShaft. Drag in two inertias and a spring damper as in the image below:

Constructing flexible shaft subsystem in Dymola

The FlexibleShaft model is above, the Inertia and SpringDamper models can be found in the Modelica.Mechanics.Rotational.Components package in the library browser. To be able to connect this subsystem to other components, connectors are required. These connectors are created by dragging out a connection from the inertia and then right clicking, a dialog box, as in the image above, will become visible. Select the Create Connector option. Create two connectors as in the diagram above and also connect the inertias and the spring damper together as shown.

This model can now be re-used in a larger model. The subsystem model can be dragged in from the Library Browser to make the following model below:

Rear wheel drive driveline model using flexible shaft subsystems in Dymola

The model above essentially is the same model that was first created but with the flexible shafts now being subsystems. This model is easier to understand and maintain then the original.

Need to talk to an expert?

Our engineering teams are on hand to provide tailored guidance and support with a deep knowledge of the full Dassault Systèmes portfolio.

Want to receive more content like this?

Sign up to receive a weekly roundup of Expert insights as they are published...

  • Related news & articles straight to your inbox
  • Hints, tips & how-tos
  • Thought leadership articles