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

Basic moving object help!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2011, 12:13
Default Basic moving object help!
  #1
New Member
 
Join Date: Jul 2011
Location: London, UK
Posts: 6
Rep Power: 15
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, 05:10
Default
  #2
New Member
 
Join Date: Aug 2011
Posts: 3
Rep Power: 15
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
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 08:46
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


All times are GMT -4. The time now is 18:14.