Thank you! I actually made this video while a student - I had a homework assignment using Simscape and couldn't find any useful RUclips videos on the package, so I made my own!
@@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
@@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 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.
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?
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.
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.
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...
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.
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
hey can you send the code for the system pls?
Sure! Here it is: www.mediafire.com/file/wesexyhic2qbjr8/simscape_model.slx
Holy shit. Simple, useful and to the point. Finally someone understands what value is to a Student. Great job
Thank you! I actually made this video while a student - I had a homework assignment using Simscape and couldn't find any useful RUclips videos on the package, so I made my own!
So simple to understand! Brilliant work!!
Thank you. It was very helpful.
Can you also make a video regarding the electrical circuit with L, C & R. Thanks again!!
Thanks ! Do you have the simulink of this system ?
is it spring mass damper with 2 dof model?
Thanks!!!!!
How to attach the PID controller in multibody model in spring mass damper systems
Hi when i turn the position of the sensor to a signal outut and simulate it in paramter estimation it just simulates to zero
Great tutorial!! I needed to do this for a torsional resonator, and got it working right away. Thumbs up!
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?
@@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
@@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!
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.
@@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.
Very informative ,Thank you
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?
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.
@@ironpine5815 Yeah, that's exactly what I want. Thanks and sorry for my wierd terminology :P
If I want to add an electrical system to this system, how can I do it?
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?
What is the notation representation of R & C for the components in simscape?
good stuff man thanks
Hey...how do we get displacement vs time graph instead of velocity and position
The Ideal Translational Motion Sensor plots the position in reference to the zero point - in this case that's the same as your displacement.
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.
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...
How can we add gravity in Simscape System for vertical hanging?
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.
@@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
Hi! How can I add cable and pulley to this system?
Selin - I've never used pulleys in Simscape, so I'm afraid I'm of no help here...
Hello sir....how can I contact you for any assistance in Simscape..I want your guidance for my project on Multibody dynamics in simscape
HELLO SIR,,,,
I have downloaded this library. how to install and use it. Can you help me
If you have Simscape installed, type "ssc_new" in the MATLAB command window to launch a new Simscape session.
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
Hai dear Ironpine, can u help me how to model a single mass with 6 D-o-F by using Simscape?
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.)?
How can I get transfer function from this?
I'm not aware of any way you can get a transfer function from a Simscape model.
describing it as multibody is a bit misleading since it not utalizing the multibody lib from simscape
I need your help, how can I contact you?
You can contact me via the email listed on my RUclips channel under the "About" tab.
Hi can you help me pls?
Well - what do you need help with?
Good
I want output as Equation of motions for MDOF, How to do in matlab?