Sticky Point Masses: A Hybrid System

The sticky masses model is built in Ptolemy II using the continuous time (CT) domain and the finite state machine (FSM) domain. The top-level block diagram is shown in the figure below:

This top-level model contains only two components. The source, labeled "Hybrid System", outputs the positions of the two point masses. The sink plots the positions vs. time. The source is itself a modal model, implemented using the finite state machine (FSM) shown below:

The refinement for the Separate state models the situation where the point masses are separate, and is shown below:

The refinement for the Together state models the situation where the point masses are together, and is shown below: