CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Rigid body - pivoting about a fixed point (http://www.cfd-online.com/Forums/cfx/100492-rigid-body-pivoting-about-fixed-point.html)

Catenary April 26, 2012 03:07

Rigid body - pivoting about a fixed point
 
I'm trying to simulate a rigid body pivoting about a fixed point that is not the centre of mass.

http://i.imgur.com/W66m2.png

The rigid body is a hatch, hinged at the origin about the z axis. Iíve created the coord frame Ďhatch pivotí at this location. I have water flowing up from the bottom of the domain causing the hatch to rotate upwards.

Iíve based my mass and moment of inertia on a density of 8000kg/m3
M = 50mm * 5mm * 10mm * 8000kg/m3 = 0.02 kg
Izz = ML^2/3 = 1.667e-5 kg/m2

When I leave the centre of mass as automatic, the hatch rotates about the origin as expected, but Iím concerned that the gravity is acting through the pivot point rather than the centroid, and providing no resistance to rotation.

When I specify the rigid body centre of mass initial condition as the centroid of the hatch (-25mm, 0, 0), the object seems to rotate about this point, rather than the origin.

I need to account for the weight force acting on the hatch, but the 6-DOF solver doesn't seem to allow for this. As a work-around I've tried to apply an external torque in the rigid body dynamics tab
Torque (Z component) = MgL/2 cos(theta_z)
= .02[kg]*g*0.025[m]*cos(rbstate(Euler Angle Z)@Hatch)


This works, but don't think it will handle the buoyancy correctly. I eventually need to adapt this to irregular shaped hatchs, different densities etc.

Can anyone provide some insight into getting the centre of mass working correctly?

Thanks,
David


All times are GMT -4. The time now is 00:01.