Simscape Multibody Spring-Mass System | MATLAB Tutorial

Поділитися
Вставка
  • Опубліковано 17 вер 2024
  • In this video we look at how to model a multibody spring-mass-damper system in MATLAB Simscape, a derivative of the Simulink application. A simple model involving two masses is created and simulated to a unit step input. The results are analyzed and the Simscape settings are adjusted to show the application's functionality.

КОМЕНТАРІ • 49

  • @omaribrahim6949
    @omaribrahim6949 4 роки тому +4

    hey can you send the code for the system pls?

    • @ironpine5815
      @ironpine5815  4 роки тому +4

      Sure! Here it is: www.mediafire.com/file/wesexyhic2qbjr8/simscape_model.slx

  • @FranciscoLuzolo
    @FranciscoLuzolo 5 місяців тому +3

    So simple to understand! Brilliant work!!

  • @patrikkovacik5481
    @patrikkovacik5481 2 роки тому +2

    Holy shit. Simple, useful and to the point. Finally someone understands what value is to a Student. Great job

    • @ironpine5815
      @ironpine5815  2 роки тому +2

      Thank you! I actually made this video while a student - I had a homework assignment using Simscape and couldn't find any useful UA-cam videos on the package, so I made my own!

  • @DanielRodrigues-wq1rl
    @DanielRodrigues-wq1rl 9 місяців тому +1

    Thanks!!!!!

  • @noamaanshaikh5702
    @noamaanshaikh5702 Рік тому

    Thank you. It was very helpful.
    Can you also make a video regarding the electrical circuit with L, C & R. Thanks again!!

  • @theophanedebellabre2676
    @theophanedebellabre2676 2 роки тому +1

    Thanks ! Do you have the simulink of this system ?

  • @theromadumela6151
    @theromadumela6151 2 роки тому

    Very informative ,Thank you

  • @rifkahanaindraswari6751
    @rifkahanaindraswari6751 2 роки тому +1

    is it spring mass damper with 2 dof model?

  • @paleswarsahu4002
    @paleswarsahu4002 Рік тому

    How to attach the PID controller in multibody model in spring mass damper systems

  • @bajrangsingh7809
    @bajrangsingh7809 Рік тому

    Hi when i turn the position of the sensor to a signal outut and simulate it in paramter estimation it just simulates to zero

  • @sakthiganesh6155
    @sakthiganesh6155 2 роки тому

    I want output as Equation of motions for MDOF, How to do in matlab?

  • @aliosmanbayir6009
    @aliosmanbayir6009 2 роки тому

    Hi! Thanks for this useful content. Is it possible for you to do the rotational spring mass system on simscape with 2 or 3 masses?

  • @veeravenkat2869
    @veeravenkat2869 3 роки тому

    What is the notation representation of R & C for the components in simscape?

  • @mustafaurgan
    @mustafaurgan 9 місяців тому

    If I want to add an electrical system to this system, how can I do it?

  • @markz4467
    @markz4467 4 роки тому +1

    Hi! Here is an example of a transport function:
    G1(s) = X1(s) / X2(s) = 1/s * (156 x^2 + 12,89 x + 576) / (4856 x^4 + 5649864 x^3 + 21345,5 x^2 + 13218 x + 21823,58)
    At my university we have to solve mechanical systems by hand. Since this would be hard to transform to time domain by hand, the "solution of the system" is accepted in this form. My question is, is there any program that would show me transport function in this form so I could check if I solved the system correctly?

    • @ironpine5815
      @ironpine5815  4 роки тому

      Mark,
      If I understand correctly, you're looking to "input" your mechanical system and have it "output" the transfer function? I don't know of any MATLAB tools to do that, but you could simulate your system to a step input in Simscape (like I show here) and compare the step response to a step response of the transfer function you hand-derived. If they match up, then your transfer function is correct.

    • @markz4467
      @markz4467 4 роки тому

      @@ironpine5815 Yeah, that's exactly what I want. Thanks and sorry for my wierd terminology :P

  • @themistoklischronis8510
    @themistoklischronis8510 2 роки тому

    good stuff man thanks

  • @billuletwangi2354
    @billuletwangi2354 3 роки тому

    Hey...how do we get displacement vs time graph instead of velocity and position

    • @ironpine5815
      @ironpine5815  3 роки тому

      The Ideal Translational Motion Sensor plots the position in reference to the zero point - in this case that's the same as your displacement.

  • @ibrahimbas8727
    @ibrahimbas8727 3 роки тому

    How can we add gravity in Simscape System for vertical hanging?

    • @ironpine5815
      @ironpine5815  3 роки тому

      I'm not sure what your application is, but in vertical spring-mass systems, gravity is usually accounted for by choosing the origin at the equilibrium position (ie. accounting for the gravitational displacement). Thus we don't have to account for gravitational effects on our system.
      If this doesn't help resolve your problem, you might be able to add in an ideal force source and give it a constant input with a magnitude of m*g.

    • @ibrahimbas8727
      @ibrahimbas8727 3 роки тому +1

      @@ironpine5815 thank you so much. I just want to show that the state of block under the z-0 on diagram. I will try ifs , thank you again

  • @paragbendre3750
    @paragbendre3750 3 роки тому

    Hello sir....how can I contact you for any assistance in Simscape..I want your guidance for my project on Multibody dynamics in simscape

  • @swatidevi234
    @swatidevi234 2 роки тому

    hlo
    informative tutorial sir but can you plz explain me that how l get acceleration from this model.
    kindly reply to me then it will be very helpful for me

  • @ThatSilentGuy
    @ThatSilentGuy 4 роки тому

    Is it possible to simulate 2-dimensional vibration with SimScape? I need to simulate a vibration absorber with different damping rate in X- and Y-axis.

    • @ironpine5815
      @ironpine5815  4 роки тому

      Great question! I spent some time in Simscape this afternoon, but was unable to get it to work with 2-D vibration. There's probably a way to do it, but I wasn't able to figure it out through Google or by playing in Simscape myself...

  • @Jaultaub
    @Jaultaub 4 роки тому

    Great tutorial!! I needed to do this for a torsional resonator, and got it working right away. Thumbs up!

    • @Jaultaub
      @Jaultaub 4 роки тому

      But is there something like a "Ideal Angular Position Source" that I can apply to one of my masses at the start of the simulation?

    • @ironpine5815
      @ironpine5815  4 роки тому +1

      @@Jaultaub great question! I've wondered this myself for some time, but haven't been able to find an answer. It seems others have had the same question on MathWorks' MATLAB Answers site, but no one has come up with a satisfactory answer, to my knowledge. Here's an interesting thread though: www.mathworks.com/matlabcentral/answers/304718-how-can-you-set-the-initital-condition-displacement-of-the-mass-in-a-simple-spring-damper-mass-sys

    • @Jaultaub
      @Jaultaub 4 роки тому

      @@ironpine5815 I found the solution: You can do this using a velocity source: Use the first derivative of speed: location. Use the velocity source to input a phase of pi/2 and the amplitude and freq. you wish. Than you need to multiply the amplitude by the freq. (inner derivative), and its done!

    • @Jaultaub
      @Jaultaub 4 роки тому

      This is how I use an oszilation to power my resonator. I use the Sine Wave block. I am unsure how to apply this to a Step Input though.

    • @ironpine5815
      @ironpine5815  4 роки тому

      @@Jaultaub Interesting solution - thanks for sharing! When simulating a system to a step input, you usually neglect any initial conditions, so I don't see it as an issue that you can't apply this method when using a step input.

  • @HuongHoang-ez9si
    @HuongHoang-ez9si 4 роки тому

    HELLO SIR,,,,
    I have downloaded this library. how to install and use it. Can you help me

    • @ironpine5815
      @ironpine5815  4 роки тому +1

      If you have Simscape installed, type "ssc_new" in the MATLAB command window to launch a new Simscape session.

  • @shanmukharao1683
    @shanmukharao1683 4 роки тому

    Hai dear Ironpine, can u help me how to model a single mass with 6 D-o-F by using Simscape?

    • @ironpine5815
      @ironpine5815  4 роки тому

      I'm not sure that Simscape is the right tool for the job here. But what needs to be modeled? What is acting on this mass (springs, dampers, etc.)?

  • @selinakkz4514
    @selinakkz4514 4 роки тому

    Hi! How can I add cable and pulley to this system?

    • @ironpine5815
      @ironpine5815  4 роки тому

      Selin - I've never used pulleys in Simscape, so I'm afraid I'm of no help here...

  • @MaKaNufilms
    @MaKaNufilms 3 роки тому

    describing it as multibody is a bit misleading since it not utalizing the multibody lib from simscape

  • @shahadsami1885
    @shahadsami1885 4 роки тому

    Good

  • @nooralmosawi8944
    @nooralmosawi8944 4 роки тому

    I need your help, how can I contact you?

    • @ironpine5815
      @ironpine5815  4 роки тому +1

      You can contact me via the email listed on my UA-cam channel under the "About" tab.

  • @abdallahmajali9916
    @abdallahmajali9916 4 роки тому

    Hi can you help me pls?

    • @ironpine5815
      @ironpine5815  4 роки тому

      Well - what do you need help with?

  • @alexrops7247
    @alexrops7247 4 роки тому

    How can I get transfer function from this?

    • @ironpine5815
      @ironpine5815  4 роки тому

      I'm not aware of any way you can get a transfer function from a Simscape model.