CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   sinusoidal oscillating airfoil simulation in CFX (https://www.cfd-online.com/Forums/cfx/191336-sinusoidal-oscillating-airfoil-simulation-cfx.html)

mamly August 7, 2017 13:15

sinusoidal oscillating airfoil simulation in CFX
 
Hello guys
I am trying to simulate a sinusoidal oscillating airfoil by CFX.
The airfoil is NACA0012 and the oscillating center is 0.25 chord.
the UDF for the oscilation is:
---------------------------------------------------------------------
# include "udf.h"


#define D 10.0 /* Amplitude */
#define K 0.026 /* Reduced Frequency */

DEFINE_CG_MOTION(airfoil, dt, vel, omega, time, dtime)
{
omega[2]=0.0174532*D*2.0*K*cos(2.0*K*time);
}
----------------------------------------------------------------------

Can you help me and tell me how can I simulate this airfoil?
I have no problem in modeling and mesh generation, but I don't know, where should I implement these equations?

Waiting for you!
Best

ghorrocks August 7, 2017 19:22

I would not do this using a user function. This can be implemented easily in CEL and that is much easier. Have a look at the CFX tutorials for how to implement CEL expressions.


All times are GMT -4. The time now is 08:09.