CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Basic moving object help!

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2011, 11:13
Default Basic moving object help!
  #1
New Member
 
Join Date: Jul 2011
Location: London, UK
Posts: 6
Rep Power: 5
Phil_QM is on a distinguished road
I am trying to obtain the lift and drag of a hydrofoil.
I have a mesh which works for steady cases, now I am trying to run a transient case with the airfoil moving.

I am trying to use a UDF to achieve this but keep getting this error
"warning: incorrect cg motion UDF flutter on zone 7 (assuming no motion)"

My UDF is as follows, I am very new to C programming so may have made some basic mistakes.

Quote:
#include <udf.h>
/* A udf to oscillate an airfoil in the y-direction for "ANSYS Fluent 12.0" - Philip Bishop 22:09:2011 */

DEFINE_CG_MOTION(FOILMOTION, DT, VEL, OMEGA, TIME, DTIME)
{
VEL[]=sin(TIME);
}
Phil_QM is offline   Reply With Quote

Old   August 23, 2011, 04:10
Default
  #2
New Member
 
Join Date: Aug 2011
Posts: 3
Rep Power: 5
D.Q.Zheng is on a distinguished road
In your UDF, the moving direction of the object was not defined. VEL[0], VEL[1], VEL[2] stand for the x,y,z-component of velocity, respecitvely. In addition, 'CURRENT_TIME' which means 'real current flow time (in seconds)' is suggested to replace 'Time' in your UDF expression. More detailed informations about DEFINE_CG_MOTION macro could be found in chapter2.6.1 in Fluent documentation.
D.Q.Zheng is offline   Reply With Quote

Reply

Tags
basic, moving, oscillating, udf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 136 April 25, 2012 11:22
Moving object close to ground vinz OpenFOAM Running, Solving & CFD 0 March 22, 2010 11:33
Modeling flow over a moving object psd Main CFD Forum 3 October 21, 2009 07:46
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36


All times are GMT -4. The time now is 10:19.