|
[Sponsors] |
July 18, 2007, 17:45 |
Rigid body rotation NOT through the CG?
|
#1 |
Guest
Posts: n/a
|
I would like to rotate a rigid body through an axis that does NOT pass through its centre of gravity e.g. a long rod rotating about one of its own ends like a clock pendulum.
My understanding is that the DEFINE_CG_MOTION, as its name implies, can ONLY be used to specify translational and angular velocities for the body's centre of gravity. Could someone confirm this for me please? If this is the case then presumably I HAVE to use the DEFINE_GRID_MOTION macro??? Rotating a body around its CG is trivial e.g. #include "udf.h" DEFINE_CG_MOTION(james,dt,vel,omega,time,dtime) { /* reset velocities */ NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P()) return; omega[2] = 0.523599 * cos(392.699 * time) * 392.699; } But again this doesnt help my situation as the rotation only occurs about the CG which is not what I need. Thanks for any clarification! |
|
July 18, 2007, 18:05 |
Re: Rigid body rotation NOT through the CG?
|
#2 |
Guest
Posts: n/a
|
Just to add another thought ... My understanding is that the DEFINE_GRID_MOTION macro is mainly for use with deforming bodies i.e. non-rigid bodies as the nodes in the zone undergoing motion are moving relative to each other.
This is the problem: Neither the DEFINE_CG_MOTION nor DEFINE_GRID_MOTION macros seem directly applicable to my case? |
|
July 19, 2007, 13:09 |
Re: Rigid body rotation NOT through the CG?
|
#3 |
Guest
Posts: n/a
|
Problem solved ... I just managed to confuse myself.
|
|
July 20, 2007, 09:35 |
Re: Rigid body rotation NOT through the CG?
|
#4 |
Guest
Posts: n/a
|
Dear Joe i have a problem about dynamuc mesh. can you tell me how can i model a vessel by dynamic mesh.? whit king regards Amir
|
|
July 20, 2007, 17:21 |
Re: Rigid body rotation NOT through the CG?
|
#5 |
Guest
Posts: n/a
|
Do the dynamic mesh tutorial 12 and implement the DEFINE_CG_MOTION and DEFINE_GRID_MOTION examples in the UDF manual. That will get you started.
|
|
April 12, 2010, 15:13 |
User defined functions
|
#6 |
New Member
Juan Carlos
Join Date: Feb 2010
Posts: 9
Rep Power: 16 |
Dear Joe
In my case I trying to simulate a flapper valve and I'd like to rotate a valve, like a rigid body, through an axis that doesn't pass through its centre of gravity. Here the flow moves the valve by exerting forces on it. To reproduce the body motion of the valve due to hinge moment I must use Compute_Force_And_Moment function to determinate the moment, but I don’t know how it does. Do you have any suggestions that can help me? |
|
May 28, 2010, 12:03 |
|
#7 | |
New Member
euzinho
Join Date: May 2010
Posts: 15
Rep Power: 16 |
Hi Joe,
I am having the same problem, I don´t know how to rotate a butterfly valve, and my code is a lot like your can you explain me how did you resolve the problem? thanks so much Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
6-dof rigid body solver | AUN | CFX | 4 | October 3, 2017 20:49 |
Rigid body | Birkov | CFX | 4 | May 25, 2012 07:26 |
Turbulent solver rigid body mechanics | philippose | OpenFOAM Running, Solving & CFD | 53 | July 16, 2011 14:35 |
Rigid Body with 3-DOF rotation | aeropeng | OpenFOAM | 3 | June 28, 2011 05:43 |
Rotation of a 3d rigid body through its free end | M-Ray | FLUENT | 0 | May 20, 2008 10:56 |