The zero total mass is incompatible with the nonzero center of mass. Resolve this issue in order to simulate the model.

조회 수: 7 (최근 30일)
I am getting the above error message all the time. I have imported the CAD Assembly from the inventor. I have specified the material in the inventor itself. Please let me know where the problem is?

답변 (1개)

Steve Miller
Steve Miller 2022년 11월 26일
In your DataFile, there is a part set to have 0 mass but a nonzero center of mass. Likely, the density of the part is 0 in Inventor.
%Inertia Type - Custom
%Visual Properties - Simple
smiData.Solid(4).mass = 0; % lbm
smiData.Solid(4).CoM = [1.9096113985112416e-316 2.7369230995704108e-310 0]; % in
You can either fix this in your CAD model, or you can modify the parameters directly in the ex_b_s_4_DataFile.m, setting the center of mass and inertia values to 0. Make sure this solid is rigidly attached to world or you will get additional errors related to infinite acceleration.
--Steve
  댓글 수: 3
Walter Roberson
Walter Roberson 2023년 6월 30일

If you look at lines 140 and 150 of the m file that the original poster attached, you will see that they defined two parts with mass exactly zero, but with CoM (centre of mass) not exactly zero (1e-310 range, which is about where the "denormalized numbers" start—numbers so small they cannot be represented as floating-point numbers).

When you have an object with mass 0, its centre of mass must be at exactly [0, 0, 0]. The CoM needs to be edited, or else you need to provide a non-zero mass.

Steve Miller
Steve Miller 2023년 6월 30일
@karim Jomaa zabadne does the post make sense now? I highlighted the code that was incorrect, and Walter Roberson has given you very clear instructions on how you can correct it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by