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/
Steve Miller (2021). Simscape Language: Nonlinear Spring (https://www.mathworks.com/matlabcentral/fileexchange/25238-simscape-language-nonlinear-spring), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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
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.
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.