Be the first to rate this file! 187 downloads (last 30 days) File Size: 35.51 KB File ID: #24961

Double suspended mass-spring-damper system

by Guy Rouleau

 

07 Aug 2009

Code covered by BSD License  

2 suspended masses linked by springs and dampers demonstrating basic SimMechanics features.

Download Now | Watch this File

File Information
Description

This model shows how SimMechanics™ can be used for both Forward dynamics and Inverse Dynamics analysis.

This model demonstrates how to:

- Specify the motion (position, velocity and acceleration) of a joint and measure the force necessary to generate this motion.

- Measure the force generated by Joint spring and damper blocks.

- Generate a motion signal using Integrator blocks. I recommend defining the acceleration signal and integrating it twice. Specify the position and deriving it twice might lead to problems as the derivative block is more likely to produce infinite derivate at initialization.

- How to define bodies in adjoining coordinates. Open one of the Body blocks, you will notice that CS1 position is [0 0 0] in the adjoining coordinates system. Other coordinates are relative to CS1. This allows copying this block and connecting it to another joint without any modification. Defining bodies using adjoining coordinates helps creating reusable systems.

- The effect of SimMechanics™ visualization on simulation speed. Try to turn on and off the SimMechanics visualization from the simulation configuration parameters panel. You will see a huge impact on the simulation speed. You can control the refresh rate of the SimMechanics visualization by clicking “Control simulation speed” from the simulation menu of the SimMechanics visualization window.

Required Products SimMechanics
Simscape
Simulink
MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files license.txt,
SuspendedMassSpring.mdl
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Guy Rouleau 13 Aug 2009 16:37:56
simmechanics Guy Rouleau 13 Aug 2009 16:37:56
inverse dynamics Guy Rouleau 13 Aug 2009 16:37:56
dynamics Guy Rouleau 13 Aug 2009 16:37:56
dynamics Peter Spencer 23 Oct 2009 08:09:35
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com