Skip to Main Content Skip to Search
Product Documentation

Introducing the SimMechanics Block Libraries

About the SimMechanics Block Library

SimMechanics software is organized into a set of libraries of closely related blocks. This section shows how to view these libraries and gives you a summary of what they contain.

Accessing the Libraries

There are several ways to open the SimMechanics block library.

You can access the blocks through the Simulink Library Browser. Open the browser by clicking the Simulink button . Expand the Simscape entry, then the SimMechanics subentry, in the contents tree.

You can also access the blocks directly inside the SimMechanics library in several ways:

SimMechanics Library

Once you perform one of these steps, the SimMechanics library opens.

The next section summarizes the blocks of each library and their use. For explanations of individual blocks, consult the SimMechanics Block Reference reference.

Using the Libraries

The SimMechanics block library is organized into separate libraries, each with a different type of mechanical block.

Bodies

The Bodies library provides the Body block for representing bodies defined by their mass properties (masses and inertia tensors), their positions and orientations, and their attached Body coordinate systems (CSs). This library also contains the Ground block representing immobile ground points, which have their own Grounded CSs, and the Machine Environment block, for configuring the mechanical settings of a SimMechanics block diagram.

Joints

The Joints library provides blocks to represent the relative motions between bodies as degrees of freedom (DoFs). The library is made up of assembled Joints listed individually and two sublibraries of specialized Joint blocks.

An assembled joint restricts the Body CSs on the two bodies to which it is connected. The assembled Joints are the primitive Prismatic, Revolute, and Spherical blocks and ready-made composite Joints. Unless it is explicitly labeled as disassembled, you can assume a generic Joint block is assembled.

Joints/Disassembled Joints.  The Disassembled Joints sublibrary provides blocks for disassembled joints, modified joints that do not restrict the Body CSs on the two connected bodies or the DoF axes of the two bodies. You can only use Disassembled Joints to close a loop in your machine. You cannot sense or actuate Disassembled Joints.

Joints/Massless Connectors.  The Massless Connectors sublibrary provides blocks for massless connectors, composite joints whose DoFs are separated by a fixed distance. You cannot actuate or sense Massless Connectors.

Constraints & Drivers

The Constraints & Drivers library provides blocks to specify prior restrictions on DoFs between Bodies. These restrictions can be time-independent constraints or time-dependent driving of DoFs with Simulink signals.

Sensors & Actuators

The Sensors & Actuators library provides blocks for sensing and initiating the motions of joints and bodies. These blocks play a special role in connecting SimMechanics blocks to other Simulink blocks, as described in Connecting SimMechanics Blocks, Applying Motions and Forces, and Sensing Motions and Forces.

Force Elements

The Force Elements library provides blocks for creating forces or torques between bodies. These blocks model forces internal to your machine.

Interface Elements

The Interface Elements libraries includes blocks to connect three-dimensional machines modeled with SimMechanics blocks and one-dimensional mechanical Simscape circuits.

Utilities

The Utilities library contains miscellaneous blocks useful in building models.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS