![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279963/image.jpeg)
Output of simple mass-spring system in Simscape looks like its damped, but im not using a damper. Why is so?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Krzysztof Krzysztof
le 24 Mar 2020
Réponse apportée : Anudeep Kumar
le 27 Mar 2020
The system I created:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279137/image.png)
As you can see, basic and simple. Mass-spring system. No damper. This is the generated response:
(position and velocity)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279138/image.png)
My question is: Why is the amplitude decreasing? From my understanding, when there is no damping, after the initial step at 0.5 seconds, the oscilation should remain stable for infinite time, but it stops after ~2 seconds. Is there something wrong with my model or is my thinking wrong?
Parameters are as follows:
spring rate: 5000 N/m
mass: 1 kg
step:
step time: 0.5
initial value: 0
final value: 1
sample time: 0
Will greatly appreciate any help :)
0 commentaires
Réponse acceptée
Anudeep Kumar
le 27 Mar 2020
I understand that you want to make a simple Mass spring model. The model you attached, produces desired output, and I believe the problem lies in the selection of solver configuration. Probably you are using local solver and Backward Euler, as the solver type.
The Backward Euler tends to damp out oscillations, but is more stable, especially if you increase the time step. You can either uncheck ‘Use local solver’ or use Trapezoidal Rule Solver.
For more insight on making optimum solver selection you may refer to the link:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279963/image.jpeg)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Assembly dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!