Sie sind auf Seite 1von 16

Motion Simulation and Analysis Tutorial

Introduction:

This tutorial will go over how to set up and run a basic motion simulation in Solidworks, how to use position plots, and export and use the data in other programs such as Excel and MATLAB.

Setting up the simulation

First we will start with opening the assembly and setting up the simulation workbench.

1. Open funnel and ball.asm

2. Got to the office products tab and click on SolidWorks Motion

3.

Click on the motion study tab in the lower left corner to bring up the animation and motion interface.

4. In the drop down menu select Motion Analysis

5. Click on the Motion Study Properties menu

6. Make sure the Use Precise Contact check box is selected

1. Click on the gravity constraints button

2. Add gravity in the Z direction

3. Select the ball and click on the contact constraint button

4.

Select the funnel as the second object and set the first material to Steel (Dry) under the Material tab and click okay.

5.

Right click the ball and select Initial Velocity

6.

Select the line coming from the origin and enter a speed of 13.02 in/s and click okay.

7. Drag the duration key on the timeline to 3.5 s.

8. Click the calculate button and wait for it to simulate the path of the ball.

9. Clicking play will allow you to see the finished simulation

Creating results plots

1. Select the ball and click the Results and Plots button

2. In the Results menu select Displacement/Velocity/Acceleration then Center of Mass Position then X Component and click ok.

3.

It should bring up a graph like this.

NOTE: Due to the nature of the simulation process the results can turn out slightly different than shown.

4. Right click on the plot and click Export CSV.

5.

Save the file as X path.

6. Repeat for the Y and Z components of the path.

Using results in Outside Software

 Excel 1. Open the three .CSV files in Excel 2. Start a new Excel file with columns for Time, X, Y, and Z. 3. Copy and Paste the values from the CSV file into the columns in the Excel file.

4.

Select the X and Y columns and make a scatterplot.

5. It will create a plot the looks like this.

6.

Its Axis can be adjusted to make it look better like so.

Various plots and calculation can be done in excel using the data.

MATLAB

1. Open MATLAB

2. Create a new variable named path

3. Open the variable and copy and paste the x,y,and z data into the variable from Excel.

4. In MATLAB enter the following commands to plot the path in 3d.

plot3(path(:,1), path(:,2),path(:,3))

axis([-6,6,-6,6,-3,5])

this plots the points in 3d

this sets the axis limits x min x max y min y max z min z max

5.

It should result in a plot such as this.