File Exchange

image thumbnail

Simscape Language: Nonlinear Spring

version 2.0.0.1 (232 KB) by Steve Miller
Simscape™ language example of nonlinear mechanical springs

6 Downloads

Updated 01 Sep 2016

View Version History

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This file contains Simscape language source code for nonlinear springs. One example uses a custom equation and the other uses a lookup table.
To view a video (3 minutes) showing a nonlinear spring example, go to: http://www.mathworks.com/videos/simscape-language-mechanical-example-68868.html
To view a webinar (35 minutes) about the Simscape language, go to:
http://www.mathworks.com/videos/physical-modeling-with-the-simscape-language-81733.html

To learn more about MathWorks Simscape products, go to:
http://www.mathworks.com/physical-modeling/

Cite As

Steve Miller (2021). Simscape Language: Nonlinear Spring (https://www.mathworks.com/matlabcentral/fileexchange/25238-simscape-language-nonlinear-spring), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Alberto Mora

Steve Miller

Hi Talha and Kartik - to see how to connect Simscape 1D mechanical components to Simscape Multibody 3D models, look at https://www.mathworks.com/matlabcentral/fileexchange/37636-simscape-multibody-multiphysics-library
--Steve

Talha Ilyas

hey kartik, Did you find any solution for the problem?
I want to add the torsional springs instead of rigid body in the robotic legs. I made a model using solid works which i exported as xml file. There I used the springs but obviously they did not translated the same behavior into Matlab. So i deleted the springs ' "solid block" and its reference frame and kept the transformation frames which are connected on both side. but if i add in the middle the springs, the geometry of my model gets messed up infact i can not see some of the body parts. should''nt they suppose to stick together as my transformation frames are there and i added the spring in the middle of that.

KARTIK SURYAVANSHI

Hey, the spring is not attaching to my simscape model. My model has frames and solid bodies defined and i want the nonlinear spring between the reference frame and the solid body.
Help is appreciated, Btw I am new to simscape.

hooman shirzadi

Giovanni

Erdal Bizkevelci

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Nonlinear_Spring_ssc_R09a/

Nonlinear_Spring_ssc_R16a/