CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Mesh motion (https://www.cfd-online.com/Forums/fluent/37289-mesh-motion.html)

madhuri July 15, 2005 11:59

Mesh motion
 
Dear friends

I'm trying to model an oscillating airfoil. I wrote a udf for it and then I apply it to my airfoil, but when i use mesh motion to preview the motion of my airfoil i saw that it didn't move!

this is my udf: #include "udf.h" static real v_prev = 0.942; DEFINE_CG_MOTION(plunge, dt, vel, omega, time, dtime) { Thread *t; face_t f; real NV_VEC (A); real dv; /* reset velocities */ NV_S (vel, =, 0.0); NV_S (omega, =, 0.0); if (!Data_Valid_P ()) return; /* get the thread pointer for which this motion is efined */ t = DT_THREAD (dt); /* compute change in velocity */ dv = -5.921*sin(6.28318*time)*dtime; v_prev += dv ; Message ("time = %f, x_vel = %f", time, v_prev); /* set Y-component of velocity */ vel[1] = v_prev; }

and I apply it only to my airfoil. (only my airfoil is set as dyn mesh zone)

Pls help me.

Akbar July 19, 2005 23:40

Re: Mesh motion
 
Do you have experimental data of an oscillating airfoil? I am also looking to simulate oscillating airfoil.

If you have geometry data and experimental results of an oscillating airfoil please inform me.

Thanks & regards

Mahesh July 20, 2005 08:03

Re: Mesh motion
 
have u set the adjacent fluid as deforming? aerofoil with the profile and a rigid body.


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