Hi Gianni,

For question 1 I can't comment too much on it, as I never used this 
functionality. But since it's an unused variable warning, I don't imagine 
any harm if the logic of the code is correct.

For question 2, you should use the diagonal inertia matrix that is 
consistent with the one you supplied to DEME. Note that if this object's 
motion (velocity and acceleration) is completely managed by Chrono instead 
of DEME, and the only thing you care about is the force and torque, then 
the inertia matrix does not even have to be "correct" (you can choose to 
not set it at all, and let it be the default 1.0), it needs only to be 
consistent.

Thank you,
Ruochun

On Wednesday, January 22, 2025 at 7:00:17 AM UTC+8 eldest...@gmail.com 
wrote:

> Hi Ruochun,
>
> my questions are:
>
> 1) When I build the program there is this warning appearing due to the 
> fact that I am using GNUplot to produce graphs that shows the temporal 
> trends of the object's position and velocity in Chrono. Is this harmful in 
> some way? How can I suppress it?[image: Screenshot From 2025-01-21 
> 23-47-49.png]
>
> 2) At the point where the Chrono and DEME bodies interact, you find the 
> torque by multiplying the diagonal inertia matrix of the ball for the 
> angular acceleration. In my case, I have an unsymmetrical body, and as you 
> told me I used the functions *InformCentroidPrincipal* and *SetMOI* to 
> fully define principal inertia axis direction, principal inertia moments 
> and CoG position. Thus my question is, in this case do I have to calculate 
> *tor* as shown in line 1652 (where *inertia* is the vector containing the 
> three principal inertia moments) or follow the process in line 1653 (and so 
> use an inertia matrix which is not diagonal therefore I explicitely 
> performed the product between the matrix and the vector)?[image: 
> Screenshot From 2025-01-21 23-51-04.png]
>
> Thank you again for your time.
>
> Gianni
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to projectchrono+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/3888ea22-4ddc-4379-bb92-2aad2404c58fn%40googlegroups.com.

Reply via email to