The chain link component is created with the help of the Modelica.Mechanics.MultiBody and Modelica.Mechanics.Rotational libraries. The chain link is inspired by the pendulum example in MultiBody library and consists of a body rotating around one end.
The chain link is modeled by a box body connected to a revolute joint. The rotation friction is represented with a damper. For the model to be used as a component, connectors to both ends of the body are added with the help of the connection line tool. The dimension (length, width, height) of the chain link and the damping coefficient are chosen as parameters to make the component more flexible.
The chain link component is used in the chain pendulum model.
For a step by step tutorial see Custom Component—Chain Pendulum.
Chain pendulum with four chain links.
Chain link with a CAD shape attached.