Measure the model mass and moment of inertia of the component detached from the main body
2 次查看(过去 30 天)
显示 更早的评论
I need to measure the mass and moment of inertia of a multi-component model in Simscape in real time. During the simulation process, some fixed components need to be detached from the main body one by one. I have used Weld Joint and Inertia Sensor, and found that the mass measured by Inertia Sensor did not decrease after the Weld Joint detached a component from the main body. In addition, I have also used Enabled Subsystems, trying to switch the connection method between the component and the main body when a component detached from the main body (from Rigid Transform to 6-DOF Joint), but it could not run. Is there any way to measure the inertia parameters of a model whose structure changes?
0 个评论
回答(2 个)
Shishir Reddy
2025-6-20
编辑:Shishir Reddy
2025-6-20
Hi @Ming
The key reason the Inertia Sensor continues to report the same values even after Weld Joint detached a component from main body is because the sensor is likely still measuring the original composite body (as defined at the beginning of the simulation). In Simscape Multibody, the structure of the multibody system is fixed at the start of the simulation, which means the dynamic creation or removal of rigid connections does not update the connected mass properties from the solver’s perspective.
Kindly refer the following two workarounds to model this kind of dynamic structural reconfiguration and accurately measure the changing mass and inertia
1. Using Simscape Component-On/Off Modeling
Instead of disabling joints or trying to switch subsystems mid-simulation, consider physically modeling the detachment using actuated joints or force thresholds (e.g., a spring-damper with a breakaway force), which would allow components to detach naturally. Once detached, they are no longer contributing forces/torques to the main body.
2. Post-Processing
If real-time measurement proves too difficult or computationally expensive, consider logging the simulation data (e.g., joint states, detachment events) and computing mass/inertia offline in MATLAB.
For more information regarding the Inertia block, kindly refer the following documentation - https://www.mathworks.com/help/sm/ref/inertia.html
I hope this resolves the issue.
0 个评论
Yifeng Tang
2025-7-31
Hi @Ming
As @Shishir Reddy mentioned, it appears that the inertia sensor spans the weld joints at the beginning of the simulation and won't respond to the disengagement of the weld.
I wonder how many weld joints you need to apply and disengage. If it's just one, I think it's possible to set up two inertia sensors, one spans weld and the other doesn't. Use a switch to design which value to use. It's clumsy, very clumsy.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bodies 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!