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

UDF for Heaving airfoil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2015, 15:40
Default UDF for Heaving airfoil
  #1
Member
 
alireza
Join Date: Jul 2009
Posts: 32
Rep Power: 16
alireza_b is an unknown quantity at this point
Hello Dear friends.

I want to simulate flow over a flexible heaving airfoil at low Reynolds number.
I wrote a UDF for that. this UDF works for a rigid airfoil but when I switch to flexible airfoil, there is no motion. Can you help me?
Eq: y=-(constant)*x^2*cos(w*t)

My UDF:
# include "udf.h"

DEFINE_CG_MOTION(airfoil, dt, vel, omega, time, dtime)
{
real z[ND_ND];
real x;
Thread *t;
cell_t c;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(z,f,t);
x =z[0];
vel[1]=-0.3*x*x*cos(2.0*time);
}
end_f_loop(f,t)
}

Thanks.
alireza_b is offline   Reply With Quote

Reply


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
UDF for pitching and rotating airfoil guidofrate Fluent UDF and Scheme Programming 0 November 20, 2014 08:32
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
Airfoil boundary condition Frank Main CFD Forum 1 April 21, 2008 18:36
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 23:56.