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

up the simulation workbench. 1. Open funnel and ball.asm 2. Got to the office products tab

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

up the simulation workbench. 1. Open funnel and ball.asm 2. Got to the office products tab

3.

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

left corner to bring up the animation and motion interface. 4. In the drop down menu

4. In the drop down menu select Motion Analysis

and motion interface. 4. In the drop down menu select Motion Analysis 5. Click on the

5. Click on the Motion Study Properties menu

and motion interface. 4. In the drop down menu select Motion Analysis 5. Click on the

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

Adding simulation constraints

1. Click on the gravity constraints button

the Use Precise Contact check box is selected Adding simulation constraints 1. Click on the gravity
the Use Precise Contact check box is selected Adding simulation constraints 1. Click on the gravity

2. Add gravity in the Z direction

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

2. Add gravity in the Z direction 3. Select the ball and click on the contact
2. Add gravity in the Z direction 3. Select the ball and click on the contact

4.

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

Select the funnel as the second object and set the first material to Steel (Dry) under

5.

Right click the ball and select Initial Velocity

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.

the origin and enter a speed of 13.02 in/s and click okay. 7. Drag the duration

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

okay. 7. Drag the duration key on the timeline to 3.5 s. 8. Click the calculate

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

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

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

1. Select the ball and click the Results and Plots button 2. In the Results menu

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

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

3.

It should bring up a graph like this.

3. It should bring up a graph like this. NOTE: Due to the nature of the

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.

process the results can turn out slightly different than shown. 4. Right click on the plot

5.

Save the file as X path.

5. Save the file as X path. 6. Repeat for the Y and Z components of

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.

columns for Time, X, Y, and Z. 3. Copy and Paste the values from the CSV
columns for Time, X, Y, and Z. 3. Copy and Paste the values from the CSV

4.

Select the X and Y columns and make a scatterplot.

4. Select the X and Y columns and make a scatterplot. 5. It will create a

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

4. Select the X and Y columns and make a scatterplot. 5. It will create a

6.

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

6. Its Axis can be adjusted to make it look better like so. Various plots and

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

MATLAB

1. Open MATLAB

2. Create a new variable named path

MATLAB 1. Open MATLAB 2. Create a new variable named path 3. Open the variable and

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

and paste the x,y,and z data into the variable from Excel. 4. In MATLAB enter the

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.

5. It should result in a plot such as this.