Welcome to the website of ME 274 for the Fall 2008 semester. On this site you can view blog posts, add your own blog posts and add comments to existing posts. In addition to the blog are links to course material: course information, information on solution videos, exams, quizzes, homeworks and other course-related material. Direct links to the homework solution videos are also available on the left side of this page.


The following is a reverse chronological order listing of the posts for the course blog. To add a post, click here (when adding posts, be sure to add a "label" in the box at the lower right side of the post window). To add a comment to an existing post, click on the "Comments" link below the post.


____________________________________________________

Dec 10, 2008

Spring-Mass Simulator

This is a MATLAB program that simulates how a mass acts under the influence a spring system. It takes inputs derived from the EOM and outputs an XY plot of time (x axis) vs. displacement of the mass (y-axis). I suggest using EOM's from homework problems.

To use the simulator, right-click to download both files (SpringSim.m and SpringSimulator.mdl ) and put them in the same directory. Then start MATLAB and run the script called "SpringSim". The simulator should explain the rest.

I used MATLAB to create the interface and Simulink to create the simulator itself, which is the block diagram you will see when you run the program. If you have any questions about how it works or have any problems using the simulator, please comment.

NOTE: This simulator will work with any inputs, however the results may not show up on the XY plot if the applied force is substantially bigger than the product, k * (max value of displacement). If you run the simulator, don't receive an error, and nothing shows up on the XY plot, you need to use different values.

No comments: