Simscape: The derivative of position in a direction not equal to the velocity
古いコメントを表示
I am using simmechanics 2g to simulate a robot. On one of the points on the robot, the velocity (plotted using scope) in the horizontal-x direction does not match the time-derivative of the position. This seems to defy my understanding of Newtonian Mechanics. Has somebody faced similar situations or know why this problem arises?
Note: There are no external forces provided in the horizontal direction although there is one provided in the vertical direction.
2 件のコメント
Rebecca Krosnick
2015 年 12 月 23 日
What equations and blocks are you using to generate the time-derivative of the position and the velocity? Can you also provide screenshots of the scope plots?
Sarvesh Srinivasan
2015 年 12 月 24 日
回答 (1 件)
Sebastian Castro
2015 年 12 月 25 日
0 投票
In general, I wouldn't trust the Derivative block's results very much. This block only does an approximate derivative of a signal, which is highly dependent on the simulation step-size taken, and has no continuous states or error control.
Some useful links:
Try doing it the opposite way: Use an Integrator block on the velocity signal and compare it to the position. This will likely look a lot better.
- Sebastian
4 件のコメント
Sarvesh Srinivasan
2015 年 12 月 26 日
Sebastian Castro
2015 年 12 月 27 日
Could be the solver -- I would guess this especially since your results are "jagged". The default "ode45" solver isn't always ideal for SimMechanics models.
If you go to your model's configuration parameters and switch the solver to ode23t, how do things look?
- Sebastian
Sarvesh Srinivasan
2015 年 12 月 27 日
Sebastian Castro
2015 年 12 月 28 日
Hmm... It could also be the Max step size parameter in the same solver settings. You could try reducing it and seeing what happens.
- Sebastian
カテゴリ
ヘルプ センター および File Exchange で Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



