2D Rigid to Rigid Contact Simulation
Tutorial Level: Intermediate Learn how to create Curve Entities and Curve Graphics, use macros to create them simultaneously, and setup a 2D rigid curve to curve contact.

Before you begin, copy the file(s) used in this tutorial to your
working directory.
Review the Model
Review the model by running it using MotionSolve.
- Launch MotionView.
-
Open the Model by doing one of the following:
- On the Standard toolbar, click
(Open Model). - On the menu bar, click .
- On the Standard toolbar, click
-
From the Open model dialog, select the file
Cam_Follower_2DContact_start.mdl from your working
directory and click Open.
Review the model for its bodies, graphics, markers, joints, and motion. It will look like the image in Figure 2.
Figure 2. 
-
Review the model.
The model contains:
- Cam, Roller and Follower bodies with graphics.
- A spring damper with an initial Preload between Roller and Ground Body.
- CurveGraphics on Cam and Roller.
- A motion on Cam.
Note: Refer to Higher Pair Constraints tutorial to learn how to create the CurveGraphics. -
From the Analyze ribbon, click the Quick
Start/Stop Motion Analysis icon
.
From the live run, notice that the FollowerRoller is not in contact with the Cam since there is no contact defined in the model. -
Close the Run Status dialog.
Figure 3. Model animation before contact is set 
Set Up 2D Contact
Define a contact between Cam and FollowerRoller.
-
On the Model ribbon, click on the Contacts icon
.
A guide bar pops-up. - In the drop-down menu, change the Type to 2D Rigid to Rigid.
- Click on Body 1 and select the Cam body by clicking its Curve Graphics in the modeling window, as shown in Figure 5.
-
For Body 2, select the
FollowerRoller body.
The Contact panel should now appear as shown in Figure 4:
Figure 4. Contact Guide Bar 
-
Click Create
to create the contact entity and then click
Cancel
on the guide bar to exit the context.
-
Review the contact side of the graphics.
- In the Properties tab, retain the default selections.
Save and Run the Model
Save the model and run it using MotionSolve.
-
From the menu bar, click .
Figure 9. Save Model 
- In the dialog, browse to your <working directory> and specify the file name as Cam_Follower_2DContact.mdl.
-
Run the model.
A 2D curve contact simulation should run faster than an equivalent model using 3D contact where the solver must work harder to determine contact for a 2D tessellated geometry.The simulation should begin with the progress shown in the Run Status dialog while the model animates in the modeling window.
Post-Process the Results
-
Once the run is complete, click Animate in the Run
Status dialog. A HyperView page is added with the
result loaded.
Note: If the Run Status dialog was closed before clicking Animate, the results can be accessed through the Run History icon
on the Run ribbon. -
Review the contact force.
The animation shows force on the Cam (Body 1 in the contact definition).
Save your work to a session file Cam_Follower_2DContact.mvw using .





