CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Oscillating Airfoil Fleunt UDF (https://www.cfd-online.com/Forums/fluent/203674-oscillating-airfoil-fleunt-udf.html)

rolltide July 3, 2018 16:30

Oscillating Airfoil Fleunt UDF
 
I am looking to create an oscillating airfoil in fluent. I want the angle of attack to change with time. I have this so far for the udf. I have compiled the udf and selected the airfoil as a dynamic mesh yet nothing moves. I am new to fluent and a working example would be very helpful

#include "udf.h"

DEFINE_CG_MOTION(rotate, dt, vel, omega, time, dtime)
{
real a, w, pi;

pi = 3.1415;

/* define motion variables */
a = 0.05; /* 0.05m movement amplitude */
w = 2 * pi * 2; /* 2Hz frequency */

/* define object movement law */
omega [0] = -.5* sin(w*time);
}


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