A Order of rotations due to torque in 3DOF in simulations

AI Thread Summary
In a CFD simulation involving a symmetrical rigid body constrained to rotate in three degrees of freedom, the orientation after one second can be determined by calculating angular accelerations from the applied torque. The torque equations must use the moment of inertia in the local coordinate system to avoid confusion with global coordinates. When rotating the body, the order of applying rotation matrices matters due to their non-commutative nature; however, small angle approximations may allow for some flexibility in this context. If forces are also applied at the center of gravity, they will affect the body's position but not the rotation formulation directly. Understanding the conversion from angular velocity to rotation matrices or quaternions is essential for accurate orientation updates at each time step.
zonexo
Messages
1
Reaction score
2
TL;DR Summary
What is the orientation of a body rotating in 3 axes after t=1sec, using very small rotations to each time step
Hi,

I am running a computational fluid dynamics (CFD) simulation. Supposed I have a symmetrical rigid body in space experiencing torque in the global x,y,z axes. It is stationary at t = 0. I also constrain it to only allow rotations in 3DOFs, and no translation.

It will rotate and I need to know its orientation after t = 1s.

Each time step is 1e-5s. And I can get the torque at each time step. So 1st I need to obtain the angular accelerations (alpha) in the global x,y,z axes. I understand that torque folllows: torque_x/y/z = I_xx/yy/zz*alpha_x/y/z

So I can get alpha_x/y/z. Then I can then get the auglar vel and the angle rotated.

But how should I rotate the body to its new orientation at each time step? If I'm using rotational matrix R_x, R_y, R_z (or even quaterions), should the total rotation matrix by R_x*R_y*R_z or R_z*R_y*R_x? Because I thought matrices are not commutative, so would the body get a different orientation if I use different combinations? But there should only be a single correction orientation after the body experienced torque combination in the 3 axes.

At each time step (1e-5s), the angles rotated are small, so does it mean the rotation matrics can be commutative and so it doesn't matter?

Supposed at each time step, the angles at each axis are rotated 0.0001deg, what will be the final orientation of the body at t = 1s? Will it be the same as either using R_x*R_y*R_z or R_z*R_y*R_x and rotating by 10deg (since 0.0001*10000 time steps = 10deg)?

Lastly, if I also include forces acting at the body's CG, would it make any difference to the above rotation formulation (besides the body translating to a new position)?

Hope someone can clarify my doubts. Thanks!
 
Physics news on Phys.org
zonexo said:
1st I need to obtain the angular accelerations (alpha) in the global x,y,z axes. I understand that torque folllows: torque_x/y/z = I_xx/yy/zz*alpha_x/y/z
Careful here: I_xx/yy/zz is usually given in the local system of the body, where it is constant. Make sure you are not mixing global and local systems in this equation.

zonexo said:
Then I can then get the auglar vel and the angle rotated.

But how should I rotate the body to its new orientation at each time step?
The angular velocity is a vector, which is along the instantaneous rotation axis. So you need something to convert from axis-angle to matrix or to quaternion:
https://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToMatrix/index.htm
https://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm
 
I have recently been really interested in the derivation of Hamiltons Principle. On my research I found that with the term ##m \cdot \frac{d}{dt} (\frac{dr}{dt} \cdot \delta r) = 0## (1) one may derivate ##\delta \int (T - V) dt = 0## (2). The derivation itself I understood quiet good, but what I don't understand is where the equation (1) came from, because in my research it was just given and not derived from anywhere. Does anybody know where (1) comes from or why from it the...
Back
Top