CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Need help in writing UDF for an oscillating airfoil to get Output parameters

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2017, 12:21
Default Need help in writing UDF for an oscillating airfoil to get Output parameters
  #1
New Member
 
musab
Join Date: Oct 2017
Posts: 11
Rep Power: 9
ned.musab is on a distinguished road
Hello everyone,

I need help in writing UDF for pitching airfoil for the particular case using DEFINE_OUTPUT_PARAMETER
For reference please have a look at below link related to how to write UDF in the presence of Output Parameters.

https://www.sharcnet.ca/Software/Ansys/16.2.3/en-us/help/flu_ug/flu_ug_sec_report_param_out_udf.html

Actually I want to get CL(lift coefficient) values at different ''different'' AoA.

Here is my UDF:

#include "udf.h"
DEFINE_CG_MOTION(oscillating_airfoil, dt, vel, omega, time, dtime)
{
real a, w, p, pi;
pi = 3.14159265;
/* define motion variables */
a = 5*(pi/36); /* Amplitude */
w = 2 * pi *1; /* Angular Frequency */
p = pi/2; /* phase */

/* define airfoil motion */
omega[2] = -a*sin(w*time+p); /* z-component of angular velocity */


}
ned.musab is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build current blower fan model in Flotherm eric0722 FloEFD, FloWorks & FloTHERM 3 January 2, 2021 03:36
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
UDF for Pitching and Oscillating 2D Airfoil vigii Fluent UDF and Scheme Programming 11 July 11, 2019 16:58
Oscillating Airfoil - Dynamic meshing or user-defined velocity profile. DarrenC Main CFD Forum 5 July 19, 2010 23:33
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 03:21


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