|
[Sponsors] |
June 3, 2015, 16:40 |
UDF for Heaving airfoil
|
#1 |
Member
alireza
Join Date: Jul 2009
Posts: 32
Rep Power: 16 |
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. |
|
|
|
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 09:32 |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
Airfoil boundary condition | Frank | Main CFD Forum | 1 | April 21, 2008 19:36 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |