CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Oscillating airfoil for wind energy

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 6, 2014, 17:51
Default Oscillating airfoil for wind energy
New Member
Join Date: Feb 2014
Posts: 1
Rep Power: 0
hlloydwilliams is on a distinguished road

I am trying to simulate an airfoil oscillating vertically over a 6m displacement. i want to write UDFs to describe different relationships between the pitch of the airfoil and the vertical displacement. first i am trying a sinusoidal relationship so the foil is at max angle of attack at the centre of the displacement and the there is also a spring force pulling it back to the centre of the range. the foil is a symmetrical NACA0012 of chord length 1m in a constant air speed of 10m/s
i aim to find the best pitch motion that will completes a complete oscillation the quickest.
to do this i am using an interpreted six degrees of freedom UDF shown below:

#include "udf.h"

DEFINE_SDOF_PROPERTIES(fmotion5, prop, dt, time, dtime)

real x[ND_ND];

real THETA[2];
real vel[ND_ND];

real a ;

#define PI 3.14159265;
real K=10;
real THETAMAX =0.349;
real SPRING;


prop[SDOF_MASS] = 5;
prop[SDOF_IZZ] = 0.00001;




a = ((vel[1])/(sqrt(vel[1]*vel[1])))*THETAMAX*cos(asin((x[1])/3));


I can only interpret the UDF due to the restrictions on the university computer i am using.

When i hook the UDF in, the airfoil shows no motion and i sometimes get negative cell volumes. Can anyone help me on this?

I am quite new to CFD by the way.

Thanks in advance
Attached Images
File Type: jpg mesh.jpg (96.0 KB, 18 views)
hlloydwilliams is offline   Reply With Quote


airfoil2d, oscillating airfoil, sixdof, udf and programming

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with airfoil shape optimization robyTKD SU2 Shape Design 6 June 13, 2013 19:13
Problem with restart solution in robyTKD SU2 Shape Design 21 May 29, 2013 09:26
Oscillating Airfoil and Independently Oscillating Flap dancfd OpenFOAM Meshing & Mesh Conversion 3 August 26, 2010 18:52
Oscillating Airfoil - Dynamic meshing or user-defined velocity profile. DarrenC Main CFD Forum 5 July 19, 2010 22:33
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45

All times are GMT -4. The time now is 06:19.